/* Fonts are loaded via a single <link> in header.php (no @import to avoid render-blocking).
   Be Vietnam Pro removed — unused across the theme (only a single leftover override below). */

/* Mercedes-Benz Premium Theme CSS */

/* Brand Fonts Declarations */
@font-face {
  font-family: "MB Corpo S";
  src: url("../fonts/MB-Corpo-S-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MB Corpo S";
  src: url("../fonts/MB-Corpo-S-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Corporate S";
  src: url("../fonts/Corporate-S-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Corporate S";
  src: url("../fonts/Corporate-S-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MB Corpo A";
  src: url("../fonts/MB-Corpo-A-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MB Corpo A";
  src: url("../fonts/MB-Corpo-A-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MB Corpo A";
  src: url("../fonts/MB-Corpo-A-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans CJK";
  src: url("../fonts/MB-Corpo-Sans-CJK.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ===== Brand Color System (central tokens) ===== */
  --deep-navy: #0B0E17;
  --charcoal: #0F1115;
  --slate: #1A1D26;
  --graphite: #2C2F3A;

  --off-white: #F5F5F3;
  --silver: #C0C5C9;
  --platinum: #E5E4E2;

  --star-gold: #C4A962;
  --electric-blue: #00ADEF;
  --electric-blue-hover: #0096D1;

  --amg-red: #C8102E;
  --danger: #C0392B;

  /* Re-point existing semantic tokens to the brand system (no parallel system) */
  --bg: var(--deep-navy);
  --bg-soft: var(--charcoal);
  --bg-card: var(--slate);
  --border: var(--graphite);
  --border-hover: var(--platinum);

  --text: var(--off-white);
  --text-heading: var(--off-white);
  --text-label: var(--silver);
  --text-secondary: var(--silver);
  --text-muted: var(--silver);
  --accent: var(--electric-blue);
  --silver-metal: var(--platinum);
  
  --font-heading-base: "MB Corpo A", serif;
  --font-sans-base: "MB Corpo S", "Corporate S", sans-serif;
  --font-cjk: "Noto Sans CJK", sans-serif;
  
  --font-heading: var(--font-heading-base);
  --font-sans: var(--font-sans-base);
  --max-width: 1360px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* Page Wrapper */
.page-shell {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Grid & Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container--narrow {
  max-width: 800px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.bg-darker {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.text-center {
  text-align: center;
}

/* Headings & Typography */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}
body.home #contact .section-heading .eyebrow {
  letter-spacing: 0.10em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
}

/* Section Headings */
.section-heading {
  margin-bottom: 60px;
}

.section-heading h2 {
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
}

.section-copy {
  max-width: 58ch;
  margin: 16px auto 0;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-left: 32px;
  padding-right: 32px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--text);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn--header {
  height: 38px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 11px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.btn--header:hover {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--card-primary {
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
  background-color: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  flex: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn--card-primary:hover {
  background-color: transparent;
  color: var(--text);
}

.btn--card-secondary {
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  flex: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn--card-secondary:hover {
  border-color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-top: 15px;
}

.text-link:hover {
  text-decoration: underline;
}

/* Header Section */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 72px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.site-header__container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo switcher */
.brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-mercedes, .logo-amg, .logo-maybach {
  display: none !important;
}

body[data-brand-theme="mercedes"] .logo-mercedes {
  display: block !important;
}

body[data-brand-theme="amg"] .logo-amg {
  display: block !important;
  height: 15px;
  filter: brightness(0) invert(1);
}

body[data-brand-theme="maybach"] .logo-maybach {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.logo-maybach-svg {
  width: 32px;
  height: auto;
}

.maybach-wordmark {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--star-gold);
}

/* Navigation Links */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hotline-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hotline-link:hover {
  color: var(--text);
}

.phone-icon {
  width: 18px;
  height: 18px;
}

/* Hamburger toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition);
}

/* Mobile menu container */
.mobile-menu {
  display: none;
}

/* Hero Section Switcher */
.hero-wrapper {
  position: relative;
  width: 100%;
  background-color: var(--bg);
}

.hero {
  position: relative;
  width: 100%;
  height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}

.hero__content {
  max-width: 680px;
}

.hero__content h1 {
  font-weight: 200;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Multi-brand Hero overrides */
.hero-mercedes, .hero-amg, .hero-maybach {
  display: none !important;
}

body[data-brand-theme="mercedes"] .hero-mercedes {
  display: flex !important;
}

body[data-brand-theme="amg"] .hero-amg {
  display: flex !important;
  background-image: url('../images/amg-gt.avif');
  background-size: cover;
  background-position: center;
}

body[data-brand-theme="maybach"] .hero-maybach {
  display: flex !important;
  background-image: url('../images/maybach-s680.avif');
  background-size: cover;
  background-position: center;
}

/* AMG Hero Heading */
.amg-title {
  font-weight: 900 !important;
  font-style: italic;
  letter-spacing: 0.01em !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

/* Maybach Hero Heading */
.maybach-title {
  font-weight: 200 !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

/* Models Filter */
.models-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Models Grid Section */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: opacity 0.3s ease;
}

.model-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
}

.model-card.filtered-out {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.model-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0b0b0d;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card:hover .model-card__image img {
  transform: scale(1.08);
}

.model-card__body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-card__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.model-card__body h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.model-card__price {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.model-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 30px;
  flex: 1;
}

.model-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.home-model-grid {
  grid-template-columns: 1fr;
  gap: 56px;
}

.home-model-group {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.home-model-group.filtered-out {
  display: none;
}

.home-model-group__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.home-model-group__header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.home-model-subgroup {
  display: grid;
  gap: 18px;
}

.home-model-subgroup h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-model-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-model-card {
  min-width: 0;
}

.home-car-card .model-card__tag,
.home-car-card .car-code,
.home-car-card .product-code,
.home-car-card .model-code {
  color: rgba(255, 255, 255, 0.64) !important;
}

.home-car-card .model-card__body h3,
.home-car-card .model-card__body h3 a,
.home-car-card .car-title,
.home-car-card .product-title {
  color: #e8d7a2 !important;
}

.home-car-card .model-card__price {
  color: rgba(255, 255, 255, 0.78);
}

.home-model-card .model-card__image {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.home-model-card .model-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
}

.home-model-card .model-card__body {
  padding: 20px 18px;
}

.home-model-card .model-card__body h3 {
  font-size: 16px;
  line-height: 1.35;
  text-transform: none;
}

.home-model-card .model-card__price {
  min-height: 22px;
  margin-bottom: 18px;
}

.home-model-card .model-card__actions {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .home-model-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-model-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-model-grid {
    gap: 42px;
  }

  .home-model-group__header {
    display: block;
  }

  .home-model-items {
    grid-template-columns: 1fr;
  }

  .home-model-card .model-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* AMG Showcase Section (Dark, aggressive) */
.amg-showcase {
  background: linear-gradient(180deg, #09090b 0%, #000000 100%);
  border-top: 1px solid rgba(255, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 0, 0, 0.12);
}

.amg-badge {
  display: inline-block;
  background-color: #e30613; /* AMG Red */
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.amg-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.amg-split__content h2 {
  font-weight: 300;
  margin-bottom: 20px;
}

.amg-split__content .lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.amg-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.amg-feat-item {
  border-left: 2px solid #e30613;
  padding-left: 20px;
}

.amg-feat-item strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--text);
}

.amg-feat-item span {
  font-size: 13.5px;
  color: var(--text-muted);
}

.amg-cta {
  border-color: #e30613 !important;
}

.amg-cta:hover {
  background-color: #e30613 !important;
  color: #ffffff !important;
}

.amg-split__media {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border-radius: 2px;
}

.amg-split__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Maybach Showcase Section (Luxury, gold accents) */
.maybach-showcase {
  background-color: #000000;
}

.maybach-logo-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--star-gold); /* Champagne/Gold */
  margin-bottom: 24px;
  display: block;
}

.maybach-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.maybach-split__content h2 {
  font-weight: 200;
  margin-bottom: 20px;
}

.maybach-split__content .lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.maybach-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.maybach-feat-item {
  border-left: 2px solid var(--star-gold);
  padding-left: 20px;
}

.maybach-feat-item strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--text);
}

.maybach-feat-item span {
  font-size: 13.5px;
  color: var(--text-muted);
}

.maybach-cta {
  border-color: var(--star-gold) !important;
  color: var(--star-gold) !important;
}

.maybach-cta:hover {
  background-color: var(--star-gold) !important;
  color: #000000 !important;
  border-color: var(--star-gold) !important;
}

/* Offers Grid Section */
.offers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.offer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: var(--transition);
}

.offer-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.offer-card__badge {
  position: absolute;
  top: 25px;
  right: 24px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

.offer-card__content h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.offer-card__content p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* Services Grid Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  border: 1px solid var(--border);
  padding: 40px 30px;
  background-color: var(--bg-card);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text);
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* News Grid Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.news-card__date {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  display: block;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 15px;
  text-transform: none;
}

.news-card h3 a:hover {
  text-decoration: underline;
}

.news-card p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Contact Form Section */
.contact-form {
  margin-top: 40px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  border-radius: 2px;
  transition: var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group select option {
  background-color: var(--bg-card);
  color: var(--text);
}

/* Footer Section */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.brand-col p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col:not(.brand-col) strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--star-gold);
  margin-bottom: 12px;
  display: block;
}

.footer-col:not(.brand-col) a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
}

.footer-col:not(.brand-col) a:hover {
  color: #FFFFFF;
}

.footer-col:not(.brand-col) a:active {
  color: var(--star-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
}

.brand-col p a,
.footer-bottom__left a,
.footer-bottom__right a {
  color: rgba(255, 255, 255, .82);
}

.brand-col p a:hover,
.footer-bottom__left a:hover {
  color: #FFFFFF;
}

.footer-bottom__right a:hover {
  color: #FFFFFF;
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* DYNAMIC MULTI-BRAND ACCENTS AND THEMES */

/* 1. AMG Red Theme Override */
body[data-brand-theme="amg"] {
  --accent: #e30613;
  --border-hover: rgba(227, 6, 19, 0.3);
}

body[data-brand-theme="amg"] .site-header {
  border-bottom-color: rgba(227, 6, 19, 0.25);
}

body[data-brand-theme="amg"] .filter-btn:hover,
body[data-brand-theme="amg"] .filter-btn.active {
  background-color: #e30613;
  color: #ffffff;
  border-color: #e30613;
}

body[data-brand-theme="amg"] .btn--primary {
  background-color: #e30613;
  border-color: #e30613;
  color: #ffffff;
}

body[data-brand-theme="amg"] .btn--primary:hover {
  background-color: transparent;
  color: #ffffff;
}

body[data-brand-theme="amg"] .btn--card-primary {
  background-color: #e30613;
  border-color: #e30613;
  color: #ffffff;
}

body[data-brand-theme="amg"] .btn--card-primary:hover {
  background-color: transparent;
  color: #ffffff;
}

body[data-brand-theme="amg"] .btn--header:hover {
  background-color: #e30613;
  border-color: #e30613;
  color: #ffffff;
}

body[data-brand-theme="amg"] .nav a {
  font-weight: 600;
}

body[data-brand-theme="amg"] .nav a:hover {
  color: #e30613;
}

body[data-brand-theme="amg"] .nav a::after {
  background-color: #e30613;
}

/* 2. Maybach Champagne Gold Theme Override */
body[data-brand-theme="maybach"] {
  --bg: #070605; /* Deep obsidian black with gold warmth */
  --bg-soft: #0b0a09;
  --bg-card: #12100e; /* Luxury dark brown card */
  --border: rgba(217, 192, 150, 0.1);
  --border-hover: rgba(217, 192, 150, 0.3);
  --accent: #d9c096; /* Refined soft champagne gold */
  --text-secondary: #e6ded2;
}

body[data-brand-theme="maybach"] {
  background-color: var(--bg);
}

body[data-brand-theme="maybach"] .site-header {
  background-color: rgba(7, 6, 5, 0.85);
  border-bottom-color: rgba(217, 192, 150, 0.2);
}

body[data-brand-theme="maybach"] .filter-btn:hover,
body[data-brand-theme="maybach"] .filter-btn.active {
  background-color: #d9c096;
  color: #000000;
  border-color: #d9c096;
}

body[data-brand-theme="maybach"] .btn--primary {
  background-color: #d9c096;
  border-color: #d9c096;
  color: #000000;
}

body[data-brand-theme="maybach"] .btn--primary:hover {
  background-color: transparent;
  color: #d9c096;
}

body[data-brand-theme="maybach"] .btn--card-primary {
  background-color: #d9c096;
  border-color: #d9c096;
  color: #000000;
}

body[data-brand-theme="maybach"] .btn--card-primary:hover {
  background-color: transparent;
  color: #d9c096;
}

body[data-brand-theme="maybach"] .btn--header:hover {
  background-color: #d9c096;
  border-color: #d9c096;
  color: #000000;
}

body[data-brand-theme="maybach"] .nav a {
  font-weight: 600;
}

body[data-brand-theme="maybach"] .nav a:hover {
  color: #d9c096;
}

body[data-brand-theme="maybach"] .nav a::after {
  background-color: #d9c096;
}

/* Showroom Locations Grid */
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.showroom-card {
  border: 1px solid var(--border);
  padding: 24px;
  background-color: var(--bg-card);
  transition: var(--transition);
  border-radius: 2px;
}

.showroom-card:hover {
  border-color: var(--border-hover);
}

.showroom-card strong {
  display: block;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--star-gold);
  margin-bottom: 8px;
}

.showroom-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 768px) {
  .showroom-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
}

/* Language Selector Component */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 2px;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: #111111;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 1005;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.show {
  display: flex;
}

.lang-opt {
  padding: 10px 16px;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: var(--transition-fast);
  width: 100%;
}

.lang-opt:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 600;
}

/* Multilingual Font family overrides */
body[data-lang="vi"],
html[lang^="vi"] body {
  --font-sans: var(--font-sans-vi) !important;
  --font-heading: var(--font-serif) !important;
  --hero-title-font-family: var(--font-serif) !important;
  font-family: var(--font-sans) !important;
}

body[data-lang="en"],
html[lang^="en"] body {
  --font-sans: var(--font-sans-en) !important;
  --font-heading: var(--font-serif) !important;
  --hero-title-font-family: var(--font-serif) !important;
  font-family: var(--font-sans) !important;
}

body[data-lang="zh"],
html[lang^="zh"] body {
  --font-sans: var(--font-sans-zh) !important;
  --font-heading: var(--font-sans-zh) !important;
  --hero-title-font-family: var(--font-sans-zh) !important;
  font-family: var(--font-sans) !important;
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .model-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .offers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .amg-split,
  .maybach-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile & Nav Changes */
@media (max-width: 991px) {
  .nav {
    display: none;
  }
  
  .header-actions {
    display: none !important;
  }
  
  .menu-toggle {
    display: flex;
    margin-left: 15px;
  }
  
  /* Mobile navigation overlay */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg);
    padding: 40px 24px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-top: 1px solid var(--border);
  }
  
  body.mobile-menu-open .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .mobile-menu__links a {
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  
  .mobile-menu__links a:hover {
    color: var(--text);
  }
  
  .mobile-menu__footer {
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  
  /* Hamburger state transformations */
  body.mobile-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  body.mobile-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.mobile-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Small Screens (Mobile 390px default width target) */
@media (max-width: 767px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .section-heading {
    margin-bottom: 40px;
  }
  
  .site-header {
    height: 60px;
  }
  
  .mobile-menu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 30px 20px;
  }
  
  .brand img {
    height: 30px;
  }
  
  .hero {
    height: 75vh;
  }
  
  .hero__container {
    padding-bottom: 50px;
  }
  
  .hero__content h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .hero__actions {
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .models-filter {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    height: 36px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 10px;
  }

  .model-grid,
  .offers__grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .offer-card {
    min-height: auto;
    padding: 30px 24px;
  }
  
  .model-card__body {
    padding: 24px 16px;
  }
  
  .contact-form {
    padding: 24px 16px;
    margin-top: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form .form-group {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 2px;
    transition: border-color 0.2s ease;
  }
  
  .contact-form .form-group:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .contact-form .form-group input,
  .contact-form .form-group select,
  .contact-form .form-group textarea {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 16px !important; /* Chống iOS zoom */
    width: 100% !important;
  }
  
  .contact-form .form-group input:focus,
  .contact-form .form-group select:focus,
  .contact-form .form-group textarea:focus {
    border: none !important;
    background: transparent !important;
  }
  
  .contact-form .form-group select {
    background-position: right center !important;
    padding-right: 24px !important;
  }
  
  .contact-form .form-group textarea {
    min-height: 120px;
  }
  
  .contact-form button[type="submit"] {
    width: 100%;
    height: 54px;
  }

  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Fix loan CTA button alignment */
.loan-cta,
.loan-submit,
.finance-cta,
.calculator-cta,
a[href*="tra-gop"],
button,
.btn {
  text-align: center;
}

/* Force clean style for installment request button */
.tra-gop-page .btn,
.installment-page .btn,
.finance-page .btn,
.loan-calculator .btn,
.loan-calculator button,
.loan-calculator a,
.calculator-card .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.25 !important;
}

/* Mobile fix: button text not lệch */
@media (max-width: 768px) {
  .loan-calculator .btn,
  .loan-calculator button,
  .loan-calculator a,
  .calculator-card .btn,
  .finance-cta,
  .loan-cta {
    min-height: 56px !important;
    padding: 14px 18px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.08em !important;
    white-space: normal !important;
    word-break: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Footer normal link - ensure consistent appearance */
.footer-normal-link {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: left;
  display: block;
  margin: 0 0 14px 0;
}
.footer-normal-link:hover {
  color: var(--text);
  text-decoration: underline;
}

footer ul,
.site-footer ul,
.footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

footer li,
.site-footer li,
.footer li {
  text-align: left !important;
}

/* Scaled header styling on medium PC screens to prevent wrapping */
@media (min-width: 992px) and (max-width: 1240px) {
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .header-right {
    gap: 12px !important;
  }
  .header-actions {
    gap: 10px !important;
  }
  .hotline-link span {
    font-size: 11px;
  }
  .btn--header {
    padding: 8px 12px;
    font-size: 11px;
  }
  body[data-brand-theme="amg"] .logo-amg {
    height: 12px;
  }
  .logo-maybach-svg {
    width: 28px;
  }
  .maybach-wordmark {
    font-size: 10px;
  }
}
