/* ==========================================================================
   Sliding Doors Masters — Design System
   --------------------------------------------------------------------------
   Palette is derived from the brand mark: black ground, brushed gold, steel.
   Every text/background pair below is checked against WCAG 2.2 AA (4.5:1 for
   body text, 3:1 for large text and UI boundaries). Ratios are noted inline.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* --- Colour: dark ground (header, hero, footer) --- */
  --c-ink:        #0a0907;   /* deepest ground                              */
  --c-ink-2:      #14120d;   /* raised dark surface: cards on dark          */
  --c-ink-3:      #221e17;   /* hairline borders on dark                    */

  /* --- Colour: brand accents --- */
  --c-gold:       #c9a463;   /* 8.9:1 on --c-ink  ✓ AA (also AAA)           */
  --c-gold-lt:    #dcbb7d;   /* hover / focus state on dark                 */
  --c-gold-dp:    #8c6429;   /* gold on light backgrounds, decorative only  */
  --c-steel:      #b9bec4;   /* secondary text on dark, 9.6:1 ✓ AA          */

  /* --- Colour: light ground (body content) --- */
  --c-paper:      #ffffff;
  --c-paper-2:    #f7f4ee;   /* warm alternating section                    */
  --c-line:       #e6e0d4;   /* 1px rules on light                          */
  --c-text:       #16140f;   /* 17.6:1 on paper ✓ AAA                       */
  --c-text-2:     #5c5749;   /* 6.6:1 on --c-paper-2 ✓ AA                   */

  /* --- Colour: states --- */
  --c-focus:      #4c8dff;   /* never gold: gold on gold is invisible       */
  --c-error:      #b3261e;   /* 6.4:1 on paper ✓ AA                         */
  --c-success:    #1c6b3f;   /* 5.9:1 on paper ✓ AA                         */

  /* --- Type families ---
     Archivo carries headings: slightly expanded, sturdy, reads as fabricated
     signage rather than a UI font. Inter handles everything else.           */
  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Type scale ---
     Fluid between a 360px and a 1440px viewport. The brief's original scale
     topped out at 14.5px, which cannot carry a page headline; this replaces
     it while keeping Inter as the specified body face.                      */
  --fs-xs:   0.8125rem;                          /* 13px  captions, legal   */
  --fs-sm:   0.9375rem;                          /* 15px  labels, meta      */
  --fs-base: 1.0625rem;                          /* 17px  body             */
  --fs-lg:   1.1875rem;                          /* 19px  lead paragraph   */
  --fs-xl:   clamp(1.3125rem, 0.6vw + 1.16rem, 1.5rem);
  --fs-2xl:  clamp(1.5rem,   1.1vw + 1.23rem, 1.875rem);
  --fs-3xl:  clamp(1.875rem, 2.2vw + 1.32rem, 2.625rem);
  --fs-4xl:  clamp(2.375rem, 4.2vw + 1.4rem,  4rem);

  --lh-tight: 1.08;
  --lh-snug:  1.28;
  --lh-base:  1.62;

  --ls-tight: -0.022em;
  --ls-wide:  0.14em;   /* eyebrows / small caps */

  /* --- Spacing: 4px base, doubling at the top for section rhythm --- */
  --s-1:  0.25rem;   --s-2:  0.5rem;    --s-3:  0.75rem;   --s-4:  1rem;
  --s-5:  1.5rem;    --s-6:  2rem;      --s-7:  2.5rem;    --s-8:  3rem;
  --s-9:  4rem;      --s-10: 5rem;      --s-11: 6.5rem;    --s-12: 8rem;

  --section-y: clamp(3.5rem, 7vw, 7rem);
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --measure:   68ch;      /* readable line length ceiling */
  --wrap:      1200px;

  /* --- Radius & elevation --- */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 14px;  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(10, 9, 7, .06), 0 2px 8px rgba(10, 9, 7, .04);
  --sh-2: 0 4px 12px rgba(10, 9, 7, .09), 0 12px 32px rgba(10, 9, 7, .07);
  --sh-3: 0 12px 28px rgba(10, 9, 7, .14), 0 28px 64px rgba(10, 9, 7, .10);

  /* --- Motion --- */
  --t-fast:   160ms;
  --t-base:   260ms;
  --t-slow:   520ms;
  --t-glide: 1100ms;                       /* the door slide */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 74px;
}

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

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* --------------------------------------------------- 3. Focus & skip link */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100%;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* -------------------------------------------------------------- 4. Layout */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-paper-2); }
.section--dark { background: var(--c-ink); color: var(--c-paper); }
.section--dark p { color: var(--c-steel); }

