/* =========================================================
   Window Replacement Sherwood Park: site styles
   Plain CSS, no build step. Colours, type and spacing are
   driven by the variables below.

   Design idea: the hero photo is framed as a window (casing,
   muntins, sill) and the glass "warms" once on load. Everything
   else stays quiet: slate, frost and one lamp amber accent.
   ========================================================= */

/* ---------- self hosted fonts (SIL Open Font License, see assets/fonts) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo.woff2') format('woff2-variations'), url('fonts/archivo.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4.woff2') format('woff2-variations'), url('fonts/source-serif-4.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4-italic.woff2') format('woff2-variations'), url('fonts/source-serif-4-italic.woff2') format('woff2');
}

:root {
  /* palette, sampled from the site photography */
  --slate:       #22313D;   /* siding on the hero house: headings, dark UI */
  --slate-2:     #2E4150;   /* hover on slate */
  --night:       #142029;   /* dusk sky: footer */
  --amber:       #E3A13B;   /* lamp light in the windows: primary actions only */
  --amber-2:     #CF8C25;   /* amber hover */
  --amber-text:  #8A5A12;   /* amber tuned for text on light backgrounds (AA) */
  --frost:       #EDF2F4;   /* alternate sections */
  --white:       #FFFFFF;
  --ink:         #17232C;
  --ink-soft:    #45525E;   /* body copy, AA on white and frost */
  --line:        #D6DFE5;

  /* legacy names the builder uses */
  --brand:       var(--slate);
  --brand-dark:  var(--night);
  --bg:          var(--white);
  --bg-alt:      var(--frost);
  --bg-dark:     var(--night);

  /* type */
  --font-head: 'Archivo', 'Arial Narrow', Arial, Helvetica, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:   'Archivo', Arial, Helvetica, sans-serif;

  /* layout */
  --max:         1200px;
  --radius:      4px;     /* window frames are square: images, panes */
  --radius-btn:  6px;
  --radius-card: 10px;    /* only the form card */
  --header-h:    74px;
  --section-y:   clamp(64px, 8vw, 112px);
  --measure:     66ch;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.02rem + .2vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-stretch: 112%;
  color: var(--slate);
  letter-spacing: -.015em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.1rem); line-height: 1.04; font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.1; margin-bottom: .7em; }
h3 { font-size: clamp(1.12rem, 1.06rem + .25vw, 1.28rem); line-height: 1.25; margin-bottom: .45em; font-stretch: 105%; letter-spacing: -.005em; }
h4 { font-size: 1rem; }

p { margin-bottom: 1.15em; color: var(--ink-soft); text-wrap: pretty; }
p:empty { display: none; }  /* builder leaves empty paragraphs after nested buttons */
strong { color: var(--ink); font-weight: 650; }

a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--amber-text); }

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

::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  background: var(--amber);
  color: var(--night);
  border: 2px solid var(--amber);
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 1rem; font-weight: 650; font-stretch: 105%; letter-spacing: .005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--night); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--ghost:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.wc-phone { font-weight: 650; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--slate); text-decoration: none;
  font-family: var(--font-head); font-stretch: 118%; font-size: 1.02rem; line-height: 1.15;
}
.nav__logo strong { color: var(--slate); font-weight: 750; letter-spacing: -.01em; max-width: 17ch; }
/* small four pane window mark, drawn in CSS */
.nav__logo::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 2px;
  border: 3px solid var(--slate);
  background:
    linear-gradient(var(--slate), var(--slate)) center / 3px 100% no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 100% 3px no-repeat,
    linear-gradient(160deg, #F6D49A 0%, var(--amber) 100%);
}
.nav__logo:hover { color: var(--slate); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links > li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 550;
}
.nav__links > li > a:hover { color: var(--amber-text); }
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 8px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  list-style: none; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber);
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  box-shadow: 0 18px 40px rgba(20,32,41,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; display: none; }
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { list-style: none; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-family: var(--font-ui); font-size: .93rem;
}
.dropdown a:hover { background: var(--frost); color: var(--slate); }

.nav__links > li > a.nav__call {
  margin-left: 10px; padding: 0 18px; min-height: 46px;
  background: var(--slate); color: var(--white) !important;
  border-radius: var(--radius-btn); font-weight: 650;
}
.nav__links > li > a.nav__call:hover { background: var(--slate-2); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--white); color: var(--slate); font-size: 1.35rem; line-height: 1; cursor: pointer;
}

