/* ============================================================
   AT Sports — Eleventy rebuild
   Dual theme: dark (default, "stunning") + light (mimics current)
   ============================================================ */

/* ---------- Tokens ---------- */
/* Brand: navy #223354 + brick red #9A1A1E (sampled from the AT Sports logo).
   Blue = brand/structure/info, Red = action/CTA. No teal. */
:root {
  --navy: #223354;
  --blue: #2f4f9c;
  --blue-bright: #3a63b5;
  --red: #c01f27;
  --red-deep: #9a1a1e;
  --brand: #3a63b5;   /* interactive blue (readable on dark) */
  --brand-2: #d8323b; /* accent red (readable on dark) */
  --grad: #9a1a1e;        /* red — buttons/CTAs (flat, PLAE-clean) */
  --grad-blue: #2a4488;   /* blue — headlines/numbers (flat) */
  --grad-soft: linear-gradient(100deg, rgba(47,79,156,.18), rgba(192,31,39,.14));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(8,15,30,.06), 0 4px 14px rgba(8,15,30,.05);
  --shadow-lg: 0 24px 60px -22px rgba(8,15,30,.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* DARK (default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060912;
  --bg-2: #0a0f1c;
  --surface: rgba(255, 255, 255, .035);
  --surface-solid: #0e1524;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eaf1fb;
  --text-mut: #9fb0c6;
  --text-dim: #6c7f99;
  --hero-glow-1: rgba(47, 79, 156, .52);
  --hero-glow-2: rgba(192, 31, 39, .30);
  --logo-filter: none;
  --card-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --nav-bg: rgba(8, 12, 22, .72);
  --footer-bg: #05080f;
  --on-grad: #ffffff;
}

/* LIGHT (mimics current site) */
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --border: #e6ecf4;
  --border-strong: #d4deeb;
  --text: #0a2540;
  --text-mut: #4d6076;
  --text-dim: #7488a0;
  --hero-glow-1: rgba(47, 79, 156, .18);
  --hero-glow-2: rgba(192, 31, 39, .12);
  --logo-filter: invert(1) brightness(.1) contrast(1.6);
  --card-shadow: var(--shadow-lg);
  --nav-bg: rgba(255, 255, 255, .85);
  --footer-bg: #223354;
  --on-grad: #ffffff;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--grad); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--text-mut); font-size: 1.1rem; margin-top: 16px; }
.lead { font-size: 1.15rem; color: var(--text-mut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem; padding: 13px 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: var(--on-grad); }
.btn--primary:hover { transform: translateY(-2px); background: #7f1417; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn--call { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--call:hover { border-color: var(--brand-2); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { height: 30px; width: auto; max-width: none; }
.brand .mark-light { display: none; }
[data-theme="light"] .brand .mark-dark { display: none; }
[data-theme="light"] .brand .mark-light { display: block; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: .96rem; color: var(--text-mut);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link svg { width: 12px; height: 12px; opacity: .6; transition: transform .25s; }
.nav-item:hover .nav-link svg,
.nav-item.open .nav-link svg { transform: rotate(180deg); }

/* Full-width mega menu */
.nav-item { position: static; }
.dropdown {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0; transform: translateY(10px);
  background: var(--surface-solid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), transform .24s var(--ease);
  z-index: 70;
}
/* Invisible hover bridge so the cursor can cross the gap without the menu closing */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; }
.nav-item:hover .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 34px;
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start;
}
.dd-intro .dd-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 8px; }
.dd-intro h4 { font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.2; margin: 0 0 8px; }
.dd-intro p { font-size: .88rem; color: var(--text-mut); line-height: 1.55; margin: 0 0 14px; }
.dd-all {
  display: inline-flex !important; align-items: center; gap: 7px; white-space: nowrap;
  font-size: .85rem; font-weight: 600; color: var(--brand-2) !important; padding: 0 !important;
}
.dd-all span { color: var(--brand-2) !important; transition: transform .2s; display: inline-block; }
.dd-all:hover span { transform: translateX(4px); }
.dd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.dd-items a {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid transparent;
  transition: background .18s, border-color .18s, transform .18s; position: relative;
}
.dd-items a:hover { background: var(--surface); border-color: var(--border); transform: translateY(-2px); }
.dd-items a::after { content: "→"; position: absolute; top: 12px; right: 14px; color: var(--brand-2); opacity: 0; transition: opacity .18s, transform .18s; transform: translateX(-4px); }
.dd-items a:hover::after { opacity: 1; transform: none; }
.dd-items a strong { font-size: .95rem; font-weight: 600; color: var(--text); }
.dd-items a span { font-size: .82rem; color: var(--text-dim); }
.dd-items a .ddlogo { height: 22px; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 2px; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  transition: transform .25s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.05); border-color: var(--brand); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; min-height: 88vh; display: flex; align-items: center; }
.hero-video, .hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 80% at 15% 30%, var(--hero-glow-1), transparent 60%),
    radial-gradient(50% 60% at 90% 80%, var(--hero-glow-2), transparent 60%),
    linear-gradient(180deg, rgba(4,7,15,.55) 0%, rgba(4,7,15,.82) 100%);
}
[data-theme="light"] .hero::after {
  background:
    radial-gradient(60% 80% at 15% 30%, var(--hero-glow-1), transparent 60%),
    radial-gradient(50% 60% at 90% 80%, var(--hero-glow-2), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
  font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(20,224,192,.2); }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem); max-width: 16ch; letter-spacing: -.03em; font-weight: 800;
}
.hero h1 .grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-mut); max-width: 52ch; margin: 24px 0 36px; }
[data-theme="dark"] .hero p { color: #c7d4e6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 38px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat strong { font-size: 2rem; font-weight: 800; display: block; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { font-size: .9rem; color: var(--text-mut); }

/* ---------- Marquee / trust ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust .wrap { display: flex; align-items: center; gap: 30px; padding: 26px 24px; flex-wrap: wrap; justify-content: center; }
.trust p { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.trust .pill { font-weight: 700; color: var(--text-mut); font-size: 1.05rem; opacity: .85; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--card-shadow); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-mut); font-size: .98rem; }
.card .ico-box {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px; color: var(--brand);
}
.card .ico-box svg { width: 22px; height: 22px; }

/* Product card (image + logo) */
.prod-card { padding: 0; display: flex; flex-direction: column; }
.prod-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.prod-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod-card:hover .media img { transform: scale(1.06); }
.prod-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(4,7,15,.28)); }
.prod-card .body { padding: 24px; }
.prod-card .body .blogo { display: block; height: 30px; width: auto; margin-bottom: 14px; filter: var(--logo-filter); }
.prod-card .body .tg { color: var(--brand-2); font-weight: 600; font-size: .9rem; }
.prod-card .body h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.prod-card .body p { color: var(--text-mut); font-size: .96rem; }
.prod-card .feats { margin-top: 16px; display: grid; gap: 8px; }
.prod-card .feats li { display: flex; gap: 9px; font-size: .9rem; color: var(--text-mut); align-items: center; }
.prod-card .feats li svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; }

