/* ============================================================================
   SAAED SERVICE — DESIGN SYSTEM
   F1 red (#E10600) + engineered off-black. Sora / IBM Plex.
   One system, 50 pages. Dark-primary, locked accent, motorsport-premium.
   ============================================================================ */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* RED — the one accent */
  --red-400: #FF453A;                 /* red as TEXT/icons on dark (5.5:1) */
  --red-500: #E10600;                 /* PRIMARY fill / CTA bg */
  --red-600: #C10500;                 /* hover */
  --red-700: #9E0400;                 /* pressed */
  --red-tint: rgba(225, 6, 0, 0.12);
  --red-glow: rgba(225, 6, 0, 0.30);

  /* Dark GRAY ramp (premium graphite, not black) */
  --black-pure: #141519;              /* deepest — footer */
  --ink-900: #1B1C21;                 /* page canvas (dark gray) */
  --ink-850: #232429;                 /* surface / cards */
  --ink-800: #2B2C33;                 /* raised surface, inputs */
  --ink-750: #383A42;                 /* strong borders on dark */

  /* Neutral ramp (cool zinc) */
  --gray-50: #F7F7F8;
  --gray-100: #ECECEE;
  --gray-200: #D6D6DA;
  --gray-400: #A1A1AA;
  --gray-600: #52525B;
  --gray-800: #27272A;
  --white: #FFFFFF;

  --success-500: #22C55E;
  --success-700: #15803D;

  /* Semantic — dark (canonical) */
  --bg: var(--ink-900);
  --surface: var(--ink-850);
  --surface-raised: var(--ink-800);
  --text-primary: #FAFAFA;
  --text-muted: var(--gray-400);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: var(--red-500);
  --accent-text: var(--red-400);
  --accent-hover: var(--red-600);
  --success: var(--success-500);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --fs-caption: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2rem, 4vw, 2.75rem);
  --fs-h1: clamp(2.75rem, 6vw, 4rem);
  --fs-display: clamp(3.25rem, 8vw, 5.5rem);

  /* Spacing (8pt) */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;  --sp-6: 24px;
  --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-32: 128px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  /* Radius */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;

  /* Signature skew */
  --skew: -7deg;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-raised: 0 20px 50px -20px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ---------- 2. RESET / BASE --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--red-500); color: var(--white); }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--text-primary); }

.display { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.5; max-width: 60ch; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-text); }
.prose p { max-width: 68ch; margin-bottom: var(--sp-4); color: var(--gray-100); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: var(--sp-12) 0 var(--sp-4); }
.prose h3 { margin: var(--sp-8) 0 var(--sp-3); }
.prose ul { margin: var(--sp-4) 0; display: grid; gap: var(--sp-3); }
.prose ul li { position: relative; padding-left: var(--sp-6); color: var(--gray-100); max-width: 66ch; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  background: var(--accent); transform: skewX(var(--skew));
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--sp-24); }
@media (min-width: 768px) { .section { padding-block: var(--sp-32); } }
.section-tight { padding-block: var(--sp-16); }
.grid { display: grid; gap: var(--sp-6); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.divider { height: 1px; background: var(--border); border: 0; }

.section-head { max-width: 46rem; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head .lead { margin-top: var(--sp-4); }

/* ---------- 5. BUTTONS --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body); letter-spacing: 0.01em;
  padding: 15px 26px; min-height: 50px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; position: relative;
  transition: transform .16s var(--ease-out-quart), background-color .16s var(--ease-out-quart),
              box-shadow .16s var(--ease-out-quart), border-color .16s var(--ease-out-quart);
  white-space: nowrap; text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px var(--red-glow); }
  .btn-ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
  .btn-light:hover { background: var(--gray-100); transform: translateY(-1px); }
}
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-light { background: var(--white); color: var(--ink-900); }
.btn-lg { padding: 18px 32px; min-height: 58px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
/* nested arrow chip */
.btn .chip {
  width: 30px; height: 30px; border-radius: var(--r-xs); margin-right: -8px; margin-left: 4px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.16);
}
.btn .chip svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out-quart); }
@media (hover: hover) { .btn:hover .chip svg { transform: translateX(2px); } }

