/*
Theme Name: Shoaib Chauffeur Service — shoaib-chauffeur-service-theme-v1
Theme URI: https://shoaibchauffeurservice.ae
Author: WP-Flash | SerpZenith
Author URI: https://wpflash.com
Description: Bespoke theme for Shoaib Chauffeur Service. Built with WP-Flash v4.0. Design Mode A+B mixed, editorial image style, WebGL depth hero on front page, sitewide reveal/stagger animation engine, icon mega-menu navigation, auto-TOC.
Version: 1.3.0
License: Private
Text Domain: shoaib-chauffeur-service-theme-v1
*/

/* =====================================================
   CSS VARIABLES — from config/visual-identity.json
   ===================================================== */
:root {
  --color-primary: #12335C;
  --color-secondary: #0D2647;
  --color-accent: #A87A22;
  --color-accent-bright: #D9A93F;
  --color-accent-dark: #8A6119;
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-border: #DFE5EE;
  --color-text: #16202E;
  --color-text-muted: #5A6779;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --primary-rgb: 18, 51, 92;
  --accent-rgb: 168, 122, 34;
  --accent-bright-rgb: 217, 169, 63;

  --font-heading: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --radius-btn: 6px;
  --shadow-sm: 0 2px 8px rgba(18, 51, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 51, 92, 0.10);
  --shadow-lg: 0 8px 32px rgba(18, 51, 92, 0.14);
  --shadow-depth: 0 24px 60px -20px rgba(18, 51, 92, 0.35);

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 96px;
  --spacing-2xl: 128px;

  --container: 1200px;
  --container-sm: 760px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-secondary); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--color-primary); color: #fff; padding: 12px 24px;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* =====================================================
   TYPOGRAPHY
   Playfair Display is capped at H1/H2 (visual-identity.json
   headingRestriction) — Answer pages are subhead-dense and a
   display serif hurts scannability at H3 on mobile.
   ===================================================== */
h1, h2 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; color: var(--color-text-muted); }

/* Direct-answer block — first 2 sentences of every Answer page.
   This is the passage AI Overviews lift, so it is visually isolated. */
.direct-answer {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: var(--spacing-md);
  font-size: 18px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}
.direct-answer p:first-child { font-weight: 600; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--spacing-xl) 0; }
.section-lg { padding: var(--spacing-2xl) 0; }
.section--tint { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.82); }

/* Component A1 — Kicker + section header */
.kicker {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--color-primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section--dark .kicker { background: rgba(var(--accent-bright-rgb), 0.18); color: var(--color-accent-bright); }
.section-header { margin-bottom: var(--spacing-lg); }
.section-header.center { text-align: center; }
.section-sub { color: var(--color-text-muted); font-size: 18px; margin-top: 10px; max-width: 620px; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }
.section--dark .section-sub { color: rgba(255,255,255,0.75); }

/* =====================================================
   BUTTONS
   Accent-bright fill NEVER carries white text (2.17:1 on white).
   Pairing enforced here so page content cannot get it wrong.
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-secondary); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
/* 5.86:1 — navy on gold */
.btn-accent { background: var(--color-accent-bright); color: var(--color-primary); border-color: var(--color-accent-bright); }
.btn-accent:hover { background: var(--color-accent); color: var(--color-primary); }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: #fff; color: var(--color-primary); }
.btn-lg { padding: 18px 38px; font-size: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* Component A10 — click-to-call / WhatsApp */
.btn-whatsapp { background: #25D366; color: #0B2E13; border-color: #25D366; }
.btn-whatsapp:hover { background: #1DB954; color: #0B2E13; }
.phone-inline { color: var(--color-primary); font-weight: 700; white-space: nowrap; }

/* =====================================================
   3D DEPTH SYSTEM  (CSS transforms — no WebGL, no payload)
   Used site-wide including Answer pages. Cheap and safe.
   ===================================================== */
.depth-scene { perspective: 1200px; perspective-origin: 50% 40%; }
.depth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
  will-change: transform;
}
.depth-card:hover {
  transform: translateY(-6px) rotateX(2.5deg) rotateY(-2.5deg);
  box-shadow: var(--shadow-depth);
}
.depth-card > * { transform: translateZ(18px); }
.depth-card--flat > * { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .depth-card, .depth-card:hover { transform: none; transition: box-shadow 0.2s ease; }
  .depth-card > * { transform: none; }
}
@media (hover: none) {
  .depth-card:hover { transform: none; }
  .depth-card > * { transform: none; }
}

/* Layered parallax plates */
.plate { position: relative; }
.plate::before {
  content: ""; position: absolute; inset: 12px -12px -12px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.10), rgba(var(--accent-rgb),0.10));
  z-index: -1;
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 24px; max-width: var(--container); margin: 0 auto;
}
.site-logo {
  font-family: var(--font-heading); font-size: 21px; font-weight: 700;
  color: var(--color-text); letter-spacing: -0.01em; line-height: 1.1;
}
.site-logo span { color: var(--color-accent); }
.site-logo small {
  display: block; font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 600; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--color-text); }
