/* =========================================================
   Al Qustas Automatic Transmission — Site Styles
   Single stylesheet, mobile-first, no external CSS deps.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg-dark: #0B0E13;
  --bg-dark-2: #131822;
  --bg-dark-3: #1B2230;
  --surface: #FFFFFF;
  --surface-alt: #F7F6F3;
  --surface-alt-2: #EFEDE7;
  --text: #0F1419;
  --text-muted: #5B6470;
  --text-light: #8B95A1;
  --text-on-dark: #F2F4F7;
  --text-on-dark-muted: #98A2B3;
  --brand: #E11D2E;
  --brand-dark: #B5141F;
  --brand-light: #FF3B4D;
  --brand-soft: rgba(225, 29, 46, 0.10);
  --accent: #F4B400;
  --border: #E5E2DA;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 20, 25, 0.12);
  --shadow-card: 0 1px 0 rgba(15, 20, 25, 0.04), 0 8px 24px -8px rgba(15, 20, 25, 0.08);

  /* Layout */
  --container: 1240px;
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1100px) { .container { padding: 0 2.5rem; } }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.eyebrow-on-dark { color: var(--brand-light); }
.eyebrow-on-dark::before { background: var(--brand-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.75rem;
  max-width: 22ch;
}
.section-title--center { margin-inline: auto; text-align: center; }
.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.05rem;
}
.section-lead--center { margin-inline: auto; text-align: center; }
.on-dark .section-title { color: var(--text-on-dark); }
.on-dark .section-lead { color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(225, 29, 46, 0.5);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 28px -8px rgba(225, 29, 46, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--text); }

.btn-ghost-on-dark {
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.36); }

.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand img { height: 38px; width: auto; }

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  position: relative;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.is-active { color: var(--brand); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header__call {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.site-header__call svg { width: 18px; height: 18px; color: var(--brand); }
.site-header__call small { display: block; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

@media (min-width: 980px) {
  .site-nav { display: inline-flex; }
  .site-header__call { display: inline-flex; }
}

/* Mobile menu */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text);
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.nav-toggle__bar {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 49;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu__cta { margin-top: 1.5rem; }
.mobile-menu__cta .btn { width: 100%; }
@media (min-width: 980px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(225, 29, 46, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(64, 100, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(5rem, 12vw, 8rem);
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 12px var(--brand-light);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 1.25rem;
  color: #fff;
}
.hero__title .accent {
  color: var(--brand-light);
  font-style: italic;
  font-weight: 500;
}
.hero__title .accent::after {
  content: ".";
  color: var(--brand);
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__trust {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 520px;
}
@media (min-width: 600px) { .hero__trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__trust div { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-on-dark-muted); }
.hero__trust div strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.35rem; letter-spacing: -0.01em; }

/* Hero art */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  width: 100%;
  justify-self: center;
}
.hero__art-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 80px rgba(225, 29, 46, 0.30));
}
.hero__art .badge {
  position: absolute;
  background: rgba(11, 14, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
  min-width: 200px;
  z-index: 2;
}
.hero__art .badge svg { width: 22px; height: 22px; color: var(--brand-light); flex-shrink: 0; }
.hero__art .badge strong { font-weight: 600; white-space: nowrap; display: block; }
.hero__art .badge span { color: var(--text-on-dark-muted); font-size: 0.76rem; white-space: nowrap; }
.hero__art .badge--1 { top: 2%; right: -8%; }
.hero__art .badge--2 { top: 46%; left: -14%; }
.hero__art .badge--3 { bottom: 2%; left: 4%; }

@media (max-width: 640px) {
  .hero__art { display: none; }
}

/* ---------- Strip / overlapping stats card ---------- */
.strip {
  position: relative;
  background: var(--surface-alt);
  z-index: 1;
  display: flow-root;
}
.strip__card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 5;
  margin-top: -3rem;
}
.strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.5rem 0.5rem;
  border-right: 1px solid var(--border);
}
.strip__item:last-child { border-right: 0; }
.strip__item:nth-child(2) { border-right: 0; }
.strip__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
}
.strip__icon svg { width: 22px; height: 22px; }
.strip__text { flex: 1; min-width: 0; }
.strip__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.strip__text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.8em;
}
@media (min-width: 800px) {
  .strip__card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip__item:nth-child(2) { border-right: 1px solid var(--border); }
}

/* ---------- Services ---------- */
.services { background: var(--surface-alt); }
.services__head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .services__head { grid-template-columns: 1.2fr 1fr; }
}
.services__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-card:hover h3 { color: var(--brand); }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 1.25rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--brand); color: #fff; }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.93rem; flex-grow: 1; }
.service-card__more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--brand);
}
.service-card__more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* ---------- Why Us / Promise section ---------- */
.why {
  background: var(--surface);
}
.why__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
}
.why__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}
.why__list li {
  display: flex;
  gap: 1rem;
}
.why__list .check {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.why__list .check svg { width: 20px; height: 20px; }
.why__list h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.why__list p { color: var(--text-muted); font-size: 0.95rem; }

/* Why visual: guarantee card */
.why__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.why__visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 90% 10%, rgba(225, 29, 46, 0.4), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(64, 100, 255, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.why__visual > * { position: relative; z-index: 1; }
.why__visual .seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(225,29,46,0.18);
}
.why__visual .seal svg { width: 48px; height: 48px; color: #fff; }
.why__visual h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.why__visual p { color: var(--text-on-dark-muted); }
.why__visual ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.why__visual ul li {
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-on-dark);
}
.why__visual ul li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-light);
}

