/* ==========================================================================
   J.O's Plumbing — Big Bear, CA
   main.css — design system + components
   Mountain-modern: deep navy, copper, snow. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — navy */
  --navy-950: #060f1c;
  --navy-900: #0a1a2f;
  --navy-800: #10263f;
  --navy-700: #17385a;
  --navy-600: #1f4a76;
  --navy-500: #2b5f92;

  /* Brand — copper */
  --copper-700: #8f5324;
  --copper-600: #a9642e;
  --copper-500: #c87a3d;
  --copper-400: #dd9552;
  --copper-300: #eab784;
  --copper-100: #f7e6d3;

  /* Emergency */
  --alert-600: #b3261e;
  --alert-500: #d63a30;
  --alert-100: #fdeceb;

  /* Success / info */
  --pine-600: #1f6b4d;
  --pine-100: #e4f3ec;

  /* Neutrals — snow to slate */
  --white: #ffffff;
  --snow-50: #f8fafc;
  --snow-100: #f1f5f9;
  --snow-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--snow-50);
  --bg-deep: var(--navy-900);
  --text: var(--navy-900);
  --text-muted: var(--slate-600);
  --text-invert: #eef4fa;
  --border: var(--snow-200);
  --accent: var(--copper-500);
  --accent-ink: var(--copper-700);

  /* Typography */
  --font-display: "Archivo", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.1rem, 0.3vw + 1.05rem, 1.25rem);
  --fs-xl: clamp(1.35rem, 0.7vw + 1.2rem, 1.6rem);
  --fs-2xl: clamp(1.6rem, 1.4vw + 1.3rem, 2.15rem);
  --fs-3xl: clamp(2rem, 2.6vw + 1.4rem, 3rem);
  --fs-4xl: clamp(2.35rem, 4vw + 1.3rem, 3.9rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(10, 26, 47, 0.06), 0 1px 3px rgba(10, 26, 47, 0.08);
  --sh-md: 0 4px 12px rgba(10, 26, 47, 0.08), 0 2px 4px rgba(10, 26, 47, 0.05);
  --sh-lg: 0 18px 40px -12px rgba(10, 26, 47, 0.22), 0 6px 14px rgba(10, 26, 47, 0.07);
  --sh-xl: 0 32px 64px -18px rgba(10, 26, 47, 0.32);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 700; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-700); }

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Inline icons ship without a class. Give them a sane default that tracks the
   surrounding font size; component rules further down override where needed.
   Without this, a bare <svg> stretches to fill its container. */
svg:not([class]) {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.16em;
}

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

strong { font-weight: 700; color: var(--navy-900); }
/* The global dark strong colour disappears on dark panels. */
.section--deep strong, .form-aside strong, .cta-band strong,
.emergency-band strong, .hero strong, .page-hero strong,
.trust-strip strong, .site-footer strong, .card--deep strong { color: #fff; }

:focus-visible {
  outline: 3px solid var(--copper-500);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--copper-300); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 640px) { .container { padding-inline: var(--sp-5); } }

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-8); }
@media (min-width: 900px) { .section { padding-block: var(--sp-9); } }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--bg-alt); }
.section--deep {
  background: var(--navy-900);
  color: var(--text-invert);
}
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep p { color: #c3d4e4; }

.grid { display: grid; gap: var(--sp-5); }
/* Grid and flex children default to min-width:auto, which lets wide content
   (tables, code, long words) push the track wider than the viewport instead of
   scrolling inside its own container. */
.grid > *, .split > *, .steps > * { min-width: 0; }
.steps-bar__item, .action-bar__btn, .form-card, .form-aside,
.option, .review, .card, .field-row > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.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;
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin-bottom: var(--sp-3);
}
.section--deep .eyebrow { color: var(--copper-300); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  display: block;
}

.lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
}
.section--deep .lede { color: #b9cbdd; }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.text-center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  /* --copper-600 rather than -500: white on #c87a3d is only 3.33:1, below AA. */
  background: var(--copper-600);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(169, 100, 46, 0.7);
}
.btn--primary:hover { background: var(--copper-700); color: #fff; box-shadow: 0 12px 26px -8px rgba(143, 83, 36, 0.8); }

.btn--navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(10, 26, 47, 0.6);
}
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--alert {
  background: var(--alert-500);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(214, 58, 48, 0.6);
}
.btn--alert:hover { background: var(--alert-600); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-300);
}
.btn--ghost:hover { background: var(--snow-100); border-color: var(--navy-700); color: var(--navy-900); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; color: #fff; }

.btn--lg { font-size: var(--fs-lg); padding: 1.1rem 2rem; }
.btn--sm { font-size: var(--fs-sm); padding: 0.6rem 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* An sms: link opens the visitor's messaging app. A phone always has one; a
   desktop may not, in which case the click silently does nothing. Rather than
   guess at capability (a Mac has Messages but no touchscreen, so touch
   detection gets it wrong), we simply show the number itself on wider screens.
   The click still works wherever a handler exists, and where it doesn't the
   visitor can read the number and text it from their phone. */
.sms-number { display: none; }
@media (min-width: 560px) { .sms-number { display: inline; } }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Top utility bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: #a9c0d6;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar__list li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.topbar a {
  color: #d6e5f2; text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 32px;
}
.topbar a:hover { color: var(--copper-300); }
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  flex: none;
}
/* Needs the .topbar__list ancestor to beat `.topbar__list li { display:flex }`. */
@media (max-width: 767px) { .topbar__list li.topbar__hide-sm { display: none; } }

/* --------------------------------------------------------------------------
   7. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
/* The badge's own navy sits only a shade above the near-black footer, so its
   edge disappears there. A hairline restores the boundary without altering the
   artwork. Radius matches the badge's own corner (19.4% of its width). */
.site-footer .brand__mark {
  border-radius: 19.4%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--copper-700);
}

/* Very narrow phones (320px): the tagline no longer fits beside the menu button. */
@media (max-width: 359px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { display: none; }
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-1);
  align-items: center;
}
@media (min-width: 1120px) { .nav__links { display: flex; } }

.nav__links > li { margin: 0; position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.62rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy-800);
  text-decoration: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--copper-700); background: var(--snow-100); }
.nav__link[aria-current="page"] { color: var(--copper-700); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.15rem;
  height: 2px;
  background: var(--copper-500);
  border-radius: 2px;
}
.nav__caret { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__phone {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  text-align: right;
}
@media (min-width: 640px) { .nav__phone { display: flex; } }
@media (min-width: 1120px) and (max-width: 1279px) { .nav__phone { display: none; } }
.nav__phone-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate-500);
}
.nav__phone-num {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 800; color: var(--navy-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__phone:hover .nav__phone-num { color: var(--copper-700); }
.nav__cta { display: none; }
@media (min-width: 1120px) { .nav__cta { display: inline-flex; } }

/* Dropdown (desktop) */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  /* Anchored to the trigger's left edge, not centred: a 640px panel centred on a
     nav item near the viewport edge overflows the document at 1024px. */
  left: 0;
  transform: translate(0, 8px);
  width: min(640px, calc(100vw - 3rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__links > li:hover > .dropdown,
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(0, 0); }

.dropdown__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.dropdown__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.dropdown__item:hover { background: var(--snow-100); }
.dropdown__icon {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-sm);
  background: var(--copper-100);
  color: var(--copper-700);
  display: grid; place-items: center;
}
.dropdown__icon svg { width: 20px; height: 20px; }
.dropdown__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}
.dropdown__desc { display: block; font-size: 0.82rem; color: var(--slate-600); line-height: 1.4; }
.dropdown__footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
}

/* Mobile toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: var(--snow-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}
@media (min-width: 1120px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy-900); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  /* The closed panel is translated off-canvas; without this it widens the
     document and creates a phantom horizontal scrollbar. */
  overflow: hidden;
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__scrim {
  position: absolute; inset: 0;
  background: rgba(6, 15, 28, 0.55);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 88vw);
  background: #fff;
  box-shadow: var(--sh-xl);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.mobile-nav__close {
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--snow-100); cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--navy-900);
}
.mobile-nav__body { padding: var(--sp-4); flex: 1; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--snow-100); }
.mobile-nav__list a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  color: var(--navy-900); text-decoration: none;
}
.mobile-nav__list a:hover { color: var(--copper-700); }
.mobile-nav__sub { list-style: none; margin: 0 0 var(--sp-3); padding: 0 0 0 var(--sp-4); }
.mobile-nav__sub li { border: 0; }
.mobile-nav__sub a { font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.25rem; color: var(--slate-600); font-family: var(--font-body); }
.mobile-nav__foot { padding: var(--sp-4); border-top: 1px solid var(--border); display: grid; gap: var(--sp-3); background: var(--snow-50); }