/* ---------- 6. BADGES / PILLS / TAGS ------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-raised);
  color: var(--text-muted); border: 1px solid var(--border);
}
.badge-red { background: var(--red-tint); color: var(--accent-text); border-color: rgba(225, 6, 0, 0.25); }
.badge-green { background: rgba(34, 197, 94, 0.12); color: var(--success); border-color: rgba(34, 197, 94, 0.25); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot-pulse { animation: pulse 2s var(--ease-inout) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: .55; box-shadow: 0 0 0 4px transparent; } }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); padding: 5px 12px;
       border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--gray-100); }

/* ---------- 7. CARDS ----------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-8); overflow: hidden;
  transition: transform .22s var(--ease-out-quart), border-color .22s var(--ease-out-quart), box-shadow .22s var(--ease-out-quart);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 12px 40px var(--red-glow); }
  .card-hover:hover::before { transform: scaleX(1); }
}
.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--red-tint); color: var(--accent-text); margin-bottom: var(--sp-6); border: 1px solid rgba(225,6,0,0.2);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-6);
  font-weight: 600; font-size: var(--fs-small); color: var(--accent-text);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out-quart); }
@media (hover: hover) { .card-hover:hover .card-link svg { transform: translateX(3px); } }
a.card { color: inherit; display: block; }

/* Feature card — double bezel (hero) */
.card-feature { padding: 6px; background: linear-gradient(160deg, var(--ink-800), var(--ink-850)); border-radius: var(--r-lg); }
.card-feature > .inner { background: var(--ink-900); border-radius: calc(var(--r-lg) - 6px); padding: var(--sp-8); border: 1px solid var(--border); }

/* ---------- 8. STAT COUNTERS -------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-8); }
.stat { }
.stat .value {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 2px;
}
.stat .value .unit { font-size: 0.4em; color: var(--accent-text); }
.stat .rule { width: 40px; height: 2px; background: var(--accent); margin: var(--sp-3) 0; }
.stat .label { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase;
               letter-spacing: 0.1em; color: var(--text-muted); }

/* ---------- 9. TELEMETRY STRIP ------------------------------------------ */
.telemetry {
  display: inline-flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); padding: 10px 16px; border: 1px solid var(--border); border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
}
.telemetry .bracket { color: var(--accent-text); }
.telemetry .live { color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; }
.telemetry .sep { color: var(--ink-750); }

/* ---------- 10. HERO ----------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-16) var(--sp-24); }
.hero-inner { display: grid; gap: var(--sp-12); align-items: center; }
.hero-inner > * { min-width: 0; } /* let grid tracks shrink below the SVG's intrinsic width — prevents mobile overflow */
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-16); }
  .hero { min-height: 90dvh; display: flex; align-items: center; } }
.hero h1 { margin: var(--sp-6) 0; }
.hero .lead { margin-bottom: var(--sp-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); align-items: center; margin-top: var(--sp-8);
              padding-top: var(--sp-8); border-top: 1px solid var(--border); }
.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong);
              background: var(--ink-850); aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .hero-frame { aspect-ratio: 4 / 4.4; } }
