@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #1b3a2d;
  --forest-2: #24503d;
  --forest-ink: #e4ece6;
  --forest-mute: #b9cbbf;
  --ground: #f0f2ec;
  --paper: #ffffff;
  --ink: #18231d;
  --ink-2: #4b5a51;
  --line: #d5dacf;
  --sun: #f2b43c;
  --sun-hover: #f7c45e;
  --sun-ink: #1b2a20;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Public Sans", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1240px;
  --section: clamp(80px, 11vw, 150px);
  --dock-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}
::selection { background: var(--sun); color: var(--sun-ink); }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, button, input, label { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--sun); color: var(--sun-ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border: 0; border-radius: 10px;
  font: 700 1.0625rem/1 var(--body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sun { background: var(--sun); color: var(--sun-ink); }
.btn--line { background: transparent; color: var(--forest-ink); box-shadow: inset 0 0 0 1.5px rgb(228 236 230 / 0.45); }
.btn--forest { background: var(--forest); color: var(--forest-ink); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { background: var(--sun-hover); }
  .btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--forest-ink); }
  .btn--forest:hover { background: var(--forest-2); }
}

/* Concept ribbon */
.ribbon {
  background: var(--ink); color: #c9d3cc;
  font-size: 0.8125rem; line-height: 1.4;
  text-align: center;
  padding: 8px var(--gutter);
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.ribbon a { color: #fff; text-underline-offset: 0.2em; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--forest-ink); }
.top__bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 7px; color: var(--forest-ink); text-decoration: none; }
.logo__name { font: 700 1.375rem/1 var(--display); letter-spacing: -0.03em; }
.logo__sub { font: 500 0.875rem/1 var(--body); color: var(--forest-mute); }
.nav { display: none; gap: 26px; margin-left: auto; font-size: 0.9375rem; }
.nav a { color: var(--forest-mute); text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; } }
.top__actions { display: none; align-items: center; gap: 20px; }
.top__phone { color: #fff; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .top__actions { display: flex; }
}
@media (min-width: 620px) and (max-width: 979px) {
  .top__actions { display: flex; margin-left: auto; }
}

/* Hero */
.hero { background: var(--forest); color: var(--forest-ink); display: grid; }
.hero__panel { padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 80px); }
.hero__copy { max-width: 36rem; }
.hero__title {
  font: 700 clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem)/0.98 var(--display);
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.hero__lede { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--forest-mute); max-width: 32rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: 0.9375rem; color: var(--forest-mute); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--sun); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6L2.6 8l1.1-1.1 2.5 2.5 6.1-6.1L13.4 4.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; max-height: 72svh; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); min-height: min(calc(100svh - 104px), 820px); }
  .hero__panel { display: flex; align-items: center; justify-content: flex-end; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: clamp(32px, 4vw, 64px); }
  .hero__photo img { aspect-ratio: auto; max-height: none; }
  .hero__actions .btn--line { display: inline-flex; }
}
@media (max-width: 619px) {
  .hero__actions .btn--line { display: none; } /* the dock carries Call on phones */
  .hero__actions .btn--sun { width: 100%; }
}

/* Section type */
.title {
  font: 700 clamp(2rem, 1.4rem + 2.6vw, 3.25rem)/1.02 var(--display);
  letter-spacing: -0.03em;
  color: var(--forest);
  text-wrap: balance;
}
.subtitle { font: 700 1.375rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--forest); }
.lede { margin-top: 16px; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-2); text-wrap: pretty; }
.price { font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }

/* Services */
.services { padding-top: var(--section); }
.feature-list { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.feature { display: grid; gap: 22px; align-items: center; }
.feature__photo img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__photo--tall img { aspect-ratio: 4 / 5; }
.feature__text h3 { font: 700 clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem)/1.05 var(--display); letter-spacing: -0.025em; color: var(--forest); }
.feature__text p { margin-top: 12px; max-width: 30rem; color: var(--ink-2); }
.feature__text .price { margin-top: 16px; font-size: 1.125rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
  .feature:nth-child(2) .feature__photo { order: 2; }
  .feature:nth-child(3) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .feature:nth-child(3) .feature__photo { padding-left: 8%; }
}

.subtitle + .more { margin-top: 18px; }
.services .wrap:last-child { margin-top: clamp(64px, 9vw, 120px); }
.more { border-top: 2px solid var(--forest); }
.more li { display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.more__name { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.more__text { color: var(--ink-2); }
@media (min-width: 760px) {
  .more li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: baseline; }
}

/* Before / after */
.compare { padding-top: var(--section); }
.compare__head { margin-bottom: clamp(28px, 4vw, 44px); }
.ba {
  position: relative; overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: #cfd6cb;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
@media (min-width: 900px) { .ba { aspect-ratio: 16 / 10; } }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--forest);
  box-shadow: 0 6px 18px -4px rgb(0 0 0 / 0.35);
  transition: transform 160ms var(--ease-out);
}
.ba__knob svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-dragging .ba__knob { transform: scale(1.08); }
.ba__tag {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
  background: rgb(24 35 29 / 0.72); color: #fff;
  pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--sun); outline-offset: 4px; }

