/* ==========================================================================
   GrimHawk Property Services: one stylesheet for the whole site.

   1. Font
   2. Design tokens (colours, type sizes, spacing)
   3. Base styles
   4. Shared pieces (buttons, header, footer, photos, slider, page hero, CTA band)
   5. Page styles (home, services, projects, about, FAQ, quote, 404)
   ========================================================================== */


/* 1. Font: Plus Jakarta Sans, self-hosted (licence in fonts/OFL-LICENSE.txt) */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Design tokens */

:root {
  /* Brand colours */
  --green: #20583d;
  --green-deep: #143a29;
  --green-ink: #0e2a1d;
  --green-soft: #e6efe8;
  --red: #681d27;
  --red-deep: #4f151d;
  --brass: #b9974d;
  --brass-light: #e1c47b;
  --ivory: #f8f5ee;
  --paper: #fffdf9;
  --ink: #1d231f;
  --muted: #5c655f;
  --line: #e2ddd2;

  --font-display: 'Plus Jakarta Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: var(--font-display);
  --weight-heading: 800;
  --weight-subheading: 700;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 4rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgb(20 40 28 / 0.06), 0 2px 8px rgb(20 40 28 / 0.05);
  --shadow: 0 2px 4px rgb(20 40 28 / 0.04), 0 12px 32px rgb(20 40 28 / 0.08);
  --max: 1180px;
  --header-h: 88px;
}