/* --------------------------------------------------------------------------
   8. Sticky mobile action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: var(--navy-900);
  border-top: 3px solid var(--copper-500);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 -8px 24px rgba(6, 15, 28, 0.28);
}
.action-bar.is-visible { transform: translateY(0); }
@media (min-width: 1120px) { .action-bar { display: none !important; } }
.action-bar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 0.62rem 0.4rem;
  text-decoration: none;
  color: #dceaf7;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--navy-900);
}
.action-bar__btn svg { width: 20px; height: 20px; }
.action-bar__btn span { overflow-wrap: anywhere; text-align: center; }
.action-bar__btn--call { background: var(--copper-600); color: #fff; }
.action-bar__btn--call:hover { background: var(--copper-700); color: #fff; }
body.has-action-bar { padding-bottom: 68px; }
@media (min-width: 1120px) { body.has-action-bar { padding-bottom: 0; } }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 15, 28, 0.94) 0%, rgba(10, 26, 47, 0.86) 38%, rgba(10, 26, 47, 0.55) 68%, rgba(10, 26, 47, 0.42) 100%);
}
@media (max-width: 767px) {
  /* Keep enough of the photo readable on phones while still clearing AA
     contrast for the white headline sitting on top of it. */
  .hero::after {
    background: linear-gradient(180deg, rgba(6, 15, 28, 0.86) 0%, rgba(10, 26, 47, 0.7) 45%, rgba(10, 26, 47, 0.9) 100%);
  }
  .hero__media img { object-position: center 40%; }
}

.hero__inner {
  padding-block: var(--sp-8) var(--sp-8);
  max-width: 660px;
}
@media (min-width: 900px) { .hero__inner { padding-block: var(--sp-9); } }

.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--copper-300); }
.hero__sub {
  font-size: var(--fs-lg);
  color: #c7d8e8;
  margin-bottom: var(--sp-5);
  max-width: 56ch;
}

