/* «معرض نموذج للسيارات» Namoothaj Motors: a SAMPLE design by Khalesni, for a made-up used-car dealership.
   It has its own palette (carbon, chrome and signal red) and its own font (Cairo) on purpose, to show a style
   that is different from Khalesni's site and from the other samples. Khalesni's colours appear only where
   Khalesni is speaking: the sample banner, the note to the owner and the demo note.
   The idea: the spec sheet in the car window. Every car carries its reference like a stock number, its
   numbers in a ruled table (label over value), and one clear price. Flat carbon, hairlines, one red.
   Type scale: 14 / 17 / 22 / 32–48 / 40–72 px. Spacing runs on a 4 px grid.
   Contrast (WCAG): text on carbon 17.5:1; muted on graphite 8:1; signal red on carbon 6.1:1 and on graphite 5.4:1;
   white on the red button 5.2:1 (6.5:1 on hover); Khalesni ink on white 13.8:1. */

:root {
  --carbon: #0B0E13;
  --asphalt: #10151C;
  --graphite: #161C25;
  --steel: #212935;
  --edge: rgba(255, 255, 255, 0.1);
  --edge-2: rgba(255, 255, 255, 0.18);
  --text: #F2F4F7;
  --soft: #C5CDD8;
  --muted: #A7B2C0;
  --chrome: #D9DFE7;
  --red: #FF5646;      /* signal red: text and icons on dark */
  --red-btn: #D3271D;  /* button fill under white text */
  --red-deep: #B81F16;
  --go: #39D98A;
  --k-ink: #06323A;    /* Khalesni: only where Khalesni speaks */
  --k-teal: #0E6670;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--carbon);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.3; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: var(--red); text-underline-offset: 0.25em; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sample-banner :focus-visible, .owner-note :focus-visible { outline-color: #fff; }
.demo-card :focus-visible { outline-color: var(--k-ink); }
[id] { scroll-margin-top: 80px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius); background: #fff; color: var(--carbon);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Sample banner (Khalesni's note) ---------- */
.sample-banner { background: var(--k-ink); color: #fff; font-size: 0.875rem; }
.banner-inner { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.banner-inner img { flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 8px; background: #fff; }
.banner-inner p { flex: 1; margin: 0; line-height: 1.5; }
.banner-inner p span { display: block; font-size: 0.875em; opacity: 0.88; }
.banner-inner a {
  flex: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.banner-inner a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header: solid carbon, one hairline ---------- */
.lot-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--edge);
  background: var(--carbon);
  transition: border-color 0.3s var(--ease);
}
.lot-header.is-scrolled { border-bottom-color: var(--edge-2); }
.header-row { display: flex; align-items: center; gap: 0.75rem; min-height: 66px; }
.lot-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; color: var(--text); text-decoration: none; }
.logo-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--steel); color: var(--chrome); }
.logo-text b { display: block; font-size: 1.125rem; font-weight: 900; line-height: 1.25; white-space: nowrap; }
.logo-text b span { color: var(--muted); font-weight: 700; }
.logo-text small { display: block; margin-top: 0.125rem; color: var(--muted); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.24em; line-height: 1.3; }
.lot-header nav ul { display: flex; gap: 0.25rem; }
.lot-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.75rem;
  color: var(--soft); font-weight: 700; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lot-header nav a:hover { color: #fff; text-decoration-color: var(--red); }
@media (max-width: 899px) { .lot-header nav { display: none; } }
@media (max-width: 419px) { .logo-text b span { display: none; } }
@media (max-width: 339px) { .logo-text small { display: none; } .header-wa { padding-inline: 0.75rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { flex: none; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: var(--edge-2); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-steel { border-color: var(--edge); background: var(--steel); color: var(--text); }
.btn-steel:hover { border-color: var(--edge-2); background: #2B3442; color: #fff; }
.btn-lg { min-height: 54px; padding: 0.75rem 1.5rem; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 1rem 3rem; background: var(--carbon); }
.hero-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: 4rem; }
  .hero-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3rem; }
}
.kicker {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
  color: var(--chrome); font-size: 0.9375rem; font-weight: 700; line-height: 1.6;
}
.kicker::before { content: ""; flex: none; width: 2rem; height: 3px; background: var(--red); }
.hero h1 { margin-bottom: 0.25em; color: var(--text); font-size: clamp(2.5rem, 1.5rem + 4.8vw, 4.5rem); font-weight: 900; line-height: 1.2; }
.hero h1 em { color: var(--red); font-style: normal; }
.en-line { margin-bottom: 1.25rem; color: var(--muted); font-size: 1.125rem; font-weight: 600; }
.hero-lead { max-width: 34rem; color: var(--soft); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
@media (max-width: 520px) { .hero-actions { display: grid; } }
/* Three promises, ruled like the foot of a spec sheet */
.hero-points { display: grid; gap: 0.5rem; max-width: 36rem; padding-top: 1rem; border-top: 1px solid var(--edge-2); }
@media (min-width: 560px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 1.5rem; } }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; color: var(--chrome); font-size: 0.9375rem; font-weight: 700; }
.hero-points svg { flex: none; color: var(--red); }

/* The car on a flat turntable: one ellipse and a thin red ring, nothing glowing */
.hero-art { position: relative; order: -1; justify-self: center; width: 100%; max-width: 640px; aspect-ratio: 2 / 1; }
@media (min-width: 960px) { .hero-art { order: 0; } }
.turntable {
  position: absolute; left: 50%; bottom: 2%;
  width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: 50% 100%;
  background: var(--graphite);
}
.turntable::before { content: ""; position: absolute; inset: 5%; border: 6px solid rgba(255, 86, 70, 0.55); border-radius: 50%; }
.turntable i { position: absolute; inset: 14%; border-radius: 50%; background: var(--steel); }
.hero-car-wrap { position: absolute; left: 5%; right: 5%; bottom: 13%; }
.hero-car { width: 100%; height: auto; overflow: visible; }
.hero-car .wheel, .car-svg .wheel { transform-box: fill-box; transform-origin: center; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem); }
.sec-head { display: grid; gap: 0.75rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 2.5rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; } }
.sec-head h2, .insta-copy h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 900; line-height: 1.25; }
.insta-copy h2 { margin-bottom: 0.5em; }
/* A short red stripe over each title, like the pinstripe on a door */
.sec-head h2::before, .insta-copy h2::before {
  content: ""; display: block; width: 48px; height: 4px; margin-bottom: 1rem; background: var(--red);
}
h2 [lang="en"], h3 [lang="en"] { color: var(--muted); font-weight: 700; }
h2 [lang="en"] { display: block; margin-top: 0.25em; font-size: 0.36em; }
h3 [lang="en"] { font-size: 0.6em; }
.example-note {
  margin: 0; padding-inline-start: 0.75rem; border-inline-start: 3px solid var(--red);
  color: var(--chrome); font-size: 0.875rem; line-height: 1.6;
}
.example-note span { display: block; color: var(--muted); }
.small-note { color: var(--muted); font-size: 0.875rem; }