/* ---------- Process ---------- */
.process { background: var(--bg-dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
.process::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(225, 29, 46, 0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(80, 120, 255, 0.10), transparent 60%);
  pointer-events: none;
}
.process > .container { position: relative; z-index: 1; }
.process__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.process__steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process__steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.step {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,0.18); }
@media (min-width: 1100px) {
  .step { border-radius: 0; border-right: 0; border-top: 0; border-bottom: 0; background: transparent; padding: 2rem 1.5rem; }
  .step + .step { border-left: 1px solid rgba(255,255,255,0.08); }
  .step:hover { background: rgba(255,255,255,0.04); }
}
.step__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-light);
  margin-bottom: 1rem;
}
.step__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(225, 29, 46, 0.12);
  color: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.step__icon svg { width: 28px; height: 28px; }
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.step p { color: var(--text-on-dark-muted); font-size: 0.93rem; }

/* ---------- Coverage / map ---------- */
.coverage { background: var(--surface-alt); }
.coverage__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) { .coverage__grid { grid-template-columns: 1fr 1.1fr; } }

.coverage__list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.coverage__list li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
}
.coverage__list li svg { width: 14px; height: 14px; color: var(--brand); }

.coverage__map {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  position: relative;
}
.coverage__map svg { width: 100%; height: auto; }
.coverage__map .pin { fill: var(--brand); }
.coverage__map .city-name { font-family: var(--font-display); font-size: 12px; fill: var(--text); font-weight: 600; }
.coverage__map .land { fill: #F0EDE5; stroke: #DCD7CB; stroke-width: 1; }
.coverage__map .hq {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.coverage__map .hq small { display:block; font-size: 0.7rem; color: var(--brand-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 100% 50%, rgba(225, 29, 46, 0.22), transparent 60%);
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
@media (min-width: 800px) { .cta-band__inner { grid-template-columns: 1.2fr 1fr; } }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
}
.cta-band p { margin-top: 1rem; color: var(--text-on-dark-muted); max-width: 50ch; }
.cta-band__phone {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}
.cta-band__phone small {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-light);
}
.cta-band__phone a.tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.015em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.cta-band__phone a.tel svg { width: 28px; height: 28px; color: var(--brand-light); }
.cta-band__phone .alt {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
}
.cta-band__phone .alt a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.2); }
.cta-band__phone .alt a:hover { border-color: var(--brand-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark-2);
  color: var(--text-on-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.site-footer__brand img { height: 38px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer__brand p { color: var(--text-on-dark-muted); font-size: 0.93rem; max-width: 36ch; }
.site-footer ul { display: grid; gap: 0.6rem; }
.site-footer ul a {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.site-footer ul a:hover { color: #fff; }
.site-footer .contact-line {
  display: flex; gap: 0.65rem; align-items: flex-start;
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  margin-bottom: 0.85rem;
}
.site-footer .contact-line svg { width: 16px; height: 16px; color: var(--brand-light); margin-top: 0.2rem; flex-shrink: 0; }
.site-footer .contact-line a { color: var(--text-on-dark); }
.site-footer .contact-line a:hover { color: var(--brand-light); }

.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}
@media (min-width: 700px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animation (used by main.js IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__art .gear { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  z-index: 100;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

/* ---------- Page header (reused for inner pages) ---------- */
.page-header {
  position: relative;
  background: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(225, 29, 46, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(225, 29, 46, 0.10), transparent 50%);
  color: var(--text-on-dark);
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}
.page-header__inner {
  position: relative;
  max-width: 760px;
  z-index: 1;
}
.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.03);
}
.page-header__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.18);
}
.page-header__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.page-header__title .accent {
  color: var(--brand-light);
  font-style: italic;
  font-weight: 600;
}
.page-header__lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 60ch;
}

/* ---------- Story (two-column) ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story__copy h2 {
  margin-top: 0.75rem;
}
.story__copy p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.7;
  max-width: 56ch;
}
.story__panel {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}
.story__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(225, 29, 46, 0.20), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(225, 29, 46, 0.10), transparent 50%);
  z-index: -1;
}
.story__panel-inner {
  display: flex;
  flex-direction: column;
}
.story__panel-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.story__panel-year {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.story__panel-divider {
  height: 1px;
  width: 56px;
  background: var(--brand);
  margin: 1.25rem 0;
}
.story__panel-stats {
  display: grid;
  gap: 1.1rem;
}
.story__panel-stats > div {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.story__panel-stats strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-on-dark);
  min-width: 3.25rem;
}
.story__panel-stats sup {
  font-size: 0.55em;
  color: var(--brand-light);
  margin-left: 0.05rem;
}
.story__panel-stats span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-on-dark-muted);
}
.story__panel-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

/* ---------- Principles (dark section, four cards) ---------- */
.principles {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.principles__head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.principles__head .section-title { color: var(--text-on-dark); }
.principles__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.principles__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.principle {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.principle::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.principle:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.principle:hover::after { transform: scaleX(1); }
.principle__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.10);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}
.principle p {
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .principles__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .principles__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Inside the workshop ---------- */
.workshop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.workshop__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}
.workshop__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.08), transparent 65%);
  z-index: 0;
}
.workshop__visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.workshop__copy h2 { margin-top: 0.75rem; }
.workshop__copy .section-lead { margin-top: 1rem; }
.workshop__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}
.workshop__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.workshop__list .check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.workshop__list .check svg { width: 14px; height: 14px; }
.workshop__list h4 {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.workshop__list p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .workshop__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .workshop__visual { margin: 0; max-width: none; }
}

