/* ============================================================
   BYD Yemen — supplemental styles
   Rule: every section uses <section class="section"> <div class="wrap">
   The .wrap handles max-width + horizontal padding. .section handles
   vertical padding only. No exceptions except hero and cta-strip
   which are self-contained with their own inner containers.
   ============================================================ */

/* ── Light theme fixes ───────────────────────────────────── */
html[data-theme="light"] .model,
html[data-theme="light"] .model-card,
html[data-theme="light"] .why-cell,
html[data-theme="light"] .news-card { background: var(--bg-3) }

html[data-theme="light"] .why-grid { background: var(--line) }

html[data-theme="light"] footer { background: var(--bg-2); border-top: 1px solid var(--line) }

html[data-theme="light"] .cta-strip,
html[data-theme="light"] .news-bg { background: var(--bg-3) }

/* ── Section padding & universal max-width ──────────────────
   1. Override site.css's zero horizontal padding on .section
   2. Every direct child of .section gets max-width:1320px so
      content never stretches past that on ultra-wide screens —
      even when a .wrap container is absent from the markup.
      (Inline styles with a narrower max-width, e.g. articles,
       take precedence via specificity and still work correctly.)
   ─────────────────────────────────────────────────────────── */
.section {
  padding: clamp(80px,12vw,160px) clamp(20px,4vw,56px);
}
.section.tight {
  padding: clamp(60px,8vw,100px) clamp(20px,4vw,56px);
}
.section > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.wrap { max-width: 1320px; margin: 0 auto; }

/* ── Eyebrow / section helpers ───────────────────────────── */
/* .eyebrow already exists in site.css — no override needed */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  position: relative; overflow: hidden;
  /* Grid so all slides can share one cell (see .hero-slide): the hero
     grows to fit the tallest slide instead of clipping long copy.
     align-items:stretch overrides site.css's flex centering so every
     slide fills the row height. */
  display: grid;
  /* Row 1: the slides (all share one cell, hero grows with the tallest).
     Row 2: the in-flow control bar — it sits below the content, so long
     copy simply pushes it down instead of colliding with it. */
  grid-template-rows: 1fr auto;
  align-items: stretch;
  padding: 0; /* padding lives on .hero-slide, which spans the whole hero */
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 50% at 80% 25%, oklch(0.62 0.22 25 / .20), transparent 60%),
    radial-gradient(40% 40% at 5%  80%, oklch(0.55 0.18 25 / .10), transparent 60%);
  filter: blur(24px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, transparent 50%, var(--bg) 100%),
    repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.016) 80px 81px);
}
html[dir="rtl"] .hero::after {
  background:
    linear-gradient(180deg, transparent 50%, var(--bg) 100%),
    repeating-linear-gradient(-115deg, transparent 0 80px, rgba(255,255,255,.016) 80px 81px);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1.45fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-content { display: flex; flex-direction: column; min-width: 0 }

.hero-h1 {
  font-family: var(--f-display); font-weight: 600;
  /* Scales with the viewport but tops out far lower than before — a long
     headline stays readable instead of filling the screen. */
  font-size: clamp(32px, 1.1rem + 3.4vw, 72px); line-height: 1.04;
  letter-spacing: -.02em; margin: 0;
  /* The car name stays on ONE line — the fitHeroText script in
     hero_slider.blade.php shrinks the font until it fits. The ellipsis
     here is only a last-resort backstop below the script's min size. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
html[lang="ar"] .hero-h1 { letter-spacing: 0; line-height: 1.15; font-weight: 700 }

.hero-lede {
  color: var(--fg-dim); font-size: clamp(15px, 1.3vw, 18px);
  max-width: 46ch; line-height: 1.65; margin-top: 22px;
  overflow-wrap: break-word;
  /* fitHeroText shrinks the font until the copy fits in 3 lines; the
     .clamped fallback only applies below the script's min size. */
}
.hero-lede.clamped {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px);
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 3px; position: relative }
.hero-stat .stat-num {
  font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px);
  font-weight: 600; letter-spacing: -.01em;
}
.hero-stat .stat-lbl {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint);
}
html[lang="ar"] .hero-stat .stat-num { font-size: clamp(18px, 1.7vw, 23px) }
html[lang="ar"] .hero-stat .stat-lbl { letter-spacing: .05em; text-transform: none; font-size: 12px }