.nav-links a:hover { color: var(--color-primary); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-btn); cursor: pointer; padding: 9px 11px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--color-text); margin: 4px 0; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 20px 24px; gap: 14px; box-shadow: var(--shadow-md);
  }
  .hamburger { display: block; }
  .header-cta .btn span.label { display: none; }
}

/* =====================================================
   HERO — front page (WebGL canvas sits behind)
   ===================================================== */
.hero-3d {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  display: flex; align-items: center;
  background: linear-gradient(160deg, #0B1E38 0%, #12335C 45%, #1B4478 100%);
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block; opacity: 0;
  transition: opacity 1.2s ease;
}
#hero-canvas.is-ready { opacity: 1; }
/* Static fallback — always painted, visible if WebGL never loads */
.hero-3d::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 70% 100%, rgba(var(--accent-bright-rgb),0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(120,180,255,0.14), transparent 70%);
}
.hero-3d .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero-inner { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--accent-bright-rgb), 0.14);
  border: 1px solid rgba(var(--accent-bright-rgb), 0.4);
  color: var(--color-accent-bright);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04; letter-spacing: -0.025em;
  color: #fff; margin-bottom: 20px; font-weight: 700;
}
.hero-title em { font-style: normal; color: var(--color-accent-bright); }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,0.82);
  max-width: 560px; margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.hero-trust .trust-item svg { flex-shrink: 0; color: var(--color-accent-bright); }
.hero-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.5); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* Inner-page hero (no WebGL — every page except the front page) */
.page-hero {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff; padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .page-hero-sub { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 660px; }
.page-hero .hero-ctas { margin-top: 26px; margin-bottom: 0; }

/* =====================================================
   TRUST ROW (A4) — SVG icons, no emoji (brand-voice rule 3)
   ===================================================== */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 22px 0; }
.trust-badge {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--color-text);
  padding: 9px 18px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 999px;
}
.trust-badge svg { color: var(--color-accent); flex-shrink: 0; }

/* =====================================================
   STATS BAR (A2)
   NOTE: every figure here must be verifiable. Job counts,
   years-in-business and star ratings are deliberately absent —
   brand-voice rule 7 forbids unverified claims.
   ===================================================== */
.stats-bar { background: var(--color-primary); color: #fff; padding: 44px 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center; max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.stat-number {
  font-family: var(--font-heading); font-size: clamp(30px, 4vw, 44px);
  font-weight: 700; line-height: 1; color: var(--color-accent-bright);
}
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 8px; }
@media (max-width: 640px) { .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* =====================================================
   GRIDS
   ===================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }

.card-icon {
  width: 54px; height: 54px;
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; font-family: var(--font-body); }
.card p { color: var(--color-text-muted); font-size: 15px; }
.card-link { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* Risk-reversal (A8) */
.risk-number {
  font-family: var(--font-heading); font-size: 62px; font-weight: 700;
  color: rgba(var(--accent-rgb), 0.16); line-height: 1;
  margin-bottom: -8px; letter-spacing: -0.04em;
}
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* =====================================================
   LOCATIONS GRID
   ===================================================== */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.location-link {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  color: var(--color-text); background: var(--color-surface);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.location-link:hover {
  border-color: var(--color-primary); color: var(--color-primary);
  transform: translateY(-2px);
}
.location-link svg { color: var(--color-accent); flex-shrink: 0; }

/* =====================================================
   VS BLOCK (A7)
   ===================================================== */
.vs-block {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start;
  padding: 40px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.vs-side h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.vs-side--them h3 { color: var(--color-text-muted); }
.vs-side--us h3 { color: var(--color-primary); }
.vs-list { list-style: none; }
.vs-list li {
  padding: 11px 0; font-size: 15px; border-bottom: 1px solid var(--color-border);
  display: flex; gap: 10px; align-items: flex-start;
}
.vs-list li:last-child { border-bottom: none; }
.vs-list svg { flex-shrink: 0; margin-top: 4px; }
.vs-side--them svg { color: var(--color-text-muted); }
.vs-side--us svg { color: var(--color-success); }
.vs-divider {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: var(--color-primary); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 14px;
}
@media (max-width: 700px) { .vs-block { grid-template-columns: 1fr; padding: 28px; } .vs-divider { display: none; } }

/* =====================================================
   FAQ ACCORDION (A5) — zero JS, native <details>
   ===================================================== */
.faq-list { max-width: var(--container-sm); }
.faq-list.full { max-width: none; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 21px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron {
  font-size: 24px; color: var(--color-accent); flex-shrink: 0;
  transition: transform 0.2s ease; font-weight: 400; line-height: 1;
}
details[open] .faq-chevron { transform: rotate(45deg); }
.faq-answer { padding: 0 0 21px; color: var(--color-text-muted); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(140deg, var(--color-primary), var(--color-secondary));
  color: #fff; text-align: center; padding: var(--spacing-xl) 0;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 580px; margin: 0 auto 28px; }
.cta-section .hero-ctas { justify-content: center; margin-bottom: 0; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--color-text-muted); padding: 18px 0;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 600; }

/* =====================================================
   ARTICLE BODY (Knowledge + Answer pages)
   ===================================================== */
.entry-content { max-width: 760px; }
.entry-content.wide { max-width: none; }
.entry-content h2 { margin: 44px 0 16px; }
.entry-content h3 { margin: 32px 0 12px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.3em; }
.entry-content li { margin-bottom: 8px; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
.entry-content th { background: rgba(var(--primary-rgb), 0.05); font-weight: 700; }
.entry-content tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; gap: 40px; } }
.sidebar-sticky { position: sticky; top: 96px; }
.sidebar-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { font-size: 18px; margin-bottom: 12px; }
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.sidebar-links li:last-child { border-bottom: none; }

/* =====================================================
   MOBILE CALL BAR (A9)
   ===================================================== */
.mobile-call-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--color-primary); box-shadow: 0 -4px 22px rgba(0,0,0,0.24);
  padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-call-bar .btn { flex: 1; padding: 13px 10px; font-size: 15px; }
@media (max-width: 767px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #0A1B31; color: rgba(255,255,255,0.75); padding: var(--spacing-xl) 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 26px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; display: block; }
.footer-brand .site-logo span { color: var(--color-accent-bright); }
.footer-brand .site-logo small { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; opacity: 0.72; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 14px; }
.footer-links a:hover { color: var(--color-accent-bright); }
.footer-contact a { color: #fff; font-weight: 700; font-size: 17px; display: block; margin-bottom: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; opacity: 0.6; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =====================================================
   404
   ===================================================== */
.error-404 { text-align: center; padding: var(--spacing-2xl) 0; }
.error-code {
  font-family: var(--font-heading); font-size: clamp(80px, 16vw, 180px);
  font-weight: 700; line-height: 1; color: rgba(var(--primary-rgb), 0.12);
}

/* =====================================================
   v1.1 — SITEWIDE ANIMATION LAYER
   Patterns from lightweight-3d-effects + scroll-reveal
   skills, implemented natively: AOS-style attributes,
   100ms staggers, 600-750ms ease, once-only, and a full
   prefers-reduced-motion bail-out.
   ===================================================== */

/* ── Reveal engine ──
   scroll.js tags content blocks with [data-av]; CSS owns the motion. */
[data-av] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(.22,.65,.3,1),
    transform 0.65s cubic-bezier(.22,.65,.3,1);
  transition-delay: var(--av-delay, 0ms);
  will-change: opacity, transform;
}
[data-av="left"]  { transform: translateX(-26px); }
[data-av="right"] { transform: translateX(26px); }
[data-av="zoom"]  { transform: scale(0.96) translateY(10px); }
[data-av].av-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  [data-av] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Reading progress bar ── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-accent-bright), var(--color-accent));
  z-index: 300; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .progress-bar { display: none; } }