@media (max-width: 1020px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20,32,41,.10);
    padding: 8px clamp(20px, 4vw, 40px) 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links > li { border-bottom: 1px solid var(--line); }
  .nav__links > li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav__links > li > a { width: 100%; min-height: 52px; padding: 0; font-size: 1.02rem; }
  .has-dropdown > a::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 10px 14px; min-width: 0; border-left: 2px solid var(--amber); border-radius: 0;
  }
  .dropdown a { padding: 9px 12px; }
  .nav__links > li > a.nav__call { margin: 0; justify-content: center; min-height: 54px; }
}

/* =========================================================
   HERO: the photo is a window
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  column-gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  /* lines the hero up with the header and every .wrap */
  padding-inline: max(clamp(20px, 4vw, 40px), calc((100% - var(--max)) / 2 + clamp(20px, 4vw, 40px)));
  background: linear-gradient(180deg, var(--frost) 0%, #F6F8F9 100%);
  color: var(--ink);
  overflow: hidden;
}
.hero::after { content: none; }   /* removes the builder's dark overlay */

.hero__inner {
  grid-column: 1; grid-row: 1;
  position: relative; z-index: 2;
  max-width: none; margin: 0; padding: 0;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; font-stretch: 105%;
  color: var(--amber-text) !important; letter-spacing: 0; text-transform: none; opacity: 1; line-height: 1.35;
}
.hero__eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--amber); flex: none; }
.hero h1 { color: var(--slate); margin: 0 0 22px; max-width: 13ch; }
.hero__inner > p:not(.hero__eyebrow) { line-height: 1.55; color: var(--ink-soft); font-size: clamp(1.1rem, 1.04rem + .3vw, 1.28rem); max-width: 40ch; margin-bottom: 0; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* the builder writes white inline colours on the phone button; restyle it for a light hero */
.hero .hero__cta .btn--ghost { color: var(--slate) !important; border-color: var(--slate) !important; background: transparent; }
.hero .hero__cta .btn--ghost:hover { color: var(--white) !important; background: var(--slate); }

/* the window: casing, four panes, sill */
.hero__media {
  grid-column: 2; grid-row: 1;
  position: relative; inset: auto; z-index: 1;
  padding: 14px 14px 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FFFFFF 0, #FFFFFF calc(100% - 30px), #C9D3DA calc(100% - 30px), #C9D3DA calc(100% - 29px), #F3F6F8 calc(100% - 29px), #E4EAEE 100%);
  box-shadow:
    0 1px 0 rgba(20,32,41,.06),
    0 30px 60px -20px rgba(20,32,41,.35),
    0 60px 90px -50px rgba(227,161,59,.55);
}
.hero__media img {
  width: 100%; aspect-ratio: 5 / 4; height: auto; object-fit: cover; object-position: 30% 50%;
  border-radius: 1px;
}
/* muntins: the white cross that splits the glass into four panes */
.hero__media::before,
.hero__media::after {
  content: ""; position: absolute; z-index: 2; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(20,32,41,.08), 0 2px 6px rgba(20,32,41,.18);
}
.hero__media::before { top: 14px; bottom: 30px; left: calc(50% - 5px); width: 10px; }
.hero__media::after  { left: 14px; right: 14px; top: calc(14px + (100% - 44px) / 2 - 5px); height: 10px; }

/* the one load moment: the glass warms up */
@keyframes glass-warms {
  from { filter: saturate(.25) brightness(.92) hue-rotate(-14deg); }
  to   { filter: none; }
}
.hero__media img { animation: glass-warms 1.6s var(--ease) .15s both; }

/* service and town pages: a smaller window */
.page-service .hero, .page-location .hero { padding-top: clamp(40px, 5.5vw, 76px); padding-bottom: clamp(48px, 6vw, 84px); }
.page-service .hero__media img, .page-location .hero__media img { aspect-ratio: 4 / 3; }
.page-service .hero h1, .page-location .hero h1 { font-size: clamp(2.1rem, 1.45rem + 2.8vw, 3.5rem); max-width: 15ch; }
.page-location .hero__media img { object-position: 70% 50%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr); row-gap: 40px; }
  .hero__inner { grid-column: 1; grid-row: 1; }
  .hero__media { grid-column: 1; grid-row: 2; max-width: 560px; width: 100%; justify-self: center; padding: 10px 10px 22px;
    background: linear-gradient(180deg, #FFFFFF 0, #FFFFFF calc(100% - 22px), #C9D3DA calc(100% - 22px), #C9D3DA calc(100% - 21px), #F3F6F8 calc(100% - 21px), #E4EAEE 100%); }
  .hero__media::before { top: 10px; bottom: 22px; left: calc(50% - 4px); width: 8px; }
  .hero__media::after  { left: 10px; right: 10px; top: calc(10px + (100% - 32px) / 2 - 4px); height: 8px; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--frost); }
.section--dark { background: var(--night); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.82); }

