/*
Theme Name: Mua O To VinFast
Theme URI: https://muaotovinfast.com/
Author: MUAOTOVINFAST.COM
Description: Theme WordPress doc lap cho dai ly tu van, dat hang va tin tuc VinFast.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muaotovinfast
Tags: automotive, ecommerce, news, seo, responsive-layout
*/

:root {
  --vf-red: #e30613;
  --vf-red-dark: #bd0010;
  --vf-navy: #06152d;
  --vf-blue: #0b2e63;
  --vf-text: #101a31;
  --vf-muted: #667085;
  --vf-line: #e3e8f0;
  --vf-bg: #f5f7fb;
  --vf-soft: #f9fbff;
  --vf-radius: 8px;
  --vf-container: 1180px;
  --vf-shadow: 0 18px 45px rgba(12, 29, 58, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vf-text);
  background: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.vf-container {
  width: min(var(--vf-container), calc(100% - 56px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vf-topbar {
  color: #fff;
  background: #06152d;
  font-size: 13px;
}
.vf-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 18px;
}
.vf-topbar__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--vf-line);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}
.site-branding { flex: 0 0 300px; }
.vf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.vf-mark {
  position: relative;
  width: 42px;
  height: 44px;
  flex: 0 0 42px;
}
.vf-mark::before,
.vf-mark::after {
  position: absolute;
  top: 4px;
  content: "";
  width: 9px;
  height: 38px;
  background: linear-gradient(180deg, #07152d, #9aa4b5);
  transform-origin: top center;
}
.vf-mark::before { left: 12px; transform: rotate(-33deg); }
.vf-mark::after { right: 12px; transform: rotate(33deg); }
.vf-logo__word {
  display: block;
  color: #07152d;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}
.vf-logo__word span { color: var(--vf-red); }
.vf-logo__tag {
  display: block;
  margin-top: 5px;
  color: #26364f;
  font-size: 12px;
  font-weight: 650;
}

.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: #07152d;
  border-radius: var(--vf-radius);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--vf-red);
}
.site-nav .current-menu-item a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -20px;
  height: 3px;
  content: "";
  background: var(--vf-red);
  border-radius: 999px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vf-button,
.quote-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--vf-red), #ff2732);
  border: 0;
  border-radius: var(--vf-radius);
  box-shadow: 0 14px 28px rgba(227, 6, 19, .22);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.vf-button--ghost {
  color: var(--vf-red);
  background: #fff;
  border: 1px solid rgba(227, 6, 19, .45);
  box-shadow: none;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--vf-navy);
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.74) 42%, rgba(236,244,255,.26) 100%),
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.8), rgba(204,223,249,.35) 26%, transparent 52%),
    linear-gradient(180deg, #ecf4ff, #f9fbff);
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(transparent 72%, rgba(185,198,215,.46) 73%, transparent 74%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(8,21,45,.05) 93px 94px);
  opacity: .55;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 18px;
  min-height: 450px;
}
.hero-copy h1 {
  margin: 0 0 6px;
  color: #030b1d;
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 span { color: var(--vf-red); }
.hero-copy h2 {
  margin: 0 0 22px;
  color: #07152d;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-points {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d2939;
  font-weight: 650;
}
.check-icon,
.benefit-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--vf-red);
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  position: relative;
  min-height: 360px;
}
.hero-emblem {
  position: absolute;
  top: -12px;
  left: 47%;
  color: rgba(5, 21, 45, .24);
  font-size: 190px;
  line-height: .85;
  font-weight: 200;
}
.hero-cars {
  position: absolute;
  inset: auto 0 18px;
  display: grid;
  grid-template-columns: .95fr 1.08fr 1fr;
  align-items: end;
}
.hero-car {
  filter: drop-shadow(0 24px 20px rgba(10, 22, 42, .22));
}
.hero-car:nth-child(2) {
  z-index: 2;
  transform: scale(1.12) translateY(-8px);
}

.finder {
  position: relative;
  z-index: 3;
  margin-top: -39px;
}
.finder-panel {
  display: grid;
  grid-template-columns: 190px repeat(4, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
}
.finder-title {
  margin: 0;
  color: var(--vf-navy);
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}
.finder select,
.finder input,
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #162033;
  background: #fff;
  border: 1px solid #d7dee9;
  border-radius: 6px;
}

.benefits {
  padding: 26px 0 14px;
}
.benefit-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.benefit-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
}
.benefit-item strong {
  display: block;
  color: #162033;
  font-size: 13px;
  line-height: 1.22;
}
.benefit-item span:last-child {
  display: block;
  color: #667085;
  font-size: 12px;
}