.section__head { max-width: var(--measure); margin-bottom: var(--s-8); }
.section__head p { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--c-text-2); }
.section--dark .section__head p { color: var(--c-steel); }

/* The eyebrow doubles as the site's track motif: a short rail with a roller
   sitting on it, echoing the hardware the business actually replaces. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-gold-dp);
  margin-bottom: var(--s-4);
}
.section--dark .eyebrow { color: var(--c-gold); }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 6px;
  flex: none;
  border-radius: var(--r-pill);
  background:
    radial-gradient(circle at 7px 50%, currentColor 2.4px, transparent 2.6px),
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat;
}

/* -------------------------------------------------------------- 5. Buttons */
.btn {
  --btn-bg: var(--c-gold);
  --btn-fg: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 56px;                 /* generous touch target, per brief */
  padding: var(--s-4) var(--s-7);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:hover  { --btn-bg: var(--c-gold-lt); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-paper);
  border-color: rgba(255, 255, 255, .34);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: var(--c-paper); }

.btn--onlight {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  border-color: var(--c-line);
}
.btn--onlight:hover { --btn-bg: var(--c-paper-2); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn[data-loading="true"] { pointer-events: none; }
.btn[data-loading="true"] .btn__label::after {
  content: "";
  display: inline-block;
  width: .85em; height: .85em;
  margin-left: .5em;
  vertical-align: -.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- 6. Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 7, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-ink-3);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
}
.header__logo { flex: none; display: block; }
.header__logo img { width: 190px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-2); }
.nav__link {
  display: block;
  padding: var(--s-3) var(--s-4);
  color: var(--c-steel);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] {
  color: var(--c-paper);
  background: rgba(255, 255, 255, .07);
}

.header__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  min-height: 48px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease);
}
.header__cta:hover { background: var(--c-gold-lt); }
.header__cta small {
  display: block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--c-ink-3);
  border-radius: var(--r-sm);
  color: var(--c-paper);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) linear;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: relative; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 4px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-4px) rotate(-45deg); }

/* ------------------------------------------------------- 7. Hero (signature)
   The brief asked for a video of doors opening and closing. A scroll-scrubbed
   video cannot hit the stated PageSpeed targets, so the same idea is built in
   CSS: two panels part over a single static image on load. ~0 extra bytes.  */
.hero {
  position: relative;
  background: var(--c-ink);
  color: var(--c-paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 9, 7, .93) 0%, rgba(10, 9, 7, .78) 42%,
                             rgba(10, 9, 7, .34) 72%, rgba(10, 9, 7, .5) 100%),
    linear-gradient(to top, rgba(10, 9, 7, .8) 0%, transparent 42%);
}

/* the two sliding panels */
.hero__panel {
  position: absolute;
  top: 0; bottom: 0;
  z-index: -1;
  width: 52%;
  background: var(--c-ink);
  border-inline: 1px solid rgba(201, 164, 99, .28);
  will-change: transform;
}
.hero__panel--l { left: 0;  transform: translateX(0); }
.hero__panel--r { right: 0; transform: translateX(0); }