.section__lead { max-width: var(--measure); }
.section__lead > p:first-child, p.section__lead { font-size: 1.1em; color: var(--ink); }
.center .section__lead, .section__lead.center { margin-left: auto; margin-right: auto; }
h2.center { margin-left: auto; margin-right: auto; max-width: 24ch; }

.section .wrap > p, .section .wrap > .section__lead { max-width: var(--measure); }
.section .wrap > .btn { margin-top: 12px; }

/* editorial layout for long reading sections:
   heading stays in a sticky left column, copy runs in the right column */
@media (min-width: 1000px) {
  .section > .wrap.is-editorial {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .section > .wrap.is-editorial > * { grid-column: 2; }
  .section > .wrap.is-editorial > h2 {
    grid-column: 1; grid-row: 1 / span 40;
    position: sticky; top: calc(var(--header-h) + 32px);
    margin-bottom: 0; max-width: 14ch;
  }
  .section > .wrap.is-editorial > h2::after {
    content: ""; display: block; width: 44px; height: 3px; background: var(--amber); margin-top: 22px;
  }
  .section > .wrap.is-editorial > .btn { justify-self: start; }
}

/* photo bands: each photo gets window casing, cropped wide so it doesn't fill the screen */
.section[style*="padding:18px"] { padding: clamp(8px, 2vw, 20px) 0 !important; }
.section .wrap > img {
  width: 100%;
  aspect-ratio: 21 / 9; object-fit: cover;
  padding: 10px 10px 20px;
  background: linear-gradient(180deg, #FFFFFF 0, #FFFFFF calc(100% - 20px), #D3DCE2 calc(100% - 20px), #D3DCE2 calc(100% - 19px), #F3F6F8 calc(100% - 19px), #E7ECEF 100%);
  border-radius: 3px !important;
  box-shadow: 0 1px 0 rgba(20,32,41,.05), 0 24px 50px -28px rgba(20,32,41,.35);
}
@media (max-width: 700px) { .section .wrap > img { aspect-ratio: 4 / 3; padding: 7px 7px 14px; } }

/* ---------- two column split (contact, estimate) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- grids and panes ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* a card is a pane: flat, slate rule on top, no floating shadow */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--frost);
  border: 0; border-top: 3px solid var(--slate);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  transition: border-color .2s var(--ease);
}
.section--alt .card { background: var(--white); }
.card h3 { margin-bottom: .55em; }
.card p { font-size: .98em; }
.card p:last-child { margin-bottom: 0; }
.card > a:last-child {
  margin-top: auto; padding-top: 6px; align-self: flex-start;
  font-family: var(--font-ui); font-weight: 650; font-size: .95rem; color: var(--slate);
}
.card:has(> a:last-child):hover { border-top-color: var(--amber); }
.card:has(> a:last-child):hover > a:last-child { color: var(--amber-text); }