/* ---------- Note to the owner (Khalesni speaking) ---------- */
.owner-note {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem; padding: 1rem 1.25rem;
  border: 1.5px dashed rgba(124, 211, 220, 0.5); border-radius: 12px;
  background: #0D2A30;
  color: #DDF1F3;
}
.on-plus {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border: 1.5px dashed rgba(124, 211, 220, 0.6); border-radius: 8px;
  color: #9FE3EA;
}
.owner-note p { margin: 0; font-size: 0.9375rem; line-height: 1.7; }
.on-from { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; color: #9FD3D8; font-size: 0.8125rem; font-weight: 700; }
.on-from img { width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #fff; }
.owner-note strong { display: block; color: #fff; font-size: 1.125rem; font-weight: 800; }
.owner-note [lang="en"] { display: block; margin-top: 0.25rem; color: #A9D6DB; font-size: 0.875rem; }

/* ---------- Filters ---------- */
.filters {
  display: grid; gap: 1rem;
  margin-bottom: 1.5rem; padding: 1.25rem 0;
  border-block: 1px solid var(--edge-2);
}
.f-makes { min-width: 0; margin: 0; padding: 0; border: 0; }
.f-makes legend, .field label {
  display: block; margin-bottom: 0.5rem; padding: 0;
  color: var(--muted); font-size: 0.875rem; font-weight: 700; line-height: 1.4;
}
.f-makes legend [lang="en"] { margin-inline-start: 0.375rem; font-size: 0.9em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 759px) {
  /* one swipeable row of makes on phones, cut cleanly at the screen edge */
  .chip-row {
    flex-wrap: nowrap;
    margin-inline: -1rem;
    padding: 6px 1rem;
    overflow-x: auto;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.25rem 1rem;
  border: 1.5px solid var(--edge-2); border-radius: var(--radius); background: transparent;
  color: var(--chrome); font-size: 0.9375rem; font-weight: 700; line-height: 1.3;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip small { min-width: 1.5rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.7; text-align: center; font-variant-numeric: tabular-nums; }
.chip:hover > span { border-color: rgba(255, 255, 255, 0.36); }
.chip input:checked + span { border-color: var(--red); background: rgba(255, 86, 70, 0.14); color: #fff; }
.chip input:checked + span small { color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 760px) { .f-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  padding-inline-end: 2.25rem;
  border: 1.5px solid var(--edge-2);
  border-radius: var(--radius);
  background: #0E131A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B2C0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 0.75rem center / 14px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.field select:hover { border-color: rgba(255, 255, 255, 0.36); }
.field select:focus-visible { border-color: var(--red); outline: 3px solid #fff; outline-offset: 2px; }
.field option { background: #0E131A; color: var(--text); }
.f-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--edge); }
.f-count { flex: 1 1 100%; margin: 0; color: var(--text); font-weight: 800; }
@media (min-width: 640px) { .f-count { flex: 1 1 auto; } }
.field-inline { display: flex; align-items: center; gap: 0.75rem; }
.field-inline label { margin: 0; white-space: nowrap; }
.field-inline select { min-width: 11.5rem; }
.f-reset {
  min-height: 44px; padding: 0.25rem 0.5rem;
  border: 0; background: transparent;
  color: var(--red); font-weight: 800;
  text-decoration: underline; text-underline-offset: 5px;
  cursor: pointer;
}
.f-reset:hover { color: #FF7A6D; }

/* ---------- Car cards: a stage, a stock number, a spec sheet, one price ---------- */
.car-grid { display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.car-item { display: flex; min-width: 0; }
.car {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--asphalt);
  transition: border-color 0.3s var(--ease);
}
@media (hover: hover) { .car:hover { border-color: rgba(255, 255, 255, 0.28); } }
.car-stage {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 2 / 1;
  padding: 2.5rem 1rem 0.75rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--graphite);
}
/* the showroom floor: one hairline the car stands on */
.car-stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 12%; height: 1px; background: var(--edge-2); }
.car-svg, .car-photo { position: relative; z-index: 1; width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.car-photo { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.car-svg { overflow: visible; }
.car-svg .wheel { transition: transform 0.7s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .car:hover .car-svg { transform: translateX(-8px); }
  .car:hover .car-svg .wheel { transform: rotate(-24deg); }
}
.is-reserved .car-svg { filter: saturate(0.45) brightness(0.85); }
.badge {
  position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0 0.5rem; border-radius: 2px;
  font-size: 0.8125rem; font-weight: 800; line-height: 1.75;
}
.badge-new { background: var(--red-btn); color: #fff; }
.badge-hold { background: #F2F4F7; color: #10151C; }
/* The stock number, printed in a box like on the windscreen sticker */
.car-ref {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem; z-index: 2;
  padding: 0 0.5rem;
  border: 1px solid var(--edge-2); border-radius: 2px; background: var(--carbon);
  color: var(--chrome); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.75; font-variant-numeric: tabular-nums;
}
.car-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.25rem 1.25rem; }
.car-title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.4; }
.car-make { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.car-year { margin-inline-start: 0.25rem; padding-inline-start: 0.5rem; border-inline-start: 1px solid var(--edge-2); color: var(--chrome); font-size: 0.85em; font-weight: 800; }
.car-en { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8125rem; }
.car-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; border-block: 1px solid var(--edge); }
.car-specs > div { min-width: 0; padding-block: 0.5rem; padding-inline: 0 0.5rem; }
.car-specs > div + div { padding-inline-start: 0.75rem; border-inline-start: 1px solid var(--edge); }
.car-specs dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; line-height: 1.5; }
.car-specs dd { margin: 0; overflow: hidden; color: var(--text); font-size: 0.9375rem; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.car-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: auto 0 1rem; font-weight: 700; }
.car-price b { color: #fff; font-size: 1.75rem; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.car-price .cur, .d-price .cur { color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.car-price em, .d-price em { color: var(--muted); font-size: 0.75rem; font-style: normal; font-weight: 800; }
.car-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.car-actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .car { animation: car-in 0.45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
}
@keyframes car-in { from { opacity: 0; transform: translateY(8px); } }
.grid-fallback, .car-empty {
  grid-column: 1 / -1;
  display: grid; justify-items: start; gap: 0.75rem;
  padding: 1.75rem 0;
  border-block: 1px solid var(--edge-2);
  color: var(--soft);
}
.grid-fallback p, .car-empty p { margin: 0; }
.grid-fallback b, .car-empty b { display: block; color: var(--text); font-size: 1.125rem; }

/* "Looking for something else?" */
.request {
  display: grid; gap: 1rem; align-items: center;
  margin-top: 2rem; padding: 1.5rem 0;
  border-top: 4px solid var(--red);
}
@media (min-width: 760px) { .request { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; } }
.request-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--edge-2); border-radius: 50%; color: var(--red); }
.request h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.request h3 [lang="en"] { display: block; margin-top: 0.125rem; }
.request p { margin: 0; color: var(--soft); font-size: 0.9375rem; }

/* ---------- How it works: three steps read by their numbers ---------- */
.how { border-block: 1px solid var(--edge); background: var(--asphalt); }
.steps { display: grid; border-top: 1px solid var(--edge-2); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 1.5rem 0; border-bottom: 1px solid var(--edge); }
@media (min-width: 820px) {
  .steps li { padding: 1.5rem 0 0; border-bottom: 0; }
  .steps li + li { padding-inline-start: 2rem; border-inline-start: 1px solid var(--edge); }
  .steps li:not(:last-child) { padding-inline-end: 2rem; }
}
.step-n { display: block; margin-bottom: 0.5rem; color: var(--red); font-size: 3rem; font-weight: 900; line-height: 1; }
.steps h3 { margin-bottom: 0.25rem; font-size: 1.375rem; }
.steps p { margin: 0; color: var(--soft); }

/* ---------- Instagram ---------- */
.insta { background: var(--carbon); }
.insta-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .insta-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 4rem; } }
.insta-copy > p { max-width: 32rem; color: var(--soft); }
.handle { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 800; }
.handle svg { color: var(--red); }
.handle small { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.insta-copy .btn { display: flex; width: fit-content; }

.ig-phone {
  justify-self: center;
  width: min(100%, 360px);
  padding: 1rem 1rem 0;
  overflow: hidden;
  border: 1px solid var(--edge-2);
  border-radius: 32px;
  background: #07090C;
  box-shadow: 0 0 0 6px #161B22;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.ig-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-weight: 800; font-size: 0.9375rem; }
.ig-profile { display: flex; align-items: center; gap: 0.75rem; }
.ig-avatar {
  display: grid; place-items: center; flex: none;
  width: 64px; height: 64px; border: 2px solid var(--red); border-radius: 50%;
  background: var(--steel);
  color: var(--chrome);
}
.ig-bio { display: grid; }
.ig-bio b { font-size: 0.875rem; }
.ig-bio span { color: var(--soft); }
.ig-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; margin: 0.75rem 0; }
.ig-btns span { padding: 0.25rem; border-radius: 6px; background: #1C222B; font-weight: 800; text-align: center; }
.ig-btns .is-main { background: var(--red-btn); color: #fff; }
.ig-highlights { display: flex; justify-content: space-between; gap: 0.375rem; margin-bottom: 0.75rem; }
.ig-highlights span { display: grid; justify-items: center; gap: 0.25rem; color: var(--soft); font-size: 0.6875rem; font-weight: 700; text-align: center; }
.ig-highlights i { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid #2B333F; border-radius: 50%; background: #12171E; color: var(--chrome); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-inline: -1rem; }
.t {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 0.25rem;
  aspect-ratio: 1; overflow: hidden;
  background: var(--a, #1B222C);
  color: #fff; text-align: center;
}
.t b { font-size: 0.6875rem; font-weight: 800; line-height: 1.3; }
.t-car { padding: 0.25rem; }
.t-car svg { width: 100%; }
.t-car b { position: absolute; top: 0.375rem; inset-inline-start: 0.375rem; padding: 0 0.375rem; border-radius: 2px; background: var(--carbon); }
.t-big { color: #fff; }
.t-corner { position: absolute; top: 0.375rem; inset-inline-end: 0.375rem; color: #fff; }
.t-price { color: #0B0E13; }
.t-price small { font-size: 0.625rem; font-weight: 800; }
.t-price strong { font-size: 1.375rem; font-weight: 900; line-height: 1; }
/* the road tile: a dashed centre line on asphalt */
.t-road { background: repeating-linear-gradient(180deg, #F2F4F7 0 10px, transparent 10px 22px) 50% 0 / 4px 100% no-repeat, #1F262F; }
.t-road b { position: relative; padding: 0.125rem 0.375rem; border-radius: 2px; background: var(--red-btn); }

/* ---------- Visit: hours and map ---------- */
.visit { border-top: 1px solid var(--edge); background: var(--asphalt); }
.visit-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; } }
.panel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 1.375rem; }
.panel h3 svg { flex: none; color: var(--red); }
.open-now {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem;
  margin: 0 0 1rem; color: #DFF9EC; font-size: 0.9375rem; font-weight: 800; line-height: 1.6;
}
.open-now.is-closed { color: #FFE2DE; }
.on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.is-closed .on-dot { background: var(--red); }
.open-now small { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.hours { border-top: 2px solid var(--chrome); }
.hours div { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding-block: 1rem; border-bottom: 1px solid var(--edge); }
.hours dt { flex: 1 1 auto; min-width: 0; color: var(--chrome); font-weight: 700; }
.hours dd { flex: none; display: grid; justify-items: end; margin: 0; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.hours dd span { white-space: nowrap; }
.hours .is-today dt { color: #fff; }
.hours .is-today dt::after { content: "· اليوم"; margin-inline-start: 0.5rem; color: var(--red); font-size: 0.8125rem; font-weight: 800; }
.panel .small-note { margin: 0.75rem 0 1rem; }
.map { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1rem; border: 1px solid var(--edge); border-radius: var(--radius); }
.map svg { width: 100%; height: 100%; }
.map-label {
  position: absolute; top: 32%; right: 57%;
  padding: 0 0.5rem; border-radius: 2px; background: #F2F4F7; color: #0B0E13;
  font-size: 0.8125rem; font-weight: 800; white-space: nowrap;
}
.map-tag { position: absolute; bottom: 0.75rem; inset-inline-start: 0.75rem; padding: 0 0.5rem; border-radius: 2px; background: var(--carbon); color: var(--chrome); font-size: 0.75rem; font-weight: 800; }
.place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.place-name b { display: block; font-size: 1.125rem; }
.place-name span { color: var(--muted); font-size: 0.875rem; }
.place .open-now { margin: 0; }
.address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0.5rem 0 0; }
.place-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; border-block: 1px solid var(--edge); }
.pa {
  display: grid; justify-items: center; gap: 0.25rem;
  min-height: 64px; padding: 0.5rem 0.25rem;
  color: var(--chrome); font-size: 0.875rem; font-weight: 800; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pa + .pa { border-inline-start: 1px solid var(--edge); }
.pa svg { color: var(--red); }
.pa:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* ---------- Call to action ---------- */
.cta-band { padding-block: clamp(3rem, 2rem + 4vw, 5rem); border-top: 6px solid var(--red); background: var(--graphite); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-band h2 { margin-bottom: 0.25em; font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); font-weight: 900; }
.cta-band h2 [lang="en"] { color: #FFB4AA; }
.cta-band p { margin: 0; color: var(--soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) { .cta-actions { display: grid; } }

/* ---------- Demo note (Khalesni speaking) ---------- */
.demo-note { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.demo-card {
  display: flex; align-items: flex-start; gap: 1rem;
  max-width: 52rem; margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 2px dashed rgba(6, 50, 58, 0.25); border-radius: 16px;
  background: #fff; color: var(--k-ink);
}
.demo-card img { flex: none; width: 44px; height: 44px; }
.demo-card h2 { color: var(--k-ink); font-size: 1.25rem; }
.demo-card h2 [lang="en"] { display: block; margin-top: 0.25em; color: #46636A; font-size: 0.75em; }
.demo-card p { color: #46636A; }
.demo-en { font-size: 0.9375rem; }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.5rem 1.25rem;
  border-radius: 999px; background: var(--k-teal); color: #fff;
  font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none;
}
.k-btn:hover { background: #0A4F57; color: #fff; }
.k-btn .k-nw { white-space: nowrap; }
@media (max-width: 520px) { .demo-card { flex-direction: column; } }

/* ---------- Footer ---------- */
.lot-footer { padding-block: 2rem; border-top: 1px solid var(--edge); background: #07090C; color: var(--muted); font-size: 0.875rem; }
.footer-row { display: grid; gap: 1rem; }
@media (min-width: 820px) { .footer-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.lot-footer p { margin: 0; }
.lot-footer p > span { display: block; margin-top: 0.25rem; }
.lot-footer a { color: var(--chrome); }
.credit {
  justify-self: start;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0.25rem 1rem;
  border: 1px solid var(--edge-2); border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
}
.lot-footer .credit:hover { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
@media (max-width: 819px) { .lot-footer { padding-bottom: 6.5rem; } }

/* ---------- Sticky WhatsApp bar on phones ----------
   With scripts on (the "js" class), it starts hidden and cars.js shows it only once the hero and the
   closing band are off screen, so it never sits over their buttons. Without scripts it stays visible. */
.wa-bar {
  position: fixed; z-index: 50; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; border-radius: var(--radius);
  background: var(--red-btn); color: #fff;
  font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s;
}
.wa-bar:hover { background: var(--red-deep); color: #fff; }
.js .wa-bar:not(.is-shown) { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s 0.35s; }
@media (min-width: 820px) { .wa-bar { display: none; } }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--text); }
dialog::backdrop { background: rgba(3, 5, 8, 0.8); }
dialog:not([open]) { display: none; }
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--edge-2); border-radius: var(--radius); background: transparent;
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Car details: a bottom sheet on phones, a centred card on wider screens */
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 94vh; max-height: 94dvh; margin: 0; }
.sheet-card {
  position: relative;
  display: flex; flex-direction: column;
  max-height: 94vh; max-height: 94dvh;
  overflow: hidden;
  border: 1px solid var(--edge-2); border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #10151C;
}
.sheet-top { position: relative; display: flex; align-items: center; justify-content: flex-end; flex: none; min-height: 58px; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--edge); }
.sheet-grip { position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet-nav {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; flex: none;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--edge); background: #0C1016;
}
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 46px; padding: 0.25rem 0.75rem;
  border: 1px solid var(--edge-2); border-radius: var(--radius); background: transparent;
  color: var(--text); font-weight: 800; cursor: pointer;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
.sheet-toast {
  position: absolute; bottom: 5rem; left: 50%; z-index: 3;
  margin: 0; padding: 0.375rem 1rem; border-radius: var(--radius);
  background: #F2F4F7; color: var(--carbon);
  font-size: 0.875rem; font-weight: 800; white-space: nowrap;
  transform: translateX(-50%);
}
.sheet-toast:empty { display: none; }
.d-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 210px; padding: 3.25rem 1.25rem 1.5rem;
  overflow: hidden;
  background: var(--graphite);
}
.d-stage::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 14%; height: 1px; background: var(--edge-2); }
.d-stage .car-svg, .d-stage .car-photo { width: min(100%, 520px); }
.d-main { padding: 1.25rem 1.25rem 1.5rem; }
.d-make { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.d-title { margin: 0; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.25rem); font-weight: 900; }
.d-title:focus { outline: none; }
.d-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 0.75rem 0 0.5rem; font-weight: 700; }
.d-price b { color: #fff; font-size: 2.25rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.d-note { color: var(--soft); }
/* The full spec sheet: two ruled columns, label over value */
.d-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.5rem; border-top: 2px solid var(--chrome); }
.d-specs div { min-width: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--edge); }
.d-specs div:nth-child(even) { padding-inline-start: 1rem; border-inline-start: 1px solid var(--edge); }
.d-specs dt { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.d-specs dt svg { display: none; }
.d-specs dd { display: flex; align-items: center; gap: 0.5rem; margin: 0.125rem 0 0; font-weight: 800; }
.swatch { flex: none; width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; }
.d-sub { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.d-features { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; }
.d-features li { display: flex; align-items: center; gap: 0.5rem; color: var(--chrome); font-weight: 700; }
.d-features svg { flex: none; color: var(--go); }
.d-actions { display: grid; gap: 0.5rem; }
.d-fine { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.d-fine svg { flex: none; margin-top: 0.125rem; color: var(--go); }
@media (min-width: 760px) {
  .sheet { inset: 0; width: min(100% - 48px, 960px); max-height: 90vh; margin: auto; }
  .sheet-card { max-height: 90vh; border-bottom: 1px solid var(--edge-2); border-radius: 12px; }
  .sheet-grip { display: none; }
  .sheet-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .d-stage { position: sticky; top: 0; min-height: 420px; }
  .d-main { padding: 1.5rem 1.5rem 1.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up 0.4s var(--ease); }
  dialog[open]::backdrop { animation: fade-in 0.3s var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .sheet[open] { animation: pop-in 0.35s var(--ease); }
}
@keyframes sheet-up { from { transform: translateY(30%); opacity: 0.4; } }
@keyframes pop-in { from { transform: translateY(12px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Scroll reveal (only when ../script.js runs and motion is allowed): a short rise, once */
.reveal-ready [data-reveal] { transition: opacity 0.6s var(--ease) var(--rd, 0s), translate 0.6s var(--ease) var(--rd, 0s); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 16px; }
[data-reveal="1"] { --rd: 0.08s; }
[data-reveal="2"] { --rd: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
}
@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .wa-bar, .lot-header nav, .hero-art, dialog { display: none !important; }
  .lot-header { position: static; }
}