/* ── Inner page hero v2: animated depth ── */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before,
.page-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); z-index: -1; pointer-events: none;
}
.page-hero::before {
  width: 480px; height: 480px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(var(--accent-bright-rgb), 0.28), transparent 65%);
  animation: orb-a 16s ease-in-out infinite alternate;
}
.page-hero::after {
  width: 380px; height: 380px; left: -120px; bottom: -200px;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.18), transparent 65%);
  animation: orb-b 20s ease-in-out infinite alternate;
}
@keyframes orb-a { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px, 40px) scale(1.15); } }
@keyframes orb-b { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, -30px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after { animation: none; }
}
/* faint grid over the hero for a technical-drawing depth cue */
.page-hero .hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 10%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 10%, black 30%, transparent 75%);
}

/* ── Animated link underline (entry content) ── */
.entry-content a:not(.btn) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
  padding-bottom: 1px;
}
.entry-content a:not(.btn):hover { background-size: 100% 1.5px; }

/* ── Button shine sweep ── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }

/* ── CTA section: slow gradient drift ── */
.cta-section {
  background: linear-gradient(130deg, var(--color-primary), var(--color-secondary), #1B4478, var(--color-primary));
  background-size: 300% 300%;
  animation: cta-drift 18s ease infinite;
}
@keyframes cta-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) { .cta-section { animation: none; background-size: 100% 100%; } }

/* ── Sticky TOC (auto-built from H2s by scroll.js) ── */
.toc-card { margin-top: 20px; }
.toc-list { list-style: none; max-height: 46vh; overflow-y: auto; }
.toc-list li { border-bottom: 1px solid var(--color-border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block; padding: 9px 2px 9px 12px;
  font-size: 14px; color: var(--color-text-muted);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
}
.toc-list a:hover { color: var(--color-primary); padding-left: 16px; }
.toc-list a.toc-active {
  color: var(--color-primary); font-weight: 600;
  border-left-color: var(--color-accent);
}

/* ═════════════════════════════════════════════════════
   NAVIGATION — icon mega-menu
   ═════════════════════════════════════════════════════ */
.nav-links { gap: 4px; }
.nav-links > li { position: relative; }

/* Top-level pills with leading icon */
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 7px;
  color: var(--color-text);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links > li > a:hover,
.nav-links > li:focus-within > a { background: rgba(var(--primary-rgb), 0.05); color: var(--color-primary); }
.mi-top-ico {
  display: inline-flex; color: var(--color-accent);
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), color 0.2s;
}
.nav-links > li > a:hover .mi-top-ico { transform: translateY(-2px) scale(1.08); }
.nav-links > li.current-menu-item > a,
.nav-links > li.current-menu-ancestor > a { color: var(--color-primary); }
.nav-links > li.current-menu-item > a::before,
.nav-links > li.current-menu-ancestor > a::before {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--color-accent); border-radius: 2px;
}

/* Caret */
.nav-links .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 3px;
  width: 6px; height: 6px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease; opacity: 0.6;
}
.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translate(-2px, -2px); opacity: 1;
}

/* ── Panel ── */
.nav-links .sub-menu {
  position: absolute; top: calc(100% + 14px); left: -10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(18,51,92,0.30), 0 2px 8px rgba(18,51,92,0.06);
  padding: 12px;
  min-width: 300px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.24s cubic-bezier(.2,.7,.3,1),
              transform 0.24s cubic-bezier(.2,.7,.3,1),
              visibility 0.24s;
  z-index: 260;
}
/* gold hairline across the top of every panel */
.nav-links .sub-menu::after {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent-bright), transparent);
  border-radius: 2px;
}
/* invisible bridge so the pointer can cross the gap */
.nav-links .sub-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-links > li:hover > .sub-menu,
.nav-links > li:focus-within > .sub-menu,
.nav-links > li.open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