/* =========================================================
   TRANSMISSION REPAIR PAGE
   ========================================================= */

/* Page header CTA row (extends .page-header) */
.page-header__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Overview (intro grid) ---------- */
.repair-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.repair-overview__copy p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.7;
  max-width: 56ch;
}
.repair-overview__copy p + p { margin-top: 1.1rem; }

@media (min-width: 900px) {
  .repair-overview__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

/* ---------- Coverage grid (six cards) ---------- */
.coverage-grid__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.coverage-grid__head .section-lead { margin-inline: auto; }
.coverage-grid__cards {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.coverage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.coverage-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.coverage-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.coverage-card__icon svg { width: 22px; height: 22px; }
.coverage-card:hover .coverage-card__icon {
  background: var(--brand);
  color: #fff;
}
.coverage-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.coverage-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .coverage-grid__cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .coverage-grid__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Severe-duty (UAE conditions, dark) ---------- */
.severe {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.severe__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.severe__copy .section-title { color: var(--text-on-dark); }
.severe__copy .section-lead { color: var(--text-on-dark-muted); margin-top: 1rem; }
.severe__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}
.severe__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.severe__icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: rgba(225, 29, 46, 0.14);
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.severe__icon svg { width: 16px; height: 16px; }
.severe__list h4 {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-on-dark);
  margin-bottom: 0.25rem;
}
.severe__list p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.severe__panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}
.severe__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
}
.severe__panel-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.severe__panel-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.severe__panel-lead {
  margin-top: 0.65rem;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.severe__signs {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.severe__signs li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}
.severe__signs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.severe__panel-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.severe__panel-link:hover { border-color: var(--brand-light); }
.severe__panel-link svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .severe__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Repair process (4-step) ---------- */
.repair-process__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.repair-process__head .section-lead { margin-inline: auto; }
.repair-process__steps {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}
.rstep {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rstep:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
}
.rstep__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.rstep h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.rstep p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .repair-process__steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .repair-process__steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Included list ---------- */
.included {
  background: var(--surface-alt);
}
.included__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.included__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.included__list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.85rem;
  align-items: start;
}
.included__check {
  grid-row: span 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.included__check svg { width: 14px; height: 14px; }
.included__list strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.included__list span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 720px) {
  .included__list { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 980px) {
  .included__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  .included__list { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   TRANSMISSION SERVICE PAGE
   ========================================================= */

/* ---------- Why fluid matters (two-column with side panel) ---------- */
.fluid-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.fluid-why__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}
.fluid-why__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.fluid-why__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  height: max-content;
}
.fluid-why__list h4 {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.fluid-why__list p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fluid-why__panel {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  isolation: isolate;
}
.fluid-why__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 29, 46, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(225, 29, 46, 0.08), transparent 50%);
  z-index: -1;
}
.fluid-why__panel-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.fluid-why__panel-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.fluid-why__panel-inner > p {
  margin-top: 0.85rem;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.fluid-why__panel-inner em {
  font-style: italic;
  color: var(--brand-light);
  font-weight: 500;
}
.fluid-why__stats {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
}
.fluid-why__stats > div {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.fluid-why__stats strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-light);
  min-width: 4.5rem;
}
.fluid-why__stats span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-on-dark);
}
.fluid-why__panel-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .fluid-why__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Service tiers (4-card pricing-style grid) ---------- */
.tiers__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.tiers__head .section-lead { margin-inline: auto; }
.tiers__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.tier--featured {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: transparent;
}
.tier--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tier__featured-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.35);
}
.tier__head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.tier--featured .tier__head { border-bottom-color: var(--border-dark); }
.tier__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.85rem;
}
.tier--featured .tier__tag {
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
}
.tier__head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.tier--featured .tier__head h3 { color: var(--text-on-dark); }
.tier__head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.tier--featured .tier__head p { color: var(--text-on-dark-muted); }
.tier__list {
  display: grid;
  gap: 0.75rem;
  flex: 1;
}
.tier__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.tier--featured .tier__list li { color: var(--text-on-dark); }
.tier__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tier__check svg { width: 12px; height: 12px; }
.tier--featured .tier__check {
  background: rgba(225, 29, 46, 0.18);
  color: var(--brand-light);
}
.tier__note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  font-style: italic;
}

@media (min-width: 720px) {
  .tiers__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .tiers__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

/* ---------- Intervals (dark, three columns) ---------- */
.intervals {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.intervals__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.intervals__head .section-title { color: var(--text-on-dark); }
.intervals__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.intervals__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.interval {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.interval:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
  background: rgba(255, 255, 255, 0.04);
}
.interval--feature {
  border-color: rgba(225, 29, 46, 0.50);
  background: rgba(225, 29, 46, 0.06);
}
.interval__km {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--brand-light);
  margin-bottom: 0.65rem;
}
.interval h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.45rem;
}
.interval p {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.intervals__foot {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  font-style: italic;
}

@media (min-width: 720px) {
  .intervals__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* =========================================================
   TRANSMISSION TEST PAGE
   ========================================================= */

/* ---------- Free-of-charge band (sits between page-header and content) ---------- */
.free-band {
  background: var(--brand);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  position: relative;
}
.free-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}
.free-band__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.free-band__icon svg { width: 28px; height: 28px; color: #fff; }
.free-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.4rem;
}
.free-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 65ch;
}
.free-band__btn {
  background: #fff !important;
  color: var(--brand) !important;
  flex-shrink: 0;
}
.free-band__btn:hover {
  background: var(--text) !important;
  color: #fff !important;
}

