/* Styles for iceberg-airconditioning. This file belongs to this client alone.
   Edit it freely: nothing else reads it.
*/

/* ============================================================
   GoodGround — site layout
   Trade identity comes from themes.css. This file is the skeleton.
   Mobile-first. The sticky call bar is the most important element
   on the page and everything else is arranged around it.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  /* Room for the sticky call bar so it never covers the footer. The extra
     safe-area inset matters on iPhones, where the home indicator sits on top
     of the bar and was clipping the last footer line. */
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  line-height: var(--lh-display);
  /* Without this every multi-line heading on the site dropped its last word
     onto a line of its own — "Straight off the workshop / floor", "Cold air,
     without the / runaround". Sixteen headings did it. balance evens the
     lines instead; it is ignored by browsers that don't support it, so there
     is nothing to fall back to. */
  text-wrap: balance;
}

/* Body copy gets `pretty` rather than `balance`: balance is capped at a few
   lines and is the wrong tool for paragraphs, but pretty still stops a
   one-word last line. */
p, li, figcaption, dd { text-wrap: pretty; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(1180px, 100% - var(--sp-5) * 2); margin-inline: auto; }
@media (min-width: 860px) { .wrap { width: min(1180px, 100% - var(--sp-8) * 2); } }

.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;
}

/* ---------- demo ribbon ---------- */
.ribbon {
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  line-height: 1.4;
}
.ribbon strong { font-weight: 700; }

/* ---------- header ---------- */
.head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  font-size: var(--fs-lg);
  line-height: 1.1;
}
.brand__what {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav { display: none; gap: var(--sp-6); align-items: center; }
@media (min-width: 860px) { .nav { display: flex; } }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.head__call {
  display: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 860px) { .head__call { display: block; } }
.head__call:hover { color: var(--accent-hover); }

/* ---------- burger + mobile nav ----------
   Without this the site has no navigation at all on a phone, which is the
   device it is mostly opened on. Services and Contact would be unreachable. */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;           /* a real 48px touch target */
  margin-right: -10px;                  /* optical alignment to the edge */
  padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
@media (min-width: 860px) { .burger { display: none; } }
.burger svg { width: 26px; height: 26px; }
.burger__t, .burger__m, .burger__b {
  transition: transform var(--dur) var(--ease), opacity 120ms var(--ease);
  transform-origin: center;
}
/* burger morphs into a close cross when open */
.burger[aria-expanded="true"] { color: var(--accent); }
.burger[aria-expanded="true"] .burger__t { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__m { opacity: 0; }
.burger[aria-expanded="true"] .burger__b { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  display: grid;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 860px) { .nav-mobile { display: none !important; } }
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: var(--sp-5) var(--sp-5);
  min-height: 56px;
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:active { background: var(--surface-2); }
.nav-mobile a[aria-current="page"] { color: var(--accent); }
.nav-mobile__call { color: var(--accent); }
.nav-mobile__call svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* hold the car in frame: the bodywork is the whole point of the photo */
  object-position: 62% 55%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* A scrim, not a blackout. Heavy enough to keep type legible in direct
     sunlight, light enough that his actual work is still the thing you see. */
  background: linear-gradient(180deg,
    rgba(21, 22, 26, 0.38) 0%,
    rgba(21, 22, 26, 0.66) 48%,
    rgba(21, 22, 26, 0.93) 100%);
}
@media (min-width: 860px) {
  .hero__media::after {
    background: linear-gradient(95deg,
      rgba(21, 22, 26, 0.94) 0%,
      rgba(21, 22, 26, 0.80) 34%,
      rgba(21, 22, 26, 0.30) 66%,
      rgba(21, 22, 26, 0.06) 100%);
  }
}
/* NOTE: .hero__inner also carries .wrap, which sets margin-inline:auto.
   Never put a max-width here or the auto margins will centre the whole
   block, which is the generic centred-stack look we're paid to avoid.
   Constrain the children instead. */
.hero__inner {
  position: relative; z-index: 1;
  padding: var(--sp-8) 0 var(--sp-7);
}
@media (min-width: 860px) {
  .hero__inner {
    padding: var(--sp-7) 0;
    /* the CTA has to clear the fold on a 900px laptop, so the hero can't
       grow past this no matter how the headline wraps */
    min-height: 62vh;
    display: flex; flex-direction: column; justify-content: center;
  }
}
.hero h1 {
  font-size: var(--fs-hero);
  max-width: 16ch;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 24px rgba(21, 22, 26, 0.5);
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--ink);
  max-width: 38ch;
  margin-bottom: var(--sp-5);
  text-shadow: 0 1px 12px rgba(21, 22, 26, 0.6);
}

/* The sticky bar already owns Call on mobile. A second phone button in the
   hero is just noise competing with the thing we actually want tapped. */
.hero .btn--ghost { display: none; }
@media (min-width: 860px) { .hero .btn--ghost { display: inline-flex; } }

/* ---------- rating: the most persuasive object on the page ----------
   Deliberately not a stat card. It reads as a sentence with the stars
   inline, because a sentence is believable and a metric tile is not. */
.rating { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }
/* when the open/closed line sits under the rating, the two share one gap
   instead of stacking two, or the hero CTA gets pushed off the fold */
.rating:has(+ .status) { margin-bottom: var(--sp-3); }
.rating__stars { display: flex; gap: 2px; }
.rating__stars svg { width: 20px; height: 20px; fill: var(--accent); }
.rating__score { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--star, var(--accent)); }
.rating__text { font-size: var(--fs-sm); color: var(--ink-muted); }
.rating__text a { color: var(--ink-muted); }

/* ---------- buttons ---------- */
.btns { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  min-height: 52px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--whatsapp { background: var(--whatsapp); color: #08240f; }
.btn--whatsapp:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 20px; height: 20px; }

/* ---------- sticky call bar (mobile) ----------
   The single highest-leverage element. Always thumb-reachable. */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
@media (min-width: 860px) { .callbar { display: none; } }
.callbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 60px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  text-decoration: none;
}
.callbar a:active { filter: brightness(0.92); }
.callbar__call { background: var(--accent); color: var(--on-accent); }
.callbar__wa { background: var(--whatsapp); color: #08240f; }
.callbar svg { width: 20px; height: 20px; }

/* ---------- sections ---------- */
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--surface { background: var(--surface); }
.section__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.section__intro { color: var(--ink-muted); max-width: 60ch; margin-bottom: var(--sp-7); font-size: var(--fs-lg); }

/* ---------- promises: what they actually do differently ----------
   Not an icon-card grid. A numbered list, because these are a sequence
   of things that happen to you, not four equivalent features. */
.promises { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7) var(--sp-8); } }
.promise__n {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.promise h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.promise p { color: var(--ink-muted); max-width: 46ch; }

/* ---------- work gallery ---------- */
.work { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) {
  .work { grid-template-columns: repeat(3, 1fr); }
  .work figure:first-child { grid-column: span 2; grid-row: span 2; }
}
.work figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  font-size: var(--fs-sm);
  color: #f5f4f1;
  background: linear-gradient(180deg, rgba(21,22,26,0) 0%, rgba(21,22,26,0.9) 70%);
}