.hero-frame img, .hero-frame svg { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: var(--sp-6); bottom: var(--sp-6); z-index: 3;
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(10, 10, 11, 0.7); backdrop-filter: blur(16px); border: 1px solid var(--border-strong);
}
.hero-chip .big { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.hero-chip .small { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
/* red speed slash behind visual */
.slash { position: absolute; z-index: 0; pointer-events: none; background: var(--accent); transform: skewX(var(--skew)); filter: blur(2px); opacity: 0.9; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before { /* faint grid */
  content: ""; position: absolute; inset: -2px;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 80% at 70% 0%, #000 20%, transparent 75%); opacity: 0.5;
}

/* ---------- 11. ANGLED SECTION / SPEED MOTIF ---------------------------- */
.angle-top { clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band-red { background: linear-gradient(120deg, var(--ink-850), var(--ink-900)); position: relative; }

/* Oversized outlined numerals — how-it-works only */
.steps { display: grid; gap: var(--sp-8); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-12); } }
.step { position: relative; padding-top: var(--sp-12); }
.step .n {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); line-height: 0.8;
  -webkit-text-stroke: 2px var(--red-500); color: transparent; letter-spacing: -0.04em; margin-bottom: var(--sp-4);
  display: block;
}
.step h3 { margin-bottom: var(--sp-3); }
.step p { color: var(--text-muted); }

/* ---------- 12. FAQ ACCORDION ------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-6);
  text-align: left; padding: var(--sp-6) 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text-primary);
}
.faq-icon { flex: none; width: 24px; height: 24px; position: relative; margin-top: 3px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--accent-text); transition: transform .3s var(--ease-out-quart); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out-quart); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: var(--sp-6); color: var(--text-muted); max-width: 70ch; }

/* ---------- 13. HEADER / NAV -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 28, 33, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid transparent; border-bottom-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: top .4s var(--ease-out-expo), background-color .4s ease, border-color .4s ease, border-radius .4s ease, box-shadow .4s ease;
  animation: hdrIn .7s var(--ease-out-expo) both;
}
@keyframes hdrIn { from { opacity: 0; } to { opacity: 1; } }
/* on scroll → the whole bar lifts into a floating, inset, rounded deck (keeps its own backdrop-filter) */
.site-header.scrolled {
  top: 10px; margin-inline: 12px;
  background: rgba(30, 31, 37, 0.92);
  border-color: var(--border-strong); border-radius: 16px;
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); height: 66px; }

.brand { display: inline-flex; align-items: center; transition: transform .3s var(--ease-out-quart); }
@media (hover: hover) { .brand:hover { transform: translateY(-1px) scale(1.03); } }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 400px) { .brand-logo { height: 34px; } }
.site-footer .brand-logo { height: 46px; }

/* nav links + sliding 3D indicator */
.nav-links { display: none; align-items: center; gap: 2px; position: relative; }
.nav-links a {
  font-size: var(--fs-small); font-weight: 500; color: var(--gray-100);
  padding: 9px 13px; border-radius: var(--r-sm); position: relative; z-index: 1;
  transition: color .18s var(--ease-out-quart), transform .28s var(--ease-out-quart);
}
@media (hover: hover) { .nav-links a:hover { color: var(--text-primary); transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); } }
.nav-links a:active { transform: translateY(0); }
/* transform-only sliding glow underline (no layout animation) */
.nav-indicator {
  position: absolute; top: 50%; left: 0; height: 3px; width: 1px;
  transform: translate(var(--ix, 0px), 15px) scaleX(var(--iw, 0));
  transform-origin: left center;
  background: var(--accent); border-radius: 3px; box-shadow: 0 0 12px 1px var(--red-glow);
  opacity: 0; z-index: 0; pointer-events: none;
  transition: transform .5s var(--ease-out-expo), opacity .3s ease;
}
.nav-links.show-ind .nav-indicator { opacity: 1; }

/* 3D pressable CTA (the "Get help now" key) */
.btn-3d { position: relative; overflow: hidden;
  box-shadow: 0 4px 0 0 var(--red-700), 0 10px 22px -6px var(--red-glow);
  transition: transform .13s var(--ease-out-quart), box-shadow .13s var(--ease-out-quart), background-color .16s; }