@media (min-width: 720px) {
  .free-band__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
  }
}

/* ---------- Methodology (vertical stepped flow) ---------- */
.methodology__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.methodology__head .section-lead { margin-inline: auto; }
.test-flow {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}
.test-flow__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.test-flow__step--last { padding-bottom: 0; }
.test-flow__marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.test-flow__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.test-flow__step:hover .test-flow__num {
  background: var(--brand);
  color: #fff;
}
.test-flow__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--border) 100%);
  margin-top: 0.5rem;
  min-height: 60px;
}
.test-flow__step--last .test-flow__line { display: none; }
.test-flow__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  flex: 1;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.test-flow__step:hover .test-flow__content {
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.test-flow__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.85rem;
}
.test-flow__content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
}
.test-flow__content > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.test-flow__points {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.test-flow__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}
.test-flow__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Symptoms (dark, 6 cards) ---------- */
.symptoms {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.symptoms__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.symptoms__head .section-title { color: var(--text-on-dark); }
.symptoms__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.symptoms__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.symptom {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.symptom:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.40);
  background: rgba(255, 255, 255, 0.05);
}
.symptom__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.75rem;
}
.symptom h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.65rem;
}
.symptom__user {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  font-style: italic;
  padding-left: 0.85rem;
  border-left: 2px solid var(--brand);
}
.symptom__cause {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
}
.symptom__cause strong {
  color: var(--text-on-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.symptoms__foot {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  font-style: italic;
}

@media (min-width: 720px) {
  .symptoms__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .symptoms__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Deliverable (split: copy + sample report card) ---------- */
.deliverable__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.deliverable__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  box-shadow: var(--shadow-card);
}
.deliverable__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.deliverable__doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
}
.deliverable__head small {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.deliverable__list {
  display: grid;
  gap: 1rem;
}
.deliverable__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.85rem;
  align-items: start;
}
.deliverable__check {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.deliverable__check svg { width: 14px; height: 14px; }
.deliverable__list strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.deliverable__list span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .deliverable__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* =========================================================
   TORQUE CONVERTER REPAIR PAGE
   ========================================================= */

/* ---------- Anatomy (4-card grid with abstract SVG visuals) ---------- */
.anatomy__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.anatomy__head .section-lead { margin-inline: auto; }
.anatomy__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.anatomy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.anatomy-card__visual {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  background: var(--surface-alt);
  border-radius: 50%;
  padding: 14px;
  transition: background 0.3s var(--ease);
}
.anatomy-card:hover .anatomy-card__visual {
  background: var(--brand-soft);
}
.anatomy-card__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.anatomy-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
}
.anatomy-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.anatomy-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: left;
}
.anatomy-card p em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

@media (min-width: 720px) {
  .anatomy__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .anatomy__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Failures (dark, 6-card grid with big numbers) ---------- */
.failures {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.failures__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.failures__head .section-title { color: var(--text-on-dark); }
.failures__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.failures__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.failure {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.failure:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.40);
}
.failure__num {
  position: absolute;
  top: 0.85rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(225, 29, 46, 0.18);
  pointer-events: none;
}
.failure h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
  margin-top: 1rem;
  padding-right: 3rem;
}
.failure p {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .failures__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .failures__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Rebuild process (horizontal compact strip) ---------- */
.rebuild__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.rebuild__head .section-lead { margin-inline: auto; }
.rebuild__strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.rstage {
  padding: 1.5rem 1.4rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.rstage:last-child { border-bottom: none; }
.rstage:hover { background: var(--surface); }
.rstage__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
}
.rstage h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.rstage p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .rebuild__strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .rstage { border-right: 1px solid var(--border); }
  .rstage:nth-child(2n) { border-right: none; }
  .rstage:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 1080px) {
  .rebuild__strip {
    grid-template-columns: repeat(6, 1fr);
  }
  .rstage { border-bottom: none; border-right: 1px solid var(--border); }
  .rstage:last-child { border-right: none; }
  .rstage:nth-child(2n) { border-right: 1px solid var(--border); }
  .rstage:last-child { border-right: none; }
}

/* ---------- Builds (3 tiers with one feature) ---------- */
.builds__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.builds__head .section-lead { margin-inline: auto; }
.builds__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.build {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.build:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.build--feature {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: transparent;
}
.build--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.build__feature-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.35);
}
.build__head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.build--feature .build__head { border-bottom-color: var(--border-dark); }
.build__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.85rem;
}
.build--feature .build__chip {
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
}
.build__head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}
.build--feature .build__head h3 { color: var(--text-on-dark); }
.build__head p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.build--feature .build__head p { color: var(--text-on-dark-muted); }
.build__list {
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.build__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
}
.build--feature .build__list li { color: var(--text-on-dark); }
.build__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.build--feature .build__list li::before { background: var(--brand-light); }

@media (min-width: 900px) {
  .builds__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* =========================================================
   DIAGNOSTIC TOOLS PAGE
   ========================================================= */

/* ---------- Why electronic + terminal-style console ---------- */
.diag-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.diag-why__grid h2 .accent-text {
  color: var(--brand);
  font-style: italic;
  font-weight: 600;
}
.diag-why__grid > div > p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.7;
  max-width: 56ch;
}
.diag-why__grid > div > p + p { margin-top: 1.1rem; }