/* Hover / focus tooltip explaining what a hero stat means */
.hero-stat.has-tip { cursor: help; outline: none; border-radius: 2px }
.hero-stat.has-tip:focus-visible { outline: 2px solid var(--red); outline-offset: 4px }
.hero-stat .stat-tip {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 5;
  width: max-content; max-width: 240px;
  padding: 8px 11px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  font-family: var(--f-body); font-size: 12px; line-height: 1.5;
  letter-spacing: normal; text-transform: none; color: var(--fg-dim);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
html[dir="rtl"] .hero-stat .stat-tip { left: auto; right: 0 }
.hero-stat .stat-tip::after {
  content: ""; position: absolute; top: 100%; left: 18px;
  border: 6px solid transparent; border-top-color: var(--line-strong);
}
html[dir="rtl"] .hero-stat .stat-tip::after { left: auto; right: 18px }
.hero-stat.has-tip:hover .stat-tip,
.hero-stat.has-tip:focus-visible .stat-tip,
.hero-stat.has-tip:focus .stat-tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* The trailing stat sits at the row edge — flip its tooltip so it stays on screen */
.hero-stat:last-child .stat-tip { left: auto; right: 0 }
.hero-stat:last-child .stat-tip::after { left: auto; right: 18px }
html[dir="rtl"] .hero-stat:last-child .stat-tip { right: auto; left: 0 }
html[dir="rtl"] .hero-stat:last-child .stat-tip::after { right: auto; left: 18px }
@media (prefers-reduced-motion: reduce) {
  .hero-stat .stat-tip { transition: none }
}
@media (max-width: 640px) {
  .hero-stat .stat-tip { max-width: min(240px, 70vw) }
}

.hero-vis { position: relative }
.hero-vis img {
  width: 100%; height: auto; object-fit: contain;
  background: transparent; border: none; display: block;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, .5));
}

/* ── Hero full-section carousel ──────────────────────────── */

/* Each slide fills the whole hero section. All slides share one grid
   cell (grid-area: 1/1) instead of being absolutely positioned, so the
   hero grows to fit the tallest slide — long copy extends the section
   rather than being clipped by overflow:hidden. min-height:100vh on
   .hero stays as the floor. */
.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex; align-items: center;
  /* Normal page gutters — no chrome overlays the content anymore, so no
     reserved arrow gutters or giant bottom padding are needed. */
  padding: clamp(96px, 14vh, 150px) clamp(20px, 5vw, 56px) clamp(40px, 6vh, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1), visibility 1s;
  pointer-events: none;
  z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2 }

/* Animate slide content in when the slide becomes active */
.hero-slide .hero-content > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-slide.active .hero-content > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .15s }
.hero-slide.active .hero-content > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .28s }
.hero-slide.active .hero-content > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .38s }
.hero-slide.active .hero-content > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .46s }
.hero-slide.active .hero-content > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .54s }

/* Car image: slide in from the right */
.hero-slide .hero-vis {
  opacity: 0; transform: translateX(40px);
  transition: opacity .9s ease .2s, transform .9s ease .2s;
}
.hero-slide.active .hero-vis { opacity: 1; transform: none }

/* ── Control bar (prev / dots / autoplay / next) ──────────── */
/* In normal flow at the bottom of the hero (grid row 2). Because it never
   overlays the slides, slide copy of any length renders cleanly at any
   viewport size. */
.hero-controls {
  position: relative; z-index: 10;
  grid-row: 2;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  padding: 0 clamp(16px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom));
}

/* ── Prev / Next arrows ───────────────────────────────────── */
.hero-nav-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg-3) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--fg); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}
.hero-nav-btn svg { width: 22px; height: 22px }
.hero-nav-btn:hover {
  background: var(--red); border-color: var(--red); color: #fff;
  transform: scale(1.08);
}
.hero-nav-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px }
/* Chevrons point the way the slides actually move */
html[dir="rtl"] .hero-nav-btn svg { transform: scaleX(-1) }

/* ── Dot indicators ───────────────────────────────────────── */
/* Horizontally scrollable strip so a long slide list never overflows the
   bar. JS keeps the active dot centred. Edges fade to signal more. */
