/* Layout concept: one pinned film of a real Dublin job that builds its wall
   as you scroll, then a calm ivory page that reads like a builder's spec
   sheet, ending on the quote form. Charcoal, warm ivory, golden-hour amber. */
:root {
  color-scheme: light;
  --bg: #f7f4ee;            /* main background */
  --bg-alt: #ede7dc;        /* alternate sections */
  --ink: #252b29;           /* headings and dark surfaces */
  --ink-2: #303735;
  --text: #565d57;          /* body copy */
  --line: #d9d1c5;          /* decorative borders only */
  --field: #857e73;         /* form field borders (3:1 on white) */
  --amber: #e9a744;         /* buttons, accents on dark */
  --amber-hover: #d99532;
  --amber-text: #8a5a12;    /* small amber text on pale backgrounds */
  --error: #a3361f;
  --on-dark: #f7f4ee;
  --on-dark-soft: #cdc6ba;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 6px;
  --nav-h: 68px;
  --pad: clamp(44px, 5vw + 20px, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(16px, .4vw + 14.6px, 18px)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
u { text-decoration-line: underline; text-decoration-color: var(--amber); text-decoration-thickness: .085em; text-underline-offset: .13em; text-decoration-skip-ink: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: dark ring on light backgrounds, amber ring on dark ones. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.film :focus-visible, .opening :focus-visible, .grant :focus-visible, .quote :focus-visible,
.foot :focus-visible, .quick :focus-visible, .facts :focus-visible,
.nav:not(.is-solid):not(.is-open) :focus-visible { outline-color: var(--amber); }
.quote .form :focus-visible { outline-color: var(--ink); }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 14px/1.3 var(--f-body); color: var(--amber-text); letter-spacing: .01em; }
.kicker { font: 600 13px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.tag { display: inline-block; font: 600 13px/1 var(--f-body); letter-spacing: .02em; padding: 6px 9px; border-radius: 4px; background: var(--ink); color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--f-body);
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { border-color: rgba(247, 244, 238, .55); color: var(--on-dark); background: rgba(37, 43, 41, .35); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(37, 43, 41, .6); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { cursor: progress; opacity: .75; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-dark);
  transition: background-color .25s, color .25s, box-shadow .25s, opacity .3s;
}
/* At the Completed stage the header steps aside so the house is shown clean. */
.nav.is-hidden { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
/* Over photography: a steady dark gradient so the links always read. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -36px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 29, 28, .82) 0%, rgba(25, 29, 28, .55) 60%, rgba(25, 29, 28, 0) 100%);
  transition: opacity .25s;
}
.nav.is-solid, .nav.is-open { background: rgba(247, 244, 238, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid::before, .nav.is-open::before { opacity: 0; }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand b { font: 800 20px/1 var(--f-display); letter-spacing: -.01em; font-stretch: 112%; }
.brand span { font: 500 13px/1 var(--f-body); opacity: .82; margin-top: 5px; }
.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a { display: inline-block; padding: 10px 0; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.menu-phone { display: none; }
.nav-phone { text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 11px 10px; cursor: pointer; border-radius: var(--radius); }
.menu-btn i { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav.is-open .menu-btn i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-btn i:nth-of-type(2) { opacity: 0; }
.nav.is-open .menu-btn i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) { .nav-phone { display: none; } }
@media (max-width: 960px) {
  :root { --nav-h: 60px; }
  .nav-in { gap: 8px; }
  .brand b { font-size: 18px; }
  .brand span { font-size: 12px; }
  .menu-btn { display: block; }
  .nav .btn { padding: 0 14px; min-height: 42px; font-size: 15px; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--bg); color: var(--ink); padding: 4px var(--gutter) 20px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .14); border-top: 1px solid var(--line);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu-phone { display: block; padding: 16px 0 4px; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--amber-text); }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- Opening film (scroll-scrubbed) ---------- */
.film { display: none; }
.motion .film { display: block; position: relative; height: 460vh; background: var(--ink); }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--on-dark); }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(25, 29, 28, .55) 0%, rgba(25, 29, 28, 0) 26%),
    linear-gradient(90deg, rgba(25, 29, 28, .78) 0%, rgba(25, 29, 28, .45) 36%, rgba(25, 29, 28, 0) 62%);
}
.film-copy { position: absolute; left: 0; right: 0; bottom: clamp(72px, 13vh, 132px); }
/* Copy sits still: stages cross-fade without moving or scaling. Hidden
   stages are also removed from the tab order. */