.console {
  position: relative;
  background: #0A0E13;
  border-radius: var(--r-lg);
  border: 1px solid #20283A;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 20, 25, 0.18), 0 0 0 1px rgba(225, 29, 46, 0.06);
}
.console__chrome {
  background: linear-gradient(180deg, #1A2030 0%, #131826 100%);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #20283A;
}
.console__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.console__dot--r { background: #FF5F57; }
.console__dot--y { background: #FEBC2E; }
.console__dot--g { background: #28C840; }
.console__title {
  margin-left: 0.5rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.console__body {
  padding: 1.25rem 1.4rem 1.5rem;
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #D8E0EE;
  white-space: pre;
  overflow-x: auto;
  background:
    linear-gradient(transparent 0%, transparent 50%, rgba(255, 255, 255, 0.012) 50%, rgba(255, 255, 255, 0.012) 100%);
  background-size: 100% 4px;
}
.console__body .c-dim { color: #5B6B85; }
.console__body .c-ok { color: #28C840; font-weight: 600; }
.console__body .c-warn { color: #FEBC2E; font-weight: 600; }
.console__body .c-key { color: #7AA9FF; }
.console__body .c-val { color: #FFB8BF; font-weight: 600; }
.console__body .c-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: #28C840;
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: console-blink 1s steps(1) infinite;
}
@keyframes console-blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .console__body .c-cursor { animation: none; }
}

@media (min-width: 980px) {
  .diag-why__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Capabilities (dark, 8-card grid) ---------- */
.caps {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.caps__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.caps__head .section-title { color: var(--text-on-dark); }
.caps__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.caps__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cap:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.40);
  background: rgba(255, 255, 255, 0.05);
}
.cap__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(225, 29, 46, 0.14);
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s var(--ease);
}
.cap__icon svg { width: 22px; height: 22px; }
.cap:hover .cap__icon { background: var(--brand); color: #fff; }
.cap h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}
.cap p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .caps__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Brand coverage (6 grouped chip cards) ---------- */
.brands__head {
  max-width: 720px;
}
.brands__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.brand-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand-group:hover {
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.brand-group header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.brand-group__region {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.6rem;
}
.brand-group h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.brand-group__chips li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-alt);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.brand-group:hover .brand-group__chips li { background: var(--surface-alt-2); }
.brands__foot {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (min-width: 720px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   SPARE PARTS PAGE
   ========================================================= */

/* ---------- Two stock streams (light + dark side-by-side) ---------- */
.streams__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.streams__head .section-lead { margin-inline: auto; }
.streams__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.stream {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stream:hover { transform: translateY(-4px); }
.stream--new {
  background: var(--surface);
  border: 1px solid var(--border);
}
.stream--new:hover {
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.stream--used {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
}
.stream--used::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(225, 29, 46, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(225, 29, 46, 0.08), transparent 50%);
  z-index: -1;
}
.stream__head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.stream--used .stream__head { border-bottom-color: var(--border-dark); }
.stream__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.85rem;
}
.stream--used .stream__chip {
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
}
.stream__head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}
.stream--used .stream__head h3 { color: var(--text-on-dark); }
.stream__head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.stream--used .stream__head p { color: var(--text-on-dark-muted); }
.stream__list {
  display: grid;
  gap: 0.85rem;
  flex: 1;
}
.stream__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
}
.stream--used .stream__list li { color: var(--text-on-dark); }
.stream__list strong {
  font-weight: 700;
  margin-right: 0.25rem;
}
.stream__dot {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.stream--used .stream__dot { background: var(--brand-light); }

@media (min-width: 900px) {
  .streams__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ---------- Catalog (dark, 12-card grid) ---------- */
.catalog {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.catalog__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.catalog__head .section-title { color: var(--text-on-dark); }
.catalog__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.catalog__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 1.25rem 1.2rem 1.1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cat:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.40);
  background: rgba(255, 255, 255, 0.05);
}
.cat__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(225, 29, 46, 0.14);
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cat__icon svg { width: 18px; height: 18px; }
.cat:hover .cat__icon { background: var(--brand); color: #fff; }
.cat h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
}
.cat p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 980px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1240px) {
  .catalog__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- OEM vs Aftermarket comparison ---------- */
.vs__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.vs__head .section-lead { margin-inline: auto; }
.vs__compare {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.vs-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.vs-col--good { border-color: rgba(40, 200, 64, 0.35); }
.vs-col--good::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #28C840;
}
.vs-col--bad::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #B5141F;
  opacity: 0.8;
}
.vs-col header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
}
.vs-col__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
}
.vs-col--good .vs-col__label {
  color: #1F9C30;
  background: rgba(40, 200, 64, 0.12);
}
.vs-col--bad .vs-col__label {
  color: #B5141F;
  background: rgba(225, 29, 46, 0.10);
}
.vs-col h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vs-col ul {
  display: grid;
  gap: 0.85rem;
}
.vs-col li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.vs__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.vs__icon svg { width: 14px; height: 14px; }
.vs__icon--ok { background: rgba(40, 200, 64, 0.14); color: #1F9C30; }
.vs__icon--no { background: rgba(225, 29, 46, 0.10); color: #B5141F; }

@media (min-width: 900px) {
  .vs__compare { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ---------- Quote / parts request card ---------- */
.quote__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.quote__contact-hint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--brand-soft);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
  border-left: 3px solid var(--brand);
}
.quote__contact-hint a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.quote__contact-hint a:hover { border-bottom-color: var(--brand); }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  box-shadow: var(--shadow-card);
}
.quote-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.quote-card__doc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
}
.quote-card__head small {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote-fields {
  display: grid;
  gap: 1rem;
}
.quote-fields li {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand);
}
.quote-fields label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.quote-fields__opt {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--surface);
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
}
.quote-fields__val {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 980px) {
  .quote__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* =========================================================
   ELECTRICAL REPAIR PAGE
   ========================================================= */

/* ---------- Second-opinion banner ---------- */
.second-op {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.second-op__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
.second-op__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.second-op__icon svg { width: 28px; height: 28px; }
.second-op__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.second-op__copy p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 70ch;
}
.second-op__copy strong {
  color: var(--text);
  font-weight: 600;
}
.second-op__cta-line {
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 720px) {
  .second-op__inner {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ---------- Components (split with circuit-board SVG) ---------- */
.components__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.component-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.component-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.component-list__dot {
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.component-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.circuit-board {
  position: relative;
  background: #0B0E13;
  border: 1px solid #20283A;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 20, 25, 0.18);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.circuit-board::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(180deg, #1A2030 0%, #131826 100%);
  border-bottom: 1px solid #20283A;
}
.circuit-board::after {
  content: "circuit map · transmission electrical";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  z-index: 2;
}
.circuit-board svg {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 36px;
  display: block;
}

@media (min-width: 980px) {
  .components__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Electrical faults (dark, 6-card grid) ---------- */
.elec-faults {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.elec-faults__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.elec-faults__head .section-title { color: var(--text-on-dark); }
.elec-faults__head .section-lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}
.elec-faults__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.efault {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.efault:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.40);
  background: rgba(255, 255, 255, 0.05);
}
.efault__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.8rem;
}
.efault h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 0.65rem;
}
.efault__symptom {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  background: rgba(225, 29, 46, 0.08);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}
.efault__fix {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
}
.efault__fix strong {
  color: var(--text-on-dark);
  font-weight: 600;
  margin-right: 0.25rem;
}

@media (min-width: 720px) {
  .elec-faults__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .elec-faults__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Repair vs replace ---------- */
.repvr__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.repvr__head .section-lead { margin-inline: auto; }
.repvr__compare {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.repvr-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.repvr-col:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
}
.repvr-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  opacity: 0.85;
}
.repvr-col--replace::before { background: var(--text); opacity: 0.45; }
.repvr-col header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
}
.repvr-col__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
}
.repvr-col--replace .repvr-col__label {
  color: var(--text);
  background: var(--surface-alt);
}
.repvr-col h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.repvr-col ul {
  display: grid;
  gap: 0.65rem;
}
.repvr-col li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.repvr-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.repvr-col--replace li::before {
  background: var(--text);
  opacity: 0.4;
}

@media (min-width: 900px) {
  .repvr__compare { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* =========================================================
   GUARANTEE PAGE
   ========================================================= */

/* ---------- Covered services (6-card grid) ---------- */
.covered__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.covered__head .section-lead { margin-inline: auto; }
.covered__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cov-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.cov-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cov-card__icon svg { width: 22px; height: 22px; }
.cov-card:hover .cov-card__icon { background: var(--brand); color: #fff; }
.cov-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.cov-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
}
.cov-card__period {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.7rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  border-left: 2px solid var(--brand);
  align-self: flex-start;
}
.covered__caveat {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 70ch;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .covered__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .covered__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Certificate (split: copy + sample document) ---------- */
.cert__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cert-fields {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}
.cert-fields li {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand);
}
.cert-fields strong {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.cert-fields span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* The actual certificate mock-up */
.cert-doc {
  position: relative;
  background: #FBF9F4;
  border: 1px solid #E5E2DA;
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: 0 24px 48px rgba(15, 20, 25, 0.12), 0 4px 12px rgba(15, 20, 25, 0.04);
  overflow: hidden;
  transform: rotate(-0.5deg);
  transition: transform 0.3s var(--ease);
}
.cert-doc:hover { transform: rotate(0deg) translateY(-4px); }
.cert-doc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.cert-doc__inner {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
}
.cert-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #C9C4B5;
}
.cert-doc__brand {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.cert-doc__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}
.cert-doc__seal {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.cert-doc__seal svg { width: 100%; height: 100%; display: block; }
.cert-doc__rows {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.cert-doc__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted #D7D2C4;
  align-items: baseline;
}
.cert-doc__row:last-child { border-bottom: 0; }
.cert-doc__row--highlight {
  margin: 0.5rem -0.6rem 0;
  padding: 0.7rem 0.85rem;
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  border: 1px solid rgba(225, 29, 46, 0.2);
  border-bottom: 1px solid rgba(225, 29, 46, 0.2);
}
.cert-doc__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cert-doc__value {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}
.cert-doc__value--mono {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
}
.cert-doc__value--bold { font-weight: 700; color: var(--brand); }
.cert-doc__sign {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-top: 0.85rem;
}
.cert-doc__sign-line {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cert-doc__sign-line small {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cert-doc__sign-line span {
  display: block;
  height: 36px;
  border-bottom: 1px solid var(--text);
}
.cert-doc__sign-mark {
  display: block;
  height: 36px;
  border-bottom: 1px solid var(--text);
  position: relative;
}
.cert-doc__sign-mark svg {
  position: absolute;
  bottom: 2px;
  left: 6px;
  width: 78px;
  height: 28px;
}
.cert-doc__foot {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  padding-top: 0.85rem;
  border-top: 1px dashed #C9C4B5;
}

@media (min-width: 980px) {
  .cert__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Conditions of cover (dark, split: list + exclusions) ---------- */
.conditions {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.conditions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.conditions__col .section-title { color: var(--text-on-dark); }
.conditions__col .section-lead { color: var(--text-on-dark-muted); }
.conditions__list {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.conditions__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.conditions__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  height: max-content;
  white-space: nowrap;
}
.conditions__list h4 {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-on-dark);
  margin-bottom: 0.3rem;
}
.conditions__list p {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.exclusions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.exclusions header {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-dark);
}
.exclusions__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.65rem;
}
.exclusions h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.exclusions ul {
  display: grid;
  gap: 0.85rem;
}
.exclusions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
}
.exclusions__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.14);
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.exclusions__icon svg { width: 12px; height: 12px; }

@media (min-width: 980px) {
  .conditions__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------- Claim process (4 cards) ---------- */
.claim__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.claim__head .section-lead { margin-inline: auto; }
.claim__steps {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.claim-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.claim-step:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.30);
  box-shadow: var(--shadow-card);
}
.claim-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.claim-step:hover .claim-step__num { background: var(--brand); color: #fff; }
.claim-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.claim-step p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .claim__steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .claim__steps { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */

.gallery__head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

/* Filter pills */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gfilter {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gfilter:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.gfilter.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.25);
}

/* Tile grid (mixed sizes) */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-rows: minmax(260px, auto);
}

.g-tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-dark);
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.g-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.g-tile.is-hidden {
  display: none;
}
.g-tile__media {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-dark);
  transition: transform 0.5s var(--ease);
}
.g-tile:hover .g-tile__media {
  transform: scale(1.04);
}
.g-tile figcaption {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
}
.g-tile__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(225, 29, 46, 0.14);
  padding: 0.28rem 0.55rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.55rem;
}
.g-tile figcaption h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-on-dark);
  margin-bottom: 0.3rem;
}
.g-tile figcaption p {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Wide tiles span two columns on bigger screens */
@media (min-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1080px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .g-tile--wide {
    grid-column: span 2;
  }
  .g-tile--wide .g-tile__media { height: 320px; }
}

.gallery__placeholder-note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  max-width: 720px;
  margin-inline: auto;
}
.gallery__placeholder-note svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

/* a11y helper used on contact page heading */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Three contact-method cards ---------- */
.contact-ways {
  /* Pull the cards up so they overlap the page header slightly */
  margin-top: clamp(-3.5rem, -5vw, -5rem);
  position: relative;
  z-index: 2;
  padding-top: 0;
}
.ways__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.way {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.way:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.way__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.way__icon svg { width: 24px; height: 24px; }
.way:hover .way__icon { background: var(--brand); color: #fff; }
.way__chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.way__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}
.way__hint {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}
.way__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.005em;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  transition: gap 0.2s var(--ease);
}
.way__action svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.way:hover .way__action svg { transform: translateX(3px); }

/* WhatsApp accent variant */
.way--accent {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(15, 20, 25, 0.18);
}
.way--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.way--accent .way__icon {
  background: rgba(225, 29, 46, 0.18);
  color: var(--brand-light);
}
.way--accent:hover .way__icon { background: var(--brand); color: #fff; }
.way--accent .way__chip { color: var(--text-on-dark-muted); }
.way--accent .way__value { color: var(--text-on-dark); }
.way--accent .way__hint { color: var(--text-on-dark-muted); }
.way--accent .way__action {
  color: var(--brand-light);
  border-top-color: var(--border-dark);
}

@media (min-width: 720px) {
  .ways__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ---------- Visit (address + landmarks + map) ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.visit__address {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand);
}
.visit__addr-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.visit__addr-icon svg { width: 20px; height: 20px; }
.visit__address strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.visit__address span {
  display: block;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.visit__address span + span { margin-top: 0.4rem; }

.visit__hint {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--brand-soft);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.visit__hint strong {
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 0.4rem;
  color: var(--brand);
}

.visit__cta { margin-top: 1.5rem; }
.visit__cta .btn svg { width: 16px; height: 16px; }

.visit__map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  min-height: 320px;
  box-shadow: var(--shadow-card);
}
.visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 980px) {
  .visit__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  .visit__map { aspect-ratio: 4 / 3.4; min-height: 480px; }
}

/* ---------- Contact form section ---------- */
.form-section {
  background: var(--surface-alt);
}
.form-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-section__perks {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.form-section__perks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
}
.form-section__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.form-section__check svg { width: 12px; height: 12px; }

/* The form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

/* Success state */
.form-card__success {
  text-align: center;
  padding: 1.25rem 0;
}
.form-card__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.form-card__success-icon svg { width: 32px; height: 32px; }
.form-card__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.form-card__success p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 50ch;
  margin-inline: auto;
}
.form-card__success p a { color: var(--brand); font-weight: 600; text-decoration: none; }
.form-card__success p a:hover { text-decoration: underline; }
.form-card__again {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.form-card__again:hover { border-bottom-color: var(--brand); }

/* Form fields */
.form {
  display: grid;
  gap: 1.1rem;
}
.form__alert {
  padding: 1rem 1.1rem;
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid rgba(225, 29, 46, 0.25);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}
.form__alert strong {
  display: block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.form__alert ul { padding-left: 1.25rem; list-style: disc; }

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.form__field label small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form__required {
  color: var(--brand);
  font-size: 1em;
}
.form__field input,
.form__field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--text-light);
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}
.form__field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.form__actions {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}
.form__submit {
  justify-self: start;
}
.form__submit svg { width: 16px; height: 16px; }
.form__legal {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  font-style: italic;
}

@media (min-width: 980px) {
  .form-section__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* =========================================================
   LANGUAGE SWITCHER (header + mobile menu)
   ========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-switch:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.mobile-menu__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text) !important;
  text-decoration: none;
}