/* Gallery */
.gallery { display: grid; gap: 28px 24px; margin-top: clamp(48px, 7vw, 96px); }
.shot img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.shot figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; }
  .shot:nth-child(2) img, .shot:nth-child(3) img { aspect-ratio: 4 / 5; }
  .shot:nth-child(3) { order: 4; }
  .shot:nth-child(4) { order: 3; }
}

/* Reviews */
.reviews { padding-top: var(--section); }
.note { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.quotes { display: grid; gap: 40px; margin-top: clamp(36px, 5vw, 56px); }
.quote { border-top: 2px solid var(--forest); padding-top: 22px; }
.stars { display: block; width: 104px; color: #e2a226; }
.stars svg { width: 100%; height: auto; fill: currentColor; display: block; }
.quote blockquote { margin-top: 16px; }
.quote blockquote p { font: 500 clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem)/1.4 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: 16px; font-weight: 700; font-size: 0.9375rem; color: var(--forest); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* How */
.how { margin-top: var(--section); padding-block: var(--section); background: var(--paper); }
.how__grid { display: grid; gap: 40px; align-items: center; }
.how__photo img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; }
.steps { margin: 32px 0 36px; counter-reset: s; display: grid; gap: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.steps li::before {
  content: counter(s); grid-row: span 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: #fff; font: 700 1rem/1 var(--display);
}
.steps h3 { font: 700 1.25rem/1.25 var(--display); letter-spacing: -0.015em; color: var(--forest); padding-top: 4px; }
.steps p { color: var(--ink-2); margin-top: 4px; }
@media (min-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 104px); }
  .how__photo { max-width: 460px; }
}
@media (max-width: 899px) { .how__photo { max-width: 420px; } }

/* Area and hours */
.area { padding-block: var(--section); }
.area__grid { display: grid; gap: 48px; }
.towns { margin-top: 26px; columns: 2; column-gap: 24px; max-width: 30rem; }
.towns li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 500; }
.hours { background: var(--paper); border-radius: 8px; padding: clamp(24px, 3vw, 36px); align-self: start; }
.hours dl { margin-top: 16px; }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.hours__note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; }
.hours__phone { margin-top: 16px; }
.hours__phone a { font: 700 1.5rem/1 var(--display); color: var(--forest); text-decoration: none; letter-spacing: -0.02em; }
@media (min-width: 900px) { .area__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 104px); } }

/* Estimate */
.estimate { background: var(--forest); color: var(--forest-ink); padding-block: var(--section); }
.estimate .title { color: #fff; }
.estimate .lede { color: var(--forest-mute); }
.estimate__grid { display: grid; gap: 40px; }
.estimate__call { margin-top: 22px; font-size: 1.0625rem; }
.estimate__call a { color: #fff; font-weight: 700; text-underline-offset: 0.2em; }
@media (min-width: 900px) { .estimate__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 104px); } }

.form { display: grid; gap: 18px; background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(22px, 3vw, 36px); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--ground); border: 1.5px solid transparent; border-radius: 8px;
  padding: 13px 14px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--paper); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.checks { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.checks legend { margin-bottom: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); flex: none; }
.form__status { min-height: 1.4em; font-weight: 600; color: var(--forest); }
.form__status.is-error { color: #b3261e; }

/* Footer */
.foot { background: var(--ink); color: #b9c4bd; padding-top: 56px; padding-bottom: calc(28px + var(--dock-h)); font-size: 0.9375rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; gap: 24px; }
.logo--foot { color: #fff; margin-bottom: 8px; }
.logo--foot .logo__sub { color: #b9c4bd; }
.foot__credit { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr auto; } .foot__grid > div:last-child { text-align: right; } }

/* Phone dock: call and estimate always under the thumb */
.dock { display: none; }
@media (max-width: 759px) {
  :root { --dock-h: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgb(27 58 45 / 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px -12px rgb(0 0 0 / 0.4);
    transform: translateY(0);
    transition: transform 280ms var(--ease-out);
  }
  .dock.is-hidden { transform: translateY(110%); }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 10px;
    font-weight: 700; text-decoration: none;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    transition: transform 120ms var(--ease-out);
  }
  .dock a:active { transform: scale(0.97); }
  .dock__call { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
  .dock__book { background: var(--sun); color: var(--sun-ink); }
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity 800ms ease, transform 1000ms var(--ease-out), clip-path 1000ms var(--ease-out); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); clip-path: inset(6% 0 0 0 round 6px); }
  .js .hero__copy > * { animation: rise 800ms var(--ease-out) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .js .hero__copy > :nth-child(4) { animation-delay: 210ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
