/* ------------------------------------------------------------------
   Clubhouse Links — windows, doors and siding brokerage for DFW
   Palette and type follow the Clubhouse Links brand style guide:
   Midnight Navy backgrounds, Deep Blue cards, Electric Blue primary,
   Construction Orange for the conversion action, Neon Purple / Pink
   as accents. Poppins for headings, Inter for body and controls.
   Layout idea: a single "flight path" runs down the page and the
   mascot (Sparky the bluebird) flies along it from section to section.
------------------------------------------------------------------- */

:root {
  --navy: #080B24;
  --navy-2: #0C1130;
  --deep: #111A45;
  --deep-2: #182459;
  --blue: #00C8FF;
  --blue-dim: rgba(0, 200, 255, .14);
  --blue-line: rgba(0, 200, 255, .32);
  --orange: #FF8C00;
  --orange-hi: #FFA733;
  --purple: #A020F0;
  --pink: #FF3EDB;
  --gray: #A8B3C7;
  --gray-2: #7D889E;
  --white: #FFFFFF;
  --ink: #080B24;

  --grad: linear-gradient(90deg, #00C8FF 0%, #A020F0 50%, #FF3EDB 100%);

  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-card: 16px;
  --r-ctl: 12px;
  --r-pill: 999px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(16px, 5vw, 56px);
  --container: 1200px;
  --measure: 60ch;

  --t-fast: 160ms;
  --t-base: 280ms;
  --ease: cubic-bezier(.22, .72, .18, 1);

  --shadow-card: 0 10px 30px rgba(3, 5, 20, .45);
  --focus: 0 0 0 3px var(--navy), 0 0 0 6px var(--blue);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 var(--s2); letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.625rem); }
h3 { font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-weight: 600; font-size: 1.0625rem; }
p { margin: 0 0 var(--s2); }
.lede { color: var(--gray); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: var(--measure); }
.muted { color: var(--gray); }
.small { font-size: .9375rem; }
ul.clean, ol.clean { list-style: none; margin: 0; padding: 0; }

.skip { position: absolute; left: var(--s2); top: -60px; background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; z-index: 200; }
.skip:focus { top: var(--s2); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--gray); font-size: 1.125rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--orange); color: var(--ink); box-shadow: 0 8px 22px rgba(255, 140, 0, .28); }
.btn-cta:hover { background: var(--orange-hi); color: var(--ink); box-shadow: 0 10px 26px rgba(255, 140, 0, .38); }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: #33D3FF; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(168, 179, 199, .35); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white); background: var(--blue-dim); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; background: transparent; pointer-events: none; }
.progress > span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 80ms linear; }

.header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(8, 11, 36, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 179, 199, .12);
}
.header .container { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand img.mark { width: 34px; height: auto; }
.brand img.word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--gray); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { color: var(--white); text-decoration: none; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; }
.phone-link:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.phone-link svg { width: 16px; height: 16px; color: var(--blue); }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(168, 179, 199, .35); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header .phone-link span { display: none; }
  .header .phone-link { padding: 10px; }
}
@media (max-width: 760px) {
  .header .phone-link { display: none; }
  .header .container { gap: 12px; min-height: 64px; }
  .brand img.word { height: 18px; }
  .brand img.mark { width: 28px; }
}
.drawer { position: fixed; inset: 0; z-index: 130; display: none; }
.drawer[open] { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(8, 11, 36, .7); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--deep); padding: var(--s3); display: flex; flex-direction: column; gap: 6px; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.drawer-panel a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.125rem; padding: 14px 12px; border-radius: 10px; }
.drawer-panel a:hover { background: rgba(255,255,255,.06); }
.drawer-close { align-self: flex-end; background: none; border: 0; color: var(--gray); width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.drawer-panel .btn { margin-top: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-bottom: var(--s3); }
.hero .lede { margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s4); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--gray); font-size: .9375rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(60% 70% at 70% 20%, rgba(0, 200, 255, .16), transparent 70%), radial-gradient(40% 50% at 15% 60%, rgba(160, 32, 240, .14), transparent 70%); }
.sky svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; color: var(--navy-2); }
.sky .glow-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-line), transparent); }

/* Quick quote card */
.quote-card { background: var(--deep); border: 1px solid rgba(168, 179, 199, .14); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-card); position: relative; }
.quote-card::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(135deg, rgba(0,200,255,.6), rgba(160,32,240,.35) 50%, rgba(255,62,219,.25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.quote-card h2 { font-size: 1.375rem; margin-bottom: 6px; }
.quote-card .muted { margin-bottom: var(--s3); font-size: .9375rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .hint { color: var(--gray-2); font-size: .8125rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-ctl);
  background: rgba(8, 11, 36, .6); border: 1.5px solid rgba(168, 179, 199, .22); color: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--gray-2); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 200, 255, .18); }
