/* =====================================================================
   جاد المتحدة — style.css
   Layout concept: charcoal "windshield cut" — dark hero/footer with a
   diagonal yellow slash (from the business card), warm paper body.
   ===================================================================== */
:root {
  --char: #262626;       /* hero, footer, dark sections */
  --char-2: #3a3a3a;     /* card fill on dark */
  --yellow: #FFC20E;     /* brand accent */
  --yellow-ink: #6B5200; /* accent text on light ground (AA contrast) */
  --ground: #F6F4EF;     /* page ground */
  --paper: #FFFFFF;      /* cards */
  --ink: #1E1E1E;        /* body text */
  --muted: #55524B;      /* secondary text */
  --line: #E4E0D6;       /* borders on light */
  --on-dark: #F4F2EC;
  --on-dark-muted: #C9C5BB;
  --danger: #A3261B;

  /* Headings: Tajawal (matches the geometric logo). Body text and UI: IBM Plex Sans Arabic
     (its Arabic letters are ~15% larger at the same size than Tajawal's, so paragraphs read better).
     Numbers / bold English: Barlow Condensed. */
  --f-head: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  --f-num: 'Barlow Condensed', 'Arial Narrow', 'IBM Plex Sans Arabic', sans-serif;

  --r: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* العنصر الذي عليه hidden يختفي دائمًا، حتى لو كان له display في هذا الملف (مثل .form-result) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; font-weight: 800; }
h1, h2, h3, h4 { font-family: var(--f-head); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
dd.ltr, p.ltr { display: block; text-align: start; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 8px;
  font: 700 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #FFD24D; }
.btn-ghost { border-color: rgba(244,242,236,.35); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--char); color: var(--on-dark); }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--char); color: var(--on-dark);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); border-bottom-color: rgba(255,194,14,.35); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand img { width: 118px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-dark-muted); white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-width: 44px; min-height: 42px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--on-dark); border: 1px solid rgba(244,242,236,.3);
  font: 700 15px var(--f-num); letter-spacing: 1px;
}
.lang-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.menu-btn { display: none; width: 46px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--char); border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 17px; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) { .hide-sm { display: none; } .brand img { width: 96px; } }

/* ---------- Hero: scroll-driven night video of the storefront ----------
   Four elements only: title, one sentence, the catalog search (the main action), a WhatsApp text link
   (the link shows at 560px and below only; wider screens have the header button instead).
   Default (no JS / very short screens): a still frame with the copy at the bottom.
   .is-scrolly (set by JS): the section grows tall, the frame pins under the
   header, and scrolling drives the video and the three stage words. */