.hero__badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  list-style: none; padding: 0;
}
.hero__badges li { margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.79rem; font-weight: 600;
  color: #e6f0f9;
  backdrop-filter: blur(4px);
}
.pill svg { width: 14px; height: 14px; color: var(--copper-300); }
.pill--live { background: rgba(74, 222, 128, 0.14); border-color: rgba(74, 222, 128, 0.35); color: #bbf7d0; }
.pill--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-sm);
  color: #b3c8dc;
}
.hero__proof strong { color: #fff; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; }

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-800);
  color: #fff;
  padding-block: var(--sp-7);
  overflow: hidden;
}
@media (min-width: 900px) { .page-hero { padding-block: var(--sp-8); } }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(6, 15, 28, 0.95) 10%, rgba(10, 26, 47, 0.82) 60%, rgba(16, 38, 63, 0.68) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); max-width: 22ch; }
.page-hero__sub { color: #c2d5e6; font-size: var(--fs-lg); max-width: 62ch; margin-bottom: var(--sp-5); }
.page-hero--plain { background: var(--navy-800); }
.page-hero--plain::after { background: radial-gradient(1200px 400px at 15% 0%, rgba(200,122,61,0.16), transparent 70%); }

/* Breadcrumbs */
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.45rem; color: #9fb8ce; }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,0.35); }
.breadcrumb a { color: #cfe0ee; text-decoration: none; }
.breadcrumb a:hover { color: var(--copper-300); text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Emergency band
   -------------------------------------------------------------------------- */
.emergency-band {
  background: linear-gradient(90deg, var(--alert-600), #a02018);
  color: #fff;
}
.emergency-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-4);
  text-align: center;
}
.emergency-band__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
}
.emergency-band__icon svg { width: 22px; height: 22px; }
.emergency-band__text { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.emergency-band__text span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-sm); opacity: 0.9; }
.emergency-band .btn--ghost-light { border-color: #fff; }

/* --------------------------------------------------------------------------
   11. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip { background: var(--navy-950); color: #b8cee2; }
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.trust-strip__item {
  background: var(--navy-950);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}
.trust-strip__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--copper-400);
  line-height: 1;
  margin-bottom: 0.35rem;
  display: block;
}
.trust-strip__label { font-size: var(--fs-sm); color: #9db4c9; line-height: 1.35; }

/* --------------------------------------------------------------------------
   12. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--copper-300); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--snow-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--text-muted); font-size: var(--fs-base); flex: 1; margin-bottom: var(--sp-4); }
.card__link {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--copper-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  letter-spacing: 0.02em;
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card--linked { position: relative; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--copper-100), #fff);
  border: 1px solid var(--copper-300);
  color: var(--copper-700);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 26px; height: 26px; }

.card--flat { border-radius: var(--r-md); }
.card--flat:hover { transform: none; box-shadow: var(--sh-md); }

/* Value cards on deep background */
.card--deep {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}
.card--deep:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(200, 122, 61, 0.5); }
.card--deep .card__title { color: #fff; }
.card--deep .card__text { color: #b6c9db; }
.card--deep .card__icon {
  background: rgba(200, 122, 61, 0.16);
  border-color: rgba(200, 122, 61, 0.4);
  color: var(--copper-300);
}

/* --------------------------------------------------------------------------
   13. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--bg-alt);
}
.step { padding-left: 0; padding-top: 60px; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-base); }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute; top: 21px; left: 52px; right: -16px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--slate-300) 0 6px, transparent 6px 12px);
  }
}

/* --------------------------------------------------------------------------
   14. Feature list / checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.checklist--2col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2col { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  margin: 0;
  font-size: var(--fs-base);
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px; flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pine-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f6b4d'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 111.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section--deep .checklist li::before {
  background-color: rgba(74, 222, 128, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234ade80'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 111.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.section--deep .checklist li { color: #cfdeeb; }

/* Split media/text block */
.split { display: grid; gap: var(--sp-6); align-items: center; min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse .split__media { order: 2; }
  /* Long-copy splits should top-align; centring leaves a dead band of whitespace. */
  .split--top { align-items: start; }
  .split--top .split__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__badge {
  position: absolute;
  bottom: -18px; left: -12px;
  /* copper-600, not -500: the small caption inside needs 4.5:1 against white. */
  background: var(--copper-600);
  color: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-lg);
  max-width: 230px;
}
@media (max-width: 899px) { .split__badge { left: 8px; bottom: -22px; } }
.split__badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: #fff; }
.split__badge span { font-size: 0.8rem; opacity: 0.95; }

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
.reviews-rail {
  display: grid;
  gap: var(--sp-4);
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
}
.reviews-rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .reviews-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

.review {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--copper-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.review__stars { margin-bottom: var(--sp-3); }
.review__text { flex: 1; color: var(--slate-700); font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.review__text::before { content: "\201C"; }
.review__text::after { content: "\201D"; }
.review__meta { display: flex; align-items: center; gap: var(--sp-3); border-top: 1px solid var(--border); padding-top: var(--sp-3); }
.review__avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.review__name { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); line-height: 1.25; }
.review__where { display: block; font-size: 0.78rem; color: var(--slate-600); line-height: 1.3; }

/* --------------------------------------------------------------------------
   16. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--sp-4);
}
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--snow-100);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-7) var(--sp-4) var(--sp-4);
  background: linear-gradient(to top, rgba(6, 15, 28, 0.94) 18%, rgba(6, 15, 28, 0.5) 62%, transparent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  /* Two lines maximum: a long caption otherwise covers the photograph it
     describes. The full text lives in the lightbox. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-item__tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--navy-900);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem; border-radius: var(--r-sm);
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 15, 28, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--sp-5);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--sh-xl); }
.lightbox__cap { color: #dbe8f3; text-align: center; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.22); }

/* --------------------------------------------------------------------------
   17. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg); font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
}
.accordion__btn:hover { color: var(--copper-700); }
.accordion__icon {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; border: 2px solid var(--slate-300);
  position: relative;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__btn[aria-expanded="true"] .accordion__icon { background: var(--copper-500); border-color: var(--copper-500); transform: rotate(180deg); }
.accordion__btn[aria-expanded="true"] .accordion__icon::before,
.accordion__btn[aria-expanded="true"] .accordion__icon::after { background: #fff; }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { color: var(--text-muted); padding-bottom: var(--sp-5); max-width: 72ch; }

/* --------------------------------------------------------------------------
   18. Forms / booking
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-5);
}
@media (min-width: 640px) { .form-card { padding: var(--sp-6); } }

.field { margin-bottom: var(--sp-4); }
/* Scoped to unclassed labels so it can't override .option / .check layout. */
.field > label:not([class]), .fieldset__legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--fs-sm);
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.field .hint { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--slate-600); margin-top: -2px; margin-bottom: var(--sp-2); }
.req { color: var(--alert-500); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--navy-900);
  background: var(--snow-50);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--copper-500);
  box-shadow: 0 0 0 4px rgba(200, 122, 61, 0.16);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--alert-500);
  background: var(--alert-100);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.3 7.3a1 1 0 011.4 0L10 10.6l3.3-3.3a1 1 0 111.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 010-1.4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}