/* ---------- reviews ---------- */
.reviews { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.review__stars { display: flex; gap: 2px; }
.review__stars svg { width: 15px; height: 15px; fill: var(--accent); }
.review__text { font-size: var(--fs-sm); }
.review__who { margin-top: auto; font-size: var(--fs-xs); color: var(--ink-muted); }
.review__who strong { color: var(--ink); font-weight: 600; display: block; font-size: var(--fs-sm); }

/* ---------- services list ----------
   A list, not a card grid. Nine services as nine identical cards would
   be the exact template look we're paid to avoid. */
.services { border-top: 1px solid var(--border); }
.service {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 860px) {
  .service { grid-template-columns: 1fr 2fr; gap: var(--sp-8); align-items: start; }
}
.service h2 { font-size: var(--fs-xl); }
.service p { color: var(--ink-muted); max-width: 60ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.detail { padding: var(--sp-5) 0; border-bottom: 1px solid var(--border); }
.detail:first-child { padding-top: 0; }
.detail dt {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: var(--sp-2);
}
.detail dd { margin: 0; font-size: var(--fs-lg); }
.detail dd a { text-decoration: none; color: var(--accent); }
.detail dd a:hover { text-decoration: underline; }
.hours { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; }
.hours span:last-child { color: var(--ink-muted); }

/* OpenStreetMap only ships a light tile set. Inverting it keeps the map from
   glaring out of a graphite page like a lightbox. */
.map {
  border: 0; width: 100%; height: 320px;
  border-radius: var(--radius);
  filter: grayscale(1) invert(1) contrast(0.86) brightness(0.92);
}
@media (min-width: 860px) { .map { height: 100%; min-height: 420px; } }

/* ---------- closing CTA ---------- */
.cta { background: var(--accent); color: var(--on-accent); text-align: center; padding: var(--sp-9) 0; }
.cta h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
/* No opacity here. White at 0.85 over the accent computes to #e4eaf6, which is
   3.9:1 against it — under AA for 17px text. The heading above is already three
   times the size, so the hierarchy does not need the paragraph dimmed as well. */
.cta p { max-width: 46ch; margin: 0 auto var(--sp-6); }
.cta .btns { justify-content: center; }
.cta .btn--primary { background: var(--canvas); color: var(--ink); }
.cta .btn--primary:hover { background: var(--surface); }

/* ---------- motion ----------
   One idea, applied everywhere: content arrives from slightly below as you
   reach it. Transform and opacity only, so it never triggers layout.
   site.js adds .is-in; with JS off or reduced-motion on, nothing hides. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- about ---------- */
.about { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 1.4fr; gap: var(--sp-9); align-items: start; }
  .about .section__title { margin-bottom: 0; }
}
.about__body { display: grid; gap: var(--sp-4); }
.about__body p { font-size: var(--fs-lg); max-width: 62ch; }
.about__body p:first-child { color: var(--ink); }
.about__body p + p { color: var(--ink-muted); }

/* ---------- process steps ----------
   A numbered ordered list, not five identical cards. These are a sequence,
   and the shape should say so. */
.steps { display: grid; gap: var(--sp-2); counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; }
@media (min-width: 860px) { .step { gap: var(--sp-6); padding: var(--sp-6) 0; } }
.step__n {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--accent);
  line-height: 1;
  min-width: 2.4ch;
}
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-muted); max-width: 58ch; }

/* ---------- Google reviews button ---------- */
.reviews__more { margin-top: var(--sp-7); text-align: center; }
.btn--google {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  font-size: var(--fs-body);
  gap: var(--sp-3);
}
.btn--google:hover { border-color: var(--accent); background: var(--surface-2); }
.btn--google svg:first-child { width: 22px; height: 22px; }
.btn__out { width: 15px; height: 15px; opacity: 0.55; }
.reviews__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-muted); }

/* ---------- FAQ ----------
   Native <details>, so it works with JavaScript switched off and reads
   correctly to a screen reader without a line of ARIA. */