/* =========================================================
   RTL — Arabic locale overrides
   ========================================================= */

/* Swap font tokens so display & body use Arabic-first stacks in RTL.
   Latin glyphs fall back through the Arabic fonts' Latin range, then to Inter/Space Grotesk. */
[dir="rtl"] {
  --font-display: "Cairo", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans Arabic", "Cairo", "Inter", system-ui, sans-serif;
}

/* Slightly looser line-height for Arabic text */
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] .hero__title,
[dir="rtl"] .section-title,
[dir="rtl"] .page-header__title { letter-spacing: 0; }

/* Mirror the eyebrow's small accent line so it sits on the start side (right in RTL) */
[dir="rtl"] .eyebrow { padding-right: 0; padding-left: 0; }

/* Phone numbers and emails always render LTR even inside RTL parent.
   Without this, "+971 6 543 4391" displays as "4391 543 6 971+".
   We scope to the *text* elements only — broad a[href^="tel:"] would also
   catch full-card anchor wrappers (.way) and break their RTL layout. */
[dir="rtl"] .tel,
[dir="rtl"] .way__value,
[dir="rtl"] .cta-band__phone .alt a,
[dir="rtl"] .form-card__success p a,
[dir="rtl"] .site-footer .contact-line a {
  direction: ltr;
  unicode-bidi: embed;
}
/* The phone-value span in contact cards is a block-level flex item; without
   text-align, "direction: ltr" would push it to the left edge of the card.
   Pin the text back to the right (start of the surrounding RTL card). */