.hero.is-open .hero__panel--l { transform: translateX(-101%); }
.hero.is-open .hero__panel--r { transform: translateX(101%); }
.hero__panel { transition: transform var(--t-glide) var(--ease-out); }

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s-6);
  align-content: center;
  min-height: clamp(560px, 78vh, 780px);
  padding-block: var(--s-10);
  max-width: 46rem;
}
.hero h1 { color: var(--c-paper); }
.hero h1 em {
  font-style: normal;
  color: var(--c-gold);
  display: block;
}
.hero__lead {
  font-size: var(--fs-lg);
  color: #dcd8d0;                     /* 11.7:1 on --c-ink ✓ AA */
  max-width: 42ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.hero__trust {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-5);
  margin-top: var(--s-2);
  border-top: 1px solid var(--c-ink-3);
  font-size: var(--fs-sm);
  color: var(--c-steel);
}
.hero__trust li { display: flex; align-items: center; gap: var(--s-2); }
.hero__trust svg { flex: none; color: var(--c-gold); }

/* ------------------------------------------------------------ 8. Trust bar */
.trustbar { background: var(--c-ink-2); border-block: 1px solid var(--c-ink-3); }
.trustbar__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.trustbar__item {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--c-ink-3);
  text-align: center;
}
.trustbar__item:last-child { border-right: 0; }
.trustbar__num {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-gold);
}
.trustbar__label {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-steel);
}

/* -------------------------------------------------------------- 9. Cards */
.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
a.card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--c-paper-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-gold-dp);
}
.card h3 { margin-top: var(--s-2); }
.card p { color: var(--c-text-2); font-size: var(--fs-sm); }
.card__more {
  margin-top: auto;
  padding-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gold-dp);
}
a.card:hover .card__more { text-decoration: underline; }

/* ------------------------------------------------------------- 10. Process
   Numbered because the content genuinely is a sequence: the order is what a
   customer is being told. The rail connecting the steps is the track motif. */
.process { counter-reset: step; }
.process__list {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.process__step { position: relative; padding-top: var(--s-7); }
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--c-gold-dp);
}
.process__step::after {
  content: "";
  position: absolute; top: 8px; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--c-line);
}
.process__step h3 { margin-bottom: var(--s-2); }
.process__step p { color: var(--c-text-2); font-size: var(--fs-sm); }

/* ------------------------------------------------------- 11. Before / after */
.ba { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .ba { grid-template-columns: 1.05fr .95fr; gap: var(--s-9); } }
.ba__figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.ba__figure img { width: 100%; }
.ba__figure figcaption {
  padding: var(--s-4) var(--s-5);
  background: var(--c-ink-2);
  color: var(--c-steel);
  font-size: var(--fs-sm);
}
.ba__points { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.ba__points li { display: flex; gap: var(--s-3); }
.ba__points svg { flex: none; margin-top: .3em; color: var(--c-gold-dp); }

/* ------------------------------------------------------------ 12. ZIP search */
.ziptool {
  padding: var(--s-7);
  background: var(--c-ink-2);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--r-lg);
}
.ziptool__form { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.ziptool__field { flex: 1 1 220px; }
.ziptool input {
  width: 100%;
  min-height: 56px;
  padding: var(--s-3) var(--s-5);
  background: var(--c-ink);
  color: var(--c-paper);
  border: 1px solid #3a3428;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  letter-spacing: .1em;
}
.ziptool input::placeholder { color: #8b8578; letter-spacing: normal; }
.ziptool__result {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--c-ink);
  border: 1px solid var(--c-ink-3);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--c-steel);
}
.ziptool__result a { color: var(--c-gold); font-weight: 600; }
.ziptool__result[data-state="error"] { border-left-color: #e0665e; }

/* --------------------------------------------------------------- 13. Areas */
.arealist {
  display: grid;
  gap: var(--s-2) var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: var(--s-6);
}
.arealist a {
  display: block;
  padding: var(--s-2) 0;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}
.arealist a:hover { color: var(--c-text); border-bottom-color: var(--c-gold); }

/* ------------------------------------------------------------- 14. Reviews */
.quote {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.quote blockquote { font-size: var(--fs-lg); line-height: 1.5; }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--c-text-2); }
.quote cite { font-style: normal; font-weight: 600; color: var(--c-text); }
.stars { display: flex; gap: 2px; color: var(--c-gold-dp); }

/* ----------------------------------------------------------------- 15. FAQ
   Built on <details>/<summary>, so answers open and close with no JavaScript
   at all. The previous button-based version left every answer invisible if the
   script had not run. The first item ships open so it is obvious at a glance
   that answers are there.
   ========================================================================== */
