/*
Theme Name: VinFast Tra Gop
Theme URI: https://vinfasttragop.com/
Author: VinFast Tra Gop
Description: Theme WordPress doc lap cho vinfasttragop.com voi tinh nang dat hang, tu van tra gop 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: vinfasttragop
Tags: ecommerce, news, lead-generation, custom-logo, featured-images, responsive-layout
*/

:root {
  --vf-blue: #0b5bd3;
  --vf-blue-2: #0f73ff;
  --vf-navy: #06275b;
  --vf-deep: #041936;
  --vf-text: #101a2f;
  --vf-muted: #66738a;
  --vf-line: #dfe8f5;
  --vf-bg: #f4f8ff;
  --vf-soft: #edf5ff;
  --vf-green: #00a56a;
  --vf-radius: 8px;
  --vf-shadow: 0 16px 38px rgba(6, 39, 91, .12);
  --vf-container: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vf-text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e4ebf6;
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 24px;
}
.site-branding { flex: 0 0 238px; }
.vf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vf-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.vf-mark::before,
.vf-mark::after {
  position: absolute;
  top: 3px;
  width: 8px;
  height: 36px;
  content: "";
  background: linear-gradient(180deg, #102a55, #8797aa);
  transform-origin: top center;
}
.vf-mark::before { left: 12px; transform: rotate(-32deg); }
.vf-mark::after { right: 12px; transform: rotate(32deg); }
.vf-logo__word {
  display: block;
  color: #14234a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}
.vf-logo__word span {
  display: block;
  margin-top: 3px;
  color: var(--vf-navy);
  font-size: 13px;
}
.vf-logo__tag {
  display: block;
  margin-top: 5px;
  color: var(--vf-blue);
  font-size: 10px;
  font-weight: 900;
}
.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: 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 12px;
  color: #25324a;
  border-radius: var(--vf-radius);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.site-nav .current-menu-item a,
.site-nav a:hover {
  color: var(--vf-blue);
  background: #eef5ff;
}
.site-nav .current-menu-item a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -17px;
  height: 3px;
  content: "";
  background: var(--vf-blue);
  border-radius: 999px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vf-navy);
  font-weight: 900;
  white-space: nowrap;
}
.header-phone {
  display: grid;
  gap: 1px;
  font-size: 14px;
}
.header-phone small {
  color: #69758b;
  font-size: 11px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0d1b35;
  background: #f4f7ff;
  border: 1px solid #e8eefc;
  border-radius: var(--vf-radius);
  cursor: pointer;
}