.beat {
  position: absolute; left: var(--gutter); bottom: 0;
  width: min(640px, calc(100% - 2 * var(--gutter)));
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
/* The outgoing stage clears before the next fades in, so copy never overlaps. */
.beat.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease .15s, visibility 0s; }
.beat h1, .beat h2, .opening h1 { color: var(--on-dark); font-weight: 800; font-stretch: 116%; letter-spacing: -.022em; margin-top: 12px; }
.beat h1, .opening h1 { font-size: clamp(38px, 4.2vw + 22px, 76px); line-height: 1.0; }
.beat h2 { font-size: clamp(30px, 2.2vw + 20px, 52px); line-height: 1.05; }
.beat h2.beat-final { font-size: clamp(36px, 3.4vw + 20px, 68px); line-height: 1.0; }
.beat p:not(.kicker) { margin-top: 16px; font-size: clamp(16px, .3vw + 15px, 19px); color: var(--on-dark); max-width: 46ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.beat .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--amber); }

.film-rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.film-rail ol { list-style: none; display: grid; gap: 2px; padding: 8px; background: rgba(25, 29, 28, .72); border: 1px solid rgba(247, 244, 238, .14); border-radius: 10px; backdrop-filter: blur(6px); }
.film-rail button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 6px;
  background: transparent; color: var(--on-dark-soft); cursor: pointer;
  font: 500 15px/1 var(--f-body); text-align: left;
}
/* Marker: hollow ring when inactive, filled amber when active. */
.film-rail button::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.film-rail button:hover { color: var(--on-dark); background: rgba(247, 244, 238, .08); }
.film-rail button[aria-current="step"] { color: #fff; font-weight: 700; background: rgba(247, 244, 238, .1); }
.film-rail button[aria-current="step"]::before { background: var(--amber); border-color: var(--amber); }

.film-note { position: absolute; left: var(--gutter); bottom: 20px; font-size: 13px; color: var(--on-dark-soft); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--on-dark); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(25, 29, 28, .6);
  transition: opacity .3s;
}
.scroll-hint::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: translateY(-2px) rotate(45deg); }
.film.is-moving .scroll-hint { opacity: 0; }
.film-skip {
  position: absolute; right: var(--gutter); bottom: 14px;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px;
  font-size: 14px; font-weight: 600; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(247, 244, 238, .5);
}
.film-skip:hover { text-decoration-color: var(--amber); }
.film-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(247, 244, 238, .12); }
.film-progress span { display: block; height: 100%; width: 0; background: var(--amber); }
/* Completed stage: just the finished house, no controls or text. */
.film.is-clean :is(.film-shade, .film-copy, .film-rail, .film-note, .film-skip, .scroll-hint, .film-progress) { opacity: 0 !important; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }

@media (max-width: 960px) {
  .motion .film { height: 400vh; }
  .film-shade { background: linear-gradient(180deg, rgba(25, 29, 28, .55) 0%, rgba(25, 29, 28, 0) 22%, rgba(25, 29, 28, 0) 38%, rgba(25, 29, 28, .9) 74%, rgba(25, 29, 28, .96) 100%); }
  .film-copy { bottom: 66px; }
  .beat .actions .btn { flex: 1 1 auto; }
  /* Stage controls become a compact row under the header. */
  .film-rail { top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 8px); left: var(--gutter); right: var(--gutter); transform: none; }
  .film-rail ol { display: flex; justify-content: space-between; gap: 0; padding: 4px; border-radius: 999px; }
  .film-rail li { flex: 1 1 auto; }
  .film-rail button { justify-content: center; gap: 0; min-height: 36px; padding: 0 6px; font-size: 13px; border-radius: 999px; }
  .film-rail button::before { display: none; }
  .film-rail button[aria-current="step"] { background: var(--amber); color: var(--ink); }
  .scroll-hint { left: var(--gutter); transform: none; bottom: 16px; font-size: 14px; padding: 6px 12px; }
  .film-skip { bottom: auto; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 54px); min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(25, 29, 28, .6); font-size: 13px; }
  .film-note { bottom: 22px; font-size: 12px; right: var(--gutter); opacity: 0; transition: opacity .3s; }
  .film.is-moving .film-note { opacity: 1; }
}
@media (max-width: 360px) { .film-rail button { font-size: 12px; padding: 0 3px; } }