@media (hover: hover) { .btn-3d:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--red-700), 0 15px 30px -6px var(--red-glow); } }
.btn-3d:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--red-700), 0 5px 12px -6px var(--red-glow); }
.btn-3d::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .75s var(--ease-out-quart); }
@media (hover: hover) { .btn-3d:hover::after { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .site-header { animation: none; } .btn-3d::after { display: none; } }
.nav-cta { display: none; align-items: center; gap: var(--sp-3); }
.nav-phone { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-small); color: var(--text-primary); }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-text); }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--gray-100); padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); transition: border-color .15s, color .15s, background-color .15s; white-space: nowrap; }
.lang-switch:hover { border-color: var(--border-strong); color: var(--text-primary); background: rgba(255,255,255,0.05); }
.lang-switch svg { width: 16px; height: 16px; flex: none; }
.lang-switch-block { justify-content: center; width: 100%; padding: 15px; min-height: 50px; }
/* NB: media query AFTER the base rule — media queries add no specificity, so order decides the winner. */
@media (min-width: 1024px) { .nav-links, .nav-cta { display: flex; } .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink-900); transform: translateX(100%);
               transition: transform .35s var(--ease-out-quint); display: flex; flex-direction: column; padding: var(--sp-6) var(--gutter); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.mobile-menu nav { display: grid; gap: var(--sp-2); margin-top: var(--sp-8); }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-cta { margin-top: auto; display: grid; gap: var(--sp-3); padding-block: var(--sp-8); }

/* ---------- 14. STICKY MOBILE CALL BAR ---------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .3s var(--ease-out-quart);
}
.callbar.show { transform: translateY(0); }
.callbar .btn { flex: 1; min-height: 54px; }
.callbar .btn-wa { flex: 0 0 54px; padding: 0; }
@media (min-width: 1024px) { .callbar { display: none; } }

/* ---------- 14b. FLOATING LANGUAGE SWITCH (circular FAB) ---------------- */
/* Always-visible round button. Sits above the mobile call bar; drops to the
   corner on desktop where the call bar is hidden. Mirrors to the left in RTL
   via inset-inline-end. */
.lang-fab {
  position: fixed;
  inset-block-end: calc(88px + env(safe-area-inset-bottom));
  inset-inline-end: 16px;
  z-index: 56;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 22px var(--red-glow), 0 3px 10px rgba(0, 0, 0, 0.38);
  text-decoration: none;
  transition: transform .18s var(--ease-out-quart), box-shadow .18s ease, background-color .15s ease;
  animation: langFabIn .45s var(--ease-out-quint) both;
}
/* soft attention ring so it reads as interactive at a glance */
.lang-fab::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.55; pointer-events: none;
  animation: langFabPulse 2.6s ease-out infinite;
}
.lang-fab svg { width: 22px; height: 22px; }
.lang-fab .lang-fab-code { font-family: var(--font-mono); font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: 0.06em; }
.lang-fab:hover { background: var(--accent-hover); transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 30px var(--red-glow), 0 5px 14px rgba(0, 0, 0, 0.42); }
.lang-fab:active { transform: scale(0.97); }
.lang-fab:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@keyframes langFabIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes langFabPulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (min-width: 1024px) {
  .lang-fab { inset-block-end: 24px; inset-inline-end: 24px; width: 66px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-fab { animation: none; }
  .lang-fab::before { animation: none; opacity: 0; }
  .lang-fab:hover { transform: none; }
}

/* ---------- 15. FOOTER --------------------------------------------------- */
.site-footer { background: var(--black-pure); border-top: 1px solid var(--border); padding-block: var(--sp-24) var(--sp-12); margin-bottom: 72px; }
@media (min-width: 1024px) { .site-footer { margin-bottom: 0; } }
.footer-grid { display: grid; gap: var(--sp-12); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: var(--sp-4); font-weight: 500; }
.footer-col ul { display: grid; gap: var(--sp-2); }
.footer-col a { font-size: var(--fs-small); color: var(--gray-100); transition: color .15s; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
                 margin-top: var(--sp-16); padding-top: var(--sp-8); border-top: 1px solid var(--border); font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- 16. BREADCRUMBS --------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-small); color: var(--text-muted); padding-block: var(--sp-6); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb .sep { color: var(--ink-750); }

/* ---------- 17. FORMS ---------------------------------------------------- */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-small); font-weight: 500; color: var(--gray-100); }
.field input, .field textarea, .field select {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--text-primary); transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-600); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--red-tint); }
.form-note { font-size: var(--fs-caption); color: var(--text-muted); }