.vf-button,
.quote-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #084fcc, #0f6df2);
  border: 0;
  border-radius: var(--vf-radius);
  box-shadow: 0 14px 28px rgba(11, 91, 211, .25);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.vf-button--light {
  color: var(--vf-navy);
  background: #fff;
  border: 1px solid #c9d8ef;
  box-shadow: 0 10px 22px rgba(10, 55, 120, .08);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 458px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(242,248,255,.88) 44%, rgba(255,255,255,.22) 100%),
    linear-gradient(180deg, #e8f5ff 0%, #f8fbff 58%, #d6e9ff 100%);
}
.hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  content: "";
  background: linear-gradient(10deg, rgba(5, 36, 85, .18), transparent 54%);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, .88fr) minmax(530px, 1.12fr);
  align-items: center;
  min-height: 458px;
  gap: 18px;
}
.hero-copy h1 {
  margin: 0 0 12px;
  color: #101010;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-copy h1 span { color: var(--vf-blue); }
.hero-copy h2 {
  max-width: 560px;
  margin: 0 0 22px;
  color: #161d2e;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-points {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: #202b42;
  font-weight: 800;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-points span,
.mini-icon,
.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--vf-blue);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
  flex: 0 0 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-art {
  position: relative;
  min-height: 388px;
}
.cityline {
  position: absolute;
  inset: 36px 0 auto;
  height: 150px;
  opacity: .48;
  background:
    linear-gradient(180deg, transparent 12%, rgba(112, 146, 183, .32) 13%, transparent 14%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(45, 82, 126, .16) 43px 64px, transparent 65px 76px);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent);
}
.road {
  position: absolute;
  left: -30px;
  right: -90px;
  bottom: 0;
  height: 132px;
  background:
    linear-gradient(160deg, transparent 0 40%, rgba(255,255,255,.78) 41% 43%, transparent 44%),
    linear-gradient(180deg, #c7d4e3, #eef4fb);
  transform: skewY(-4deg);
  transform-origin: right bottom;
}
.hero-vehicles {
  position: absolute;
  inset: auto 0 12px;
  display: grid;
  grid-template-columns: 1fr .42fr;
  align-items: end;
  gap: 6px;
}
.hero-car {
  width: min(620px, 100%);
  justify-self: end;
  filter: drop-shadow(0 24px 22px rgba(9, 30, 60, .22));
}
.hero-bike {
  position: relative;
  width: 138px;
  height: 210px;
  justify-self: start;
  margin-bottom: 18px;
  filter: drop-shadow(0 20px 18px rgba(9, 30, 60, .22));
}
.hero-bike::before {
  position: absolute;
  inset: 22px 31px 18px;
  content: "";
  background: linear-gradient(180deg, #f44336, #c1121f);
  border-radius: 66px 66px 28px 28px;
  box-shadow: inset 0 -34px 0 rgba(0,0,0,.12);
}
.hero-bike::after {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 48px;
  content: "";
  background: #f8fbff;
  border: 7px solid #2c3549;
  border-bottom-width: 5px;
  border-radius: 999px 999px 18px 18px;
}
.hero-bike span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 38px;
  border-radius: 999px;
  background: #222b3d;
}

.benefit-strip {
  color: #fff;
  background: linear-gradient(90deg, #05275c, #073d8f);
}
.benefit-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.benefit:last-child { border-right: 0; }
.benefit-icon {
  width: 44px;
  height: 44px;
  color: var(--vf-blue);
  background: #fff;
  font-size: 18px;
}
.benefit strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}
.benefit span:last-child {
  display: block;
  margin-top: 3px;
  color: #d7e6ff;
  font-size: 12px;
}

.section { padding: 34px 0; }
.section-title {
  margin: 0;
  color: #0c1830;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-subtitle {
  margin: 8px 0 0;
  color: #55647d;
  font-weight: 700;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head--center {
  display: block;
  text-align: center;
}
.tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 170px);
  gap: 0;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #dde8f6;
  border-radius: var(--vf-radius);
  background: #f4f7fb;
}
.tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #20304a;
  font-size: 13px;
  font-weight: 950;
}
.tabs a:first-child {
  color: #fff;
  background: var(--vf-blue);
}
.view-link {
  color: var(--vf-blue);
  font-size: 14px;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card,
.news-card,
.quote-card,
.process-card,
.promo-card,
.content-card {
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  box-shadow: 0 8px 24px rgba(16, 52, 104, .07);
}
.product-card {
  overflow: hidden;
  padding: 18px 18px 16px;
}
.product-card h3 {
  margin: 0 0 2px;
  color: #0a1730;
  font-size: 21px;
  font-weight: 950;
}
.product-price {
  margin: 0 0 12px;
  color: var(--vf-blue);
  font-weight: 950;
}
.product-media {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin-bottom: 12px;
}
.product-media img {
  max-height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(12, 38, 76, .13));
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: #647086;
  font-size: 11px;
}
.product-specs strong {
  display: block;
  color: #15223a;
  font-size: 12px;
}
.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf2f8;
  padding-top: 12px;
}
.product-bottom span {
  display: block;
  color: #6b778d;
  font-size: 12px;
}
.product-bottom strong {
  color: var(--vf-blue);
  font-size: 19px;
}
.detail-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--vf-navy);
  border: 1px solid #cbd8eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.after-products {
  text-align: center;
  margin-top: 22px;
}
.finance-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 22px;
}
.quote-card,
.process-card,
.promo-card { padding: 22px; }
.quote-card {
  background: linear-gradient(135deg, #f6fbff, #fff);
}
.quote-card h2,
.process-card h2,
.promo-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.18;
  text-transform: uppercase;
}
.quote-card h2,
.promo-card h2 { color: var(--vf-blue); }
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.quote-form label {
  display: grid;
  gap: 6px;
  color: #526178;
  font-size: 12px;
  font-weight: 800;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #12213a;
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
}
.quote-form textarea { min-height: 82px; resize: vertical; }
.quote-form .full { grid-column: 1 / -1; }
.quote-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  grid-column: 1 / -1;
}
.quote-result div {
  min-height: 56px;
  padding: 10px 12px;
  background: #f7fbff;
  border-radius: 7px;
}
.quote-result span {
  display: block;
  color: #6b778d;
  font-size: 12px;
}
.quote-result strong {
  color: var(--vf-blue);
  font-size: 18px;
  font-weight: 950;
}
.quote-message {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 800;
}
.quote-message.ok {
  color: #075833;
  background: #e8fff3;
  border: 1px solid #bdeed6;
}
.quote-message.error {
  color: #8c1d18;
  background: #fff0ef;
  border: 1px solid #ffd0cc;
}
.process-card { margin-bottom: 22px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.process-step {
  position: relative;
  text-align: center;
}
.process-step b {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--vf-blue);
  border-radius: 50%;
}
.process-step strong {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
}
.process-step span {
  display: block;
  margin-top: 6px;
  color: #65738a;
  font-size: 12px;
}
.promo-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f4faff, #fff);
}
.promo-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}
.promo-card li { margin: 8px 0; }
.promo-card img {
  filter: drop-shadow(0 18px 18px rgba(9, 30, 60, .14));
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-card { overflow: hidden; }
.news-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eef5ff;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body { padding: 14px 15px 16px; }
.news-meta {
  display: flex;
  gap: 10px;
  color: #7a8598;
  font-size: 12px;
  font-weight: 750;
}
.news-title {
  margin: 8px 0 0;
  color: #0d1b35;
  font-size: 16px;
  line-height: 1.34;
  font-weight: 900;
}
.news-card:hover .news-title { color: var(--vf-blue); }

.footer-cta {
  color: #fff;
  background: linear-gradient(90deg, #073d8f, #0c63e7);
}
.footer-cta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.footer-cta__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.footer-cta__item:last-child { border-right: 0; }
.footer-cta__item strong {
  display: block;
  text-transform: uppercase;
}
.footer-cta__item span {
  color: #d7e6ff;
  font-size: 12px;
}
.site-footer {
  color: #dbe8ff;
  background: linear-gradient(135deg, #03142e, #082b5d);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 28px;
  padding: 34px 0 26px;
}
.footer-logo .vf-logo__word,
.footer-logo .vf-logo__word span,
.footer-logo .vf-logo__tag { color: #fff; }
.footer-copy { color: #b7c8e5; }
.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  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: #b7c8e5; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  font-weight: 900;
}
.copyright {
  padding: 14px 0 22px;
  color: #9db3d2;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  gap: 10px;
}
.floating-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.floating-actions a:first-child { background: #0c63ff; }
.floating-actions a:last-child { background: #00a65a; }

.content-wrap {
  padding: 42px 0 56px;
  background: #f7fbff;
}
.content-card { padding: 28px; }
.entry-content {
  color: #25324a;
  font-size: 17px;
}
.entry-content img { border-radius: 8px; }
.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;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
  background: #fff;
}
.page-numbers.current {
  color: #fff;
  background: var(--vf-blue);
}

@media (max-width: 1120px) {
  .site-branding { flex-basis: 218px; }
  .site-nav a { padding: 0 8px; font-size: 12px; }
  .product-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-panel,
  .footer-cta__grid { grid-template-columns: repeat(2, 1fr); }
  .finance-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .vf-container { width: min(100% - 32px, var(--vf-container)); }
  .header-inner { min-height: 68px; }
  .site-branding { flex: 1; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 14px 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e4ebf6;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { display: grid; justify-content: stretch; gap: 4px; }
  .site-nav a { width: 100%; justify-content: flex-start; }
  .site-nav .current-menu-item a::after { display: none; }
  .menu-toggle { display: grid; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 34px 0 0; }
  .hero-art { min-height: 300px; }
  .hero-vehicles { grid-template-columns: 1fr .35fr; }
  .hero-bike { width: 108px; height: 168px; }
  .benefit-panel,
  .footer-cta__grid { grid-template-columns: 1fr; }
  .benefit,
  .footer-cta__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .quote-form { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .promo-card { grid-template-columns: 1fr; }
  .promo-card img { max-width: 280px; }
  .floating-actions { left: 16px; right: 16px; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .vf-logo__word { font-size: 19px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy h2 { font-size: 19px; }
  .hero-art { min-height: 230px; }
  .hero-bike { display: none; }
  .section-title { font-size: 22px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tabs { grid-template-columns: repeat(2, minmax(130px, 1fr)); width: 100%; }
  .product-grid,
  .news-grid,
  .footer-grid,
  .quote-result { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
