:root {
  --finish-paper: #f6f2eb;
  --finish-plaster: #e9e0d4;
  --finish-white: #fffdfa;
  --finish-ink: #292421;
  --finish-muted: #5d544c;
  --finish-line: #d6cabd;
  --finish-red: #b92017;
  --finish-control-radius: 6px;
  --finish-image-radius: 8px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --paper: var(--finish-paper);
  --white: var(--finish-white);
  --ink: var(--finish-ink);
  --muted: var(--finish-muted);
  --line: var(--finish-line);
  --brand-red: var(--finish-red);
  --experience-red: var(--finish-red);
  --experience-ink: var(--finish-ink);
  --experience-paper: var(--finish-paper);
  --experience-header-height: 92px;
  scroll-padding-top: 0;
}

/* Navigation and actions */
body.page-home { --experience-header-height: 92px; }
body:is(.page-home, .subpage) .site-header {
  height: var(--experience-header-height);
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.site-header .main-nav > a {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
body .button {
  border-radius: var(--finish-control-radius);
  box-shadow: none;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
body:is(.page-home, .subpage) .site-header .header-actions .button {
  min-height: 44px;
  border-radius: var(--finish-control-radius);
  font-size: 15px;
  letter-spacing: 0;
}
body.page-home .site-header .header-actions .button {
  display: inline-flex;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
body :is(.page-intro, .about-welcome, .budget-section-head, .service-hero-heading) h1::after {
  width: 44px;
  height: 4px;
  mask: none;
}
body :is(a, button, summary, input, textarea):focus-visible {
  outline-color: var(--finish-red);
}

/* A lightly frosted surface keeps the form readable over the hero photograph. */
body:is(.page-contact, .page-home) .contact-form {
  border: 1px solid rgb(255 255 255 / .75);
  border-radius: 20px;
  background: var(--finish-white);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), 0 8px 32px rgb(41 28 17 / .14);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  body:is(.page-contact, .page-home) .contact-form {
    background:
      linear-gradient(155deg, rgb(255 255 255 / var(--contact-glass-highlight, .34)), transparent 56%),
      rgb(255 253 250 / var(--contact-glass-opacity, .90));
    -webkit-backdrop-filter: blur(var(--contact-glass-blur, 12px));
    backdrop-filter: blur(var(--contact-glass-blur, 12px));
  }
}
body:is(.page-contact, .page-home) .contact-experience :is(.field input:not([type=file]), .field textarea) {
  border-color: var(--contact-field-border, #9a8e81);
  background: var(--contact-field-surface, var(--finish-white));
  border-radius: var(--finish-control-radius);
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  body:is(.page-contact, .page-home) .contact-form {
    background: var(--finish-white);
    border-color: var(--line);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body:is(.page-contact, .page-home) .contact-experience :is(.field input:not([type=file]), .field textarea) {
    background: var(--finish-white);
  }
}
body:is(.page-contact, .page-home) .contact-experience .field :is(input, textarea)[aria-invalid="true"] {
  border-color: var(--finish-red);
}
body:is(.page-contact, .page-home) .contact-experience .contact-submit {
  border-radius: var(--finish-control-radius);
  box-shadow: none;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

body .site-footer {
  --footer-ink: var(--finish-ink);
  --footer-muted: var(--finish-muted);
  --footer-line: var(--finish-line);
}
@media (min-width: 901px) {
  .site-footer .footer-shell {
    display: grid;
    grid-template-columns: minmax(208px, .9fr) minmax(0, 2.1fr);
    align-items: start;
    gap: 32px clamp(32px, 6vw, 96px);
  }
  .site-footer :is(.footer-identity, .footer-layout) { text-align: left; }
  .site-footer .footer-brand { width: 208px; margin-inline: -8px 0; }
  .site-footer .footer-layout { width: 100%; margin: 12px 0 0; padding: 0; gap: 24px; }
  .site-footer .footer-hours-copy { margin-inline: 0; }
  .site-footer .footer-legal { grid-column: 1 / -1; }
}

/* Full-width sections share a centered text and controls column. */
body.page-home {
  --home-content-width: 1280px;
  --home-gutter: 96px;
  --home-space: 80px;
  background: var(--finish-paper);
}
@media (min-width: 1280px) {
  body.page-home .site-header .header-inner {
    width: calc(100% - var(--home-gutter));
    max-width: var(--home-content-width);
  }
}
body.page-home .home-image-hero {
  --hero-inset: max(calc(var(--home-gutter) / 2), calc((100% - var(--home-content-width)) / 2));
  display: grid;
  grid-template-areas: 'copy' 'links';
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  height: auto;
  min-height: clamp(548px, 76svh, 720px);
  padding: 48px var(--hero-inset) 24px;
  align-items: end;
  gap: 16px;
  isolation: isolate;
  background: #31271e;
  color: #fff;
}
body.page-home .home-image-hero::after {
  content: '';
  z-index: -1;
  background: linear-gradient(to top, rgb(28 22 18 / .91), rgb(28 22 18 / .69) 38%, rgb(28 22 18 / .54) 67%, transparent 100%);
}
body.page-home .home-image-hero > picture {
  z-index: -2;
}
body.page-home .home-image-hero > picture > img {
  object-position: 30% 55%;
  filter: none;
  transform: none;
  opacity: 1;
}
body.page-home .home-image-hero .home-image-copy {
  grid-area: copy;
  position: static;
  max-width: none;
  width: auto;
  margin: 0;
}
body.page-home .home-image-hero .home-image-copy h1 {
  max-width: 17ch;
  color: inherit;
  font-size: clamp(40px, 5.25vw, 80px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: none;
  text-wrap: wrap;
}
body.page-home .home-image-hero .home-image-copy h1 em { display: block; }
body.page-home .home-image-hero .home-hero-service-line {
  max-width: 36ch;
  margin-top: 16px;
  color: inherit;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  text-shadow: none;
}
body.page-home .home-hero-actions { gap: 4px 24px; margin-top: 20px; }
body.page-home .home-hero-actions .button {
  width: auto;
  min-height: 48px;
  padding: 12px 20px;
  gap: 20px;
  border-radius: var(--finish-control-radius);
}
body.page-home .home-hero-phone { color: inherit; font-size: 17px; text-shadow: none; }
body.page-home .home-image-hero .home-hero-reviews {
  min-height: 44px;
  margin: 8px 0 0;
  color: inherit;
}
body.page-home .home-hero-review-stars > span {
  width: 18px;
  height: 18px;
  font-size: 14px;
}
body.page-home :is(.home-hero-review-stars, .home-testimonial-stars) > span { background: #007854; }
body.page-home .home-image-hero .home-image-bottom {
  grid-area: links;
  position: static;
  gap: 12px;
  min-width: 0;
}
body.page-home .home-image-scroll {
  min-height: 44px;
  gap: 8px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.page-home .home-image-scroll svg { width: 15px; height: 15px; }
body.page-home .home-image-hero :is(.home-image-copy, .home-image-bottom) a:focus-visible {
  outline-color: #fff;
}

@media (min-width: 1101px) {
  body.page-home.home-form-in-hero .home-image-hero {
    grid-template-areas: 'copy form' 'links links';
    grid-template-columns: minmax(0, 1.6fr) minmax(380px, 1fr);
    min-height: max(clamp(680px, calc(100svh - var(--experience-header-height)), 800px), min(36vw, 960px));
    padding: 40px var(--hero-inset) 20px;
    column-gap: clamp(32px, 4.5vw, 68px);
  }
  body.page-home .home-image-hero::after {
    background:
      linear-gradient(to top, rgb(28 22 18 / .82), rgb(28 22 18 / .55) 37%, rgb(28 22 18 / .29) 69%, transparent 100%),
      linear-gradient(to right, rgb(28 22 18 / .30), rgb(28 22 18 / .23) 42%, transparent 74%);
  }
  body.page-home .home-image-hero > picture > img { object-position: center 27%; }
  body.page-home.home-form-in-hero .home-image-hero .home-image-copy {
    align-self: end;
    margin-block-end: clamp(24px, 6svh, 64px);
  }
  body.page-home .home-hero-form-slot { grid-area: form; align-self: center; }
  body.page-home .home-hero-form-slot .contact-form {
    --contact-glass-opacity: .50;
    --contact-glass-highlight: .22;
    --contact-glass-blur: 6px;
    --contact-field-surface: rgb(255 253 250 / .64);
    --contact-field-border: #66574b;
    --ink: #201812;
    --muted: #291f18;
    min-height: 0;
    padding: 28px clamp(24px, 2.4vw, 36px);
  }
  body.page-home .home-hero-form-slot .contact-experience .field :is(input, textarea)::placeholder { color: #4b3c31; }
  body.page-home .home-hero-form-slot .contact-field-error { color: #6b1712; }
  body.page-home.home-form-in-hero .home-image-hero .home-hero-actions .button {
    background: rgb(28 22 18 / .32);
    border-color: rgb(255 255 255 / .72);
    color: #fff;
  }
}

/* Photographs and testimonials read as collections, with fewer boxed elements. */
body.page-home .home-service-section { background: var(--finish-plaster); }
body.page-home .home-service-list { gap: 16px 24px; }
body.page-home .home-service-item,
body.page-home .home-service-item:hover {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
body.page-home .home-service-photo {
  aspect-ratio: 5 / 3;
  border-radius: var(--finish-image-radius);
}
body.page-home .home-service-copy { padding: 8px 0 0; gap: 0; }
body.page-home .home-service-item h3 a { text-decoration-color: #a08a78; }
body.page-home .home-service-note { margin-top: 24px; }
body.page-home .home-comparison-grid .before-after { border-radius: var(--finish-image-radius); }
body.page-home .home-testimonials { background: var(--finish-white); padding-block: 56px; }
body.page-home .home-testimonial,
body.page-home .home-testimonial:hover {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 20px 0 0;
}
body.page-home .home-testimonial figcaption { border-top: 0; padding-top: 0; }
body.page-home .home-testimonial-grid { gap: 24px 40px; }
body.page-home .home-testimonials-footer { margin-top: 24px; }

@media (max-width: 1000px) {
  body.page-home { --home-gutter: 64px; --home-space: 64px; }
}
@media (max-width: 900px) {
  :root, body.page-home { --experience-header-height: calc(76px + env(safe-area-inset-top, 0px)); }
  .site-header .main-nav.open > a { text-transform: none; letter-spacing: 0; }
  .site-header .main-nav.open > a::after { content: none; }
  .site-header .main-nav.open.pointer-open { transition: opacity 160ms var(--ease-out); }
  @starting-style {
    .site-header .main-nav.open.pointer-open { opacity: 0; }
  }
}
@media (max-width: 640px) {
  body.page-home { --home-gutter: 40px; --home-space: 56px; }
  body.page-home .home-image-hero {
    min-height: clamp(504px, 72svh, 640px);
    padding: 40px var(--hero-inset) 12px;
    gap: 8px;
  }
  body.page-home .home-image-hero > picture > img { object-position: 19% 50%; }
  body.page-home .home-image-hero .home-image-copy h1 { font-size: clamp(36px, 10.75vw, 46px); }
  body.page-home .home-image-hero .home-hero-service-line { margin-top: 12px; max-width: 34ch; }
  body.page-home .home-hero-actions { margin-top: 16px; column-gap: 12px; }
  body.page-home .home-hero-actions .button { padding-inline: 14px; gap: 12px; }
  body.page-home .home-image-hero .home-hero-reviews { margin-top: 4px; }
  body.page-home .home-service-list { gap: 0; }
  body.page-home .home-service-item,
  body.page-home .home-service-item:hover {
    gap: 16px;
    padding-block: 12px;
    border-top: 1px solid var(--line);
  }
  body.page-home .home-service-photo { min-width: 0; min-height: 96px; aspect-ratio: auto; }
  body.page-home .home-service-copy { padding: 0; }
  body.page-home .home-service-item h3 a { line-height: 1.18; }
  body.page-home .home-testimonials { padding-block: 40px; }
}

body :is(.button, .menu-toggle) {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
body :is(.button, .menu-toggle):active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  body.page-home .site-header .header-actions .button:hover {
    background: var(--finish-plaster);
    border-color: #9a8e81;
    color: var(--ink);
  }
  body.page-home.home-form-in-hero .home-image-hero .home-hero-actions .button:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
  }
  body.page-home :is(.home-image-scroll, .home-hero-phone):hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.button, .menu-toggle):active { transform: none; }
  body :is(.button, .menu-toggle), .site-header .main-nav.open.pointer-open { transition: none; }
}