:root { --hdr: 72px; }
.hero { position: relative; background: #0d0d0d; color: var(--on-dark); }
.hero-pin {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 54vw, 800px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #0d0d0d url("../video/hero-poster.jpg") center 18% / cover no-repeat;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
/* dark from the bottom and from the text side (start side: right in Arabic, left in English),
   so the copy reads well while the shop sign at the top stays bright */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(13,13,13,.95) 0%, rgba(13,13,13,.8) 24%, rgba(13,13,13,.3) 46%, rgba(13,13,13,0) 62%),
    linear-gradient(to left, rgba(13,13,13,.62) 0%, rgba(13,13,13,.35) 30%, rgba(13,13,13,0) 56%);
}
html[dir="ltr"] .hero-shade {
  background:
    linear-gradient(to top, rgba(13,13,13,.95) 0%, rgba(13,13,13,.8) 24%, rgba(13,13,13,.3) 46%, rgba(13,13,13,0) 62%),
    linear-gradient(to right, rgba(13,13,13,.62) 0%, rgba(13,13,13,.35) 30%, rgba(13,13,13,0) 56%);
}
/* extra dimming while the stage words are on screen (JS sets --dim) */
.hero-shade::after { content: ""; position: absolute; inset: 0; background: #0d0d0d; opacity: var(--dim, 0); }

/* one block at the bottom, on the start side, under the shop sign */
.hero-grid { display: block; padding-block: clamp(28px, 4vw, 48px); }
.hero-copy { max-width: 660px; will-change: opacity, transform; }
/* title in 3 parts (index.html): computer = 2 lines (part 1 / parts 2+3), phone = 3 lines */
.hero-title { font-size: clamp(38px, 4.1vw, 56px); line-height: 1.22; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-title .ht { display: inline; }
.hero-title .ht-1 { display: block; }
/* English is longer: a little smaller and a little wider, so it keeps 2 title lines and a 1-line sentence */
html[lang="en"] .hero-title { font-family: var(--f-num); font-weight: 800; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.04; text-transform: uppercase; }
html[lang="en"] .hero-copy { max-width: 740px; }
html[lang="en"] .lead { font-size: clamp(16px, 1.32vw, 18px); }
.lead { margin-top: 14px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #E2DED4; }
/* the catalog search: the biggest thing in the hero */
.hero-search { display: flex; gap: 8px; margin-top: 26px; }
.hero-search input {
  flex: 1; min-width: 0; height: 60px; padding: 0 18px; border-radius: 8px;
  border: 2px solid transparent; background: var(--paper); color: var(--ink);
  font: 500 17px var(--f-body); /* 16px or more: stops iPhone zooming in on focus */
}
.hero-search input::placeholder { color: #6E6A61; opacity: 1; }
.hero-search input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,194,14,.4); }
.hero-search input[readonly] { cursor: pointer; }
.hero-search .btn { height: 60px; min-height: 0; padding-inline: 26px; flex: none; font-size: 17px; }
.hero-search .btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* secondary action: a text link, not a button */
.hero-wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px;
  color: var(--on-dark); font: 700 15.5px var(--f-body);
  text-decoration: underline; text-decoration-color: rgba(244,242,236,.45); text-underline-offset: 5px;
}
.hero-wa:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.hero-wa .wa-i { width: 20px; height: 20px; }
/* one installation button per screen (owner's decision, 10 Oct 2026): wider than 560px the header button
   (#hdrBook) is visible and sticky, so the hero link is hidden; at 560px and below the header button is
   hidden (.hide-sm) and this link is the only one. "not all and (max-width: 560px)" is the exact
   opposite of .hide-sm, so no width (fractional ones included) shows both or neither */
@media not all and (max-width: 560px) { .hero-wa { display: none; } }

/* Stage words: hidden in the still version */
.hero-stages, .hero-progress { display: none; }

/* ----- Scroll mode ----- (was 300svh; the timeline in main.js is tuned to this height) */
.hero.is-scrolly { height: 200vh; height: 200svh; }
.hero.is-scrolly .hero-pin {
  position: sticky; top: var(--hdr);
  min-height: 0; height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr));
}

.hero.is-scrolly .hero-stages {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; position: absolute; inset: 0; z-index: 0;
  margin: 0; padding: 0 var(--gutter); list-style: none; pointer-events: none;
}
.stage {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; opacity: 0; will-change: opacity, transform; max-width: 100%;
}
.stage-word {
  display: inline-flex; flex-direction: column; align-items: stretch;
  /* line-height leaves room for letters that dip below the line (ع ي ب د) */
  font: 800 clamp(64px, 13vw, 184px)/1.45 var(--f-head); color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.55);
}
html[lang="en"] .stage-word { font-family: var(--f-num); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(48px, 10vw, 160px); line-height: 1.1; }
/* the brand's yellow slash, drawn UNDER the word (never through it) as you scroll (JS sets --bar) */
.stage-word::after {
  content: ""; display: block; height: max(5px, .07em); margin-top: .02em; border-radius: 2px;
  background: var(--yellow); transform: skewX(-20deg) scaleX(var(--bar, 0));
  transform-origin: right center;
}
html[dir="ltr"] .stage-word::after { transform-origin: left center; margin-top: .1em; }
.stage-sub { font: 700 clamp(16px, 2vw, 22px)/1.4 var(--f-body); color: #E6E2D8; text-shadow: 0 2px 14px rgba(0,0,0,.6); text-wrap: balance; }

.hero.is-scrolly .hero-progress { display: block; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 1; }
.hero-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: right center; }
html[dir="ltr"] .hero-progress span { transform-origin: left center; }

/* Phones (860px and less):
   - the WHOLE frame at the top at full width, 16:9, over a blurred copy of the shot;
   - the copy and the search at the bottom of the screen;
   - while scrolling, the video grows (JS: transform scale from the top centre, --fill 0 to 1)
     until it fills the screen behind the stage words, which sit in the middle of the screen. */