.faq { max-width: var(--measure); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.section--tint .faq__item { border-bottom-color: #e0d9c9; }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
  cursor: pointer;
  list-style: none;                 /* hide the default triangle          */
  transition: color var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--c-gold-dp); }
.faq__q:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.faq__icon { flex: none; width: 22px; height: 22px; margin-top: .3em; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-base) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__a p {
  padding-bottom: var(--s-5);
  margin: 0;
  color: var(--c-text-2);
  max-width: 62ch;
}
.faq__item[open] .faq__a { animation: faqIn var(--t-base) var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 16. Form */
.formcard {
  padding: var(--s-7);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--c-text-2); }
.field input, .field select, .field textarea {
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: var(--c-paper);
  border: 1px solid #c9c2b2;      /* 3.1:1 on paper ✓ AA non-text contrast */
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 118px; padding-top: var(--s-3); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9d9686; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--c-focus);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, .22);
}
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-error);
}
.field__error[data-show="true"] { display: block; }
.form__row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { margin-top: var(--s-4); font-weight: 600; }
.form__status[data-state="ok"]  { color: var(--c-success); }
.form__status[data-state="err"] { color: var(--c-error); }
.form__legal { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--c-text-2); }

/* -------------------------------------------------------------- 17. Footer */
.footer { background: var(--c-ink); color: var(--c-steel); padding-block: var(--s-9) var(--s-6); }
.footer a { color: var(--c-steel); text-decoration: none; }
.footer a:hover { color: var(--c-paper); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-4);
}
.footer li + li { margin-top: var(--s-2); }
.footer__logo img { width: 210px; margin-bottom: var(--s-4); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--c-ink-3);
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------- 18. Mobile call */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(10, 9, 7, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-ink-3);
}
.callbar .btn { width: 100%; }

/* ------------------------------------------------------------ 19. Responsive */
@media (max-width: 1020px) {
  .header__logo img { width: 158px; }
  .nav__link { padding: var(--s-3); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: var(--s-4) var(--gutter) var(--s-7);
    background: var(--c-ink);
    border-bottom: 1px solid var(--c-ink-3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-base) var(--ease),
                opacity var(--t-fast) linear,
                visibility 0s linear var(--t-base);
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s-4) var(--s-3);
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--c-ink-3);
    border-radius: 0;
  }
  .callbar { display: block; }
  body { padding-bottom: 84px; }
  .trustbar__item { border-right: 0; border-bottom: 1px solid var(--c-ink-3); }
}

@media (max-width: 620px) {
  .hero__inner { min-height: 0; padding-block: var(--s-9) var(--s-8); }
  .hero__actions .btn { width: 100%; }
  .ziptool { padding: var(--s-5); }
  .formcard { padding: var(--s-5); }
}

/* ------------------------------------------------------- 20. Motion & print */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* the door must never be left shut for someone who opted out of motion */
  .hero__panel { display: none; }
}

@media print {
  .header, .callbar, .nav-toggle, .hero__panel, .ziptool { display: none !important; }
  body { color: #000; background: #fff; padding-bottom: 0; }
  .section { padding-block: 1.5rem; }
}

/* ==========================================================================
   21. Interior page components
   Added for the service, location and legal pages. Same tokens, no new
   colours, no one-off spacing values.
   ========================================================================== */

/* ---------------------------------------------------------- Breadcrumbs */
.crumbs {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: var(--fs-sm);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding-block: var(--s-4);
  margin: 0;
  list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: var(--s-2); color: var(--c-text-2); }
.crumbs li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}
.crumbs a { color: var(--c-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }
.crumbs li:last-child { color: var(--c-text); font-weight: 600; }

/* ---------------------------------------------------------- Prose blocks */
.prose { max-width: var(--measure); }
.prose + .prose { margin-top: var(--s-8); }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-4);
  padding-top: var(--s-4);
  border-top: 3px solid var(--c-line);
}
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { margin: var(--s-6) 0 var(--s-3); }
.prose p + p { margin-top: var(--s-4); }
.prose p { color: var(--c-text-2); }
.prose p strong { color: var(--c-text); }
.prose a { color: var(--c-gold-dp); font-weight: 500; }
.prose ul { margin: var(--s-4) 0; padding-left: var(--s-5); }
.prose li { color: var(--c-text-2); margin-bottom: var(--s-2); }