[dir="rtl"] .way__value { text-align: right; }

/* CTA-band phone block: pin the inline-flex tel link to the start of its
   grid cell (right edge in RTL) and right-align the surrounding small/alt
   text so the whole block visually flushes right. flex-direction: row-reverse
   keeps the phone-number digits in LTR order while moving the icon to sit
   on the right of the number, matching RTL reading flow. */
[dir="rtl"] .cta-band__phone { text-align: right; }
[dir="rtl"] .cta-band__phone a.tel {
  justify-self: start;
  flex-direction: row-reverse;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(225, 29, 46, 0.35), 0 2px 6px rgba(15, 20, 25, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-2px) scale(1);
}
.back-to-top:active {
  transform: translateY(0) scale(0.96);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s linear, visibility 0.15s linear; transform: none; }
  .back-to-top.is-visible { transform: none; }
  .back-to-top:hover { transform: none; }
}

/* List bullets that use absolute-positioned ::before dots. In LTR these sit
   at left: 0 with padding-left on the li; flip them to the right side in RTL
   so the bullet leads the text in reading direction. */
[dir="rtl"] .severe__signs li,
[dir="rtl"] .test-flow__points li,
[dir="rtl"] .build__list li {
  padding-left: 0;
  padding-right: 1.4rem;
}
[dir="rtl"] .repvr-col li {
  padding-left: 0;
  padding-right: 1.6rem;
}
[dir="rtl"] .severe__signs li::before,
[dir="rtl"] .test-flow__points li::before,
[dir="rtl"] .build__list li::before,
[dir="rtl"] .repvr-col li::before {
  left: auto;
  right: 0;
}
/* Mixed-content wrappers (header call, "alt" CTA paragraph): isolate bidi
   inside so the phone number's LTR-ness doesn't disturb surrounding Arabic. */