/* Sport tiles */
.sport-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--border); }
.sport-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sport-tile:hover img { transform: scale(1.08); }
.sport-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4,7,15,.9)); }
.sport-tile .meta { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.sport-tile .meta h3 { color: #fff; font-size: 1.5rem; }
.sport-tile .meta p { color: rgba(255,255,255,.82); font-size: .9rem; margin-top: 6px; }
.sport-tile .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; font-size: .72rem; font-weight: 700;
  background: var(--grad); color: var(--on-grad); padding: 6px 12px; border-radius: 999px; letter-spacing: .02em;
}

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.split p { color: var(--text-mut); margin-top: 16px; font-size: 1.08rem; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; margin-top: 1px; }
.check-list li b { font-weight: 600; }

/* Call band */
.callband { position: relative; overflow: hidden; border-radius: 26px; padding: 60px; background: var(--surface-solid); border: 1px solid var(--border); }
.callband::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: .8; }
.callband::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, var(--hero-glow-1), transparent 65%); }
.callband .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.callband h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 18ch; }
.callband p { color: var(--text-mut); margin-top: 12px; max-width: 46ch; }
.callband .phone-xl { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 12px; }
.callband .phone-xl:hover { color: var(--brand-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; }
.step .n { font-size: .9rem; font-weight: 800; color: var(--on-grad); background: var(--grad); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-mut); font-size: .95rem; }