.faq { border-top: 1px solid var(--border); max-width: 78ch; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  font-size: var(--fs-lg);
  transition: color var(--dur) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa__chev {
  width: 22px; height: 22px; flex: none; color: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa__a { padding: 0 0 var(--sp-5); }
.qa__a p { color: var(--ink-muted); max-width: 64ch; }

/* ---------- interactive polish ----------
   Transform-only, so nothing here can cause a layout shift. */
.work figure img { transition: transform 600ms var(--ease); }
@media (hover: hover) {
  .work figure:hover img { transform: scale(1.04); }
  .review { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .review:hover { border-color: var(--accent); transform: translateY(-3px); }
}

/* ============================================================
   MODERN LAYOUT  (data-layout="modern")  — built to the CoolAir reference.
   Scoped so it cannot leak into the dark editorial clients.
   ============================================================ */

.rating__stars svg, .review__stars svg { fill: var(--star, var(--accent)); }

[data-layout="modern"] .section { padding: clamp(64px, 8vw, 110px) 0; }
[data-layout="modern"] .section--surface { background: var(--surface); }
[data-layout="modern"] .section--tint { background: var(--surface-2); }
[data-layout="modern"] .section--deep { background: var(--deep); color: var(--on-deep); }

/* ---- pill chip label ---- */
[data-layout="modern"] .chiplabel {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
[data-layout="modern"] .section--deep .chiplabel { background: rgba(255,255,255,0.14); color: #fff; }

/* ---- split head: big heading left, paragraph right ---- */
[data-layout="modern"] .shead { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-8); }
@media (min-width: 900px) {
  [data-layout="modern"] .shead {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-9);
    align-items: end;
  }
}
[data-layout="modern"] .shead__t { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
[data-layout="modern"] .shead p { color: var(--ink-muted); margin: 0; }
[data-layout="modern"] .section--deep .shead p { color: var(--on-deep-muted); }

/* ---- buttons ---- */
[data-layout="modern"] .btn {
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: 0;
  text-transform: none;
  padding: var(--sp-4) var(--sp-6);
}
[data-layout="modern"] .btn--primary { background: var(--accent); color: #fff; box-shadow: none; }
[data-layout="modern"] .btn--primary:hover { background: var(--accent-hover); }
[data-layout="modern"] .btn--navy { background: var(--deep); color: #fff; }
[data-layout="modern"] .btn--navy:hover { background: var(--deep-2); }
[data-layout="modern"] .head__cta {
  display: none; border-radius: 999px; padding: 12px 24px;
  background: var(--accent); color: #fff; font-weight: 700;
  text-decoration: none; font-size: var(--fs-sm); white-space: nowrap;
}
@media (min-width: 860px) { [data-layout="modern"] .head__cta { display: inline-block; } }
[data-layout="modern"] .head__cta:hover { background: var(--accent-hover); }

/* ---- HERO: split headline, then a full-bleed image beneath ---- */
[data-layout="modern"] .hero { position: static; overflow: visible; }
[data-layout="modern"] .hero__top { padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 60px); }
[data-layout="modern"] .hero__split { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) {
  [data-layout="modern"] .hero__split { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-9); }
  [data-layout="modern"] .hero__right { padding-top: var(--sp-3); }
}
[data-layout="modern"] .hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  color: var(--ink);
  max-width: 14ch;
  margin: 0;
  text-shadow: none;
  line-height: 1.06;
}
[data-layout="modern"] .hero__lead {
  color: var(--ink-muted); font-size: var(--fs-body);
  max-width: 46ch; margin: 0 0 var(--sp-5); text-shadow: none;
}
[data-layout="modern"] .hero__banner { position: relative; height: clamp(240px, 40vw, 500px); overflow: hidden; }
[data-layout="modern"] .hero__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
[data-layout="modern"] .hero .rating { margin-bottom: var(--sp-3); }
[data-layout="modern"] .hero .rating__text,
[data-layout="modern"] .hero .rating__text a { color: var(--ink-muted); }
[data-layout="modern"] .hero .status.is-shut { color: var(--ink-muted); }
[data-layout="modern"] .hero .status.is-shut::before { background: var(--ink-muted); }
[data-layout="modern"] .hero .btn--ghost { display: none; }

/* ---- service cards: photo on top, title over the photo ---- */
[data-layout="modern"] .scards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
[data-layout="modern"] .scard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) {
  [data-layout="modern"] .scard:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(10,37,64,0.4); }
}
/* The image is absolutely positioned on purpose. Left in flow, an img with
   height:100% inside an aspect-ratio box is a circular dependency, so the
   browser falls back to the image's own ratio: a portrait photo then blew the
   card to twice the height of its neighbours. Out of flow, aspect-ratio wins
   and every card crops to 4:3 no matter what shape the client sends us. */
[data-layout="modern"] .scard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
[data-layout="modern"] .scard__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
[data-layout="modern"] .scard__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.10) 0%, rgba(10,37,64,0.62) 100%);
}
[data-layout="modern"] .scard__img h3 {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: var(--sp-5);
  color: #fff; font-size: var(--fs-xl); margin: 0;
}
[data-layout="modern"] .scard__b { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
[data-layout="modern"] .scard__b p { color: var(--ink-muted); font-size: var(--fs-sm); margin: 0; }

/* ---- why-choose: navy rounded icon tiles ---- */
[data-layout="modern"] .icards { display: grid; gap: var(--sp-7) var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
[data-layout="modern"] .icard { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
@media (hover: hover) { [data-layout="modern"] .icard:hover { transform: none; box-shadow: none; border-color: transparent; } }
[data-layout="modern"] .icard__ico {
  width: 76px; height: 76px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--deep-2); color: #fff;
  margin-bottom: var(--sp-4);
}
[data-layout="modern"] .icard__ico svg { width: 34px; height: 34px; }
[data-layout="modern"] .icard h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
[data-layout="modern"] .icard p { color: var(--ink-muted); font-size: var(--fs-sm); }

/* ---- testimonial band on navy ---- */
[data-layout="modern"] .quote { text-align: center; }
[data-layout="modern"] .quote .rating__stars { justify-content: center; margin-bottom: var(--sp-5); }
[data-layout="modern"] .quote .rating__stars svg { width: 24px; height: 24px; }
[data-layout="modern"] .quote blockquote {
  margin: 0 auto var(--sp-5);
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.28;
  color: #fff; max-width: 26ch;
}
[data-layout="modern"] .quote figcaption { color: var(--on-deep-muted); font-size: var(--fs-sm); }
[data-layout="modern"] .quote figcaption strong { color: #fff; display: block; font-size: var(--fs-body); }

/* ---- stats on the navy band ---- */
[data-layout="modern"] .stats {
  display: grid; gap: var(--sp-6); grid-template-columns: repeat(2, 1fr); text-align: center;
  margin-top: var(--sp-9); padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 860px) { [data-layout="modern"] .stats { grid-template-columns: repeat(4, 1fr); } }
[data-layout="modern"] .stat__n {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: var(--fs-3xl); color: #fff; line-height: 1; margin-bottom: var(--sp-2);
}
[data-layout="modern"] .stat__l { font-size: var(--fs-sm); color: var(--on-deep-muted); }

/* ---- how it works: flat periwinkle step cards ---- */
[data-layout="modern"] .tl { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
[data-layout="modern"] .tl__i {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  align-items: flex-start; text-align: left;
}
[data-layout="modern"] .tl__i::after { display: none; }
[data-layout="modern"] .tl__n {
  width: auto; height: auto; border-radius: 999px;
  background: rgba(255,255,255,0.22); color: #fff;
  border: 0; box-shadow: none;
  padding: 5px 14px; font-size: var(--fs-xs); font-weight: 700;
  font-family: var(--font-body);
}
[data-layout="modern"] .tl__i h3 { font-size: var(--fs-xl); color: #fff; margin: 0; }
[data-layout="modern"] .tl__i p { color: rgba(255,255,255,0.88); font-size: var(--fs-sm); max-width: none; margin: 0; }

/* ---- reviews ---- */
[data-layout="modern"] .review { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
[data-layout="modern"] .review__who { display: flex; align-items: center; gap: var(--sp-3); }
[data-layout="modern"] .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  /* --accent on --accent-soft is 4.11:1, and these initials are 14px, so AA
     wants 4.5. --accent-hover on the same tint is 5.33:1 and reads as the
     same blue. */
  color: var(--accent-hover);
  font-weight: 800; font-size: var(--fs-sm);
}

/* ---- contact band: photo left, accent panel right ---- */
[data-layout="modern"] .cband { display: grid; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 860px) { [data-layout="modern"] .cband { grid-template-columns: 1fr 1fr; } }
[data-layout="modern"] .cband__img { min-height: 220px; }
[data-layout="modern"] .cband__img img { width: 100%; height: 100%; object-fit: cover; }
[data-layout="modern"] .cband__p {
  background: var(--accent); color: #fff;
  padding: clamp(32px, 5vw, 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4);
  text-align: center;
}
[data-layout="modern"] .cband__p .chiplabel { background: rgba(255,255,255,0.22); color: #fff; margin: 0; }
[data-layout="modern"] .cband__big {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 2.6vw, 2rem); color: #fff; text-decoration: none;
  word-break: break-word;
}
[data-layout="modern"] .cband__big:hover { text-decoration: underline; }
[data-layout="modern"] .cband__big svg { width: 28px; height: 28px; flex: none; }

/* ---- FAQ / work / quote / map ---- */
[data-layout="modern"] .faq { border-top: 0; max-width: none; }
[data-layout="modern"] .qa { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--sp-3); padding: 0 var(--sp-5); }
[data-layout="modern"] .qa summary { font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: var(--fs-body); }
[data-layout="modern"] .work figure, [data-layout="modern"] .map { border-radius: var(--radius-lg); }
/* Four equal tiles, 2 x 2. The base layout promotes the first figure to a
   large feature tile; that has to be cancelled or the grid stays lopsided. */
@media (min-width: 720px) {
  [data-layout="modern"] .work { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  [data-layout="modern"] .work figure:first-child { grid-column: auto; grid-row: auto; }
}
[data-layout="modern"] .work img { aspect-ratio: 4 / 3; }
[data-layout="modern"] .map { filter: none; border: 1px solid var(--border); }
[data-layout="modern"] .qform__field input, [data-layout="modern"] .qform__field textarea { border-radius: var(--radius); background: var(--canvas); }
[data-layout="modern"] .chip span { background: var(--canvas); border-radius: 8px; }
[data-layout="modern"] .chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-layout="modern"] .service { border-bottom-color: var(--border); }
[data-layout="modern"] .btn--google { background: var(--canvas); }
[data-layout="modern"] .promise__n, [data-layout="modern"] .step__n { color: var(--accent); }

/* Footer and utility-bar links sat at 19px and 23px high. WCAG 2.2 wants 24px
   minimum, and it exempts links inside a sentence — these are stacked lists,
   which is not that. Padding lifts the hit area without moving anything
   visually, because the extra height is absorbed by the existing row gap. */
[data-layout="modern"] .foot ul a,
[data-layout="modern"] .foot__by a,
[data-layout="modern"] .topbar ul a { display: inline-block; padding-block: 4px; }

/* ---- footer on navy ---- */
[data-layout="modern"] .footwrap { background: var(--deep); }
[data-layout="modern"] .footwrap .foot { border-top: 0; color: var(--on-deep-muted); }
[data-layout="modern"] .footwrap .foot h3 { color: #fff; }
[data-layout="modern"] .footwrap .foot a:hover { color: #fff; }
[data-layout="modern"] .footwrap .foot__by { border-top: 1px solid rgba(255,255,255,0.12); color: var(--on-deep-muted); }

/* ---- sticky bar: Call + Email. This client does not use WhatsApp. ---- */
[data-layout="modern"] .callbar__call { background: var(--deep); color: #fff; }
[data-layout="modern"] .callbar__mail { background: var(--accent); color: #fff; }


/* ---- page hero banner: navy image, chip, H1, breadcrumb ---- */
[data-layout="modern"] .phero { position: relative; overflow: hidden; }
[data-layout="modern"] .phero__img { position: absolute; inset: 0; }
[data-layout="modern"] .phero__img img { width: 100%; height: 100%; object-fit: cover; }
[data-layout="modern"] .phero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,37,64,0.94) 0%, rgba(10,37,64,0.82) 45%, rgba(10,37,64,0.62) 100%);
}
[data-layout="modern"] .phero__in {
  position: relative; z-index: 1;
  /* The header floats absolutely over this hero, so the top padding has to
     clear its full height (~108px) or the page chip collides with the brand
     tagline. Padding that only balances the bottom is not enough. */
  padding: clamp(140px, 13vw, 180px) 0 clamp(48px, 7vw, 92px);
  display: grid; gap: var(--sp-4); align-items: center;
}
@media (min-width: 900px) { [data-layout="modern"] .phero__in { grid-template-columns: 1fr auto; } }
[data-layout="modern"] .phero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 var(--sp-3); }
[data-layout="modern"] .phero .chiplabel { background: rgba(255,255,255,0.16); color: #fff; }
[data-layout="modern"] .crumb { color: var(--on-deep-muted); font-size: var(--fs-sm); display: flex; gap: var(--sp-2); align-items: center; }
[data-layout="modern"] .crumb a { color: #fff; text-decoration: none; font-weight: 600; }
[data-layout="modern"] .crumb a:hover { text-decoration: underline; }
[data-layout="modern"] .phero__tag { color: #fff; font-weight: 700; font-size: var(--fs-lg); text-align: left; }
@media (min-width: 900px) { [data-layout="modern"] .phero__tag { text-align: right; max-width: 22ch; } }

/* ---- services page: sidebar nav + copy + stacked images ---- */
[data-layout="modern"] .svc { display: grid; gap: var(--sp-7); }
@media (min-width: 1000px) { [data-layout="modern"] .svc { grid-template-columns: 1.5fr 1fr; gap: var(--sp-8); align-items: start; } }
[data-layout="modern"] .svc__nav { display: grid; gap: var(--sp-3); }
[data-layout="modern"] .svc__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
[data-layout="modern"] .svc__nav a svg { width: 18px; height: 18px; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-layout="modern"] .svc__nav a:hover,
[data-layout="modern"] .svc__nav a.is-on { background: var(--accent); color: #fff; }
[data-layout="modern"] .svc__nav a:hover svg,
[data-layout="modern"] .svc__nav a.is-on svg { opacity: 1; }
[data-layout="modern"] .svc__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: var(--sp-4); }
[data-layout="modern"] .svc__body p { color: var(--ink-muted); margin-bottom: var(--sp-4); }
[data-layout="modern"] .svc__list { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
[data-layout="modern"] .svc__item { display: flex; gap: var(--sp-4); align-items: flex-start; }
[data-layout="modern"] .svc__item span.tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
[data-layout="modern"] .svc__item span.tick svg { width: 16px; height: 16px; }
[data-layout="modern"] .svc__item h3 { font-size: var(--fs-lg); margin-bottom: 2px; }
[data-layout="modern"] .svc__item p { color: var(--ink-muted); font-size: var(--fs-sm); margin: 0; }
[data-layout="modern"] .svc__pics { display: grid; gap: var(--sp-4); }
[data-layout="modern"] .svc__pics figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
[data-layout="modern"] .svc__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- contact page: form + office sidebar ---- */
[data-layout="modern"] .cgrid { display: grid; gap: var(--sp-8); }
@media (min-width: 1000px) { [data-layout="modern"] .cgrid { grid-template-columns: 1.6fr 1fr; gap: var(--sp-9); align-items: start; } }
[data-layout="modern"] .cform { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { [data-layout="modern"] .cform { grid-template-columns: 1fr 1fr; } }
[data-layout="modern"] .cform__left { display: grid; gap: var(--sp-5); align-content: start; }
[data-layout="modern"] .cform__send { grid-column: 1 / -1; }
[data-layout="modern"] .cform label {
  display: block; font-weight: 700; font-size: var(--fs-sm);
  color: var(--ink); margin-bottom: var(--sp-2);
}
[data-layout="modern"] .cform input,
[data-layout="modern"] .cform textarea {
  width: 100%; padding: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--canvas); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body);
}
[data-layout="modern"] .cform input { min-height: 54px; }
[data-layout="modern"] .cform textarea { min-height: 258px; resize: vertical; }
[data-layout="modern"] .cform input:focus,
[data-layout="modern"] .cform textarea:focus { outline: none; border-color: var(--accent); }
[data-layout="modern"] .cform input:focus-visible,
[data-layout="modern"] .cform textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-layout="modern"] .cform__msg { display: flex; flex-direction: column; }
[data-layout="modern"] .cform__msg textarea { flex: 1; }

[data-layout="modern"] .office h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
[data-layout="modern"] .office__card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--sp-6); }
[data-layout="modern"] .office__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-layout="modern"] .office__card figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: var(--sp-5);
  color: #fff; font-weight: 600; font-size: var(--fs-sm);
  background: linear-gradient(180deg, rgba(10,37,64,0) 0%, rgba(10,37,64,0.85) 100%);
}
/* The icon now sits inside the <dt> (a <dl> may not have stray spans between
   its rows and its terms), so it is positioned out of the text flow rather
   than laid out as a flex sibling. 22px icon + 16px gap = the same 38px
   indent the flex version produced, so nothing moves on screen. */
[data-layout="modern"] .office__row { position: relative; padding: var(--sp-4) 0 var(--sp-4) 38px; }
[data-layout="modern"] .office__ico {
  position: absolute; left: 0; top: calc(var(--sp-4) + 2px);
  width: 22px; height: 22px; color: var(--accent);
}
[data-layout="modern"] .office__ico svg { width: 100%; height: 100%; display: block; }
[data-layout="modern"] .office__row dt { font-weight: 700; color: var(--ink); margin-bottom: 2px; font-size: var(--fs-sm); }
[data-layout="modern"] .office__row dd { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }
[data-layout="modern"] .office__row dd a { color: var(--ink-muted); text-decoration: none; }
[data-layout="modern"] .office__row dd a:hover { color: var(--accent); text-decoration: underline; }

/* ---- quote section gets an image beside it ---- */
[data-layout="modern"] .qwrap { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 1000px) { [data-layout="modern"] .qwrap { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-9); } }
[data-layout="modern"] .qwrap__pic { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 5; }
@media (max-width: 999px) { [data-layout="modern"] .qwrap__pic { aspect-ratio: 16 / 9; } }
[data-layout="modern"] .qwrap__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-layout="modern"] .qform { max-width: none; }