/* Two-column panel when there are 5+ children */
.nav-links > li.has-mega > .sub-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(232px, 1fr));
  gap: 2px 6px;
  width: max-content; max-width: min(92vw, 620px);
}
/* flip alignment near the right edge (class set by scroll.js) */
.nav-links > li.flip-right > .sub-menu {
  left: auto; right: -10px; transform-origin: top right;
}

/* ── Items: icon tile + label + description ── */
.nav-links .sub-menu li { border: none; }
.nav-links .sub-menu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--color-text);
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-links .sub-menu a:hover { background: rgba(var(--primary-rgb), 0.055); transform: translateX(2px); }
.mi-ico {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(var(--accent-bright-rgb),0.20), rgba(var(--primary-rgb),0.07));
  color: var(--color-accent);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.nav-links .sub-menu a:hover .mi-ico {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-accent-bright);
  transform: rotate(-4deg) scale(1.06);
}
.mi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mi-label {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--color-text);
}
.mi-desc {
  font-size: 12px; line-height: 1.4; color: var(--color-text-muted);
  font-weight: 400; letter-spacing: 0;
}
.nav-links .sub-menu a:hover .mi-label { color: var(--color-primary); }

/* "All services →" footer row spans both columns */
.nav-links .sub-menu .menu-all { grid-column: 1 / -1; margin-top: 4px; }
.nav-links .sub-menu .menu-all a {
  justify-content: center; gap: 8px;
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--color-primary);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 12px;
}
.nav-links .sub-menu .menu-all a:hover { background: var(--color-primary); color: #fff; transform: none; }

/* ── Mobile ── */
@media (max-width: 980px) {
  .nav-links.open {
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 16px 20px 28px;
    gap: 2px;
  }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { width: 100%; padding: 13px 10px; font-size: 15px; }
  .nav-links .menu-item-has-children > a::after { margin-left: auto; }
  .nav-links .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border: none; border-radius: 0;
    padding: 2px 0 10px 8px; min-width: 0; width: auto; max-width: none;
    border-left: 2px solid var(--color-border); margin-left: 12px;
  }
  .nav-links .sub-menu::after, .nav-links .sub-menu::before { display: none; }
  .nav-links > li.has-mega > .sub-menu { grid-template-columns: 1fr; width: auto; max-width: none; }
  .nav-links li.open > .sub-menu { display: grid; }
  .nav-links > li:not(.has-mega).open > .sub-menu { display: block; }
  .mi-ico { width: 30px; height: 30px; border-radius: 8px; }
  .mi-desc { display: none; }   /* labels only on mobile — keeps the list scannable */
}

/* ── Back to top ── */
.back-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 850;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--color-secondary); }
@media (min-width: 768px) { .back-top { bottom: 26px; } }

/* ── Entry-content polish for long pages ── */
.entry-content h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}
.entry-content h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 56px; height: 2px; background: var(--color-accent);
}
.entry-content tr { transition: background 0.15s ease; }
.entry-content tbody tr:hover { background: rgba(var(--accent-rgb), 0.05); }
.direct-answer { transform-style: preserve-3d; }

/* subtle scrollbar, matches palette */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #B9C4D6; border-radius: 6px; border: 3px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* =====================================================
   v1.2 — TYPOGRAPHY & FINISH OVERHAUL
   Marcellus (display serif, engraved-plate feel) + Inter.
   Overrides earlier rules; loaded last in this file.
   ===================================================== */

body {
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;   /* aligned digits in tables & prices */
  letter-spacing: 0.001em;
}

/* Marcellus ships one weight — 400. Force it or browsers faux-bold it. */
h1, h2, .hero-title, .stat-number, .site-logo, .error-code {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.12; }
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.18; }
h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.6vw, 26px); }

.hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; letter-spacing: 0.005em; }
.hero-title em { font-style: italic; }

/* Kickers & labels: Inter, wide tracking — the engraved-plate pairing */
.kicker, .ed-kicker, .hero-badge, .section-label {
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11.5px;
}
.hero-badge { font-size: 12px; letter-spacing: 0.1em; }

/* Buttons: quieter, sharper, tracked small caps */
.btn {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 4px;
}
.btn-lg { padding: 18px 38px; font-size: 14px; }
.btn-sm { padding: 11px 20px; font-size: 12.5px; }

/* Navigation */
.nav-links a { font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; }
.nav-links .sub-menu a { font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.site-logo { font-size: 20px; letter-spacing: 0.03em; }
.site-logo span { color: var(--color-accent); }
.site-logo small { letter-spacing: 0.22em; font-weight: 500; }

/* ── Long-form content: measure, rhythm, lead ── */
.entry-content { max-width: 720px; }
.entry-content p { margin-bottom: 1.35em; }
.entry-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text);
}
.entry-content h2 {
  margin: 60px 0 20px;
  padding-bottom: 12px;
}
.entry-content h2::after { width: 44px; height: 2px; }
.entry-content h3 { margin: 36px 0 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.35em 1.2em; }
.entry-content li { margin-bottom: 10px; padding-left: 4px; }
.entry-content li::marker { color: var(--color-accent); font-weight: 600; }

/* Quick-answer block — framed exhibit, not a stripe */
.direct-answer {
  border: 1px solid var(--color-border);
  border-left: none;
  border-top: 3px solid var(--color-accent-bright);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 30px 24px;
  position: relative;
  margin-top: 34px;
}
.direct-answer::before {
  content: "Quick answer";
  position: absolute;
  top: -12px; left: 22px;
  background: var(--color-accent-bright);
  color: var(--color-primary);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 3px;
}
.direct-answer p:first-child { font-weight: 500; font-size: 18px; }

/* Tables: navy header band, tabular digits */
.entry-content table { font-size: 15px; box-shadow: var(--shadow-sm); }
.entry-content th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: none;
}
.entry-content td { font-variant-numeric: tabular-nums; }

/* FAQ refinement */
.faq-question { font-family: var(--font-body); font-weight: 600; font-size: 16.5px; }
.faq-chevron {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
}

/* Stats bar: engraved numerals */
.stat-number { letter-spacing: 0.02em; }
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

/* Page hero: give the H1 the plate treatment */
.page-hero { padding: 78px 0 64px; }
.page-hero h1 { max-width: 820px; }
.page-hero .page-hero-sub { font-size: 17.5px; line-height: 1.7; }

/* Front-page hero: text shield over the drive scene */
.hero-3d .hero-inner {
  position: relative;
}
.hero-3d .hero-inner::before {
  content: ""; position: absolute; inset: -48px -64px -48px -48px;
  background: radial-gradient(ellipse 90% 100% at 30% 50%, rgba(10,27,49,0.62), transparent 78%);
  z-index: -1; border-radius: 24px;
}
.hero-sub { font-size: clamp(16px, 1.8vw, 19px); font-weight: 400; }
.hero-trust .trust-item { font-size: 13px; letter-spacing: 0.04em; font-weight: 500; }

/* Cards & sidebar */
.card-title { font-weight: 600; font-size: 19px; }
.sidebar-card h3 { font-family: var(--font-heading); font-weight: 400; font-size: 20px; letter-spacing: 0.01em; }
.toc-list a { font-size: 13.5px; }

/* Footer */
.footer-col h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9;
}
.footer-links a { font-size: 14px; }
.footer-contact a { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.02em; }
.footer-bottom { font-size: 12.5px; letter-spacing: 0.02em; }

/* Breadcrumb */
.breadcrumb { font-size: 12.5px; letter-spacing: 0.02em; }

/* Selection color — small thing, reads intentional */
::selection { background: rgba(var(--accent-bright-rgb), 0.35); color: var(--color-text); }

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .site-footer, .mobile-call-bar, #hero-canvas, .cta-section { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}