/* 3. Base styles */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--green-ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: var(--weight-subheading); letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Line icons (Lucide). Chevrons are the site's arrow style and are drawn heavier. */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-chevron { stroke-width: 3; }

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding-block: var(--space-xl); }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
/* A section that follows another on the same background: drop its top padding so the gap isn't doubled. */
.section-flush-top { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.grid { display: grid; gap: var(--space-m); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }


/* 4. Shared pieces */

/* Buttons and links */
/* Buttons: on hover ("lift & glow") a button rises a little, deepens a shade and casts a soft
   shadow, and its arrow nudges right. Colours never swap. Each variant sets its resting colour
   (--btn-bg). The winter banner button has its own effect and doesn't lift. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  --btn-bg: transparent;
  background: var(--btn-bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover:not(:disabled):not(.winter-btn) { transform: translateY(-3px); }
.btn:active:not(:disabled):not(.winter-btn) { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn .icon-chevron { transition: translate 0.3s ease; }
.btn:hover:not(:disabled) .icon-chevron { translate: 4px 0; }
.btn-primary { --btn-bg: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { color: #fff; background: #561821; border-color: #561821; box-shadow: 0 10px 22px rgb(104 29 39 / 0.3); }
.btn-outline { border-color: currentColor; color: var(--green-deep); }
.btn-outline:hover:not(:disabled) { color: var(--green-deep); background: var(--green-soft); border-color: var(--green-deep); box-shadow: 0 10px 22px rgb(20 58 41 / 0.15); }
.btn-light { --btn-bg: #fff; border-color: #fff; color: var(--green-ink); }
.btn-light:hover:not(:disabled) { color: var(--green-ink); background: var(--ivory); box-shadow: 0 10px 24px rgb(0 0 0 / 0.3); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.6); color: #fff; }
.btn-ghost-light:hover:not(:disabled) { color: #fff; background: rgb(255 255 255 / 0.12); border-color: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / 0.25); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .icon-chevron { transition: none; }
  .btn:hover:not(:disabled):not(.winter-btn) { transform: none; }
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; text-decoration: none; color: var(--red);
}
.text-link svg { width: 1.05em; height: 1.05em; transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-deep);
  font-size: var(--step--1); font-weight: 600;
}
.pill-brass { background: #f4ead2; color: #6b5317; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; background: var(--paper); border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* Header and mobile menu */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile drawer inside the header box. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 253 249 / 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 76px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav ul a {
  position: relative; display: block; padding: 0.5rem 0.85rem;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
/* Red underline that grows from the left on hover and stays under the current page */
.nav ul a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav ul a:hover::after, .nav ul a:focus-visible::after, .nav ul a[aria-current='page']::after { transform: scaleX(1); }
.nav ul a[aria-current='page'] { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .nav ul a::after { transition: none; } }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav-cta { min-height: 44px; padding-block: 0.55rem; }

/* Services dropdown in the nav (Interior / Exterior). Opens on hover with a mouse, and on
   click or Enter (js/main.js sets aria-expanded). In the phone drawer it opens in place. */
.nav-dd { position: relative; }
.nav-dd-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.85rem;
  border: 0; background: none; font: inherit; font-weight: 550; color: var(--ink); cursor: pointer;
}
.nav-dd-btn .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.nav-dd-btn[aria-expanded='true'] .icon { transform: rotate(180deg); }
.nav-dd-btn::after {
  content: ''; position: absolute; left: 0.85rem; right: 2.1rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-dd-btn:hover::after, .nav-dd-btn:focus-visible::after, .nav-dd-btn.is-current::after { transform: scaleX(1); }
.nav-dd-btn.is-current { color: var(--red); }
.nav-dd-menu { display: none; }
.nav-dd-btn[aria-expanded='true'] + .nav-dd-menu { display: block; }
.nav ul.nav-dd-list { display: grid; gap: 0.15rem; }
.nav ul.nav-dd-list a::after { display: none; }
.nav ul.nav-dd-list a[aria-current='page'] { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .nav-dd-btn::after, .nav-dd-btn .icon { transition: none; } }
@media (min-width: 960px) {
  .nav-dd-menu {
    position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 60; min-width: 220px;
    padding: 0.45rem; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
  }
  /* Invisible bridge so the menu stays open while the mouse moves down to it */
  .nav-dd-menu::before { content: ''; position: absolute; inset: -0.6rem 0 auto; height: 0.6rem; }
  @media (hover: hover) {
    .nav-dd:hover > .nav-dd-menu { display: block; }
    .nav-dd:hover .nav-dd-btn .icon { transform: rotate(180deg); }
  }
  .nav ul.nav-dd-list a { padding: 0.6rem 0.8rem; border-radius: var(--radius-s); white-space: nowrap; }
  .nav ul.nav-dd-list a:hover, .nav ul.nav-dd-list a:focus-visible { background: var(--green-soft); }
  .nav ul.nav-dd-list a[aria-current='page'] { background: var(--ivory); }
}

.menu-toggle {
  display: none; place-items: center;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--green-ink); cursor: pointer;
}
/* Menu icon: the three lines fold into an X when the menu opens, and back when it closes. */
.menu-toggle { -webkit-tap-highlight-color: transparent; }
.menu-icon path { transform-box: view-box; transform-origin: 12px 12px; transition: transform 0.35s cubic-bezier(.65, 0, .35, 1), opacity 0.2s ease; }
.nav-open .mi-top { transform: rotate(45deg) translateY(7px); }
.nav-open .mi-mid { transform: scaleX(0); opacity: 0; }
.nav-open .mi-bot { transform: rotate(-45deg) translateY(-7px); }
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle { transition: transform 0.15s ease; }
@media (prefers-reduced-motion: reduce) { .menu-icon path, .menu-toggle { transition: none; } }

@media (max-width: 959px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 1.5rem 1rem 2rem;
    background: var(--paper);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow-y: auto;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open body { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--weight-subheading);
    padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .nav ul a::after { display: none; }
  /* Phone menu: Get a Quote sits at the bottom of the menu (the only one on phones). */
  .nav { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .nav-cta { width: 100%; min-height: 52px; margin-top: auto; }
  /* Opening the menu: the links slide in one after another; closing just fades the panel. */
  .nav > ul > li, .nav-cta { opacity: 0; translate: 0 10px; transition: opacity 0.3s ease, translate 0.3s ease; }
  .nav-open .nav > ul > li, .nav-open .nav-cta { opacity: 1; translate: 0 0; }
  .nav-open .nav > ul > li:nth-child(1) { transition-delay: 0.05s; }
  .nav-open .nav > ul > li:nth-child(2) { transition-delay: 0.1s; }
  .nav-open .nav > ul > li:nth-child(3) { transition-delay: 0.15s; }
  .nav-open .nav > ul > li:nth-child(4) { transition-delay: 0.2s; }
  .nav-open .nav-cta { transition-delay: 0.25s; }
  .nav-dd-btn { -webkit-tap-highlight-color: transparent; }
  @media (prefers-reduced-motion: reduce) { .nav > ul > li, .nav-cta { transition: none; translate: none; } }
  .nav-dd-btn {
    width: 100%; justify-content: space-between; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--weight-subheading);
  }
  .nav-dd-btn .icon { width: 22px; height: 22px; }
  .nav-dd-btn::after { display: none; }
  .nav-dd-menu { padding: 0.25rem 0 0.5rem 1rem; border-bottom: 1px solid var(--line); }
  .nav ul.nav-dd-list a { font-size: var(--step-1); border-bottom: 0; padding: 0.6rem 0.25rem; }
}

/* Footer */
.site-footer { background: var(--green-ink); color: rgb(255 255 255 / 0.78); padding-top: var(--space-xl); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
/* The full-colour logo turned white so it reads on the dark green footer */
.footer-logo { display: block; width: 190px; height: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 22rem; }
.site-footer h2 {
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 700;
  color: var(--brass-light); margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* The links are taller blocks instead of spaced-out text, so each is a comfortable tap target
   (about 29px tall) on phones while the list keeps its old spacing. */
.site-footer li a:not(.btn) { display: inline-block; padding-block: 0.1rem; }
.site-footer a:not(.btn) { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  margin-top: var(--space-l); padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--step--1); color: rgb(255 255 255 / 0.6);
}

/* Photo box, with a "coming soon" placeholder when there is no photo */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(32 88 61 / 0.05) 14px 15px),
    var(--green-soft);
}
.photo-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.4rem;
  color: var(--green); font-size: var(--step--1); font-weight: 600; opacity: 0.75;
}

/* Before/after slider (js/slider.js). --pos is a unitless 0–100. */
.ba {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--green-soft);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba-fill { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 3px; translate: -50% 0;
  background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  background: #fff; color: var(--green-ink); box-shadow: var(--shadow);
}
.ba input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none;
}
.ba:has(input:focus-visible) .ba-knob { outline: 3px solid var(--brass); outline-offset: 2px; }
.ba-tag {
  position: absolute; top: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgb(14 42 29 / 0.75); color: #fff; font-size: 0.75rem; font-weight: 600; pointer-events: none;
}
/* Each label fades out as its side of the photo gets too narrow to hold it. */
.ba-tag-before { left: 0.75rem; opacity: clamp(0, (var(--pos) - 10) / 15, 1); }
.ba-tag-after { right: 0.75rem; opacity: clamp(0, (90 - var(--pos)) / 15, 1); }