.input[aria-invalid="true"] { border-color: var(--pink); }
.field .error { color: var(--pink); font-size: .8125rem; display: none; }
.field.has-error .error { display: block; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A8B3C7' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid rgba(168, 179, 199, .25); color: var(--gray); font-weight: 500; font-size: .9375rem; transition: all var(--t-fast); }
.chip input:checked + span { border-color: var(--blue); color: var(--white); background: var(--blue-dim); }
.chip input:focus-visible + span { box-shadow: var(--focus); }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--gray); font-size: .8125rem; line-height: 1.5; margin: var(--s2) 0; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.consent a { color: var(--gray); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-foot .small { color: var(--gray-2); }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-ctl); display: none; font-size: .9375rem; }
.form-status.ok { display: block; background: rgba(0, 200, 255, .12); border: 1px solid rgba(0, 200, 255, .4); }
.form-status.err { display: block; background: rgba(255, 62, 219, .1); border: 1px solid rgba(255, 62, 219, .45); }

/* ---------- Flight path ---------- */
.flight-path { position: absolute; left: 50%; top: 0; height: 100%; width: 0; pointer-events: none; z-index: 0; }
.flight-path::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--blue-line) 0 10px, transparent 10px 22px); opacity: .35; mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }

/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); counter-reset: step; }
.step { position: relative; padding: var(--s4) var(--s3) var(--s3); background: var(--deep); border-radius: var(--r-card); border: 1px solid rgba(168, 179, 199, .1); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: var(--s3); width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--ink); font-family: var(--head); font-weight: 700; display: grid; place-items: center; font-size: 1.0625rem; box-shadow: 0 0 0 6px var(--navy); }
.step h3 { margin-top: var(--s1); }
.step p { color: var(--gray); margin: 0; }
.step .time { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: .875rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Services panels ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.service {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--white);
  background: var(--deep); isolation: isolate;
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease), filter 600ms; }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 36, .05) 20%, rgba(8, 11, 36, .78) 62%, rgba(8, 11, 36, .96) 100%); }
.service:hover img, .service:focus-visible img { transform: scale(1.04); }
.service-body { padding: var(--s4) var(--s3) var(--s3); }
.service h3 { font-size: 1.75rem; margin-bottom: 8px; }
.service p { color: var(--gray); margin-bottom: 14px; }
.service ul { color: var(--white); font-size: .9375rem; display: grid; gap: 6px; margin-bottom: 18px; }
.service ul li { display: flex; gap: 10px; align-items: flex-start; }
.service ul svg { width: 16px; height: 16px; margin-top: 4px; color: var(--blue); flex: none; }
.service .link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.service .link svg { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease); }
.service:hover .link svg { transform: translateX(4px); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } .service { min-height: 420px; } }