@media (max-width: 860px) {
  .hero-pin { min-height: 700px; background: #0d0d0d; }
  .hero-pin::before {
    content: ""; position: absolute; inset: -48px; z-index: -3;
    background: url("../video/hero-poster.jpg") center / cover no-repeat;
    filter: blur(26px) brightness(.6) saturate(1.15);
  }
  .hero-media {
    inset: 0 0 auto; height: auto; aspect-ratio: 16 / 9; transform-origin: 50% 0;
    /* soft bottom edge at the top of the page; gone once the video fills the screen */
    -webkit-mask-image: linear-gradient(#000 calc(80% + 20% * var(--fill, 0)), rgba(0,0,0,var(--fill, 0)) 100%);
            mask-image: linear-gradient(#000 calc(80% + 20% * var(--fill, 0)), rgba(0,0,0,var(--fill, 0)) 100%);
  }
  .hero-video { object-fit: cover; object-position: center; }
  /* bottom gradient for the copy; it fades out as the video grows to fill the screen (--fill from JS) */
  .hero-shade, html[dir="ltr"] .hero-shade { background: none; }
  .hero-shade::before {
    content: ""; position: absolute; inset: 0; opacity: calc(1 - .85 * var(--fill, 0));
    background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.72) 38%, rgba(13,13,13,0) 60%);
  }
  .hero.is-scrolly { height: 180vh; height: 180svh; } /* was 260svh */
  .stage-word { font-size: clamp(64px, 19vw, 120px); }
  html[lang="en"] .stage-word { font-size: clamp(40px, 11vw, 96px); }

  .hero-grid, .hero.is-scrolly .hero-grid { padding-block: 0 26px; }
  .hero-title, html[lang="en"] .hero-title { font-size: clamp(30px, 9.6vw, 38px); line-height: 1.2; }
  html[lang="en"] .hero-title { line-height: 1.04; }
  .hero-title .ht { display: block; }
  .lead { margin-top: 10px; font-size: 16px; line-height: 1.55; }
  .hero-search { margin-top: 18px; }
  .hero-search input, .hero-search .btn { height: 56px; }
  .hero-search input { padding-inline: 14px; font-size: 16px; }
  .hero-search .btn { padding-inline: 18px; font-size: 16px; }
  .hero-wa { margin-top: 4px; font-size: 15px; }
}
/* narrow phones: room for the whole placeholder */
@media (max-width: 340px) { .hero-search .btn svg { display: none; } }
/* short phone screens (e.g. inside an app's browser): keep the copy close to the bottom edge */
@media (max-width: 860px) and (max-height: 700px) {
  .hero-grid, .hero.is-scrolly .hero-grid { padding-bottom: 16px; }
  .hero-search { margin-top: 14px; }
}

/* ---------- Facts ---------- */
/* 5 tiles (warehouses added 11 Oct 2026): one row of 5 on wide screens, 2 columns on phones
   with the last tile (VIP) across the full width so it does not sit alone in half a row */
.facts { background: var(--yellow); color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px; border-inline-start: 1px solid rgba(30,30,30,.18); }
.fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact-num { font: 800 40px/1 var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; align-self: flex-start; }
.fact-label { font-size: 14.5px; line-height: 1.45; font-weight: 500; }
/* Google rating tile: links to the reviews section */
.fact-link { color: inherit; text-decoration: none; }
.fact-link .fact-num { display: inline-flex; align-items: baseline; gap: 4px; }
.fact-star { font-size: .62em; color: var(--ink); transform: translateY(-.12em); }
.fact-link .fact-label { text-decoration: underline; text-decoration-color: rgba(30,30,30,.35); text-underline-offset: 3px; }
.fact-link:hover .fact-label { text-decoration-color: var(--ink); }
/* keep 'Google' and the count from merging into one left-to-right run in Arabic */
.fact-link .fact-label > span { unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.fact-sub { display: block; }
.fact-link:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 4px; }
/* small tablets: 5 in a row is too narrow (4-5 line labels at 800px), so 3 on top and 2 below */
@media (min-width: 761px) and (max-width: 960px) {
  .facts-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fact { grid-column: span 2; }
  .fact:nth-child(n+4) { grid-column: span 3; border-top: 1px solid rgba(30,30,30,.18); }
  .fact:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 18px 14px; }
  .fact:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(30,30,30,.18); }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: #EFECE4; }