/* service and town link lists */
.linklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; }
@media (max-width: 900px) { .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .linklist { grid-template-columns: 1fr; } }
.linklist li { list-style: none; }
.linklist a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 15px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-ui); font-weight: 600; font-size: .98rem; line-height: 1.3;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.linklist a::before {
  content: ""; flex: none; width: 16px; height: 16px; border: 2px solid var(--slate); border-radius: 1px;
  background:
    linear-gradient(var(--slate), var(--slate)) center / 2px 100% no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 100% 2px no-repeat;
  transition: background-color .2s var(--ease);
}
.linklist a:hover { border-color: var(--slate); color: var(--slate); }
.linklist a:hover::before { background-color: var(--amber); }
.section:not(.section--alt) .linklist a { background: var(--frost); border-color: transparent; }
.section:not(.section--alt) .linklist a:hover { border-color: var(--slate); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--frost); font-family: var(--font-ui); font-weight: 650; color: var(--slate); }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 22px;
  transition: border-color .2s var(--ease);
}
.section:not(.section--alt) .faq details { background: var(--frost); border-color: transparent; }
.faq details[open] { border-color: var(--slate); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0;
  font-family: var(--font-head); font-stretch: 105%; font-weight: 650; font-size: 1.08rem; line-height: 1.35; color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; border: 2px solid var(--slate);
  background:
    linear-gradient(var(--slate), var(--slate)) center / 10px 2px no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 2px 10px no-repeat;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--amber); }
.faq details > p { padding-bottom: 20px; margin-bottom: 0; max-width: var(--measure); }

/* ---------- CTA band: dusk, with the lamp lit ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 20px;
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(227,161,59,.22), rgba(227,161,59,0) 70%),
    var(--slate);
  color: var(--white); text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band a:not(.btn) { color: var(--white); }
.cta-band .btn { background: var(--amber); border-color: var(--amber); color: var(--night); }
.cta-band .btn:hover { background: #F0B455; border-color: #F0B455; color: var(--night); }
.cta-band .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--slate); }

/* ---------- contact and estimate ---------- */
.page-form .section:first-of-type { background: linear-gradient(180deg, var(--frost) 0%, var(--white) 100%); }
.page-form .split > div:first-child { padding-top: 8px; }
.page-form h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: 18px; }

.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--amber);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: 0 30px 60px -30px rgba(20,32,41,.30);
}
/* GoHighLevel inline form */
.form-card iframe { display: block; width: 100%; min-height: 749px; border: 0; }

/* fallback styles for any native fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 1rem; }

.contact-list { list-style: none; margin: 28px 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.contact-list li strong:first-child { font-family: var(--font-ui); font-size: .9rem; font-weight: 650; color: var(--amber-text); }
.contact-list a { font-size: 1.08rem; overflow-wrap: anywhere; }

/* ---------- article pages (about, FAQ, legal, how it works) ---------- */
.article { max-width: 780px; }
.page-article .section:first-of-type,
.page-hub .section:first-of-type { padding-top: clamp(48px, 7vw, 96px); }
.article h1 { margin-bottom: 20px; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
.article h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 1.25rem + .9vw, 1.95rem); }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { margin: 0 0 1.2em 1.2em; color: var(--ink-soft); }
.article li { margin-bottom: .55em; padding-left: .2em; }
.article ul li::marker { color: var(--amber-2); }
.article__lead { padding-bottom: 8px; margin-bottom: 8px; }
.article__date { margin-top: -4px; }
.article .linklist { margin: 8px 0 1.4em; }
.article .grid { margin: 8px 0 1.4em; }
.faq-page h2 { font-size: 1.3rem; margin-top: 1.9em; }

/* a real sequence, so these get step numbers */
.article ol { list-style: none; counter-reset: step; margin-left: 0; }
.article ol > li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 1.1em; min-height: 40px; }
.article ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 2px solid var(--slate); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--slate);
}

/* hub pages: services, service areas */
.page-hub .section:first-of-type h1 { max-width: 18ch; margin-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--night); color: rgba(255,255,255,.78);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  border-top: 4px solid var(--amber);
}
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-family: var(--font-ui); font-stretch: 110%; font-size: 1.02rem; letter-spacing: 0; }
.site-footer p { color: rgba(255,255,255,.78) !important; font-size: .97rem; line-height: 1.65; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.86); font-size: .95rem; text-decoration-color: rgba(227,161,59,.55); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.site-footer li a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); }
.site-footer .wc-phone { color: var(--amber); font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 22px; font-family: var(--font-ui); font-size: .85rem; color: rgba(255,255,255,.55); }
.site-footer .footer-disclaimer { font-size: .85rem; color: rgba(255,255,255,.58) !important; margin-top: 12px; line-height: 1.55; }

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