/* ---------- Specs (options at a glance) ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.spec { padding: var(--s3); border-radius: var(--r-card); background: var(--deep); border-top: 3px solid var(--blue); }
.spec:nth-child(2) { border-top-color: var(--purple); }
.spec:nth-child(3) { border-top-color: var(--pink); }
.spec:nth-child(4) { border-top-color: var(--orange); }
.spec h3 { font-size: 1.125rem; }
.spec ul { color: var(--gray); font-size: .9375rem; display: grid; gap: 6px; }
@media (max-width: 1000px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.filters button { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(168, 179, 199, .25); background: transparent; color: var(--gray); font-weight: 500; cursor: pointer; transition: all var(--t-fast); }
.filters button:hover { color: var(--white); border-color: rgba(168, 179, 199, .5); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--deep); cursor: zoom-in; border: 0; padding: 0; text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: .875rem; color: var(--white); background: linear-gradient(180deg, transparent, rgba(8, 11, 36, .85)); }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile[hidden] { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .tile.wide { grid-column: span 2; } }

.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(8, 11, 36, .92); display: none; align-items: center; justify-content: center; padding: var(--s3); }
.lightbox[open] { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--gray); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(168,179,199,.35); background: rgba(17, 26, 69, .8); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; }

/* ---------- Evan ---------- */
.about { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(8, 11, 36, .7)); }
.portrait figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 1; }
.portrait figcaption strong { display: block; font-family: var(--head); font-size: 1.25rem; }
.portrait figcaption span { color: var(--gray); font-size: .9375rem; }
.about .lede { margin-bottom: var(--s3); }
.about-points { display: grid; gap: 12px; margin-bottom: var(--s4); }
.about-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--gray); }
.about-points svg { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.about-points strong { color: var(--white); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* ---------- Compare (broker vs. doing it yourself) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.compare-col { padding: var(--s4) var(--s3); border-radius: var(--r-card); background: var(--deep); }
.compare-col.you { background: linear-gradient(160deg, rgba(0,200,255,.14), rgba(160,32,240,.08)), var(--deep); border: 1px solid rgba(0,200,255,.3); }
.compare-col h3 { margin-bottom: var(--s3); }
.compare-col ul { display: grid; gap: 14px; color: var(--gray); }
.compare-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.compare-col svg { width: 20px; height: 20px; margin-top: 2px; }
.compare-col.alone svg { color: var(--gray-2); }
.compare-col.you svg { color: var(--blue); }
.compare-col.you li { color: var(--white); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.area-map { background: var(--deep); border-radius: 20px; padding: var(--s3); border: 1px solid rgba(168,179,199,.1); }
.area-map svg { width: 100%; height: auto; display: block; }
.counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s3); }
.county h4 { color: var(--blue); margin-bottom: 8px; }
.county ul { color: var(--gray); font-size: .9375rem; display: grid; gap: 4px; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }

/* ---------- Reviews / installer credit ---------- */
.installer { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: linear-gradient(135deg, var(--deep), var(--navy-2)); border: 1px solid rgba(168,179,199,.12); }
.installer h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.installer p { color: var(--gray); }
.installer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { padding: 18px; border-radius: 14px; background: rgba(8, 11, 36, .5); }
.fact strong { display: block; font-family: var(--head); font-size: 1.375rem; color: var(--white); }
.fact span { color: var(--gray); font-size: .9rem; }
@media (max-width: 860px) { .installer { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(168,179,199,.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--head); font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--blue); flex: none; transition: transform var(--t-base) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--gray); max-width: var(--measure); }
.faq summary:focus-visible { box-shadow: var(--focus); border-radius: 8px; }

/* ---------- Booking ---------- */
.booking { position: relative; }
.booking-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--deep); border: 1px solid rgba(168,179,199,.12); box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.booking-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: var(--grad); }
.booking-copy h2 { margin-bottom: var(--s2); }
.booking-copy .lede { margin-bottom: var(--s3); }
.booking-copy ul { display: grid; gap: 10px; color: var(--gray); margin-bottom: var(--s3); }
.booking-copy li { display: flex; gap: 10px; }
.booking-copy li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.direct { padding: 18px; border-radius: 14px; background: rgba(8,11,36,.55); display: grid; gap: 6px; }
.direct a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.direct a:hover { color: var(--blue); }
.direct .muted { font-size: .875rem; margin: 0; }
@media (max-width: 900px) { .booking-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(168,179,199,.12); padding: var(--s6) 0 var(--s4); background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s5); }
.footer h4 { margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--gray); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .brand img.word { height: 20px; }
.footer p { color: var(--gray); font-size: .9375rem; max-width: 42ch; }
.footer-legal { border-top: 1px solid rgba(168,179,199,.12); padding-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--gray-2); font-size: .8125rem; }
.footer-legal p { margin: 0; max-width: none; font-size: inherit; color: inherit; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 105; display: none; gap: 10px; padding: 10px var(--s2) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 11, 36, .9); backdrop-filter: blur(12px); border-top: 1px solid rgba(168,179,199,.14); }
.mobile-bar .btn { flex: 1; }
@media (max-width: 760px) { .mobile-bar { display: flex; } body { padding-bottom: 76px; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: var(--s2); }
.modal[open] { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(8, 11, 36, .78); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(100%, 560px); max-height: calc(100vh - 32px); overflow: auto; background: var(--deep); border-radius: 24px; padding: clamp(22px, 4vw, 36px); border: 1px solid rgba(168,179,199,.14); box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: pop 320ms var(--ease); }
.modal-panel h2 { font-size: 1.5rem; margin-bottom: 4px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--gray); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { color: var(--white); background: rgba(255,255,255,.12); }
.modal-close svg { width: 18px; height: 18px; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 160; background: var(--white); color: var(--ink); padding: 14px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: all var(--t-base) var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 90px; } }