.hero-nav-dots {
  display: flex; gap: 8px; align-items: center;
  max-width: min(420px, 46vw);
  padding: 10px 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.hero-nav-dots::-webkit-scrollbar { display: none }
.hero-nav-dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 28%, transparent);
  border: none; cursor: pointer; padding: 0;
  transition: background .35s ease, width .35s ease, border-radius .35s ease;
  touch-action: manipulation;
}
/* Invisible 44px-tall touch target without changing the visual size */
.hero-nav-dot::after { content: ""; position: absolute; inset: -18px -6px }
.hero-nav-dot.active { width: 26px; border-radius: 4px; background: var(--red) }

/* Scroll cue — tucked into the bottom corner so it never collides with
   the control bar or long slide copy. */
.scroll-cue {
  position: absolute; bottom: calc(32px + env(safe-area-inset-bottom));
  left: auto; /* override site.css's centered variant */
  inset-inline-end: clamp(20px, 4vw, 48px);
  transform: none;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--fg-faint);
  display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2;
}
html[lang="ar"] .scroll-cue { letter-spacing: .08em; text-transform: none; font-size: 13px }
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: scrollDrop 2.4s ease infinite;
}
@keyframes scrollDrop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top }
  40%  { opacity: 1; transform: scaleY(1) }
  80%, 100% { opacity: 0; transform: scaleY(1) }
}

/* ── About preview (home) ────────────────────────────────── */
/* .about-grid is in site.css: grid 1.1fr .9fr gap:80px */
.about-vis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-stat-card {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.about-stat-card:hover { border-color: var(--red); background: var(--bg-3) }
.about-stat-card .stat-val {
  font-family: var(--f-display); font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 600; color: var(--red); letter-spacing: -.02em; line-height: 1;
}
html[lang="ar"] .about-stat-card .stat-val { font-weight: 700 }
.about-stat-card .stat-lbl {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-faint);
}
html[lang="ar"] .about-stat-card .stat-lbl { letter-spacing: .05em; text-transform: none; font-size: 13px }

/* ── .why-cell text helpers (site.css has .why-title / .why-text) ── */
.why-cell h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.2; margin: 0 }
html[lang="ar"] .why-cell h3 { font-weight: 700; font-size: 18px }
.why-cell p { color: var(--fg-dim); font-size: 14px; line-height: 1.65; margin: 0 }

/* ── CTA strip ───────────────────────────────────────────── */
/* site.css already defines .cta-strip and .cta-strip-inner */
.cta-strip h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -.005em; margin: 0 0 10px;
}
html[lang="ar"] .cta-strip h2 { letter-spacing: 0; line-height: 1.15; font-weight: 700 }
.cta-strip p { color: var(--fg-dim); font-size: 16px; margin: 0; max-width: 44ch }

/* ── Model cards — contain image, no gradient bg/overlay ──── */
.model-vis,
.model-card-vis { background: transparent; }
.model-vis::after,
.model-card-vis::after { display: none; }
.model-car-img {
  object-fit: contain !important;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.model:hover .model-car-img,
.model-card:hover .model-car-img { transform: scale(1.06) }

/* ── About leadership block ──────────────────────────────── */
.about-leadership {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-leadership h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(32px, 4vw, 54px); margin: 12px 0 0; line-height: 1;
}
html[lang="ar"] .about-leadership h2 { font-weight: 700; line-height: 1.15 }
.about-leadership p { color: var(--fg-dim); font-size: 17px; line-height: 1.75; margin: 0; max-width: 52ch }
.about-leadership .rte p + p { margin-top: 16px }

/* ── Rich-text output (editor-managed content) ───────────── */
/* The wrapper carries the base typography so values still stored as plain
   text (not yet re-saved through the editor) render identically. */
.about-text .rte { color: var(--fg-dim); font-size: 17px; line-height: 1.75; margin: 0 0 18px; max-width: 54ch }
.about-leadership .rte { color: var(--fg-dim); font-size: 17px; line-height: 1.75; max-width: 52ch }
.about-leadership .rte > *:last-child { margin-bottom: 0 }
.rte ul, .rte ol { margin: 0 0 18px; padding-inline-start: 1.4em }
.rte li { color: var(--fg-dim); font-size: 17px; line-height: 1.75; margin-bottom: 6px }
.rte a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px }
.rte a:hover { color: var(--red) }
/* Quill emits alignment as classes; the site does not load Quill's stylesheet */
.rte .ql-align-center { text-align: center }
.rte .ql-align-right { text-align: right }
.rte .ql-align-justify { text-align: justify }