/* Order / text flow phone mock */
.phone-mock { max-width: 330px; margin: 0 auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 34px; padding: 16px; box-shadow: var(--card-shadow); }
.phone-mock .screen { background: var(--bg-2); border-radius: 22px; padding: 18px 14px; min-height: 460px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.bubble.them { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.you { background: var(--grad); color: var(--on-grad); align-self: flex-end; border-bottom-right-radius: 5px; font-weight: 500; }
.phone-mock .hdr { text-align: center; font-size: .8rem; color: var(--text-dim); padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* Gallery */
.gallery { columns: 3; column-gap: 16px; }
.gallery img { width: 100%; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--border); }

/* Color swatches */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.swatch { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.swatch span { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: .72rem; color: var(--text-dim); }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .s strong { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.statband .s span { color: var(--text-mut); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-mut); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .98rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.info-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; }
.info-row strong { display: block; font-size: 1rem; }
.info-row a, .info-row span { color: var(--text-mut); }

/* Page hero (interior) */
.page-hero { padding: 88px 0 40px; position: relative; }
.page-hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 320px; background: radial-gradient(60% 100% at 20% 0%, var(--hero-glow-1), transparent 70%); z-index: -1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-hero p { color: var(--text-mut); font-size: 1.15rem; margin-top: 18px; max-width: 56ch; }
.crumb { font-size: .85rem; color: var(--text-dim); margin-bottom: 18px; }
.crumb a:hover { color: var(--brand-2); }

/* Image-backed page hero — premium, full-bleed with gradient overlay */
.page-hero--img { padding: 0; margin-bottom: 8px; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero--img::after { display: none; }
.page-hero--img .page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--img .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.page-hero--img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(55% 90% at 12% 20%, var(--hero-glow-1), transparent 60%),
    radial-gradient(45% 80% at 95% 100%, var(--hero-glow-2), transparent 62%),
    linear-gradient(180deg, rgba(4,7,15,.45) 0%, rgba(4,7,15,.88) 92%);
}
[data-theme="light"] .page-hero--img::before {
  background:
    radial-gradient(55% 90% at 12% 20%, var(--hero-glow-1), transparent 60%),
    radial-gradient(45% 80% at 95% 100%, var(--hero-glow-2), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.9) 92%);
}
.page-hero--img .page-hero-inner { position: relative; z-index: 2; padding: 80px 0 52px; }
.page-hero--img .crumb { color: var(--text-mut); }
.page-hero--img h1 { max-width: 20ch; }
.page-hero--img p { max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #cdd9e8; padding: 72px 0 32px; border-top: 1px solid var(--border); }
[data-theme="light"] .site-footer { color: #c6d3e4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #7f93ad; margin-bottom: 18px; }
.footer-grid a { display: block; padding: 6px 0; color: #b8c6d8; font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { color: #93a6bd; font-size: .95rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: #b8c6d8; }
.footer-social a:hover { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7f93ad; }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 11px; padding: 13px 20px 13px 15px;
  background: var(--grad); color: var(--on-grad); border: none; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .98rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.02); }
.chat-fab .ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.chat-fab .ring svg { width: 18px; height: 18px; }
.chat-fab.hide { transform: scale(0); opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 370px; max-width: calc(100vw - 32px);
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.7); overflow: hidden;
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: var(--grad); color: var(--on-grad); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.chat-head strong { font-size: 1.02rem; display: block; }
.chat-head span { font-size: .8rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2bff9b; box-shadow: 0 0 0 3px rgba(43,255,155,.3); }
.chat-head .x { margin-left: auto; background: rgba(255,255,255,.18); border: none; color: var(--on-grad); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.chat-body { padding: 18px; height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.chat-msg { max-width: 84%; padding: 11px 15px; border-radius: 15px; font-size: .93rem; line-height: 1.45; animation: pop .3s var(--ease); }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-msg.user { background: var(--grad); color: var(--on-grad); align-self: flex-end; border-bottom-right-radius: 5px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-solid); }
.chat-quick button { font-size: .82rem; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, transform .15s; }
.chat-quick button:hover { border-color: var(--brand); transform: translateY(-1px); }
.chat-cta { padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface-solid); }
.chat-cta a { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; }

/* White product logos: keep white in dark theme, darken in light theme */
.brand-logo { filter: var(--logo-filter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(5px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s cubic-bezier(.16,1,.3,1); transition-delay: var(--rd, 0s); will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; filter: none; transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { columns: 2; }
}
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; flex-shrink: 0; }
  .nav-mobile { display: block; }
  .site-header .theme-toggle { display: none; }
}
/* Compact phone header: logo left, icon call + hamburger right — nothing crushed, nothing clipped */
@media (max-width: 760px) {
  .nav { gap: 12px; height: 64px; }
  .brand img { height: 26px; }
  .nav-right { gap: 8px; }
  .site-header .btn--primary { display: none; }
  .site-header .btn--call {
    font-size: 0; letter-spacing: 0; gap: 0;
    width: 42px; height: 42px; padding: 0; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .site-header .btn--call .ico { width: 19px; height: 19px; }
  .nav-mobile { inset: 64px 0 0 0; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .callband { padding: 36px 26px; }
  .callband .inner { flex-direction: column; align-items: flex-start; }
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .chat-fab span.lbl { display: none; }
}

/* Mobile nav drawer */
.nav-toggle { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.nav-mobile {
  position: fixed; inset: 72px 0 0 0; z-index: 55; background: var(--bg);
  padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
}
.nav-mobile.open { transform: none; }
.nav-mobile details { border-bottom: 1px solid var(--border); }
.nav-mobile summary { padding: 16px 4px; font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-2); }
.nav-mobile details[open] summary::after { content: "−"; }
.nav-mobile .sub a { display: block; padding: 11px 4px; color: var(--text-mut); }
.nav-mobile .m-actions { margin-top: 24px; display: grid; gap: 12px; }

/* ============================================================
   White homepage variant — a lighter, editorial alternate style
   ============================================================ */
.hero-white { padding: 64px 0 32px; position: relative; overflow: hidden; }
.hero-white::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: 0;
  background:
    radial-gradient(46% 100% at 10% 0%, var(--hero-glow-1), transparent 70%),
    radial-gradient(40% 90% at 96% 8%, var(--hero-glow-2), transparent 72%);
}
.hw-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.hw-copy h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); letter-spacing: -.03em; color: var(--navy); }
.hw-copy h1 .red { color: var(--red); }
.hw-copy p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-mut); max-width: 46ch; margin: 22px 0 32px; }
.hw-media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.hw-media video, .hw-media img { width: 100%; height: 100%; object-fit: cover; }
.hw-accent { position: absolute; left: -9px; top: 26px; width: 6px; height: 128px; background: var(--grad); border-radius: 6px; z-index: 3; }
.hw-pill {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; background: rgba(255,255,255,.94); color: var(--navy);
  font-weight: 700; font-size: .8rem; padding: 9px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-sm);
}
.hw-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(192,31,39,.18); }
.hw-strip { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hw-strip .s strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.hw-strip .s span { font-size: .86rem; color: var(--text-mut); }

/* Fixed Dark / White homepage switcher */
.home-switch {
  position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; gap: 4px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px; box-shadow: var(--card-shadow);
}
.home-switch a { font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--text-mut); transition: color .2s; }
.home-switch a:hover { color: var(--text); }
.home-switch a.active { background: var(--grad); color: #fff; }

@media (max-width: 880px) {
  .hw-grid { grid-template-columns: 1fr; gap: 30px; }
  .hw-media { order: -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .home-switch { left: 12px; bottom: 12px; }
}

/* ===== Court Answers (guides) ===== */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.article p, .article li { color: var(--text-mut); line-height: 1.75; font-size: 1.05rem; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); }
.article a { color: var(--accent, #c94f4f); text-decoration: underline; text-underline-offset: 3px; }
.article .costbox { border: 1px solid var(--border); background: var(--bg-2); border-radius: 14px; padding: 22px 26px; margin: 26px 0; }
.article .costbox h3 { margin-top: 0; }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .98rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-mut); }
.article th { color: var(--text); font-weight: 600; }
.faqs { max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; }
.faqs h2 { margin-bottom: 18px; }
.faqs details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--bg-2); }
.faqs summary { cursor: pointer; padding: 16px 20px; font-weight: 600; }
.faqs details p { padding: 0 20px 16px; color: var(--text-mut); line-height: 1.7; margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.guide-card { border: 1px solid var(--border); background: var(--bg-2); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, border-color .25s ease; }
.guide-card:hover { transform: translateY(-4px); border-color: var(--accent, #c94f4f); }
.guide-card .tag { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); }
.guide-card h3 { font-size: 1.15rem; line-height: 1.35; }
.guide-card p { color: var(--text-mut); font-size: .95rem; line-height: 1.6; flex: 1; }
.guide-card .more { font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) { .article table { display: block; overflow-x: auto; } }