/* ---------- Static opening (reduced motion, Save-Data, no JavaScript) ---------- */
.opening { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.motion .opening { display: none; }
.opening-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.opening::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25, 29, 28, .9) 0%, rgba(25, 29, 28, .7) 42%, rgba(25, 29, 28, .2) 75%); }
.opening-in { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(36px, 6vh, 80px)); padding-bottom: clamp(40px, 6vh, 72px); }
.opening-in > * { max-width: 640px; }
.opening-in > h1 { max-width: 820px; }
.opening .lede { margin-top: 16px; font-size: clamp(17px, .4vw + 15px, 20px); }
.opening-stages { list-style: none; margin-top: 24px; display: grid; gap: 8px; counter-reset: st; }
.opening-stages li { counter-increment: st; display: grid; grid-template-columns: 28px 120px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--on-dark-soft); }
.opening-stages li::before { content: counter(st); font-weight: 700; color: var(--ink); background: var(--amber); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.opening-stages b { color: var(--on-dark); }
.opening .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.opening-note { margin-top: 20px; font-size: 14px; color: var(--on-dark-soft); }
@media (max-width: 760px) {
  .opening-media { position: relative; aspect-ratio: 4 / 3; margin-top: var(--nav-h); }
  .opening-media img { object-position: 46% 70%; }
  .opening::before { display: none; }
  .opening-in { padding-top: 28px; }
  .opening-stages li { grid-template-columns: 24px minmax(0, 1fr); row-gap: 2px; }
  .opening-stages li span { grid-column: 2; }
  .opening-stages li::before { grid-row: span 2; }
  .opening .actions .btn { flex: 1 1 auto; }
}

/* ---------- Trust strip ---------- */
.facts { background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(247, 244, 238, .1); }
.facts ul { list-style: none; padding-block: 22px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 28px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23252b29' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.facts b { font: 600 16px/1.3 var(--f-body); }
@media (max-width: 960px) { .facts ul { grid-template-columns: 1fr 1fr; justify-content: stretch; } }
@media (max-width: 400px) { .facts b { font-size: 15px; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--pad); }
.section.alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 14px; max-width: 720px; align-content: start; }
.section-head h2 { font-size: clamp(28px, 1.6vw + 22px, 44px); font-weight: 800; font-stretch: 110%; letter-spacing: -.018em; }
.section-head p { max-width: 60ch; }
.section-head a { color: var(--ink); font-weight: 600; }

/* Benefits */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(28px, 3vw, 44px); }
.why-grid article { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.why-grid h3 { font-size: 20px; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Our work */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 3vw, 44px); }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.ba figcaption { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-weight: 500; }
.case { display: grid; grid-template-columns: auto auto 1fr; gap: 12px clamp(24px, 4vw, 56px); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case dt { font-size: 14px; color: var(--amber-text); font-weight: 600; }
.case dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.case-note { margin-top: 14px; font-size: 15px; }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
}

/* Grant */
.grant { background: var(--ink); color: var(--on-dark-soft); }
.grant h2, .grant h3 { color: var(--on-dark); }
.grant .eyebrow { color: var(--amber); }
.grant-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.grant .section-head > div { margin-top: 8px; }
.grant-card { border: 1px solid rgba(247, 244, 238, .2); border-radius: 10px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; background: rgba(247, 244, 238, .04); }
.grant-card h3 { font-size: 20px; font-weight: 700; font-stretch: 106%; }
.grant-rows { display: grid; margin: 0; }
.grant-rows div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(247, 244, 238, .14); align-items: baseline; }
.grant-rows div:first-child { border-top: 1px solid rgba(247, 244, 238, .14); }
.grant-rows dt { color: var(--on-dark); }
.grant-rows dd { margin: 0; font-weight: 700; color: var(--on-dark); text-align: right; }
.grant-rows dd.you { color: var(--amber); }
.grant-note { font-size: 15px; }
@media (max-width: 860px) { .grant-in { grid-template-columns: 1fr; } }

/* Process */
.process-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.steps { list-style: none; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 20px; font-weight: 700; font-stretch: 106%; line-height: 1.3; align-self: center; }
.aftercare { margin-top: 8px; padding: 18px 20px; background: var(--bg-alt); border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 4px; }
.aftercare h3 { font-size: 18px; font-weight: 700; }
.cutaway { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.cutaway img { width: 100%; height: auto; border-radius: var(--radius); }
.cutaway figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.cutaway ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; counter-reset: c; }
.cutaway ol li { counter-increment: c; }
.cutaway ol li::before { content: counter(c) ". "; color: var(--amber-text); font-weight: 700; }
@media (max-width: 860px) { .process-in { grid-template-columns: 1fr; } .cutaway { position: static; } }

/* Finishes */
.finish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: clamp(28px, 3vw, 44px); }
.finish-grid figure { margin: 0; }
.finish-grid img { width: 100%; height: auto; aspect-ratio: 746 / 420; object-fit: cover; border-radius: var(--radius); }
.finish-grid figcaption { margin-top: 14px; display: grid; gap: 4px; }
.finish-grid h3 { font-size: 20px; font-weight: 700; font-stretch: 106%; }
.finish-more { margin-top: 24px; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .finish-grid { grid-template-columns: 1fr; } }