.error-text { display: none; color: var(--alert-600); font-size: 0.82rem; margin-top: 0.35rem; font-weight: 600; }
.field.has-error .error-text { display: block; }

.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* Option cards (radio tiles) */
.option-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 380px) { .option-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .option-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.option {
  position: relative;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: var(--sp-4);
  border: 2px solid var(--slate-300);
  border-radius: var(--r-md);
  background: var(--snow-50);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.option:hover { border-color: var(--copper-400); background: #fff; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option input:checked ~ .option__title { color: var(--copper-700); }
.option:has(input:checked) {
  border-color: var(--copper-500);
  background: var(--copper-100);
}
.option:has(input:focus-visible) { outline: 3px solid var(--copper-500); outline-offset: 2px; }
.option__icon { display: block; width: 26px; height: 26px; color: var(--navy-700); }
.option__icon svg { width: 100%; height: 100%; }
.option__title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--navy-900); overflow-wrap: anywhere;
}
.option__desc { font-size: 0.78rem; color: var(--slate-600); line-height: 1.35; overflow-wrap: anywhere; }
.option--urgent:has(input:checked) { border-color: var(--alert-500); background: var(--alert-100); }
.option--urgent:has(input:checked) .option__title { color: var(--alert-600); }

/* Checkbox row */
.check {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  font-size: var(--fs-sm); color: var(--slate-600);
}
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--copper-500); }