/* ---------- Mascot ---------- */
.mascot {
  position: fixed; left: 0; top: 0; z-index: 100; width: 150px; height: auto;
  transform: translate(-40vw, 40vh);
  border: 0; background: none; padding: 0; cursor: pointer;
  will-change: transform; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  touch-action: manipulation;
}
.mascot img { width: 100%; height: auto; pointer-events: none; transform-origin: 50% 70%; }
.mascot .face { display: block; transform-origin: 50% 60%; }
.mascot.is-perched .face { animation: breathe 3.4s ease-in-out infinite; }
.mascot.is-flying .face { animation: flap .34s ease-in-out infinite; }
.mascot.is-hop .face { animation: hop .7s var(--ease) 1; }
.mascot:focus-visible { box-shadow: none; outline: none; }
.mascot:focus-visible .face { filter: drop-shadow(0 0 0 3px var(--blue)); }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.015); } }
@keyframes flap { 0%, 100% { transform: translateY(0) rotate(-5deg) scaleY(1); } 50% { transform: translateY(-12px) rotate(4deg) scaleY(.96); } }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-22px) rotate(-6deg); } 70% { transform: translateY(0) scaleY(.94); } 100% { transform: none; } }

.bubble {
  position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translate(-50%, 8px) scale(.9); transform-origin: 50% 100%;
  background: var(--white); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: .875rem; line-height: 1.3;
  padding: 10px 14px; border-radius: 14px; white-space: nowrap; opacity: 0; pointer-events: none; text-align: center;
  max-width: min(300px, 80vw);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--white); }
.mascot.show-bubble .bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* Near a screen edge the bubble hugs that edge instead of centring on the bird. */
.mascot.bubble-right .bubble { left: auto; right: 0; transform: translate(0, 8px) scale(.9); transform-origin: 90% 100%; }
.mascot.bubble-right .bubble::after { left: auto; right: 24%; transform: none; }
.mascot.bubble-right.show-bubble .bubble { transform: translate(0, 0) scale(1); }
.mascot.bubble-left .bubble { left: 0; right: auto; transform: translate(0, 8px) scale(.9); transform-origin: 10% 100%; }
.mascot.bubble-left .bubble::after { left: 24%; transform: none; }
.mascot.bubble-left.show-bubble .bubble { transform: translate(0, 0) scale(1); }
@media (max-width: 760px) { .bubble { white-space: normal; } }

.spark { position: fixed; left: 0; top: 0; z-index: 99; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }

@media (max-width: 760px) { .mascot { width: 84px; } .bubble { font-size: .8125rem; padding: 8px 12px; } }
.mascot.bubble-below .bubble { bottom: auto; top: calc(100% - 10px); transform-origin: 50% 0; }
.mascot.bubble-below .bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--white); }

.mascot-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .mascot, .spark { display: none !important; }
  .mascot-static { display: block; position: absolute; right: 4%; top: 8%; width: clamp(110px, 14vw, 190px); z-index: 1; pointer-events: none; }
  .hero .quote-card { margin-top: var(--s5); }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Subpages ---------- */
.page-hero { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-bottom: var(--s3); }
.page-hero figure { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crumbs { display: flex; gap: 8px; color: var(--gray-2); font-size: .875rem; margin-bottom: var(--s3); flex-wrap: wrap; }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
@media (max-width: 860px) { .page-hero .container { grid-template-columns: 1fr; } }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.detail.flip > figure { order: 2; }
.detail figure { margin: 0; border-radius: 20px; overflow: hidden; }
.detail figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.detail p { color: var(--gray); }
.detail ul { color: var(--gray); display: grid; gap: 8px; }
.detail ul li { display: flex; gap: 10px; }
.detail ul svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 4px; }
.detail + .detail { margin-top: clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail.flip > figure { order: 0; } }

.cta-band { padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: linear-gradient(135deg, rgba(0,200,255,.16), rgba(160,32,240,.12) 60%, rgba(255,62,219,.1)), var(--deep); border: 1px solid rgba(0,200,255,.25); display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; }
.cta-band h2 { margin-bottom: 6px; font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
.cta-band p { color: var(--gray); margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.legal nav a { color: var(--gray); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .9375rem; }
.legal nav a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.legal article { max-width: 72ch; }
.legal article h2 { font-size: 1.5rem; margin-top: var(--s5); scroll-margin-top: 100px; }
.legal article h3 { font-size: 1.125rem; margin-top: var(--s3); }
.legal article p, .legal article li { color: var(--gray); }
.legal article li { margin-bottom: 6px; }
.legal article strong { color: var(--white); }
.legal .meta { color: var(--gray-2); font-size: .9375rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; color: var(--gray); margin: var(--s2) 0 var(--s3); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(168,179,199,.14); vertical-align: top; }
.legal th { color: var(--white); font-weight: 600; }
.notice { padding: 16px 18px; border-radius: var(--r-ctl); background: rgba(255, 140, 0, .1); border: 1px solid rgba(255, 140, 0, .4); color: var(--white); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

/* Reveal (one restrained entrance for section heads only) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (min-width: 961px) {
  /* Room above the quote card for Sparky to perch on its top edge. */
  .hero .container { align-items: start; }
  .hero .quote-card { margin-top: 170px; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