/* ---------- 18. CTA BAND ------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(120deg, #17070a, var(--ink-850)); border: 1px solid var(--border-strong); padding: var(--sp-16) var(--gutter); text-align: center; }
.cta-band .slash-accent { position: absolute; top: 0; right: -60px; width: 220px; height: 140%; background: var(--red-tint); transform: skewX(var(--skew)); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band .lead { margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.cta-band .wm { position: absolute; right: -30px; bottom: -30px; width: 320px; max-width: 45%; opacity: 0.07; z-index: 0; pointer-events: none; filter: grayscale(1) brightness(2); }

/* ---------- 18b. PHOTO HERO + MEDIA ---------------------------------------- */
.hero-photo { position: relative; overflow: hidden; min-height: 92dvh; display: flex; align-items: center; padding-block: var(--sp-24); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(20,21,25,0.94) 0%, rgba(20,21,25,0.82) 38%, rgba(20,21,25,0.42) 72%, rgba(20,21,25,0.28) 100%),
    linear-gradient(0deg, rgba(20,21,25,0.85) 0%, rgba(20,21,25,0.05) 50%); }
.hero-photo > .container { position: relative; z-index: 2; width: 100%; }
.hero.has-photo > .container { position: relative; z-index: 2; }
.hero-photo .hero-copy { max-width: 40rem; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

/* Photo band — section with a photo background + content over a scrim */
.photo-band { position: relative; overflow: hidden; }
.pb-media { position: absolute; inset: 0; z-index: 0; }
.pb-media img { width: 100%; height: 100%; object-fit: cover; }
.pb-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(92deg, rgba(20,21,25,0.96) 0%, rgba(20,21,25,0.86) 45%, rgba(20,21,25,0.55) 100%); }
.photo-band > .container { position: relative; z-index: 2; }

/* Split feature: photo one side, copy the other */
.feature-split { display: grid; gap: var(--sp-12); align-items: center; }
@media (min-width: 900px) { .feature-split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .feature-split.reverse .fs-media { order: 2; } }
.feature-split > * { min-width: 0; }
.fs-media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); aspect-ratio: 4/3; }
.fs-media img { width: 100%; height: 100%; object-fit: cover; }
.fs-media .fs-tag { position: absolute; left: var(--sp-4); bottom: var(--sp-4); }

/* Gallery — real work, bento grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); grid-auto-flow: dense; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--surface); }
.gallery figure.wide { grid-column: span 2; }
@media (max-width: 520px) { .gallery figure.wide { grid-column: span 1; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-quart); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.06); } }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: var(--sp-6) var(--sp-4) var(--sp-3); font-size: var(--fs-small); color: #fff;
  background: linear-gradient(0deg, rgba(15,16,19,0.9), transparent); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@media (hover: hover) { .gallery figure:hover figcaption { opacity: 1; transform: none; } }
@media (hover: none) { .gallery figcaption { opacity: 1; } }

/* ---------- 19. LIST / FEATURE ROWS ------------------------------------- */
.check-list { display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--gray-100); }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--accent-text); margin-top: 1px; }
.symptom-list { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.symptom-list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.symptom-list li svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }

/* ---------- 20. PILL ROW / CHIP GRID ------------------------------------ */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag svg { width: 15px; height: 15px; flex: none; color: var(--accent-text); }
/* review card attribution: keep the pin inline + small (global svg is display:block) */
.card figcaption { display: flex; align-items: center; gap: var(--sp-2); }
.card figcaption svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.card blockquote p { color: var(--gray-100); }

/* ---------- 21. MOTION UTILITIES ---------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
[data-reveal-blur] { filter: blur(6px); }
[data-reveal-blur].in { filter: none; }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .slash, .dot-pulse { animation: none !important; }
}

/* ---------- 21b. RTL / ARABIC ------------------------------------------- */
[dir="rtl"] { --font-body: 'Tajawal', system-ui, sans-serif; --font-display: 'Tajawal', system-ui, sans-serif; }
/* Arabic doesn't uppercase, and letter-spacing breaks letter-joining — kill both. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .display { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .badge, [dir="rtl"] .telemetry, [dir="rtl"] .stat .label,
[dir="rtl"] .footer-col h4, [dir="rtl"] .tag, [dir="rtl"] .nav-phone, [dir="rtl"] .btn, [dir="rtl"] .faq-q {
  font-family: 'Tajawal', system-ui, sans-serif; letter-spacing: normal; text-transform: none;
}
[dir="rtl"] .telemetry { font-size: var(--fs-small); }
/* bullets, chips, arrows mirror */
[dir="rtl"] .prose ul li { padding-left: 0; padding-right: var(--sp-6); }
[dir="rtl"] .prose ul li::before { left: auto; right: 0; }
[dir="rtl"] .eyebrow::before { }
[dir="rtl"] .btn .chip { margin-right: 4px; margin-left: -8px; }
[dir="rtl"] .btn .chip svg, [dir="rtl"] .card-link svg { transform: scaleX(-1); }
@media (hover: hover) {
  [dir="rtl"] .btn:hover .chip svg { transform: scaleX(-1) translateX(2px); }
  [dir="rtl"] .card-hover:hover .card-link svg { transform: scaleX(-1) translateX(3px); }
}
/* photo scrims darken the reading (right) side in RTL */
[dir="rtl"] .hero-scrim { background:
  linear-gradient(264deg, rgba(20,21,25,0.94) 0%, rgba(20,21,25,0.82) 38%, rgba(20,21,25,0.42) 72%, rgba(20,21,25,0.28) 100%),
  linear-gradient(0deg, rgba(20,21,25,0.85) 0%, rgba(20,21,25,0.05) 50%); }
[dir="rtl"] .pb-scrim { background: linear-gradient(268deg, rgba(20,21,25,0.96) 0%, rgba(20,21,25,0.86) 45%, rgba(20,21,25,0.55) 100%); }
[dir="rtl"] .cta-band .wm { right: auto; left: -30px; }
[dir="rtl"] .cta-band .slash-accent { right: auto; left: -60px; }
[dir="rtl"] .lang-switch { direction: ltr; }

/* ---------- 22. UTILITIES ------------------------------------------------ */
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-8 { margin-bottom: var(--sp-8); }
.flex { display: flex; } .items-center { align-items: center; } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.wrap { flex-wrap: wrap; }
.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; }
/* hidden off the TOP (not the side) so it never causes horizontal overflow in RTL */
.skip-link { position: fixed; top: -80px; left: var(--sp-4); z-index: 100; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); transition: top .2s ease; }
.skip-link:focus { top: var(--sp-4); }
.rating-stars { color: #F5B301; letter-spacing: 2px; }

/* Two-column content layout for service/location pages */
.doc { display: grid; gap: var(--sp-16); align-items: start; }
.doc > * { min-width: 0; }
@media (min-width: 960px) { .doc { grid-template-columns: 1fr 340px; gap: var(--sp-24); } }
.doc-aside { position: sticky; top: 90px; display: grid; gap: var(--sp-6); }
.aside-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: var(--sp-6); }
.aside-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.aside-card .price-note { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--sp-4); }