/* Multi-step progress */
.steps-bar { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
@media (max-width: 379px) { .steps-bar__label { font-size: 0.6rem; letter-spacing: 0.02em; } }
.steps-bar__item { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.steps-bar__track { height: 5px; border-radius: 3px; background: var(--snow-200); overflow: hidden; }
.steps-bar__track span { display: block; height: 100%; width: 0; background: var(--copper-500); transition: width 0.35s var(--ease); }
.steps-bar__item.is-done .steps-bar__track span,
.steps-bar__item.is-active .steps-bar__track span { width: 100%; }
.steps-bar__label { overflow-wrap: anywhere; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.steps-bar__item.is-active .steps-bar__label, .steps-bar__item.is-done .steps-bar__label { color: var(--copper-700); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fadeUp 0.3s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-nav { display: flex; gap: var(--sp-3); justify-content: space-between; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }

.form-status {
  display: none;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.form-status.is-success { display: block; background: var(--pine-100); color: var(--pine-600); border: 1px solid #a7d9c2; }
.form-status.is-error { display: block; background: var(--alert-100); color: var(--alert-600); border: 1px solid #f2b9b5; }
/* Shown while a submission is in flight. */
.form-status.is-info { display: block; background: var(--snow-100); color: var(--slate-700); border: 1px solid var(--slate-300); }
.form-status.is-success a { color: inherit; font-weight: 700; }
.form-status.is-success strong { color: inherit; }
/* The submit handler hides the form once it succeeds. */
[hidden] { display: none !important; }

.form-aside {
  background: var(--navy-900);
  color: #cadaea;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.form-aside h3 { color: #fff; }
.form-aside .checklist li { color: #cadaea; }

/* --------------------------------------------------------------------------
   19. Pricing / info tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-base); min-width: 520px; }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th {
  background: var(--navy-800); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.03em; text-transform: uppercase;
}
table.data tbody tr:nth-child(even) { background: var(--snow-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:last-child { font-weight: 700; color: var(--navy-900); white-space: nowrap; }

/* --------------------------------------------------------------------------
   20. Service area list
   -------------------------------------------------------------------------- */
.area-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.area-chip {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.area-chip:hover { border-color: var(--copper-400); box-shadow: var(--sh-md); transform: translateY(-2px); }
.area-chip svg { width: 20px; height: 20px; color: var(--copper-700); flex: none; }
.area-chip span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy-900); }
.area-chip small { color: var(--slate-600); }
.area-chip small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.76rem; color: var(--slate-500); }

/* --------------------------------------------------------------------------
   21. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(10, 26, 47, 0.97), rgba(23, 56, 90, 0.93)),
    var(--navy-900);
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 88% 20%, rgba(200, 122, 61, 0.3), transparent 65%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid; gap: var(--sp-5);
  align-items: center;
  padding-block: var(--sp-8);
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; gap: var(--sp-7); } }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: #bed0e1; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 560px) and (max-width: 899px) { .cta-band__actions { flex-direction: row; } }
.cta-band__phone {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  letter-spacing: -0.02em;
}
.cta-band__phone:hover { color: var(--copper-300); }
.cta-band__phone svg { width: 1em; height: 1em; color: var(--copper-400); }

/* Callout box */
.callout {
  border-left: 4px solid var(--copper-500);
  background: var(--copper-100);
  padding: var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout h4 { margin-bottom: var(--sp-2); color: var(--copper-700); }
.callout p { color: var(--slate-700); margin: 0; }
.callout--alert { border-color: var(--alert-500); background: var(--alert-100); }
.callout--alert h4 { color: var(--alert-600); }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #93aec7; font-size: var(--fs-sm); }
.site-footer a { color: #bdd2e4; text-decoration: none; }
.site-footer a:hover { color: var(--copper-300); text-decoration: underline; }
/* Buttons keep their own foreground — the generic footer link colour would
   otherwise drop the CTA to 2.97:1 against copper. */
.site-footer .btn--primary,
.site-footer .btn--primary:hover,
.site-footer .btn--alert,
.site-footer .btn--navy { color: #fff; text-decoration: none; }
/* The wordmark tagline needs the light copper on a near-black footer. */
.site-footer .brand__tag { color: var(--copper-300); }

.footer__grid {
  display: grid; gap: var(--sp-6);
  padding-block: var(--sp-8) var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }

.footer__title {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.15rem; }
/* Stacked navigation links get a real tap target (WCAG 2.5.8). */
.footer__list a, .footer__legal a { display: inline-block; padding-block: 0.42rem; }
.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__brand .brand__name { color: #fff; }
.footer__nap { font-style: normal; line-height: 1.75; }
.footer__nap strong { color: #fff; }
.footer__phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  color: #fff !important; text-decoration: none !important;
  margin-bottom: var(--sp-2);
}
.footer__phone:hover { color: var(--copper-300) !important; }
.footer__hours { display: grid; gap: 0.3rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: var(--sp-4); max-width: 260px; }
.footer__hours span:last-child { color: #d8e6f2; }
.footer__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  color: #cfe0ee;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }

/* --------------------------------------------------------------------------
   23. Misc
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose > :first-child { margin-top: 0; }
.prose ul li, .prose ol li { color: var(--slate-700); }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.tag-row li { margin: 0; }
.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--snow-100);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--slate-600);
  text-decoration: none;
}
a.tag:hover { background: var(--copper-100); border-color: var(--copper-300); color: var(--copper-700); }
.tag { color: var(--slate-700); }

.aspect-video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-md); }

/* Request page: form beside the "rather just talk" panel on wide screens.
   Lived as an inline <style> in the page body, which is invalid inside <main>. */
.book-layout { display: grid; gap: 2rem; }
@media (min-width: 980px) {
  .book-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* <address> is used for the shop address; browsers italicise it by default. */
address { font-style: normal; }

/* Print */
@media print {
  .site-header, .action-bar, .mobile-nav, .topbar, .cta-band, .emergency-band { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