[dir="rtl"] .site-header__call span,
[dir="rtl"] .cta-band__phone .alt,
[dir="rtl"] .form-card__success p {
  unicode-bidi: isolate;
}

/* Flip the in-button/CTA arrow icons (→ becomes ← in RTL) */
[dir="rtl"] .btn svg:last-child,
[dir="rtl"] .service-card__more svg,
[dir="rtl"] .way__action svg,
[dir="rtl"] .lang-switch svg { transform: scaleX(-1); }

/* Hero floating badges — mirror their absolute positions horizontally */
[dir="rtl"] .hero__art .badge--1 { right: auto; left: -8%; }
[dir="rtl"] .hero__art .badge--2 { left: auto; right: -14%; }
[dir="rtl"] .hero__art .badge--3 { left: auto; right: 4%; }

/* Strip card icon margin */
[dir="rtl"] .strip__icon { margin-inline-end: 0.85rem; margin-inline-start: 0; }

/* Why list checkmark icon */
[dir="rtl"] .why__list .check { margin-inline-end: 0; }

/* Coverage list — checkmark sits to the right of text */
[dir="rtl"] .coverage__list li { direction: rtl; }

/* Footer contact lines — icon on the start side */
[dir="rtl"] .site-footer .contact-line { text-align: right; }

/* Hero CTA row natural flex flips with direction; nothing extra needed there.
   Service grid, why list, process, footer columns: all use flex/grid which
   adapt automatically to writing direction. */

/* In-card "Learn more" stays at the bottom; arrow flipped via the rule above */
[dir="rtl"] .service-card__more { direction: rtl; }

/* Form fields: align labels to the right */
[dir="rtl"] .form__field label,
[dir="rtl"] .form__field input,
[dir="rtl"] .form__field textarea { text-align: right; }
[dir="rtl"] .form__field input::placeholder,
[dir="rtl"] .form__field textarea::placeholder { text-align: right; }

/* Quote-fields & cert-fields — keep border accent on the start side */
[dir="rtl"] .quote-fields li,
[dir="rtl"] .cert-fields li,
[dir="rtl"] .visit__address,
[dir="rtl"] .efault__symptom,
[dir="rtl"] .second-op__cta-line,
[dir="rtl"] .quote__contact-hint {
  border-left: 0;
  border-right: 3px solid var(--brand);
}
