/* Layout: navy yard-sign header band, steel-grey ground, content in a 72rem column; the container data plate is the one bold object. */
:root {
  --ink: #14233d;          /* brand navy */
  --signal: #d3312b;       /* brand red */
  --go: #2c6a4c;           /* Chiltern green, "open" status */
  --ground: #f2f4f7;       /* steel grey page */
  --surface: #ffffff;
  --line: #d6dce5;
  --muted: #56637a;
  --band: #14233d;         /* header/footer band */
  --on-band: #f2f5fa;
  --on-band-muted: #aab6c9;
  --plate: #e4e8ee;
  --fg: #14233d;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6ecf5; --signal: #ff5f55; --go: #5fc28f; --ground: #0c1322; --surface: #141e33;
    --line: #26324b; --muted: #9ba8bd; --band: #08101d; --on-band: #eef2f8; --on-band-muted: #93a1b7;
    --plate: #1b2740; --fg: #e6ecf5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e6ecf5; --signal: #ff5f55; --go: #5fc28f; --ground: #0c1322; --surface: #141e33;
  --line: #26324b; --muted: #9ba8bd; --band: #08101d; --on-band: #eef2f8; --on-band-muted: #93a1b7;
  --plate: #1b2740; --fg: #e6ecf5; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--ground); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.55rem; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font: 600 .78rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.site-header { background: var(--band); color: var(--on-band); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; flex-wrap: wrap; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .7rem; line-height: 1; }
.brand-mark { width: 2.9rem; height: 2.9rem; flex: none; border-radius: .45rem; box-shadow: 0 0 0 1.5px rgba(255,255,255,.22); }
.brand-word { display: inline-flex; flex-direction: column; }
.brand small { font: 800 .72rem var(--f-display); letter-spacing: .28em; color: var(--on-band-muted); }
.brand b { font: 900 1.85rem var(--f-display); letter-spacing: .06em; border-bottom: 4px solid var(--signal); padding-bottom: .2rem; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; min-width: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 4px; color: var(--on-band); white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: .5rem; }
.header-phone { font: 500 .95rem var(--f-mono); color: var(--on-band); text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) {
  .site-header .wrap { gap: .6rem; }
  .brand-mark { width: 2.4rem; height: 2.4rem; }
  .header-phone { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .45rem .6rem; font-size: .9rem; }
  .nav .btn { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem var(--f-body); text-decoration: none; padding: .85rem 1.3rem; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.nav .btn-primary { color: #fff; padding: .55rem 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Status chip */
.status { display: inline-flex; align-items: center; gap: .55rem; font: 600 .85rem var(--f-body); padding: .4rem .8rem .4rem .65rem; border-radius: 999px; border: 1px solid var(--go); color: var(--go); background: color-mix(in srgb, var(--go) 10%, transparent); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 25%, transparent); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-art { min-width: 0; }
.hero-art figcaption { font: 500 .75rem var(--f-mono); color: var(--muted); margin-top: .5rem; text-align: right; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(2.2rem, 5vw, 3.5rem) 1.5rem; }
.page-hero .wrap { display: grid; gap: 1rem; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 44rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: grid; gap: .75rem; grid-template-rows: auto auto 1fr auto; text-decoration: none; transition: border-color .15s; }
.service:hover { border-color: var(--ink); }
.service .tag { font: 500 .75rem var(--f-mono); color: var(--muted); }
.service p { color: var(--muted); }
.service .more { font-weight: 700; color: var(--signal); }

/* Data plate */
.plate-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .plate-row { grid-template-columns: 1fr; } }
.plate { background: var(--plate); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem 1.25rem 1rem; font-family: var(--f-mono); position: relative; }
.plate::before, .plate::after { content: ""; position: absolute; top: .55rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); border: 1px solid var(--muted); }
.plate::before { left: .55rem; } .plate::after { right: .55rem; }
.plate-title { text-align: center; font: 800 1.2rem var(--f-display); letter-spacing: .16em; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .4rem; }
.plate table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.plate th { text-align: left; font-weight: 500; color: var(--muted); padding: .45rem 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.plate td { text-align: right; padding: .45rem 0; white-space: nowrap; }
.plate tr + tr { border-top: 1px dashed var(--line); }
.plate .note { font-size: .72rem; color: var(--muted); margin-top: .6rem; }
.fits { display: grid; gap: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 3px solid var(--go); border-bottom: 3px solid var(--go); transform: rotate(-45deg); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; display: grid; gap: .4rem; }
.steps li::before { content: "Step " counter(step); font: 500 .78rem var(--f-mono); color: var(--signal); text-transform: uppercase; letter-spacing: .08em; }
.steps p { color: var(--muted); }

/* Features (sub pages) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; }
.features div { display: grid; gap: .4rem; align-content: start; border-left: 3px solid var(--signal); padding-left: 1rem; }
.features p { color: var(--muted); }

/* Location */
.loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 820px) { .loc { grid-template-columns: 1fr; } }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: grid; gap: .8rem; align-content: start; }
.route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.route-time { font: 800 2rem var(--f-display); color: var(--signal); }
.route ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--muted); }
.address { font-style: normal; font-family: var(--f-mono); font-size: .95rem; line-height: 1.7; }

/* FAQ */
.faq { display: grid; gap: .5rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--f-mono); color: var(--signal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; color: var(--muted); max-width: 42rem; }