/* ── News featured card ──────────────────────────────────── */
.news-featured-card {
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s;
}
.news-featured-card:hover { border-color: var(--red); box-shadow: 0 30px 80px -30px var(--red-glow) }
.news-featured-vis {
  position: relative; min-height: 400px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.news-featured-vis img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 }
.news-featured-vis::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 60% at 30% 30%, var(--red-soft), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.014) 60px 61px);
}
.news-featured-body {
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.news-featured-title {
  font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.005em; margin: 0;
}
html[lang="ar"] .news-featured-title { font-weight: 700; line-height: 1.25 }
.news-featured-excerpt { color: var(--fg-dim); font-size: 16px; line-height: 1.65; margin: 0 }

/* ── Model detail hero ───────────────────────────────────── */
.model-hero {
  padding: clamp(100px, 14vw, 180px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; background: var(--bg);
}
.model-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 18% 30%, var(--red-soft), transparent 65%);
}
html[dir="rtl"] .model-hero::before {
  background: radial-gradient(55% 70% at 82% 30%, var(--red-soft), transparent 65%);
}
.model-hero-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; z-index: 2;
}
.model-hero-content { display: flex; flex-direction: column }
.model-hero-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(60px, 8vw, 120px); line-height: .9; letter-spacing: -.02em; margin: 12px 0 8px;
}
html[lang="ar"] .model-hero-name { letter-spacing: 0; line-height: 1.05; font-weight: 700 }
.model-hero-tagline { color: var(--fg-dim); font-size: 18px; line-height: 1.5; margin: 0 0 8px }
.model-hero-price { font-family: var(--f-display); font-size: 15px; color: var(--fg-faint); margin: 0 0 24px; letter-spacing: .1em }
.model-hero-specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0;
}
.spec-item { background: var(--bg-2); padding: 20px 18px; transition: background .3s }
.spec-item:hover { background: var(--bg-3) }

/* Key-highlights banner — auto-fit so it wraps on narrow screens
   (replaces the fixed 4-column inline grid) */
.model-highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px }
.model-hero-vis {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.model-hero-vis img {
  display: block; width: 100%; height: auto;
  object-fit: contain; background: transparent;
  border: none;
}

/* ── Model detail sections ───────────────────────────────── */
/* All use <section class="section"> <div class="wrap"> */
.section-head-sm { margin-bottom: 40px }

/* Trims */
.trims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.trim {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.trim:hover { transform: translateY(-3px); border-color: var(--line-strong) }
.trim.selected { border-color: var(--red); background: var(--bg-3); box-shadow: 0 0 0 1px var(--red), 0 20px 50px -20px var(--red-glow) }
.trim-badge {
  position: absolute; top: -1px; right: 24px;
  background: var(--red); color: #fff;
  font-family: var(--f-display); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 12px; font-weight: 600;
}
html[dir="rtl"] .trim-badge { right: auto; left: 24px }
html[lang="ar"] .trim-badge { letter-spacing: .05em; text-transform: none; font-size: 12px; font-weight: 700 }
.trim-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin: 0 }
html[lang="ar"] .trim-name { font-weight: 700 }
.trim-price { font-family: var(--f-display); font-size: 28px; font-weight: 600; color: var(--red) }
.trim-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding-top: 16px; border-top: 1px solid var(--line) }
.trim-spec-lbl { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 2px }
html[lang="ar"] .trim-spec-lbl { letter-spacing: .05em; text-transform: none; font-size: 12px }
.trim-spec-val { font-family: var(--f-display); font-size: 18px; font-weight: 600 }

/* Colors */
.color-stage {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); padding: clamp(32px, 5vw, 64px);
}
.color-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line-strong);
  transition: transform .25s var(--ease), border-color .25s;
}
.swatch:hover { transform: scale(1.1) }
.swatch.selected { border-color: var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--red) }
.swatch-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin-top: 8px }
html[lang="ar"] .swatch-name { font-weight: 700 }
.swatch-lbl { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint) }
html[lang="ar"] .swatch-lbl { letter-spacing: .05em; text-transform: none; font-size: 13px }