/* ---- the footer was being clipped by the sticky call bar ---- */
[data-layout="modern"] .footwrap .foot { padding-bottom: var(--sp-7); }
[data-layout="modern"] .footwrap .foot__by { padding-bottom: var(--sp-6); }


/* ============================================================
   FULL HERO + CHROME  (CoolAir index.html)
   ============================================================ */

/* ---- utility top bar ---- */
[data-layout="modern"] .topbar {
  background: var(--deep);
  color: var(--on-deep-muted);
  font-size: var(--fs-sm);
}
[data-layout="modern"] .topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
  padding: 10px 0;
}
[data-layout="modern"] .topbar ul { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
[data-layout="modern"] .topbar li { display: flex; align-items: center; gap: var(--sp-2); }
[data-layout="modern"] .topbar svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }
[data-layout="modern"] .topbar a { text-decoration: none; color: var(--on-deep-muted); }
[data-layout="modern"] .topbar a:hover { color: #fff; }
[data-layout="modern"] .topbar__soc { display: flex; gap: var(--sp-2); }
/* The icons stay 17px; the hit area does not. These were 17x17 links, well
   under the 24x24 minimum, and a social icon is a small target to begin with.
   Padding grows the target to 33px without changing how it looks. */
[data-layout="modern"] .topbar__soc a {
  display: flex; align-items: center; justify-content: center;
  width: 33px; height: 33px; border-radius: var(--radius-sm);
}
[data-layout="modern"] .topbar__soc a:hover { background: rgba(255,255,255,0.08); }
[data-layout="modern"] .topbar__soc svg { width: 17px; height: 17px; color: var(--on-deep-muted); }
[data-layout="modern"] .topbar__soc a:hover svg { color: #fff; }
@media (max-width: 700px) { [data-layout="modern"] .topbar { display: none; } }

/* ---- header sits ON the hero, then sticks solid on scroll ----
   .headhost MUST be positioned. Without it the absolutely-positioned header
   resolves top:0 against the viewport and lands on top of the utility bar,
   with the logo and nav printed over the phone number. It is a zero-height
   anchor: it just marks where the floating header starts. */
[data-layout="modern"] .headhost { position: relative; z-index: 40; }
[data-layout="modern"] .head {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 40;
  border-bottom: 0;
  width: min(1180px, 100% - var(--sp-5) * 2);
}
@media (min-width: 860px) { [data-layout="modern"] .head { width: min(1180px, 100% - var(--sp-8) * 2); } }
[data-layout="modern"] .head .brand__what { color: rgba(255,255,255,0.72); }
[data-layout="modern"] .head .nav a { color: #fff; }
[data-layout="modern"] .head .head__call { color: #fff; }
[data-layout="modern"] .head .burger { color: #fff; }
[data-layout="modern"] .head .brand__name { color: #fff; }

/* once stuck it becomes a solid white bar pinned to the viewport */
[data-layout="modern"] .head.is-stuck {
  position: fixed; top: 0;
  width: 100%; max-width: none;
  left: 0; transform: none;
  background: #fff;
  box-shadow: 0 6px 26px -14px rgba(10,37,64,0.45);
  padding-inline: var(--sp-5);
  animation: dropIn 260ms var(--ease);
}
@media (min-width: 860px) { [data-layout="modern"] .head.is-stuck { padding-inline: var(--sp-8); } }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
[data-layout="modern"] .head.is-stuck .brand__name,
[data-layout="modern"] .head.is-stuck .nav a,
[data-layout="modern"] .head.is-stuck .burger { color: var(--ink); }
[data-layout="modern"] .head.is-stuck .brand__what { color: var(--ink-muted); }
[data-layout="modern"] .head.is-stuck .head__call { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { [data-layout="modern"] .head.is-stuck { animation: none; } }

/* pages that are NOT the home page keep the header in flow on the page-hero */
[data-layout="modern"] .phero .head { position: absolute; }

/* ---- the full hero ---- */
[data-layout="modern"] .fhero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--deep);
}
[data-layout="modern"] .fhero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
[data-layout="modern"] .fhero__slide.is-on { opacity: 1; }
[data-layout="modern"] .fhero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  /* a slow drift so the hero never feels like a dead JPEG */
  animation: kenburns 18s ease-out both;
}
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) {
  [data-layout="modern"] .fhero__slide img { animation: none; transform: none; }
  [data-layout="modern"] .fhero__slide { transition: none; }
}
[data-layout="modern"] .fhero__slide::after {
  content: ""; position: absolute; inset: 0;
  /* The 35% stop sits exactly where the headline lands, and at 0.66 the
     photograph read through it — the "Ford" rocker-cover lettering on the
     first slide printed straight through "sorted while you wait". Raised to
     0.80 so the type sits on a settled ground; the top and bottom stops keep
     the frame from going flat. */
  background: linear-gradient(180deg, rgba(8,26,44,0.82) 0%, rgba(8,26,44,0.80) 35%, rgba(8,26,44,0.88) 100%);
}

[data-layout="modern"] .fhero__in {
  position: relative; z-index: 2;
  /* tight enough that the CTA clears the fold on a 730px laptop viewport,
     which is where it was landing 49px too low */
  padding: calc(var(--sp-9) + 40px) 0 var(--sp-6);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
[data-layout="modern"] .fhero .chiplabel { background: rgba(255,255,255,0.18); color: #fff; }
[data-layout="modern"] .fhero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.03;
  max-width: 18ch;
  margin: 0 0 var(--sp-3);
}
[data-layout="modern"] .fhero__sub {
  color: #dbe7f2;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  font-weight: 500;
  max-width: 52ch;
  margin: 0 0 var(--sp-4);
}
[data-layout="modern"] .fhero .rating { justify-content: center; margin-bottom: var(--sp-3); }
[data-layout="modern"] .fhero .rating__text,
[data-layout="modern"] .fhero .rating__text a { color: #b9d0e2; }
[data-layout="modern"] .fhero .status { justify-content: center; margin-bottom: var(--sp-4); }
[data-layout="modern"] .fhero .status.is-shut { color: #b9d0e2; }
[data-layout="modern"] .fhero .status.is-shut::before { background: #b9d0e2; }
[data-layout="modern"] .fhero .btns { justify-content: center; }

/* slide arrows + counter */
[data-layout="modern"] .fhero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 900px) { [data-layout="modern"] .fhero__nav { display: flex; } }
[data-layout="modern"] .fhero__nav:hover { background: rgba(255,255,255,0.24); }
[data-layout="modern"] .fhero__nav svg { width: 22px; height: 22px; }
[data-layout="modern"] .fhero__nav--prev { left: clamp(12px, 3vw, 40px); }
[data-layout="modern"] .fhero__nav--next { right: clamp(12px, 3vw, 40px); }
[data-layout="modern"] .fhero__count {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 3vw, 32px); z-index: 3;
  color: rgba(255,255,255,0.55); font-weight: 800; font-size: var(--fs-lg);
}
[data-layout="modern"] .fhero__count b { color: #fff; }

/* the feature strip overlaid at the foot of the hero */
[data-layout="modern"] .fstrip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: var(--sp-6) 0 var(--sp-7);
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
[data-layout="modern"] .fstrip__i { display: flex; gap: var(--sp-4); align-items: flex-start; text-align: left; }
[data-layout="modern"] .fstrip__ico {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-2); color: #fff;
}
[data-layout="modern"] .fstrip__ico svg { width: 26px; height: 26px; }
/* Was an <h3> sitting directly under the hero's <h1>, which skipped a level
   and made the document outline read H1 -> H3. These are labels, not section
   headings, so they are paragraphs now and take the display face from here. */
[data-layout="modern"] .fstrip__t {
  color: #fff; font-size: var(--fs-lg); margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  line-height: var(--lh-display);
  text-wrap: balance;
}
[data-layout="modern"] .fstrip p { color: #c3d6e6; font-size: var(--fs-sm); margin: 0; }

/* ---- centred section heads (index.html style) ---- */
[data-layout="modern"] .chead { text-align: center; max-width: 62ch; margin: 0 auto var(--sp-8); }
[data-layout="modern"] .chead .section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--sp-4); }
[data-layout="modern"] .chead p { color: var(--ink-muted); margin: 0; }
[data-layout="modern"] .section--deep .chead p { color: var(--on-deep-muted); }

/* ---- icon tile sitting on the service card photo ---- */
[data-layout="modern"] .scard__badge {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2;
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10,37,64,0.6);
}
[data-layout="modern"] .scard__badge svg { width: 26px; height: 26px; }

/* ---------- logo ----------
   When a client already owns a logo we use it. A wordmark we invented would
   be us rebranding them, which is not what they're buying. */
.brand--logo { gap: var(--sp-2); }
.brand__logo {
  height: 40px; width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (min-width: 860px) { .brand__logo { height: 48px; } }

/* ---------- fleet / clients ----------
   Plain text, deliberately. Rendering other companies' trademarks on a page
   we built off a claim on their old About page is a risk we don't need. */
.fleet { display: grid; gap: var(--sp-7); }
@media (min-width: 860px) { .fleet { grid-template-columns: 1fr 1fr; gap: var(--sp-9); align-items: start; } }
.fleet .section__intro { margin-bottom: 0; }
.fleet__lists { display: grid; gap: var(--sp-6); }
@media (min-width: 560px) { .fleet__lists { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.fleet__label {
  font-family: var(--font-body);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 700;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.fleet__list { display: grid; gap: var(--sp-3); }
.fleet__list li {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: var(--fs-lg);
  line-height: 1.2;
}

/* The range strip under the fleet lists. The section claims cars, aircraft and
   plant; this is the claim shown rather than asserted. Same figure idiom as
   .work so the two photo blocks on the page read as one system. */
.fleetshots {
  display: grid; gap: var(--sp-4);
  margin: var(--sp-7) 0 0;
  padding: 0; list-style: none;
}
@media (min-width: 720px) { .fleetshots { grid-template-columns: repeat(3, 1fr); } }
.fleetshots figure {
  margin: 0; position: relative;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
}
.fleetshots img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 4 / 3;
}
.fleetshots figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: var(--fs-sm);
  color: #f5f4f1;
  background: linear-gradient(180deg, rgba(8,26,44,0) 0%, rgba(8,26,44,0.88) 72%);
}
.fleetshots figure img { transition: transform 600ms var(--ease); }
@media (hover: hover) { .fleetshots figure:hover img { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .fleetshots figure img { transition: none; }
  .fleetshots figure:hover img { transform: none; }
}

/* ---------- open / closed status ----------
   Hidden until JS fills it. A stale "Open now" is worse than nothing. */
.status {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600;
  margin-bottom: var(--sp-5);
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.status.is-open { color: #4ade80; }
.status.is-open::before { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16); }
.status.is-shut { color: var(--ink-muted); }
.status.is-shut::before { background: var(--ink-muted); }
.detail .status { margin-bottom: var(--sp-3); }

/* ---------- quote builder ---------- */
.qform { max-width: 720px; }
.qform__set { border: 0; padding: 0; margin: 0 0 var(--sp-6); }
.qform__label {
  display: block; padding: 0;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: var(--sp-3); font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { cursor: pointer; }
.chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.chip span {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 var(--sp-5);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--canvas);
  font-weight: 600;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.qform__row { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-5); }
@media (min-width: 720px) { .qform__row { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.qform__field--wide { margin-bottom: var(--sp-6); }
.qform__field input,
.qform__field textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  transition: border-color var(--dur) var(--ease);
}
.qform__field input { min-height: 52px; padding-block: 0; }
.qform__field textarea { resize: vertical; min-height: 112px; }
.qform__field input::placeholder,
/* --ink-muted is already the lightest grey that clears AA on these panels;
   knocking it back another 25% put the placeholder under it. Every field has
   a real <label>, so the placeholder is a hint, but a hint still has to be
   readable. */
.qform__field textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.qform__field input:focus,
.qform__field textarea:focus { outline: none; border-color: var(--accent); }
.qform__field input:focus-visible,
.qform__field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.qform__send { width: 100%; }
@media (min-width: 720px) { .qform__send { width: auto; } }
.qform__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-muted); }

/* ---------- lightbox ----------
   Native <dialog>: Escape and focus trapping come free. */
.lightbox {
  border: 0; padding: 0; max-width: none; max-height: none;
  width: 100%; height: 100%;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 11, 13, 0.92); }
.lightbox figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4); padding: var(--sp-5);
}
.lightbox img {
  max-width: 100%; max-height: 82vh;
  width: auto; object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption {
  font-size: var(--fs-sm); color: var(--ink-muted);
  text-align: center; max-width: 60ch;
}
.lightbox__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close svg { width: 22px; height: 22px; }

/* the invisible button that makes a work photo openable */
.work figure.is-zoomable { cursor: zoom-in; }
.work__zoom {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: none; border: 0; padding: 0;
  cursor: zoom-in;
}
.work__zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0 var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  display: grid; gap: var(--sp-5);
}
@media (min-width: 860px) { .foot { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-8); } }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot h3 {
  font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); margin-bottom: var(--sp-3); font-weight: 700;
}
.foot ul { display: grid; gap: var(--sp-2); }
.foot__by { border-top: 1px solid var(--border); padding: var(--sp-5) 0; font-size: var(--fs-xs); color: var(--ink-muted); }

/* The ghost button inherits --ink (navy), which is invisible against the dark
   hero photo. On the hero it has to be a white outline button. */
[data-layout="modern"] .fhero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
[data-layout="modern"] .fhero .btn--ghost:hover {
  color: var(--deep);
  background: #fff;
  border-color: #fff;
}

/* ============================================================
   POLISH: stagger + page transition
   ============================================================ */

/* The reveal stagger is applied by site.js, which counts each element's
   position among its own siblings. Don't add nth-child delays here: an inline
   style beats a stylesheet rule, so a second system would only ever be dead
   CSS that looks like it works. */

/* Page enter. Pure CSS, so it cannot leave content stranded if JS fails. */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
[data-layout="modern"] main,
[data-layout="modern"] .fhero,
[data-layout="modern"] .phero { animation: pageIn 420ms var(--ease) both; }

/* Nav underline grows from the centre instead of blinking on. */
[data-layout="modern"] .head .nav a {
  position: relative; border-bottom: 0;
}
[data-layout="modern"] .head .nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transform: translateX(-50%);
  transition: width 220ms var(--ease);
}
[data-layout="modern"] .head .nav a:hover::after,
[data-layout="modern"] .head .nav a[aria-current="page"]::after { width: 100%; }