.section { padding: 26px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  color: var(--vf-navy);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.view-link {
  color: var(--vf-red);
  font-size: 14px;
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.product-card,
.news-card,
.quote-card,
.why-card,
.content-card,
.testimonial-card {
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 12px;
}
.product-media {
  display: grid;
  place-items: center;
  min-height: 104px;
  margin-bottom: 10px;
  background: #f7f9fc;
  border-radius: 6px;
}
.product-media img {
  width: 100%;
  max-height: 104px;
  object-fit: contain;
}
.product-card h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}
.product-price {
  margin: 0 0 8px;
  color: var(--vf-red);
  font-weight: 950;
}
.product-card ul {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 0;
  color: #344054;
  font-size: 12px;
  list-style: none;
}
.product-card li::before {
  content: "✓";
  margin-right: 6px;
  color: #06152d;
  font-weight: 950;
}
.product-card .vf-button {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding-inline: 12px;
  font-size: 12px;
  box-shadow: none;
}

.promo-band {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr 1.45fr .55fr;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 22px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 50%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(100deg, #b50008, #8d0006 44%, #d80a14);
  border-radius: var(--vf-radius);
  box-shadow: var(--vf-shadow);
}
.promo-band h2 {
  margin: 0;
  color: #ffd44d;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}
.promo-band p { margin: 4px 0 0; font-size: 18px; font-weight: 850; }
.promo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promo-features div { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; }
.promo-features strong { color: #ffd44d; }
.promo-car { align-self: end; filter: drop-shadow(0 16px 18px rgba(0,0,0,.22)); }

.tool-grid {
  display: grid;
  grid-template-columns: 1.2fr .88fr;
  gap: 18px;
}
.loan-card,
.why-card {
  padding: 20px;
}
.loan-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}
.loan-card h2,
.why-card h2,
.testimonial-card h2 {
  margin: 0 0 16px;
  color: var(--vf-navy);
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}
.loan-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.loan-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}
.loan-form input[type="range"] { accent-color: var(--vf-red); }
.loan-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
}
.loan-result div {
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  color: #667085;
  font-size: 12px;
}
.loan-result strong {
  display: block;
  margin-top: 4px;
  color: var(--vf-red);
  font-size: 18px;
  line-height: 1.1;
}
.why-card {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.88) 56%, rgba(236,245,255,.62) 100%),
    linear-gradient(135deg, #eff6ff, #fff);
}
.why-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-card li { display: flex; gap: 10px; align-items: flex-start; }

.quote-section {
  padding: 36px 0;
  background: var(--vf-bg);
}
.quote-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 24px;
}
.quote-copy h2 {
  margin: 0 0 10px;
  color: var(--vf-navy);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 950;
}
.quote-copy p { color: #475467; font-size: 16px; }
.quote-card { padding: 22px; }
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.quote-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}
.quote-form textarea { min-height: 94px; resize: vertical; }
.quote-form .full { grid-column: 1 / -1; }
.quote-message {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 800;
}
.quote-message.ok { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
.quote-message.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }

.news-testimonial-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 18px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.news-card { overflow: hidden; }
.news-thumb {
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body { padding: 12px; }
.news-title {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}
.news-date {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}
.testimonial-card { padding: 22px; }
.quote-mark {
  color: var(--vf-red);
  font-size: 44px;
  line-height: .8;
  font-weight: 950;
}
.stars { color: var(--vf-red); font-size: 22px; letter-spacing: 2px; }

.site-footer {
  color: #d8e3f5;
  background: #06152d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 30px;
  padding: 38px 0 28px;
}
.footer-logo .vf-logo__word,
.footer-logo .vf-logo__tag { color: #fff; }
.footer-copy { color: #b8c6dc; max-width: 320px; }
.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}
.footer-links,
.footer-contact,
.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li,
.footer-contact li { margin: 8px 0; color: #b8c6dc; }
.social-links { display: flex; gap: 9px; }
.social-links a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.copyright {
  padding: 14px 0 22px;
  color: #98a9c2;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 13px;
}
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  gap: 10px;
}
.floating-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,.2);
  font-size: 13px;
  font-weight: 900;
}
.floating-actions a:first-child { background: var(--vf-red); }
.floating-actions a:last-child { background: #0573ff; }

.content-wrap { padding: 36px 0 54px; background: #f8fafc; }
.content-card { padding: 26px; }
.entry-content { color: #27364d; font-size: 17px; }
.entry-content img { border-radius: var(--vf-radius); }
.pagination,
.nav-links { margin-top: 24px; text-align: center; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  margin: 0 3px;
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: 6px;
}
.page-numbers.current { color: #fff; background: var(--vf-red); }

@media (max-width: 1120px) {
  .site-branding { flex-basis: 270px; }
  .site-nav a { padding-inline: 7px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .vf-container { width: min(100% - 32px, var(--vf-container)); }
  .vf-topbar__inner { align-items: flex-start; flex-direction: column; padding: 9px 0; gap: 5px; }
  .vf-topbar__right { justify-content: flex-start; gap: 8px 14px; }
  .header-inner { min-height: 70px; }
  .site-branding { flex: 1; }
  .vf-logo__word { font-size: 21px; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--vf-line);
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { display: grid; justify-content: stretch; }
  .site-nav a { justify-content: flex-start; width: 100%; }
  .site-nav .current-menu-item a::after { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .vf-button { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 34px 0 74px; }
  .hero { min-height: 0; }
  .hero-art { min-height: 260px; }
  .hero-cars { grid-template-columns: 1fr 1fr; }
  .hero-car:last-child { display: none; }
  .finder-panel { grid-template-columns: 1fr 1fr; }
  .finder-title { grid-column: 1 / -1; }
  .tool-grid,
  .quote-grid,
  .news-testimonial-grid,
  .promo-band,
  .loan-card { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-features { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .vf-logo__word { font-size: 19px; }
  .vf-logo__tag { font-size: 10px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy h2 { font-size: 20px; }
  .hero-art { min-height: 210px; }
  .finder-panel,
  .product-grid,
  .benefit-row,
  .loan-form,
  .loan-result,
  .quote-form,
  .news-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .promo-band { padding: 20px; }
  .promo-band h2 { font-size: 24px; }
  .floating-actions { left: 12px; right: 12px; justify-content: center; }
}