/* CTA band */
.cta-band { background: var(--band); color: var(--on-band); }
.cta-band .wrap { padding-block: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--on-band-muted); margin-top: .5rem; }
.cta-band .phone { font: 500 1.4rem var(--f-mono); color: var(--on-band); text-decoration: none; }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2rem; align-items: start; }
@media (max-width: 820px) { .quote-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); color: var(--fg); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-done { border: 1px solid var(--go); color: var(--go); padding: .9rem 1rem; border-radius: 4px; font-weight: 600; }
.aside { display: grid; gap: 1.5rem; }
.aside h3 { font-size: 1.3rem; margin-bottom: .6rem; }

/* Footer */
.site-footer { background: var(--band); color: var(--on-band-muted); font-size: .95rem; border-top: 4px solid var(--signal); }
.site-footer .wrap { padding-block: 2.5rem 6rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--on-band); letter-spacing: .1em; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; font-size: .85rem; }
@media (min-width: 861px) { .site-footer .wrap { padding-bottom: 2.5rem; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--band); padding: .6rem var(--gutter-r) calc(.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); border-top: 1px solid rgba(255,255,255,.15); }
  .callbar .btn { padding: .75rem .5rem; }
  .callbar .btn-ghost { color: var(--on-band); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Photo gallery (container page) */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; display: grid; gap: .5rem; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--plate); }
.gallery figcaption { font: 500 .78rem var(--f-mono); color: var(--muted); }

/* Map (Find us) */
.map { margin: 0; display: grid; gap: .5rem; }
.map iframe, .map-fallback { width: 100%; max-width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: 6px; background: var(--plate); display: block; }
@media (max-width: 560px) { .map iframe, .map-fallback { aspect-ratio: 4 / 3; } }
.map-fallback { display: grid; place-content: center; gap: 1rem; text-align: center; padding: 1rem; color: var(--muted); }
.map figcaption { font: 500 .78rem var(--f-mono); color: var(--muted); }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .features.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features.three { grid-template-columns: 1fr; } }

/* Coming soon banner */
.coming-soon { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-weight: 600; color: var(--muted); }
.coming-soon span { display: inline-block; background: var(--signal); color: #fff; font: 900 clamp(1.4rem, 3.2vw, 2rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; padding: .45rem .8rem .4rem; border-radius: 3px; transform: rotate(-1.5deg); }
.coming-soon strong, .price { color: var(--fg); }

/* Areas table */
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table.areas { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.areas th, table.areas td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.areas thead th { font: 600 .75rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.areas tbody th { font-weight: 700; }
table.areas td:nth-child(2) { white-space: nowrap; font-family: var(--f-mono); font-size: .9rem; }
table.areas td:last-child { color: var(--muted); }
table.areas tr:last-child th, table.areas tr:last-child td { border-bottom: 0; }

/* Public availability plan */
.av-summary { font-size: 1.1rem; }
.av-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--muted); }
.av-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.av-sw { width: 1.4rem; height: .9rem; border-radius: 2px; display: inline-block; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }
.av-yard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; display: grid; gap: 1rem; overflow-x: auto;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 18%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.av-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.av-rowlabel { white-space: nowrap; font: 800 .95rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.av-units { display: flex; flex-wrap: wrap; gap: .5rem; }
.av-box { --c: #2d4f86; width: 9rem; min-height: 3.8rem; padding: .45rem .6rem; border-radius: 3px; border: 2px solid var(--c); display: grid; align-content: start; gap: .15rem;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); background-image: repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--c) 16%, transparent) 9px 11px); }
.av-box.av-10 { width: 6rem; } .av-box.av-40 { width: 18rem; }
.av-box b { font: 500 .85rem var(--f-mono); }
.av-box span { font-size: .8rem; font-weight: 700; color: var(--c); }
.av-available { --c: #2c6a4c; } .av-soon { --c: #c27a00; } .av-possible { --c: #c27a00; border-style: dashed; } .av-let { --c: #6b7a90; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av-available { --c: #5fc28f; } :root:not([data-theme="light"]) .av-soon, :root:not([data-theme="light"]) .av-possible { --c: #f0a640; } :root:not([data-theme="light"]) .av-let { --c: #93a1b7; } }
:root[data-theme="dark"] .av-available { --c: #5fc28f; } :root[data-theme="dark"] .av-soon, :root[data-theme="dark"] .av-possible { --c: #f0a640; } :root[data-theme="dark"] .av-let { --c: #93a1b7; }
.av-h { font-size: 1.6rem; margin-bottom: .8rem; }
.cta-inline { display: grid; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.cta-inline p { color: var(--muted); max-width: 40rem; }
.av-link a { font-weight: 700; color: var(--signal); }
.av-info { font-size: 1rem; min-height: 1.6em; }
.av-info a { color: var(--signal); font-weight: 700; }

/* Booking request panel on the Availability page */
.av-book { scroll-margin-top: 6rem; border-top: 4px solid var(--signal); }
.av-book-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.av-book-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.av-price { text-align: right; display: grid; line-height: 1.1; }
.av-price b { font: 900 2.2rem var(--f-display); color: var(--fg); }
.av-price span { font-size: .8rem; color: var(--muted); }
#av-done h3 { font-size: 1.5rem; color: var(--go); margin-bottom: .4rem; }
.linkbtn-pub { background: none; border: 0; padding: 0 .2rem; font: 700 .95rem var(--f-body); color: var(--signal); cursor: pointer; text-decoration: underline; }
.error { color: var(--signal); font-weight: 600; }
#av-form { display: grid; gap: 1rem; }