/* Dimensions */
.dims-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.dim-item { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: background .3s }
.dim-item:hover { background: var(--bg-2) }
.dim-lbl { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint) }
html[lang="ar"] .dim-lbl { letter-spacing: .05em; text-transform: none; font-size: 13px }
.dim-val { font-family: var(--f-display); font-size: 28px; font-weight: 600; line-height: 1.1 }
html[lang="ar"] .dim-val { font-weight: 700 }
.dim-val .unit { font-size: 13px; color: var(--fg-dim); font-weight: 400; margin-inline-start: 4px }

/* Charging */
.charge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px }
.charge-card {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 40px 36px; display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.charge-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.charge-card-title { font-family: var(--f-display); font-size: 20px; font-weight: 600; margin: 0 }
html[lang="ar"] .charge-card-title { font-weight: 700 }
.charge-rate-pill {
  font-family: var(--f-display); font-size: 12px; letter-spacing: .18em;
  padding: 5px 12px; border: 1px solid var(--red); color: var(--red); border-radius: 999px;
}
.charge-big { font-family: var(--f-display); font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -.02em }
.charge-big .unit { font-size: 20px; color: var(--fg-dim); font-weight: 400; margin-inline-start: 6px }
.charge-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line) }
.charge-meta-lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 4px }
html[lang="ar"] .charge-meta-lbl { letter-spacing: .05em; text-transform: none; font-size: 12px }
.charge-meta-val { font-family: var(--f-display); font-size: 18px; font-weight: 600 }

/* Safety */
.safety-rating-bar {
  display: flex; align-items: center; gap: 18px; padding: 24px 28px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--red); margin-bottom: 24px;
}
html[dir="rtl"] .safety-rating-bar { border-left: 1px solid var(--line); border-right: 3px solid var(--red) }
.safety-rating-stars { font-family: var(--f-display); font-size: 32px; font-weight: 700; color: var(--red) }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.safety-item {
  background: var(--bg); padding: 18px 22px;
  display: flex; align-items: center; gap: 12px; font-size: 15px; transition: background .3s;
}
.safety-item:hover { background: var(--bg-2) }
.safety-item::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--red-soft); border: 1px solid var(--red);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9l3 3 5-5' stroke='%23e53935' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Interior & warranty */
.interior-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.interior-item { background: var(--bg); padding: 18px 24px; display: flex; align-items: center; gap: 14px; font-size: 15px; transition: background .3s }
.interior-item:hover { background: var(--bg-2) }
.interior-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0 }
.warranty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line) }
.warranty-cell { background: var(--bg); padding: 30px; display: flex; flex-direction: column; gap: 8px; transition: background .3s }
.warranty-cell:hover { background: var(--bg-2) }
.warranty-cell .lbl { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint) }
html[lang="ar"] .warranty-cell .lbl { letter-spacing: .05em; text-transform: none; font-size: 13px }
.warranty-cell .val { font-family: var(--f-display); font-size: 22px; font-weight: 600 }
html[lang="ar"] .warranty-cell .val { font-weight: 700 }

/* Feature cards */
.model-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.model-feature {
  padding: 32px; background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.model-feature:hover { border-color: var(--red); background: var(--bg-3) }
.model-feature h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; margin: 16px 0 10px }
html[lang="ar"] .model-feature h3 { font-weight: 700 }
.model-feature p { margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.65 }
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--red); border: 1px solid var(--red-soft); background: var(--red-soft);
}

/* ── Responsive ──────────────────────────────────────────── */
/* site.css already handles most breakpoints for .models-grid,
   .why-grid, .about-grid etc. We only add what's missing */