/* The quote button lifts rather than just changing colour. */
[data-layout="modern"] .head__cta,
[data-layout="modern"] .btn--primary {
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
@media (hover: hover) {
  [data-layout="modern"] .head__cta:hover,
  [data-layout="modern"] .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(10, 37, 64, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-layout="modern"] main,
  [data-layout="modern"] .fhero,
  [data-layout="modern"] .phero { animation: none; }
}

/* ============================================================
   Header, footer and map corrections
   ============================================================ */

/* Nav to the right, beside the quote button.
   .head is a flex row with justify-content:space-between, so with three
   children (brand, nav, cta) the nav lands dead centre. margin-left:auto
   collapses the slack in front of it and parks it against the button. */
[data-layout="modern"] .head .nav {
  margin-left: auto;
  margin-right: var(--sp-6);
}

/* The footer gained a fourth column (the page links). Without this it kept
   the old 3-column track list and the new column wrapped underneath. */
@media (min-width: 860px) {
  [data-layout="modern"] .foot { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
[data-layout="modern"] .foot nav ul { display: grid; gap: var(--sp-2); }

/* The map is a Google embed now: it fills its own box, so it doesn't need the
   height hack the old OSM iframe did. */
[data-layout="modern"] .map {
  width: 100%;
  height: 440px;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
[data-layout="modern"] .map__link { margin: var(--sp-5) 0 0; text-align: center; }

/* ============================================================
   Photo carousel
   ============================================================ */
[data-layout="modern"] .cshow__frame {
  position: relative;
  /* bleed to the viewport edge so the strip reads as a band, not a boxed row */
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--sp-5), calc(50vw - 590px));
}

[data-layout="modern"] .cshow__track {
  display: flex;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-5);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* the scrollbar is noise here; the arrows and the snap do the work */
  scrollbar-width: none;
}
[data-layout="modern"] .cshow__track::-webkit-scrollbar { display: none; }
[data-layout="modern"] .cshow__track:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

[data-layout="modern"] .cshow__item {
  flex: 0 0 auto;
  width: clamp(230px, 34vw, 340px);
  scroll-snap-align: start;
}
[data-layout="modern"] .cshow__item figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;          /* rectangular, uniform, regardless of source */
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: 0 12px 30px -22px rgba(10, 37, 64, 0.7);
}
/* Absolutely positioned on purpose. An <img> with height:100% inside an
   aspect-ratio box is a circular dependency and the browser falls back to the
   image's own ratio, which blows the tile out. This bit us on the service
   cards already: these sources are a mix of portrait and landscape. */