/* Secondary services */
.section-sm { padding-block: clamp(36px, 3vw + 20px, 56px); border-top: 1px solid var(--line); }
.other-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px clamp(24px, 5vw, 64px); align-items: baseline; }
.other-in h2 { font-size: clamp(22px, .8vw + 18px, 28px); font-weight: 700; font-stretch: 106%; }
@media (max-width: 760px) { .other-in { grid-template-columns: 1fr; } }

/* FAQ */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list details[open] { border-color: var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 56px; padding: 15px 56px 15px 18px; display: flex; align-items: center;
  font: 700 18px/1.35 var(--f-body); color: var(--ink); border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { background: rgba(37, 43, 41, .04); }
.faq-list details p { padding: 0 18px 18px; max-width: 62ch; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } .faq-list summary { font-size: 17px; } }

/* Quote */
.quote { position: relative; color: var(--on-dark-soft); background: var(--ink); overflow: hidden; padding-block: var(--pad); }
.quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; opacity: .6; }
.quote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 29, 28, .95) 0%, rgba(25, 29, 28, .84) 45%, rgba(25, 29, 28, .55) 100%); z-index: 1; }
.quote-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote h2 { color: var(--on-dark); }
.quote .eyebrow { color: var(--amber); }
.contact-lines { display: grid; gap: 16px; margin-top: 32px; }
.contact-lines a { text-decoration: none; display: grid; gap: 2px; justify-self: start; }
.contact-lines span { font-size: 14px; }
.contact-lines strong { font: 700 24px/1.25 var(--f-display); font-stretch: 106%; color: var(--on-dark); word-break: break-word; text-decoration: underline; text-decoration-color: rgba(233, 167, 68, .6); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.contact-lines a:hover strong { color: var(--amber); }
.coverage { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(247, 244, 238, .18); max-width: 46ch; }
.coverage b { color: var(--on-dark); }

.form { background: var(--bg); color: var(--ink); border-radius: 10px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.form h3 { font-size: 24px; font-weight: 800; font-stretch: 108%; }
.form-req { font-size: 14px; color: var(--text); margin-top: -10px; }
.req { color: var(--error); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font: 600 15px/1.3 var(--f-body); color: var(--ink); }
.field label small { font-weight: 400; font-size: 14px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.hint { font-size: 14px; color: var(--text); }
.err { font-size: 14px; font-weight: 600; color: var(--error); }
.err:empty { display: none; }
.field.has-err input { border: 2px solid var(--error); }
.form-errors { border: 2px solid var(--error); border-radius: var(--radius); padding: 14px 16px; background: #fff; color: var(--ink); }
.form-errors p { font-weight: 700; color: var(--error); }
.form-errors ul { margin-top: 6px; padding-left: 20px; }
.form-errors a { color: var(--error); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; min-height: 54px; font-size: 17px; }
.form-foot { font-size: 14px; color: var(--text); }
.form-foot a { color: var(--ink); font-weight: 600; }
.form-status:empty { display: none; }
.form-status { border-radius: var(--radius); padding: 14px 16px; font-size: 15px; display: grid; gap: 8px; }
.form-status.ok { background: #e2ebdb; color: #23401b; border: 1px solid #8fae80; }
.form-status.fail { background: #f6e3da; color: #5e2414; border: 1px solid #cf9a86; }
.form-status pre { white-space: pre-wrap; font: 400 14px/1.45 ui-monospace, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .7); padding: 10px; border-radius: var(--radius); margin: 0; max-height: 180px; overflow: auto; }
.form-status .copy { justify-self: start; min-height: 40px; padding: 0 14px; font-size: 15px; width: auto; }
.form-status a:not(.btn) { color: inherit; font-weight: 700; }
@media (max-width: 860px) { .quote-in { grid-template-columns: 1fr; } .quote::before { background: rgba(25, 29, 28, .86); } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: var(--on-dark-soft); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.foot .brand { color: var(--on-dark); margin: 0; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot ul a { display: inline-block; padding: 6px 0; text-decoration: underline; text-decoration-color: rgba(247, 244, 238, .3); text-underline-offset: 4px; }
.foot a:hover { color: var(--on-dark); }

/* Mobile sticky quote bar */
.quick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  transform: translateY(110%); visibility: hidden; transition: transform .3s, visibility 0s linear .3s;
}
.quick.is-on { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
.quick .btn { flex: 1; min-height: 46px; }
@media (max-width: 760px) { .quick { display: flex; } .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Privacy page */
.doc { padding-top: calc(var(--nav-h) + 48px); padding-bottom: var(--pad); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 2vw + 24px, 48px); font-weight: 800; font-stretch: 110%; letter-spacing: -.018em; }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