@media (max-width: 1100px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 48px }
  .hero-slide   { padding-top: clamp(96px, 12vh, 130px) }
  .hero-vis     { max-width: 580px; margin: 0 auto; width: 100% }
  .about-vis    { grid-template-columns: 1fr 1fr }
  .model-hero-grid { grid-template-columns: 1fr; gap: 24px }
  .model-hero-vis img { max-height: 340px; width: auto; max-width: 100% }
  .trims-grid   { grid-template-columns: 1fr }
  .color-stage  { grid-template-columns: 1fr; gap: 32px }
  .charge-grid  { grid-template-columns: 1fr }
  .model-features-grid { grid-template-columns: 1fr 1fr }
  .about-leadership { grid-template-columns: 1fr; gap: 32px }
  .news-featured-card { grid-template-columns: 1fr }
  .news-featured-vis { min-height: 280px }
}
@media (max-width: 960px) {
  /* Slides already stack in one grid cell at every width (see .hero-slide);
     here we only tighten padding, top-align the copy, and quicken the fade. */
  .hero-slide  {
    align-items: start;
    padding: 116px clamp(20px, 5vw, 32px) 40px;
    transition: opacity .7s cubic-bezier(.4,0,.2,1), visibility .7s;
  }

  .hero-inner   { grid-template-columns: 1fr; gap: 28px }
  /* Car first, copy underneath */
  .hero-vis     { display: block; order: -1; width: 100%; max-width: 560px; margin: 0 auto }
  .hero-vis img { max-height: 32vh; width: 100%; object-fit: contain }
  /* Slide the image up rather than in from the side once stacked */
  .hero-slide .hero-vis { transform: translateY(24px) }
  .hero-slide.active .hero-vis { transform: none }

  .scroll-cue   { display: none } /* no room for it once the hero stacks */
  .model-hero-specs-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 720px) {
  .hero-stats  { gap: 20px }
  .hero-vis img { max-height: 26vh }
  .hero-controls { gap: 10px; padding-bottom: calc(20px + env(safe-area-inset-bottom)) }
  .hero-nav-btn { width: 38px; height: 38px }
  .hero-nav-btn svg { width: 18px; height: 18px }
  .hero-nav-dots { max-width: 40vw; gap: 7px }
  .hero-nav-dot { width: 7px; height: 7px }
  .hero-nav-dot.active { width: 22px }
  .about-vis   { grid-template-columns: 1fr 1fr }
  .dims-grid   { grid-template-columns: repeat(2, 1fr) }
  .safety-grid, .interior-grid, .warranty-grid { grid-template-columns: 1fr }
  .model-features-grid { grid-template-columns: 1fr }
  .charge-grid { grid-template-columns: 1fr }
}
@media (max-width: 480px) {
  .about-vis { grid-template-columns: 1fr }
}

/* ── 2-level nav dropdown (moved from layout inline <style>) ── */
.nav-item { position: relative; display: inline-flex; align-items: center }
.nav-item > a { display: flex; align-items: center; gap: 4px }
.nav-chev { transition: transform .2s; flex-shrink: 0; opacity: .7 }
.nav-item:hover .nav-chev,
.nav-item:focus-within .nav-chev { transform: rotate(180deg); opacity: 1 }
.nav-drop {
  display: none; position: absolute; top: 100%;
  inset-inline-start: 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; min-width: 200px; padding: 6px;
  padding-top: 16px; margin-top: 0;
  z-index: 500; box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
/* Invisible bridge covers the gap so hover is never lost mid-move */
.nav-drop::before {
  content: ''; position: absolute; top: -10px;
  inset-inline-start: 0; right: 0; height: 10px;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { display: block }
.nav-drop a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 13px; color: var(--fg-dim); white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-drop a:hover { color: var(--fg); background: rgba(255,255,255,.05) }
html[data-theme="light"] .nav-drop a:hover { background: rgba(0,0,0,.05) }
/* mobile sub-links */
.mobile-nav-group { display: flex; flex-direction: column; align-items: center; gap: 14px }
.mobile-group-hd { display: flex; align-items: center; gap: 10px }
.mobile-tog { background: none; border: none; cursor: pointer; color: var(--fg); padding: 4px; line-height: 0; touch-action: manipulation }
.mobile-tog svg { transition: transform .25s }
.mobile-tog.open svg { transform: rotate(180deg) }
.mobile-sub { display: none; flex-direction: column; align-items: center; gap: 16px }
.mobile-sub.open { display: flex }
.mobile-sub a { font-size: 20px !important; opacity: .65; letter-spacing: .06em }

/* ── Typography polish ───────────────────────────────────── */
/* Balance multi-line headlines so no line ends up orphaned. */
.h1, .h2, .cta-strip h2, .news-featured-title, .model-hero-name,
.model-card-name, .model-name { text-wrap: balance }
/* Tabular figures keep stats/prices/specs from jittering in columns. */
.stat-num, .stat-val, .trim-price, .dim-val, .charge-big, .timeline-year,
.spec-val, .hero-stat-val, .model-card-price, .trim-spec-val, .charge-meta-val {
  font-variant-numeric: tabular-nums;
}