[data-layout="modern"] .cshow__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
[data-layout="modern"] .cshow__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  background: linear-gradient(180deg, rgba(8, 26, 44, 0) 0%, rgba(8, 26, 44, 0.86) 100%);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
/* Hover: the photo pushes in, the caption rises, the accent ring lands.
   Touch devices get the caption permanently, since they can't hover. */
@media (hover: hover) {
  [data-layout="modern"] .cshow__item figure::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 0 var(--accent);
    transition: box-shadow 260ms var(--ease);
    pointer-events: none;
  }
  [data-layout="modern"] .cshow__item:hover img { transform: scale(1.07); }
  [data-layout="modern"] .cshow__item:hover figcaption { opacity: 1; transform: none; }
  [data-layout="modern"] .cshow__item:hover figure::after { box-shadow: inset 0 0 0 3px var(--accent); }
}
@media (hover: none) {
  [data-layout="modern"] .cshow__item figcaption { opacity: 1; transform: none; }
}

[data-layout="modern"] .cshow__nav {
  position: absolute; top: calc(50% - var(--sp-3)); z-index: 3;
  transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(10, 37, 64, 0.5);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (min-width: 900px) { [data-layout="modern"] .cshow__nav { display: flex; } }
[data-layout="modern"] .cshow__nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-layout="modern"] .cshow__nav[disabled] { opacity: 0.35; cursor: default; }
[data-layout="modern"] .cshow__nav[disabled]:hover { background: #fff; color: var(--ink); border-color: var(--border); }
[data-layout="modern"] .cshow__nav svg { width: 20px; height: 20px; }
[data-layout="modern"] .cshow__nav--prev { left: max(8px, calc(50vw - 620px)); }
[data-layout="modern"] .cshow__nav--next { right: max(8px, calc(50vw - 620px)); }

@media (prefers-reduced-motion: reduce) {
  [data-layout="modern"] .cshow__track { scroll-behavior: auto; }
  [data-layout="modern"] .cshow__item img,
  [data-layout="modern"] .cshow__item figcaption { transition: none; }
}

/* The full-bleed carousel band overflowed the document by 8px: 50vw counts the
   scrollbar and 50% does not, so calc(50% - 50vw) overshoots by half a
   scrollbar on each side and the whole page scrolled sideways. Clipping the
   section contains the bleed. `clip` rather than `hidden` so it does not
   become a scroll container. */
[data-layout="modern"] .cshow { overflow-x: clip; }

/* twoTone() has been emitting <span class="hl"> on every section heading since
   the first build and no rule ever existed for it, so the accented half of
   each two-tone heading has been rendering in plain body ink. This is the
   whole point of writing the titles as "Something | accented bit". */
[data-layout="modern"] .hl { color: var(--accent); }
/* On the navy panels the mid-tone accent is too dark to read, so those get the
   lighter one. */
[data-layout="modern"] .section--deep .hl,
[data-layout="modern"] .fhero .hl,
[data-layout="modern"] .phero .hl { color: var(--accent-2); }

/* Footer logo, above the business name in the left column. The mark was drawn
   for a dark background, so the navy footer is where it looks best on this
   site. It carries alt="" on purpose: the business name sits directly beneath
   it as text, so announcing the logo too would just repeat it. */
[data-layout="modern"] .foot__logo {
  width: auto;
  height: 52px;
  margin-bottom: var(--sp-4);
}

/* Name / email / phone row on the quote form. Three up on desktop, stacked on
   a phone: three inputs side by side at 390px would be unusable. */
[data-layout="modern"] .qform__row--3 {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  [data-layout="modern"] .qform__row--3 { grid-template-columns: repeat(3, 1fr); }
}
[data-layout="modern"] .qform__opt {
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   Static map (self-hosted OSM tiles, no iframe)
   ============================================================ */
[data-layout="modern"] .smap {
  position: relative;
  display: block;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 720px) { [data-layout="modern"] .smap { height: 340px; } }

/* The tile grid, centred on the pin. Translating by half the frame minus the
   pin's position puts the business dead centre whatever the frame size. */
[data-layout="modern"] .smap__inner {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--map-w);
  height: var(--map-h);
  margin-left: calc(var(--pin-x) * -1);
  margin-top: calc(var(--pin-y) * -1);
}
[data-layout="modern"] .smap__inner img {
  position: absolute;
  width: 256px; height: 256px;
  max-width: none;          /* the global img{max-width:100%} would squash tiles */
  display: block;
}

[data-layout="modern"] .smap__pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translate(-50%, -100%);
  color: var(--accent);
  filter: drop-shadow(0 3px 6px rgba(10, 37, 64, 0.45));
  transition: transform 220ms var(--ease);
}
[data-layout="modern"] .smap__pin svg {
  width: 44px; height: 44px;
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.4;
}
@media (hover: hover) {
  [data-layout="modern"] .smap:hover .smap__pin { transform: translate(-50%, -112%); }
}