.kicker { font-weight: 700; font-size: 15px; color: var(--yellow-ink); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 4px; background: var(--yellow); transform: skewX(-20deg); }
.kicker-on-dark { color: var(--yellow); }
.section-lead { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* ---------- Catalog ---------- */
.catalog { background: var(--paper); border-bottom: 1px solid var(--line); }
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.search { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.search label { font-size: 14px; font-weight: 700; color: var(--muted); }
.search input {
  width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 8px;
  border: 2px solid var(--line); background: var(--ground); font: 500 16px var(--f-body); color: var(--ink);
}
.search input:focus { border-color: var(--ink); outline: none; background: var(--paper); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; min-height: 28px; font-size: 15px; color: var(--muted); }
.crumbs button { background: none; border: 0; padding: 4px 2px; font: 700 15px var(--f-body); color: var(--yellow-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .5; }
.crumbs:empty { display: none; }
.crumbs:empty + .cat-view { margin-top: 26px; }
.crumbs .here { color: var(--ink); font-weight: 700; }

.cat-view { margin-top: 14px; }

/* عنوان شبكة الماركات (حلّ محل تبويبات المجموعات: الأكثر طلبًا، يابانية...) */
.brands-h {
  position: relative; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 19px; line-height: 1.3; color: var(--ink);
}
.brands-h::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; width: 44px; height: 4px;
  background: var(--yellow); transform: skewX(-20deg);
}

/* شبكة الماركات: بطاقات صغيرة بالشعار والاسم */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.brand-tile {
  position: relative; overflow: hidden; cursor: pointer; text-align: center;
  padding: 12px 8px 10px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--f-body); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-tile::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: var(--yellow); transform: scaleX(0); transition: transform .2s;
}
.brand-tile:hover { border-color: var(--ink); box-shadow: 0 6px 16px rgba(30,30,30,.08); transform: translateY(-2px); }
.brand-tile:hover::after, .brand-tile:focus-visible::after { transform: scaleX(1); }
.b-mark { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; }
.b-mark img { max-width: 92px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
/* brand grid: every logo in one grey tone so the grid reads as one set (the mix of red, blue, gold,
   silver and black logos was visual noise); full colour on hover/focus and on the brand's own page */
.brand-tile .b-mark img { filter: grayscale(1) brightness(.72) contrast(1.35); transition: filter .15s; }
.brand-tile:hover .b-mark img, .brand-tile:focus-visible .b-mark img { filter: none; }
.b-mono { font: 800 15px var(--f-num); letter-spacing: 2px; text-transform: uppercase; color: var(--char); border: 2px solid var(--char); padding: 4px 8px; border-radius: 4px; }
.brand-tile .b-name { font-size: 15px; font-weight: 800; line-height: 1.25; }
.brand-tile .b-count { font-size: 12px; color: var(--muted); }
.brand-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }
.brand-foot a { color: var(--yellow-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cat-view > .sub-h { margin: 6px 0 10px; }
.cat-view > .brand-grid + .sub-h { margin-top: 22px; }

/* رأس صفحة الماركة */
.brand-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground); }
.brand-head .b-mark { width: 84px; height: 52px; flex: none; }
.brand-head h3 { font-size: 22px; line-height: 1.2; }
.brand-head .en { font: 700 13px var(--f-num); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.brand-head .b-count { margin-inline-start: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.model-tile {
  text-align: start; cursor: pointer; padding: 16px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; font-family: var(--f-body);
}
.model-tile:hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(30,30,30,.08); }
.model-tile .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.model-tile .m-name { font-size: 18px; font-weight: 800; line-height: 1.25; }
.model-tile .m-brand { font-size: 13px; color: var(--muted); }
.model-tile .m-years { font: 700 15px var(--f-num); color: var(--muted); unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #F3E7BF; color: var(--yellow-ink); }

.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; background: var(--ground); }
.empty strong { color: var(--ink); }

/* model detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.detail-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.detail-title h3 { font-size: clamp(24px, 3vw, 32px); }
.detail-title .en { font: 700 18px var(--f-num); color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.sub-h { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
/* model page: the two choices as numbered steps (same yellow number squares as the fleet section) */
.pick-step { padding: 8px; margin: -8px; border-radius: 12px; }
.step-h { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16.5px; }
.step-k {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px;
  background: var(--yellow); color: var(--ink); font: 800 16px/1 var(--f-num);
}
.price-note { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
/* drawn when the visitor picks a glass before the year range (JS adds .flash for 1.7s) */
.pick-step.flash { box-shadow: 0 0 0 3px var(--yellow); animation: step-flash 1.7s ease-out forwards; }
@keyframes step-flash { 0%, 45% { box-shadow: 0 0 0 3px var(--yellow); } 100% { box-shadow: 0 0 0 3px rgba(255,194,14,0); } }
.gens { display: flex; flex-wrap: wrap; gap: 8px; }
.gen {
  min-height: 48px; padding: 6px 16px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--line); background: var(--ground); color: var(--ink);
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2;
}
.gen .y { font: 700 18px var(--f-num); unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.gen[aria-pressed="true"] { border-color: var(--ink); background: var(--yellow); }

.glass-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.glass-table th, .glass-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.glass-table thead th { font-size: 13.5px; color: var(--muted); font-weight: 700; background: var(--ground); }
.glass-table tbody tr:last-child td { border-bottom: 0; }
.glass-table tr.selected td { background: #FFF6D6; }
.glass-table td:last-child, .glass-table th:last-child { width: 1%; text-align: end; }
.pick { min-height: 40px; padding: 6px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--ink); background: transparent; font: 700 14px var(--f-body); color: var(--ink); white-space: nowrap; }
.pick:hover, .pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.order-box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--char); color: var(--on-dark); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.order-box h4 { margin: 0; font-size: 18px; color: #fff; }
.order-box .summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.order-box .summary dt { color: var(--on-dark-muted); }
.order-box .summary dd { margin: 0; font-weight: 700; }
.order-box label { font-size: 14px; color: var(--on-dark-muted); display: block; margin-bottom: 6px; }
.order-box select { width: 100%; min-height: 46px; border-radius: 8px; border: 1px solid #555; background: var(--char-2); color: var(--on-dark); padding: 8px 12px; font: 500 15px var(--f-body); }
.order-box .note { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.55; }
.order-box .btn-outline { border-color: rgba(244,242,236,.4); color: var(--on-dark); }
.order-box .btn-outline:hover { background: var(--on-dark); color: var(--ink); }
.order-hint { color: var(--on-dark-muted); font-size: 15px; }
.order-need { color: var(--yellow); font-weight: 700; font-size: 15px; }
/* the warranty, right above the installation button (shield icon from the services row) */
.order-warranty { display: flex; align-items: center; gap: 8px; margin-bottom: -4px; font-size: 15px; font-weight: 700; color: var(--on-dark); }
.order-warranty svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* English is longer: at 320 it needs 245px of 244 at 15px, so a little smaller keeps it on one line (measured) */
@media (max-width: 340px) { html[lang="en"] .order-warranty { font-size: 14px; } }

/* computers: the sticky order box never grows past the screen; if its content is longer (windshield
   features + payment methods) it scrolls inside, so nothing stays hidden below the fold */
@media (min-width: 881px) {
  .order-box {
    max-height: calc(100vh - 88px - 16px - env(safe-area-inset-top, 0px));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #5a5a5a transparent;
  }
}
@media (max-width: 880px) {
  .detail { grid-template-columns: 1fr; }
  .order-box { position: static; }
}
@media (max-width: 520px) {
  .glass-table th, .glass-table td { padding: 10px; }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .brand-tile { padding: 10px 4px 8px; }
  .b-mark { height: 40px; }
  .b-mark img { max-width: 64px; max-height: 40px; }
  .b-mono { font-size: 11px; letter-spacing: 1px; padding: 3px 5px; }
  .brand-tile .b-name { font-size: 12.5px; }
  .brand-tile .b-count { font-size: 11px; }
  .brands-h { font-size: 17px; margin-bottom: 12px; }
  /* phones: models as a compact list (the large cards made Toyota's 16 models ~2,700px long).
     Row: small vehicle-type drawing | name + years | type badge (+ make, in search results) */
  .model-grid { grid-template-columns: 1fr; gap: 8px; }
  .model-tile {
    display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center;
    grid-template-areas: "vis name years" "vis badge brand";
    column-gap: 12px; row-gap: 4px; padding: 10px 12px;
  }
  .model-tile .m-top { display: contents; }
  .model-tile .m-visual { grid-area: vis; height: 42px; margin: 0; }
  .model-tile .m-img { width: 54px; height: 22px; }
  .model-tile .m-img.is-photo { width: 58px; height: 42px; }
  .model-tile .m-name { grid-area: name; font-size: 16.5px; }
  .model-tile .m-years { grid-area: years; font-size: 14px; }
  .model-tile .badge { grid-area: badge; justify-self: start; font-size: 11.5px; padding: 1px 8px; }
  .model-tile .m-brand { grid-area: brand; justify-self: end; font-size: 12.5px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.about-copy p { color: var(--muted); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.about-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
/* Xinyi VIP certificate, inside "About": a small certificate beside its text, under a thin line */
.xinyi {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center;
  max-width: 880px; margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line);
}
.xinyi-cert { margin: 0; }
.xinyi-cert img { width: 100%; border-radius: 4px; box-shadow: 0 10px 24px rgba(38,38,38,.18); }
.xinyi-copy { display: flex; flex-direction: column; gap: 8px; }
.xinyi-copy h3 { font-size: clamp(19px, 2vw, 22px); }
.xinyi-copy p { color: var(--muted); max-width: 62ch; }
@media (max-width: 560px) { .xinyi { grid-template-columns: 88px minmax(0, 1fr); align-items: start; } }

/* ---------- Services ---------- */
/* computer: title on one side, three rows (icon + title + text) with thin lines on the other; phone: stacked */
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.services-list { list-style: none; margin: 0; padding: 0; }
.service { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 22px; }
.service:first-child { padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service + .service { border-top: 1px solid rgba(38,38,38,.14); }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 16px; max-width: 62ch; }
.icon { width: 48px; height: 48px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .services-layout { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 480px) { .service { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; } .service .icon { width: 44px; height: 44px; } }

/* ---------- Fleet ---------- */
.fleet { background: var(--char); color: var(--on-dark); position: relative; overflow: hidden; }
.fleet h2 { color: #fff; }
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fleet-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fleet-copy p { color: var(--on-dark-muted); max-width: 52ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 16px; background: var(--char-2); border-radius: var(--r); padding: 16px 18px; font-weight: 500; }
.step-n { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 800 22px var(--f-num); border-radius: 8px; }
@media (max-width: 860px) { .fleet-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews (real Google reviews from js/reviews.js) ----------
   Sits right after the catalog (white), so the section uses .section-alt and the cards are white.
   Page order (4 Oct 2026): hero, facts, about (ground), catalog (white), reviews (alt),
   services (ground), fleet (dark), branches (alt), contact (ground). */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
}
.rating-badge:hover { border-color: var(--ink); }
.rb-score { font: 800 34px/1 var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; }
.rb-score small { font-size: 18px; color: var(--muted); font-weight: 700; }
.rb-side { display: flex; flex-direction: column; gap: 4px; }
.rb-meta { font-size: 14px; color: var(--muted); }
.rb-meta b { color: var(--ink); }
.rb-g { width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 4px; }

/* stars: grey row with a yellow row clipped to the score */
.stars { position: relative; display: inline-block; font-size: 20px; line-height: 1; letter-spacing: 2px; color: #D8D3C6; direction: ltr; white-space: nowrap; }
.stars .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #F5B400; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.review {
  margin: 0; padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-quote { width: 34px; height: 34px; color: var(--yellow); flex-shrink: 0; }
.review .stars { font-size: 17px; }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--ink); flex-grow: 1; white-space: pre-line; overflow-wrap: anywhere; }
.review blockquote[lang="en"] { direction: ltr; text-align: left; }
.review figcaption { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review .who b { font-size: 15.5px; unicode-bidi: plaintext; }
.review .who span { font-size: 13px; color: var(--muted); }
.review .where { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.review .where svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.reviews-actions .ext { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .reviews-actions .ext { transform: scaleX(-1); }
@media (max-width: 560px) { .reviews-actions .btn { width: 100%; } .rating-badge { width: 100%; } }
/* Phones: one review at a time, swiped sideways, with the edge of the next card showing so the row
   reads as swipeable. Keeps the section short now that it sits high on the page (was ~1750px stacked). */
@media (max-width: 760px) {
  .reviews-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 12px; margin-top: 24px; padding-bottom: 6px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-grid:focus-visible { outline-offset: -3px; }
  .review { scroll-snap-align: start; }
  .reviews-actions { margin-top: 20px; }
}

/* ---------- Branches ---------- */
/* three cards side by side (one column below 1000px); the Jeddah card holds its photo beside the text */
.branches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.branch { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.branch h3 { font-size: 22px; }
.branch p { color: var(--muted); }
.branch-tag { font-size: 14px; }
.map-link { margin-top: 6px; font-weight: 700; color: var(--yellow-ink); text-underline-offset: 3px; align-self: flex-start; }
/* branch phone: plain text (no tel: link), same number face as the contact section */
.branch .branch-phone { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink); font: 700 19px/1.3 var(--f-num); }
.branch-phone .ltr { white-space: nowrap; }
.branch-phone .ph-i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--yellow-ink); stroke-width: 2; stroke-linejoin: round; }
/* Jeddah card: city, area and type beside the photo; the phone and the map link each on their own row under both
   (beside the photo, the number split into two lines at 320) */
.branch-has-photo {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 40%, 200px);
  grid-template-areas: "text img" "phone phone" "link link"; column-gap: 16px; row-gap: 4px; align-items: center;
}
.branch-has-photo .branch-phone { grid-area: phone; }
.branch-text { grid-area: text; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.branch-img { grid-area: img; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.branch-has-photo .map-link { grid-area: link; justify-self: start; }
@media (max-width: 1000px) { .branches-grid { grid-template-columns: 1fr; margin-top: 24px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info > p { color: var(--muted); max-width: 48ch; }
.contact-list { margin: 10px 0 0; display: grid; gap: 14px; }
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { margin: 0; font: 700 22px var(--f-num); }
.contact-list dd.dd-note { font: 400 14px var(--f-body); color: var(--muted); margin-top: 2px; }
html[dir="rtl"] .contact-list dd.ltr { text-align: right; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--yellow-ink); }

.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 15px; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid #CFCABD; background: var(--ground); color: var(--ink); font: 500 16px var(--f-body);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 3px rgba(255,194,14,.45); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
/* "بدون تركيب" under the service select: same tick box as the windshield features, on the light form */
.field .check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 2px; font-size: 15px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #8A857A; background: var(--paper); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.check .box::after { content: ""; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check:hover .box { border-color: var(--ink); }
.check input:checked + .box { background: var(--yellow); border-color: var(--yellow); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-error { color: var(--danger); font-weight: 700; font-size: 15px; }
.form-result { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.msg-preview { margin: 0; white-space: pre-wrap; word-break: break-word; background: var(--ground); border-radius: 8px; padding: 14px; font: 500 14.5px/1.7 var(--f-body); color: var(--ink); max-height: 240px; overflow: auto; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
/* "Prepare WhatsApp message" is longer than the Arabic label: on narrow phones the icon goes and the padding shrinks,
   so the English label stays on one line (measured: 212px of text, 218px free at 320) */
@media (max-width: 380px) {
  html[lang="en"] .quote-form button[type="submit"] { padding-inline: 12px; }
  html[lang="en"] .quote-form button[type="submit"] .wa-i { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: var(--on-dark-muted); padding-block: 48px 28px; border-top: 6px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 28px; align-items: start; }
.footer-brand img { width: 150px; }
.footer-h { color: #fff; font-weight: 800; margin-bottom: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-focus:focus { outline: none; }
section[id], .crumbs, .order-box { scroll-margin-top: 84px; }

/* ---------- Vehicle illustrations & brand logos ---------- */
.m-visual { display: flex; align-items: center; justify-content: center; height: 76px; margin: -4px -4px 4px; border-radius: 8px; background: var(--ground); overflow: hidden; }
.m-img { width: 132px; height: 52px; }
.m-img.is-photo { width: 100%; height: 76px; object-fit: cover; }
.detail-visual { display: flex; align-items: center; justify-content: center; min-height: 150px; border-radius: var(--r); background: var(--ground); border: 1px solid var(--line); overflow: hidden; }
.d-img { width: min(340px, 90%); height: auto; aspect-ratio: 120 / 46; }
.d-img.is-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
svg.m-img .body, svg.d-img .body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
svg.m-img .glass, svg.d-img .glass { fill: #CFE3EC; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
svg.m-img .wheel, svg.d-img .wheel { fill: var(--char); }
svg.m-img .hub, svg.d-img .hub { fill: var(--yellow); }
.model-tile:hover svg.m-img .glass { fill: var(--yellow); }

/* ---------- 3D viewer ---------- */
.detail-visual.has-3d { display: block; min-height: 0; padding: 0; }
.v3d { display: flex; flex-direction: column; }
.v3d-stage { position: relative; height: clamp(260px, 34vw, 360px); touch-action: none; }
.v3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.v3d-canvas:active { cursor: grabbing; }
.v3d-tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: var(--char); color: var(--on-dark); font-size: 13.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.v3d-hint { padding: 10px 14px 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.v3d-side { padding: 2px 14px 12px; font-size: 13px; color: var(--muted); }
.v3d-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .v3d-controls { justify-content: flex-end; }
.v3d-controls button {
  width: 44px; height: 40px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.v3d-controls button:hover { border-color: var(--ink); }
.v3d-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v3d-controls button[data-rot="reset"] { margin-inline-start: 8px; }

/* ---------- Windshield feature checkboxes ---------- */
.specs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.specs legend { padding: 0; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.specs-help { font-size: 13px; color: var(--on-dark-muted); margin-bottom: 4px; }
.spec {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border: 1px solid #4d4d4d; border-radius: 8px; background: var(--char-2); cursor: pointer;
  font-size: 15px; color: var(--on-dark); line-height: 1.35;
}
.spec:hover { border-color: #7a7a7a; }
.spec-alt { background: transparent; }
.spec input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spec .box {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #8a8a8a;
  display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.spec .box::after {
  content: ""; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0;
}
.spec input:checked + .box { background: var(--yellow); border-color: var(--yellow); }
.spec input:checked + .box::after { opacity: 1; }
.spec:has(input:checked) { border-color: var(--yellow); }
.spec input:focus-visible + .box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.order-box .spec { display: flex; margin-bottom: 0; font-size: 15px; color: var(--on-dark); }

/* ---------- WhatsApp links ---------- */
.wa-i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-i path + path { fill: currentColor; stroke: none; }
.contact-list dd.dd-wa { font: inherit; margin-top: 8px; }
.wa-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  font: 700 14.5px var(--f-body); text-decoration: none; color: #0B5D35; background: #E3F4EA; border: 1px solid #B9E2C8;
}
.wa-link:hover { background: #D2EEDD; border-color: #0B5D35; }

/* ---------- Quick contact bar (phones only) ----------
   Fixed to the bottom of the screen. JS adds .is-shown after the hero and
   removes it over the contact section, the order box, and while typing. */
.quick-bar { display: none; }
@media (max-width: 760px) {
  .quick-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--char); border-top: 1px solid rgba(255,194,14,.35);
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .quick-bar.is-shown { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  .quick-bar .btn { min-height: 48px; padding: 8px 8px; font-size: 15px; gap: 6px; white-space: nowrap; }
  .quick-bar .btn span { overflow: hidden; text-overflow: ellipsis; }
  /* keep the footer's last line clear of the bar */
  .quick-bar + .site-footer { padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom, 0px)); }
}
/* narrow phones: both labels ("استفسر عن التركيب" and "اطلب عبر واتساب") must fit on one line */
@media (max-width: 380px) { .quick-bar { padding-inline: 12px; } .quick-bar .btn { font-size: 14px; padding-inline: 6px; gap: 5px; } }
@media (max-width: 340px) { .quick-bar .wa-i { display: none; } }
/* English labels are longer ("Order on WhatsApp"): on phones the icon goes so the whole label fits on one line */
@media (max-width: 420px) { html[lang="en"] .quick-bar .wa-i { display: none; } }
@media (max-width: 340px) { html[lang="en"] .quick-bar .btn { font-size: 13.5px; padding-inline: 4px; } }

/* ---------- Payment methods (order box + footer), from CONFIG.payments in main.js ----------
   Official logos sit on white chips so every logo keeps its own colours on both dark backgrounds. */
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay-h { margin: 0; font-weight: 700; font-size: 14.5px; }
/* one row: each card is up to 92px wide and shrinks on narrow phones instead of wrapping */
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.pay-chip { flex: 0 1 92px; min-width: 0; display: grid; place-items: center; height: 36px; padding: 6px 8px; border-radius: 6px; background: #fff; }
.pay-chip img { height: 22px; width: auto; max-width: 100%; object-fit: contain; }
.pay-chip span { font: 700 13px var(--f-body); color: var(--ink); }
.pay-note { font-size: 13.5px; line-height: 1.55; }
.pay-order { padding-top: 14px; border-top: 1px solid rgba(244,242,236,.14); }
.pay-order .pay-h { color: #fff; }
.pay-order .pay-note { color: var(--on-dark-muted); }
.footer-pay { margin-top: 28px; }
.footer-pay .pay-note { color: var(--on-dark-muted); }

/* ---------- Footer: social + legal links ---------- */
.social { margin-top: 22px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(244,242,236,.3); color: var(--on-dark); text-decoration: none; font: 700 14px var(--f-body); direction: ltr;
}
.social-link:hover { border-color: var(--yellow); color: var(--yellow); }
.social-link { align-items: baseline; }
.social-link svg { align-self: center; }
.social-link b, .social-link .handle { line-height: 1.2; }
.social-link b { font-weight: 800; }
.social-link .handle { font-weight: 500; opacity: .8; }
.social-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(244,242,236,.35); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.form-privacy { font-size: 13.5px; color: var(--muted); text-align: center; }
.form-privacy a { color: var(--yellow-ink); font-weight: 700; }

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.legal-page { background: var(--paper); }
.legal-back { margin-inline-start: auto; }
.legal { max-width: 820px; padding-block: clamp(36px, 6vw, 72px); }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal-meta { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 10px; }
.legal h3 { font-size: 17px; margin: 16px 0 6px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.9; color: #2f2d29; }
.legal p + p { margin-top: 8px; }
.legal ul { margin: 6px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal li::marker { color: var(--yellow-ink); }
.draft-note { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #FFF6D6; border: 1px solid #EBCB6B; font-size: 15px; }
mark.todo { background: #FFE27A; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-nav a { color: var(--yellow-ink); font-weight: 700; }
.legal-page .site-footer { padding-block: 24px; }
.legal-page .footer-legal { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- 404.html (Cloudflare shows it for any missing link): Arabic block, then English block ---------- */
.notfound { max-width: 820px; padding-block: clamp(36px, 6vw, 72px); }
.nf-code { font: 800 clamp(72px, 12vw, 120px)/1 var(--f-num); color: var(--yellow-ink); }
.nf-block h1, .nf-block h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 8px; }
.nf-block p { font-size: 17px; line-height: 1.8; color: #2f2d29; margin-top: 8px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.nf-en { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