/* Page hero (the title band at the top of inner pages) */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60rem 20rem at 85% -10%, rgb(185 151 77 / 0.14), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 40rem; margin: 0; }

/* Red call-to-action band near the bottom of most pages */
.cta-band {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-l);
  background: linear-gradient(120deg, var(--red-deep), var(--red)); color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / 0.85); max-width: 38rem; }
/* Plain version: no box, centred on the page background. */
.cta-plain {
  flex-direction: column; justify-content: center; gap: 1.5rem; text-align: center;
  padding: 0 0 0.5rem; border-radius: 0; background: none; color: var(--ink);
}
.cta-plain h2 { color: var(--green-deep); font-size: var(--step-3); }
.cta-plain p { color: var(--muted); margin-inline: auto; }


/* 5. Page styles */

/* ---------- Winter banner (index.html, exterior.html) ---------- */
/* Pale ice-blue strip right under the page header, white snow falling, icicles hanging into the page. */
.winter-banner { position: relative; z-index: 1; isolation: isolate; background: #c9def2; padding: 1.25rem 0; }
.winter-banner + .section { padding-top: calc(var(--space-xl) + 12px); }
.winter-banner::before, .winter-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.winter-banner::before {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90px 140px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 160px 70px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 210px 180px, #fff, transparent),
    radial-gradient(2px 2px at 120px 10px, #fff, transparent),
    radial-gradient(2px 2px at 60px 100px, #fff, transparent);
  background-size: 240px 200px; animation: winter-snow 14s linear infinite;
}
.winter-banner::after {
  background-image:
    radial-gradient(3px 3px at 40px 60px, #fff, transparent),
    radial-gradient(3.5px 3.5px at 250px 20px, #fff, transparent),
    radial-gradient(3px 3px at 170px 150px, #fff, transparent);
  background-size: 320px 220px; animation: winter-snow-big 9s linear infinite;
}
@keyframes winter-snow { to { background-position: 60px 200px; } }
@keyframes winter-snow-big { to { background-position: -80px 220px; } }
.winter-inner { display: flex; align-items: center; gap: 1.25rem; }
.winter-text { flex: 1; min-width: 0; }
.winter-text h2 { color: #14304a; font-size: var(--step-2); margin: 0 0 0.15rem; }
.winter-text p { margin: 0; color: #2a4a62; max-width: none; }
.winter-short { display: none; }
/* Frost bloom button: soft frosted blue; on hover (or keyboard focus) frost glows in from the edges
   and tiny flakes twinkle inside. */
.winter-btn {
  flex: none; position: relative; overflow: hidden; isolation: isolate;
  color: #fff; border-color: rgb(255 255 255 / 0.7);
  background: linear-gradient(135deg, #3b7bab 0%, #5f9dc9 100%);
  box-shadow: 0 4px 14px rgb(29 72 104 / 0.22);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.15s;
}
.winter-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s ease;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 30%, #fff, transparent), radial-gradient(2px 2px at 36% 72%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent), radial-gradient(2px 2px at 74% 64%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 34%, #fff, transparent), radial-gradient(1.5px 1.5px at 8% 70%, #fff, transparent);
}
.winter-btn .icon-chevron { transition: translate 0.3s ease; }
.winter-btn:hover, .winter-btn:focus-visible {
  color: #fff; border-color: #fff;
  box-shadow: inset 0 0 14px rgb(255 255 255 / 0.75), 0 6px 18px rgb(29 72 104 / 0.28);
}
.winter-btn:hover::after, .winter-btn:focus-visible::after { opacity: 1; animation: winter-twinkle 1.2s ease-in-out infinite alternate; }
.winter-btn:hover .icon-chevron, .winter-btn:focus-visible .icon-chevron { translate: 4px 0; }
.winter-btn:focus-visible { outline: 3px solid #14304a; outline-offset: 3px; }
@keyframes winter-twinkle { from { opacity: 0.5; } to { opacity: 1; } }
/* Tucked 2px up into the strip so no seam shows between the two. */
.winter-icicles { position: absolute; left: 0; top: calc(100% - 2px); width: 100%; height: 20px; fill: #c9def2; }
@media (max-width: 760px) {
  .winter-banner { padding: 1.1rem 0 1.25rem; }
  /* Phones: heading and one short line, then a full-width button like the header's. */
  .winter-inner { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .winter-text h2 { font-size: var(--step-1); line-height: 1.2; margin-bottom: 0.2rem; }
  .winter-text p { font-size: var(--step--1); line-height: 1.4; }
  .winter-long { display: none; }
  .winter-short { display: inline; }
  .winter-btn { width: 100%; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .winter-banner::before, .winter-banner::after, .winter-btn::after { animation: none !important; } .winter-btn .icon-chevron { transition: none; } }

/* ---------- Home (index.html) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; min-height: min(78vh, 680px); display: grid; align-items: end;
}
/* Header photos: one strip of photos side by side, sliding right to left forever. hero.js copies
   the set once and adds .is-moving; the strip moves by exactly one set (-50%), so the loop is
   seamless as long as every photo has the same margin.
   Seams: each photo overlaps the one before it by 42cqh (cqh = 1% of the strip's height) and
   fades in along a slanted line (the 102deg mask, tilted 12deg from upright). The fade runs from
   21cqh to 39cqh along that line, so it's fully faded in before the earlier photo's edge. */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--green-ink); container-type: size; }
.hero-track { display: flex; width: max-content; height: 100%; margin-left: -42cqh; will-change: transform; } /* hides the first photo's faded edge */
.hero-track img {
  flex: none; height: 100%; width: calc(100cqh * 4 / 3); object-fit: cover; margin-right: -42cqh;
  -webkit-mask-image: linear-gradient(102deg, transparent 21cqh, #000 39cqh);
  mask-image: linear-gradient(102deg, transparent 21cqh, #000 39cqh);
}
.hero-track.is-moving { animation: hero-scroll var(--hero-loop, 120s) linear infinite; }
/* hero.js hides the strip until the photos on screen have loaded, then fades it in. */
.hero-track { transition: opacity 0.8s ease; }
.hero-track.is-loading { opacity: 0; }
@keyframes hero-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-track.is-moving { animation: none; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(14 42 29 / 0.94) 0%, rgb(14 42 29 / 0.82) 45%, rgb(14 42 29 / 0.6) 100%);
}
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgb(14 42 29 / 0.72) 0%, rgb(14 42 29 / 0.88) 100%); }
  /* Phones: the header is only as tall as its text, so there's no empty band above the heading. */
  .hero { min-height: 0; }
  .hero-inner { padding-block: 3rem; }
}
.hero-inner { padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lead { max-width: 36rem; color: rgb(255 255 255 / 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }

.home-service {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0.6rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-s);
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-service:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.home-service .photo { border-radius: calc(var(--radius-l) - 6px); }
.home-service-body { position: relative; padding: 1.5rem 0.9rem 0.9rem; display: flex; flex-direction: column; flex: 1; }
.home-service-body p { color: var(--muted); font-size: var(--step--1); flex: 1; }
/* Homepage Interior / Exterior cards: summary, then the services on that page */
.home-service-wide h3 { font-size: var(--step-2); }
.home-service-wide .home-service-body p { flex: none; }
.home-service-wide .checks { flex: 1; margin: 0.25rem 0 1.25rem; grid-template-columns: 1fr; }
/* Two columns of three, filled top to bottom (Interior uses only the left column) */
@media (min-width: 1100px) { .home-service-wide .checks { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; } }
.home-service-icon {
  position: absolute; top: -22px; left: 0.9rem; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff;
  box-shadow: 0 0 0 4px var(--paper);
}
/* Each service icon does its own small move when its card is hovered or focused:
   the house hops and its door draws in, the hammer strikes twice, the wall's mortar lines
   draw in course by course, and the sofa sketches itself in (seat, then back, then legs) and
   gives a small hop once it's built.
   Lines still waiting their turn are hidden, so no stray dots or half-drawn overlaps show. */
.home-service .svc-draw { stroke-dasharray: 1; }
.home-service:is(:hover, :focus-visible) .svc-sprout { animation: svc-hop 0.5s ease; }
.home-service:is(:hover, :focus-visible) .svc-hammer { animation: svc-strike 0.8s ease-in-out; transform-origin: 15% 85%; }
.home-service:is(:hover, :focus-visible) .svc-wall .svc-draw { animation: svc-draw 0.3s ease both; }
.home-service:is(:hover, :focus-visible) .svc-wall .svc-draw:nth-of-type(n+4) { animation-delay: 0.15s; }
.home-service:is(:hover, :focus-visible) .svc-wall .svc-draw:nth-of-type(n+6) { animation-delay: 0.3s; }
.home-service:is(:hover, :focus-visible) .sofa-seat { animation: svc-draw 0.5s ease-in-out both; }
.home-service:is(:hover, :focus-visible) .sofa-back { animation: svc-draw 0.35s ease-in-out 0.45s both; }
.home-service:is(:hover, :focus-visible) .sofa-leg { animation: svc-draw 0.15s ease-out 0.8s both; }
.home-service:is(:hover, :focus-visible) .svc-sofa { animation: svc-hop 0.45s ease 1s; }
@keyframes svc-hop { 40% { transform: translateY(-4px); } 70% { transform: translateY(1px); } }
@keyframes svc-draw { from { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes svc-strike { 20%, 60% { transform: rotate(-30deg); } 40%, 80% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .home-service [class*='svc-'], .home-service [class*='sofa-'] { animation: none !important; }
}

.steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li {
  position: relative; padding: 1.75rem; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-l);
}
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.step-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display); font-size: var(--step-3); font-weight: var(--weight-heading); color: var(--line); line-height: 1;
}
.step-icon { color: var(--green); margin-bottom: 1rem; }

/* Process icons come alive in order each time the section scrolls into view: the message writes
   in, the tick draws on, the handshake shakes. js/process.js adds .is-animated (hides the parts
   still to be drawn) and then .is-in. Without the script, or with reduced motion, icons just show. */
.home-process.is-animated .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.home-process.is-in .draw-1 { animation: draw 0.9s ease 0s forwards; }
.home-process.is-in .draw-2 { animation: draw 0.4s ease 0.9s forwards; }
.home-process.is-in .draw-3 { animation: draw 0.4s ease 1.3s forwards; }
.home-process.is-in .draw-4 { animation: draw 0.4s ease 1.7s forwards; }
.home-process.is-in .draw-tick { animation: draw 0.6s ease 1.5s forwards; }
.home-process.is-in .icon-pop { animation: icon-pop 0.5s ease 2.1s; }
.home-process.is-in .icon-shake { animation: icon-shake 1s ease 2.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes icon-pop { 40% { transform: scale(1.25); } }
@keyframes icon-shake { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }

.plans { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .plans { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.plans h2 { margin-top: 1rem; }
.plan-list {
  list-style: none; margin: 0; padding: 1.75rem; display: grid; gap: 1rem;
  background: var(--green-deep); color: #fff; border-radius: var(--radius-l);
}
.plan-list li { display: flex; gap: 0.75rem; align-items: center; font-weight: 550; }
.plan-list svg { color: var(--brass-light); }

.home-about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .home-about { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* ---------- Services (interior.html, exterior.html) ---------- */
.services-list { padding-top: clamp(2rem, 4vw, 3rem); }
.service-stack { display: grid; gap: 1.5rem; }
.service-card {
  display: grid; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 1rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s);
}
/* Side-by-side cards all match the tallest one; the not-included footer sits at the bottom. */
@media (min-width: 900px) {
  .service-stack { grid-auto-rows: 1fr; }
  .service-card { grid-template-columns: 340px 1fr; }
  .service-foot { margin-top: auto; }
}
.service-photo { position: relative; min-height: 220px; margin: 0; }
@media (max-width: 899px) { .service-photo:has(.ba) { min-height: 0; aspect-ratio: 4 / 3; } }
.service-photo .photo, .service-photo .ba { position: absolute; inset: 0; border-radius: 0; }
.service-photo figcaption {
  position: absolute; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem);
  padding: 0.15rem 0.7rem; border-radius: 999px; pointer-events: none;
  background: rgb(14 42 29 / 0.8); color: #fff; font-size: var(--step--1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.service-body { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); }
.service-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; }
.service-head > div { flex: 1 1 22rem; }
.service-head h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.service-head p { margin: 0; color: var(--muted); font-size: var(--step--1); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: var(--step--1); }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; } }
@media (min-width: 1100px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks li { display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.4; }
.checks svg { color: var(--green); margin-top: 0.1rem; }

.service-foot { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.excludes, .note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; font-size: var(--step--1); color: var(--muted); }
.excludes strong { color: var(--ink); }
.excludes svg { color: var(--red); margin-top: 0.15rem; }
.note { font-style: italic; }
.note svg { color: var(--green); margin-top: 0.15rem; }

.two-up { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .two-up { grid-template-columns: 1fr 1fr; } }

/* Interior / Exterior pages: icon beside the heading, and a card linking to the other page */
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.svc-other {
  display: grid; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-s); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s;
}
.svc-other:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
@media (min-width: 720px) { .svc-other { grid-template-columns: 220px 1fr; } }
.svc-other .photo { border-radius: 0; min-height: 160px; height: 100%; }
.svc-other-body { padding: 1.5rem; display: grid; gap: 0.4rem; align-content: center; }
.svc-other-body h2 { font-size: var(--step-2); margin: 0; }
.svc-other-body p { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .svc-other { transition: none; } }
/* Every service card is the same size. Each card is 2 rows (title + description + highlights, then
   the links) lined up with subgrid. The first row is 1fr, and all 1fr rows in the grid share one
   height (the tallest card's), so every card on the page matches, across rows and at every width.
   Titles and descriptions keep room for two lines, so the job lists start at the same height. */
.svc-grid { display: grid; gap: 1.25rem; grid-auto-rows: 1fr auto; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
/* Narrowest 3-across widths: a little less padding so "Hardscaping & Outdoor Construction" stays on 2 lines */
@media (min-width: 1100px) and (max-width: 1199px) { .svc-card { padding: 1.25rem; } }
.svc-card-top { display: grid; align-content: start; gap: 1rem; }
.svc-card-head { display: flex; align-items: center; gap: 0.8rem; }
.svc-card-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; }
.svc-card-head h2 { display: flex; align-items: center; min-height: 2.4em; font-size: var(--step-1); line-height: 1.2; margin: 0; }
.svc-blurb { min-height: 3.1em; margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.svc-card .checks { grid-template-columns: 1fr; }
/* Links row: "See all N jobs" left, "Request a quote" right, always on one line so every card's row matches */
.svc-card-foot {
  align-self: end; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.svc-card-foot > * { white-space: nowrap; }
.svc-card-foot .text-link { margin-left: auto; }
@media (max-width: 359px) { .svc-card-foot .text-link { font-size: var(--step--1); } }
.svc-more {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--green); cursor: pointer;
}
.svc-more:hover { text-decoration: underline; }
.svc-more .icon { width: 16px; height: 16px; }
/* Phones (one card per row): no highlights in the card, just the description and "See all jobs".
   Cards whose highlights already list every job only show that button on phones. */
@media (max-width: 759px) { .svc-card .checks { display: none; } }
@media (min-width: 760px) { .svc-more-phone { display: none; } }

/* Full job list for one service, opened by "See all N jobs" (js/services.js) */
.svc-dialog {
  width: min(46rem, calc(100% - 2rem)); max-height: min(44rem, calc(100% - 2rem)); padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.svc-dialog::backdrop { background: rgb(16 32 24 / 0.55); }
html:has(.svc-dialog[open]) { overflow: hidden; } /* the page behind doesn't scroll while a panel is open */
.svc-dialog[open] { display: flex; flex-direction: column; }
.svc-dialog-head { display: flex; align-items: center; gap: 0.8rem; padding: 1.25rem 1.5rem 0.75rem; }
/* Panel title looks like a heading but isn't one, so the card <h2> is the only heading per service */
.svc-dialog-title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: var(--weight-heading); font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.025em; color: var(--green-ink); text-wrap: balance; }
.svc-dialog-close {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ivory); color: var(--ink); cursor: pointer;
}
.svc-dialog-body { overflow: auto; padding: 0 1.5rem 1.25rem; display: grid; gap: 1rem; }
.svc-dialog-body .checks { grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-dialog-body .checks { grid-template-columns: 1fr 1fr; } }
.svc-dialog-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; padding: 1rem 1.5rem;
  border-top: 1px solid var(--line); background: var(--ivory); border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.svc-dialog-foot p { margin: 0; font-size: var(--step--1); color: var(--muted); }
/* Phones: the panel slides up from the bottom as a sheet */
@media (max-width: 639px) {
  .svc-dialog { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: var(--radius-l) var(--radius-l) 0 0; }
  .svc-dialog-foot { border-radius: 0; }
  .svc-dialog-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .svc-dialog[open] { animation: svc-dialog-in 0.22s ease-out; }
  @keyframes svc-dialog-in { from { opacity: 0; transform: translateY(12px); } }
}
.svc-note { margin-top: 1.5rem; max-width: 60rem; }
.svc-note strong { color: var(--ink); font-style: normal; }
.panel { padding: 2rem; border-radius: var(--radius-l); background: var(--ivory); border: 1px solid var(--line); }
.panel h2 { font-size: var(--step-2); margin-top: 1rem; }
.panel > h2:first-child { margin-top: 0; }
.two-up > .panel { display: grid; gap: 0.4rem; align-content: center; justify-items: start; }
.panel p { font-size: var(--step--1); }
.panel > svg { color: var(--green); }
.panel-dark { background: var(--green-deep); border-color: var(--green-deep); color: rgb(255 255 255 / 0.85); }
.panel-dark h2 { color: #fff; }
.panel-dark .text-link { color: var(--brass-light); }

/* ---------- Projects (projects.html) ---------- */
.empty {
  max-width: 38rem; margin-inline: auto; text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem; border-radius: var(--radius-l);
  background: var(--paper); border: 1px dashed var(--line);
}
.empty-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 18px; background: var(--green-soft); color: var(--green);
}
.empty h2 { font-size: var(--step-2); }
.empty p { color: var(--muted); font-size: var(--step--1); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  min-height: 40px; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: var(--step--1);
}
.filters button[aria-pressed='true'] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* One project per row: photo on one side, write-up on the other, alternating sides (stacked on phones). */
.project-grid { display: grid; gap: 1.75rem; }
.project { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0.75rem; }
.project-body { align-self: center; padding: 1.25rem 1rem 1rem; }
.project-body h2 { font-size: var(--step-2); margin: 0 0 0.5rem; }
.project-body p { color: var(--muted); font-size: var(--step-0); margin: 0; }
@media (min-width: 760px) {
  .project { grid-template-columns: 3fr 2fr; }
  .project-body { padding: 1.5rem 2rem; }
  .project:nth-child(even) .ba { order: 2; }
}

/* ---------- About (about.html) ---------- */
/* Sections rise into place as they scroll into view (js/reveal.js adds .is-in; skipped for reduced motion). */
.js-reveal [data-reveal], .js-reveal [data-reveal-group] > * {
  opacity: 0; translate: 0 16px; transition: opacity 0.4s ease-out, translate 0.4s cubic-bezier(.2, .7, .2, 1);
}
.js-reveal [data-reveal-group] > :nth-child(2) { transition-delay: 0.06s; }
.js-reveal [data-reveal-group] > :nth-child(3) { transition-delay: 0.12s; }
.js-reveal [data-reveal-group] > :nth-child(4) { transition-delay: 0.18s; }
.js-reveal .is-in[data-reveal], .js-reveal .is-in[data-reveal-group] > * { opacity: 1; translate: 0 0; }

.about-people { background: var(--paper); border-bottom: 1px solid var(--line); }
.about-people h1 { font-size: var(--step-4); max-width: none; margin-bottom: var(--space-l); }
.owner { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0.6rem; }
.owner .photo { border-radius: calc(var(--radius-l) - 6px); }
.owner-body { padding: 1.25rem 0.9rem 0.75rem; }
.owner-body h3 { margin-bottom: 0.4rem; }
.owner-body p { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* The idea: the homepage's moving photo strip (.hero-slides/.hero-track) under a red shade. */
.about-idea { position: relative; isolation: isolate; overflow: hidden; background: var(--red-deep); }
.about-idea::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(79 21 29 / 0.94) 0%, rgb(104 29 39 / 0.82) 45%, rgb(104 29 39 / 0.6) 100%);
}
@media (max-width: 640px) { .about-idea::before { background: linear-gradient(180deg, rgb(104 29 39 / 0.72) 0%, rgb(79 21 29 / 0.88) 100%); } }
.about-idea h2 { color: #fff; }
.about-idea p { max-width: none; margin: 0; color: rgb(255 255 255 / 0.92); font-size: var(--step-1); }

/* How we work: four columns with thin lines between (two, then one, on smaller screens). */
.about-how { background: var(--paper); }
.how-row { display: grid; gap: 2rem; }
@media (min-width: 640px) { .how-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .how-row { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .how-item { padding: 0 1.75rem; }
  .how-item:first-child { padding-left: 0; }
  .how-item + .how-item { border-left: 1px solid var(--line); }
}
.how-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem;
  border-radius: 999px; background: var(--green); color: #fff;
}
.how-item h3 { margin-bottom: 0.4rem; }
.how-item p { margin: 0; color: var(--muted); }

/* ---------- FAQ (faq.html) ---------- */
.faq-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 220px 1fr; gap: 4rem; } }
.faq-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 900px) {
  .faq-nav { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .faq-nav ul { flex-direction: column; gap: 0.25rem; }
}
.faq-nav a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1);
}
@media (min-width: 900px) { .faq-nav a { border-color: transparent; background: none; border-radius: var(--radius-s); } }
.faq-nav a:hover { color: var(--red); }

.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: var(--step-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0.25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--step-1); line-height: 1.35; color: var(--green-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-icon { color: var(--red); transition: transform 0.2s; }
.faq-item[open]:not(.js-anim) .faq-icon,
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0.25rem 1.25rem; margin: 0; max-width: 46rem; }

/* ---------- Privacy policy (privacy.html) ---------- */
.policy { max-width: 46rem; }
.policy-date { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.policy h2 { font-size: var(--step-1); margin: 2.25rem 0 0.6rem; }
.policy ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.policy a { color: var(--green); }

/* ---------- Get a Quote (quote.html) ---------- */
.quote-page { padding-block: clamp(2rem, 5vw, 4rem) var(--space-xl); }
.quote-layout { display: grid; gap: 2rem; align-items: start; }
/* On wide screens the heading, form card and sidebar share one grid, so the sidebar's top lines up with the card's. */
@media (min-width: 1000px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 3rem; }
  .quote-main { display: contents; }
  .quote-head { grid-column: 1; grid-row: 1; }
  .form-card { grid-column: 1; grid-row: 2; }
  .quote-aside { grid-column: 2; grid-row: 2; }
}
.quote-head { margin-bottom: 1.5rem; }
.quote-head h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.quote-head p { margin: 0; }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.progress { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.progress li { display: grid; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.progress li::before { content: ''; height: 4px; border-radius: 99px; background: var(--line); }
.progress li.done::before, .progress li[aria-current='step']::before { background: var(--green); }
.progress li[aria-current='step'] { color: var(--green-ink); font-weight: 650; }
@media (max-width: 560px) {
  .progress-label { display: none; }
  .progress li[aria-current='step'] .progress-label { display: inline; white-space: nowrap; }
}

.quote-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title {
  padding: 0; margin-bottom: 1.5rem; outline: none;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--weight-heading); letter-spacing: -0.02em; color: var(--green-ink); line-height: 1.2;
}
.field { margin-bottom: 1.5rem; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.label { display: block; margin: 0 0 0.45rem; font-weight: 600; }
.req { color: var(--red); }
.hint { font-weight: 400; color: var(--muted); font-size: var(--step--1); margin: 0.35rem 0 0; }
.label .hint { margin-left: 0.35rem; }
.error { color: #a3162b; font-size: var(--step--1); font-weight: 600; margin: 0.4rem 0 0; }

/* Address suggestions under Street address (js/address.js) */
.field:has(> .addr-list) { position: relative; }
.addr-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0.3rem 0 0; padding: 0.35rem;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.addr-list [role='option'] { padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.addr-list [role='option'][aria-selected='true'] { background: var(--green-soft); }
.addr-main { font-weight: 600; }
.addr-sub { display: block; font-size: var(--step--1); color: var(--muted); }
.addr-credit { padding: 0.4rem 0.7rem 0.2rem; font-size: 0.75rem; color: var(--muted); text-align: right; }
.addr-waiting { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; font-size: var(--step--1); color: var(--muted); }
.addr-waiting::before {
  content: ''; flex: none; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--muted); animation: addr-spin 0.8s linear infinite;
}
@keyframes addr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .addr-waiting::before { animation: none; } }

.quote-page input:not([type='checkbox'], [type='radio'], [type='file']),
.quote-page select,
.quote-page textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1.5px solid #cfc9bc; border-radius: var(--radius-s); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quote-page textarea { display: block; resize: vertical; line-height: 1.5; }
.quote-page input:focus, .quote-page select:focus, .quote-page textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(32 88 61 / 0.18);
}
.quote-page [aria-invalid='true'] { border-color: #a3162b !important; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
/* Service choices: Interior, Exterior and "Not sure where it fits?" sections; every card the same size
   (three per row, two on phones, fixed height fits a three-line name) */
.choice-section-title { margin: 1rem 0 0.5rem; font-size: var(--step--1); font-weight: 700; color: var(--green); }
.choice-sections > .choice-section-title:first-child { margin-top: 0.5rem; }
.choice-sections .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .choice-sections .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-sections .choice-box { min-height: 7.25rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-box {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; height: 100%;
  padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; font-weight: 600; line-height: 1.3; font-size: var(--step--1);
  transition: border-color 0.15s, background-color 0.15s;
}
.choice-box svg:first-child { color: var(--green); }
.choice-check {
  position: absolute; top: 0.6rem; right: 0.6rem; padding: 2px; border-radius: 99px;
  background: var(--green); color: #fff; opacity: 0; transform: scale(0.6); transition: 0.15s;
}
.choice:hover .choice-box { border-color: var(--green); }
.choice input:checked + .choice-box { border-color: var(--green); background: var(--green-soft); }
.choice input:checked + .choice-box .choice-check { opacity: 1; transform: none; }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--brass); outline-offset: 2px; }
[data-group][aria-invalid='true'] .choice-box { border-color: #e4a3ac; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: var(--step--1); min-height: 40px; }
.segmented input:checked + span { background: var(--green-deep); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 1px; }

.date-field { margin: 0.9rem 0 0; max-width: 19rem; }
.date-picker { position: relative; }
.date-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1.5px solid #cfc9bc; border-radius: var(--radius-s); background: #fff; color: var(--muted); text-align: left; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.date-trigger.has-value { color: var(--ink); }
.date-trigger svg { color: var(--green); }
.date-trigger:hover, .date-trigger[aria-expanded='true'] { border-color: var(--green); }
.date-trigger:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(32 88 61 / 0.18); }

.calendar {
  position: absolute; z-index: 20; bottom: calc(100% + 0.5rem); left: 0; width: 100%; min-width: 17rem; padding: 0.9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-title { margin: 0; font-weight: var(--weight-subheading); color: var(--green-ink); }
.cal-nav {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--green); cursor: pointer; transition: background-color 0.15s;
}
.cal-nav:hover:not(:disabled) { background: var(--green-soft); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding: 0.3rem 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-align: center; }
.cal-grid td { padding: 2px; text-align: center; }
.cal-grid td button {
  width: 100%; aspect-ratio: 1; max-width: 40px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font-size: var(--step--1); font-weight: 600; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.cal-grid td button:hover:not(:disabled) { background: var(--green-soft); color: var(--green-ink); }
.cal-grid td button:disabled { color: #b9b4a9; font-weight: 400; cursor: default; }
.cal-grid td button[aria-current='date'] { box-shadow: inset 0 0 0 1.5px var(--brass); }
.cal-grid td button[aria-pressed='true'] { background: var(--green-deep); color: #fff; box-shadow: none; }
.cal-grid td button:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.5rem; cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--green); }

.dropzone {
  display: grid; justify-items: center; gap: 0.3rem; padding: 1.5rem; text-align: center; cursor: pointer;
  border: 2px dashed #cfc9bc; border-radius: var(--radius); background: var(--ivory); color: var(--ink);
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone svg { color: var(--green); }
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: var(--green-soft); }
#photos:focus-visible + .thumbs, .dropzone:focus-within { outline: 3px solid var(--brass); }
.thumbs { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--green-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgb(14 42 29 / 0.8); color: #fff; font-size: 1rem; line-height: 1;
}

.summary:empty { display: none; }
.summary { margin-bottom: 1.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); }
.summary h3 { font-family: var(--font-body); font-size: var(--step-0); color: var(--muted); margin-bottom: 0.75rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; font-size: var(--step--1); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; white-space: pre-line; }
.summary .edit { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; justify-content: space-between; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .actions .btn { flex: 1; padding-inline: 1rem; } .actions span:empty { display: none; } }
.form-error { margin-bottom: 1rem; }
.turnstile:not(:empty) { margin-bottom: 1rem; }

.success { text-align: center; padding: 1rem 0.5rem; outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 99px; background: var(--green-soft); color: var(--green); margin-bottom: 1rem; }
.success h2 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.success p { max-width: 30rem; margin-inline: auto; }
.success-lead { margin-bottom: 1.25rem; }
.success-email { display: inline-block; padding: 0.6rem 1rem; border-radius: var(--radius-s); background: var(--green-soft); }
/* The address moves to its own line when it doesn't fit, and only breaks inside if it is wider than the box. */
.success-email strong { color: var(--ink); overflow-wrap: anywhere; }
.success-next { max-width: 26rem; margin: 2rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--line); text-align: left; }
.success-next h3 { font-family: var(--font-body); font-size: var(--step-0); color: var(--red); margin-bottom: 1rem; }
.success-next .next { color: var(--ink); gap: 0.9rem; }
.success-next .next li { align-items: center; }
.success-next .next svg { color: var(--green); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
/* After sending, the confirmation is the only thing on the page. */
.quote-page.is-sent .quote-head, .quote-page.is-sent .quote-aside { display: none; }
.quote-page.is-sent .form-card { grid-column: 1 / -1; width: 100%; max-width: 44rem; margin-inline: auto; }
.success .preview-note { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.5rem 0.9rem; border-radius: 999px; background: #f4ead2; color: #6b5317; font-size: var(--step--1); }

.quote-aside { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card { padding: 1.5rem; border-radius: var(--radius-l); background: var(--green-deep); color: rgb(255 255 255 / 0.85); }
.aside-card h2 { font-family: var(--font-body); font-size: var(--step-0); color: var(--brass-light); margin-bottom: 1rem; }
.aside-card p { font-size: var(--step--1); }
.aside-soft { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.aside-soft h2 { color: var(--red); }
.aside-soft p { margin: 0 0 0.3rem; }
.next { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; font-size: var(--step--1); }
.next li { display: flex; gap: 0.75rem; align-items: flex-start; }
.next svg { color: var(--brass-light); }
.tips { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- 404 page ---------- */
.nf { max-width: 40rem; text-align: center; padding-block: 3rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