/* The address card sitting on the map. Also the affordance that tells you the
   whole thing is clickable. */
[data-layout="modern"] .smap__card {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  max-width: 300px;
  padding: var(--sp-5);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -18px rgba(10, 37, 64, 0.55);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}
[data-layout="modern"] .smap__card strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-body);
  margin-bottom: 4px;
}
[data-layout="modern"] .smap__go {
  display: flex; align-items: center; gap: 6px;
  margin-top: var(--sp-3);
  color: var(--accent);
  font-weight: 700;
}
[data-layout="modern"] .smap__go svg { width: 16px; height: 16px; }
[data-layout="modern"] .smap:hover .smap__go { color: var(--accent-hover); }
@media (max-width: 720px) {
  [data-layout="modern"] .smap__card { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); max-width: none; }
}

/* Required by the ODbL. Not optional, and not something to hide. */
/* The attribution now sits beside the anchor rather than inside it, so it
   needs a positioned, clipping parent of its own to land in the same corner
   and stay inside the rounded edge. */
[data-layout="modern"] .smapwrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
[data-layout="modern"] .smap__attr {
  position: absolute;
  right: 0; bottom: 0;
  margin: 0;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.82);
  border-top-left-radius: var(--radius-sm);
  font-size: 11px;
  color: #55616d;
}
[data-layout="modern"] .smap__attr a { color: inherit; text-decoration: underline; }