/* ------------------------------------------------------------- Side card */
.sidecard {
  padding: var(--s-6);
  background: var(--c-paper-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.sidecard h3 { font-size: var(--fs-lg); margin-bottom: var(--s-5); }
.sidecard h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-gold-dp);
  margin-bottom: var(--s-3);
}
.factlist { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-5); margin: 0; }
.factlist dt { font-size: var(--fs-sm); font-weight: 600; }
.factlist dd { margin: 0; font-size: var(--fs-sm); color: var(--c-text-2); }

/* ------------------------------------------------------------- ZIP chips */
.ziplist { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.zip {
  display: inline-block;
  padding: 2px var(--s-3);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--c-text-2);
  white-space: nowrap;
}

/* ------------------------------------------------------------ ZIP table */
.tablewrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.ziptable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ziptable th, .ziptable td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.ziptable thead th {
  background: var(--c-paper-2);
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-2);
  position: sticky; top: 0;
}
.ziptable tbody th { font-weight: 600; white-space: nowrap; }
.ziptable tbody th a { color: var(--c-gold-dp); text-decoration: none; }
.ziptable tbody th a:hover { text-decoration: underline; }
.ziptable tbody tr:last-child th, .ziptable tbody tr:last-child td { border-bottom: 0; }
.ziptable tbody tr:nth-child(even) { background: rgba(247, 244, 238, .55); }

/* ------------------------------------------------------------- Area line */
.arealine {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.arealine a { color: var(--c-gold-dp); font-weight: 500; }
.section--tint .arealine { border-top-color: #e0d9c9; }

/* -------------------------------------------------------- Interior tweaks */
@media (max-width: 900px) {
  .sidecard { position: static !important; }
  .ba__figure[style*="sticky"] { position: static !important; }
}

/* ==========================================================================
   22. Photo bands
   Job photographs with real captions, used on the homepage, every service
   page and every city page.
   ========================================================================== */
.photos { display: grid; gap: var(--s-5); }
.photos--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.photos--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.photo:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-paper-2);
}
.photo figcaption {
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-text-2);
  border-top: 1px solid var(--c-line);
  flex: 1;
}
.section--tint .photo { background: var(--c-paper); }
.section--dark .photo { background: var(--c-ink-2); border-color: var(--c-ink-3); }
.section--dark .photo figcaption { color: var(--c-steel); border-top-color: var(--c-ink-3); }

/* Portrait-shaped sources keep their proportions instead of being cropped
   to a letterbox that cuts the subject in half. */
.photo img[height="1125"], .photo img[height="1200"],
.photo img[height="1067"], .photo img[height="509"] { aspect-ratio: 3 / 4; }

/* Gallery figures reuse .ba__figure; give them a consistent crop too. */
.grid--3 .ba__figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.grid--3 .ba__figure img[height="1125"],
.grid--3 .ba__figure img[height="1200"],
.grid--3 .ba__figure img[height="1067"],
.grid--3 .ba__figure img[height="509"] { aspect-ratio: 3 / 4; }

@media print { .photo { break-inside: avoid; } }

/* ==========================================================================
   23. Photo cards
   Service and city cards carry a thumbnail. The image is decorative — the
   heading beside it already names the destination — so alt is empty and the
   whole card is one link rather than two competing ones.
   ========================================================================== */
.card--photo { padding: 0; overflow: hidden; }
.card__thumb { display: block; background: var(--c-paper-2); }
.card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
a.card--photo:hover .card__thumb img { transform: scale(1.035); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
  padding: var(--s-5) var(--s-6) var(--s-6);
}
.card--photo h3 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  a.card--photo:hover .card__thumb img { transform: none; }
}