[data-layout="modern"] .smap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   Legal pages
   ============================================================ */
[data-layout="modern"] .legal { max-width: 68ch; }
[data-layout="modern"] .legal__updated {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: var(--sp-5);
}
[data-layout="modern"] .legal__intro {
  font-size: var(--fs-lg);
  color: var(--ink);
  margin-bottom: var(--sp-8);
}
[data-layout="modern"] .legal__sec { margin-bottom: var(--sp-7); }
[data-layout="modern"] .legal__sec h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-bottom: var(--sp-4);
}
[data-layout="modern"] .legal__sec p {
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
}
[data-layout="modern"] .legal__sec p:last-child { margin-bottom: 0; }
[data-layout="modern"] .legal__sec a { color: var(--accent); }

/* Legal links sit beside the credit line, not in the main Pages column: they
   are the things you look for when you go looking, not part of the journey. */
[data-layout="modern"] .foot__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
[data-layout="modern"] .foot__legal { display: flex; gap: var(--sp-5); order: 2; }
[data-layout="modern"] .foot__legal a { text-decoration: none; }
[data-layout="modern"] .foot__legal a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Mobile menu — fixed dropdown anchored to the header
   Fixes: menu previously sat in document flow at the top of the page, so it
   was hidden behind the floating header (at the top) or opened entirely
   off-screen (once scrolled). Now it drops from under the header wherever you
   are, the header pins solid so its links are legible, and a backdrop closes it.
   ============================================================ */
[data-layout="modern"] .nav-mobile {
  position: fixed;
  top: 100px;                    /* header height on mobile */
  left: 0; right: 0;
  z-index: 39;                   /* just under the header (40) */
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 18px 34px -20px rgba(10, 37, 64, 0.55);
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  animation: navDrop 200ms var(--ease);
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* While open, the header is pinned solid to the viewport top so its links are
   dark-on-white and it lines up with the dropdown, at any scroll position. */
[data-layout="modern"] .head.nav-open {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%; max-width: none;
  transform: none;
  background: #fff;
  box-shadow: 0 6px 26px -14px rgba(10, 37, 64, 0.45);
  padding-inline: var(--sp-5);
}
[data-layout="modern"] .head.nav-open .brand__name,
[data-layout="modern"] .head.nav-open .nav a,
[data-layout="modern"] .head.nav-open .burger { color: var(--ink); }
[data-layout="modern"] .head.nav-open .brand__what { color: var(--ink-muted); }

/* Dim layer below the header while the menu is open — tap it to close. */
[data-layout="modern"] .nav-backdrop {
  position: fixed; inset: 100px 0 0 0;
  z-index: 38;
  background: rgba(10, 37, 64, 0.38);
  animation: navFade 200ms var(--ease);
}
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }

/* Stop the page behind the menu scrolling while it's open. */
body.nav-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  [data-layout="modern"] .nav-mobile,
  [data-layout="modern"] .nav-backdrop { animation: none; }
}
