/* A clear path from the first screen to contact: a readable header, a hero that ends in the two ways to get in touch, photographed services and sections that share one left edge. Loaded last. */

/* 1. The header is one solid bar on every page and at every scroll position, so menu and phone number never sit on a light photograph. */
body.page-home .site-header,
body.page-home .site-header.is-scrolled { background: #fff; color: var(--experience-ink, #1b1b19); border-bottom: 1px solid var(--line); }
body.page-home .site-header .header-inner { border-bottom-color: transparent; }
body.page-home .site-header .menu-toggle,
body.page-home .site-header .phone-link { color: var(--experience-ink, #1b1b19); }
body.page-home .site-header :is(a, button):focus-visible { outline-color: var(--brand-red, #cd1f14); }
body.page-home #site-header .paint-label { --paint-accent: var(--brand-red, #cd1f14); }

/* 2. The hero keeps the full photograph below the header. The headline holds two lines, and the copy ends with a quote button and the phone number. */
body.page-home .home-image-hero {
  margin-top: var(--experience-header-height, 112px);
  height: clamp(620px, calc(100svh - var(--experience-header-height, 112px)), 780px);
  min-height: 0;
  max-height: none;
}
body.page-home .home-image-hero::after {
  background:
    linear-gradient(180deg, rgba(20, 20, 18, .1), transparent 18%),
    linear-gradient(0deg, rgba(18, 18, 18, .84) 0%, rgba(18, 18, 18, .46) 36%, rgba(18, 18, 18, 0) 70%),
    linear-gradient(90deg, rgba(18, 18, 18, .44), rgba(18, 18, 18, .05) 72%);
}
body.page-home .home-image-copy { bottom: 92px; max-width: 850px; }
body.page-home .home-image-copy h1 {
  max-width: 12em;
  font-size: clamp(54px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .28);
}
body.page-home .home-image-copy h1 em { display: block; }
body.page-home .home-image-copy .home-hero-service-line { margin-top: 18px; max-width: 36ch; text-shadow: 0 1px 16px rgba(0, 0, 0, .32); }
body.page-home .home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 30px; }
body.page-home .home-hero-actions .button { min-height: 56px; padding: 16px 26px; gap: 34px; font-size: 16px; box-shadow: none; }
body.page-home .home-hero-phone { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; color: #fff; font-size: 18px; line-height: 1.2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.page-home .home-hero-phone svg { width: 18px; height: 18px; }
body.page-home .home-hero-phone .paint-label { --paint-accent: #fff; }

/* 3. Service photographs lead to the existing pages; one native link covers each card. */
body.page-home .home-service-item { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 14px; }
body.page-home .home-service-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #e4dccf; }
body.page-home .home-service-photo img { width: 100%; height: 100%; object-fit: cover; }
body.page-home .home-service-copy { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
body.page-home .home-service-item h3 { margin: 0; padding: 0; font-size: 24px; line-height: 1.2; }
body.page-home .home-service-item p { margin: 0; font-size: 16px; line-height: 1.6; }
body.page-home .home-service-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* 4. Section headings share one left edge and one rhythm. Red stays reserved for the contact actions. */
body.page-home .home-reasons-heading { text-align: left; max-width: none; margin: 0 0 32px; }
body.page-home .home-reasons-heading h2 { margin-inline: 0; }
body.page-home .home-testimonials-heading { display: block; }
body.page-home .home-testimonials-heading p { max-width: 62ch; margin-top: 16px; }
body.page-home .home-testimonials-footer { justify-content: flex-start; margin-top: 26px; }

@media (max-width: 1100px) {
  body.page-home .home-service-copy { padding: 18px 20px 22px; }
}

@media (max-width: 640px) {
  body.page-home .home-image-hero { height: auto; min-height: 0; padding: 170px 0 84px; }
  body.page-home .home-image-copy { position: relative; inset: auto; margin-inline: 24px; }
  body.page-home .home-image-copy h1 { font-size: clamp(36px, 11vw, 44px); line-height: 1.06; }
  body.page-home .home-image-copy .home-hero-service-line { margin-top: 14px; }
  body.page-home .home-hero-actions { margin-top: 20px; gap: 4px 18px; }
  body.page-home .home-hero-actions .button { width: 100%; justify-content: space-between; min-height: 54px; font-size: 16px; }
  body.page-home .home-hero-phone { min-height: 48px; font-size: 17px; }

  body.page-home .home-service-list { gap: 10px; }
  body.page-home .home-service-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  body.page-home .home-service-photo { position: relative; aspect-ratio: auto; height: auto; min-height: 112px; }
  body.page-home .home-service-photo img { position: absolute; inset: 0; }
  body.page-home .home-service-copy { padding: 15px 16px 16px; gap: 5px; justify-content: center; }
  body.page-home .home-service-item h3 { font-size: 21px; }
  body.page-home .home-service-item p { font-size: 15px; line-height: 1.5; }
  body.page-home .home-service-note { margin-top: 14px; }
}

@media (max-width: 360px) {
  body.page-home .home-service-item { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  body.page-home .home-image-hero { height: auto; min-height: 0; padding-block: 100px 84px; }
  body.page-home .home-image-copy { position: relative; inset: auto; margin-inline: 28px; }
  body.page-home .home-hero-actions { margin-top: 16px; }
  body.page-home .home-hero-actions .button { width: auto; min-height: 48px; }
}

/* Shared details: the existing red, chalk and Barlow identity, with less visual noise. */
:root { color-scheme: light; }
::selection { background: #f1c5ba; color: #2c2724; }
body :is(h1, h2, h3) { text-wrap: balance; letter-spacing: -.025em; }
body p { text-wrap: pretty; }
body :is(a, button, input, textarea, summary) { touch-action: manipulation; }
body :is(input, textarea) { caret-color: var(--brand-red); }
body :is(a, button, summary, input, textarea):focus-visible { outline: 3px solid var(--brand-red); outline-offset: 4px; }
body :is(section[id], div[id], h2[id]) { scroll-margin-top: calc(var(--experience-header-height, 104px) + 24px); }
body .text-link { font-size: 16px; letter-spacing: 0; text-transform: none; }
body .page-intro > p { max-width: 64ch; font-size: 19px; line-height: 1.65; }
body .page-intro { padding-top: 68px; padding-bottom: 48px; }
body .page-intro h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.08; }
body .footer-info-icon { display: none; }
body .footer-column-heading { margin-bottom: 16px; }
body .footer-navigation { flex-wrap: wrap; gap: 12px 24px; }
body .footer-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
body .project-meta > span:last-child { display: none; }
body.page-home .home-hero-reviews { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; min-height: 32px; color: #fff; }
body.page-home .home-hero-demo-label { font-size: 14px; line-height: 1.3; text-decoration: underline; text-underline-offset: 4px; }
body.page-home .home-image-copy h1 em { color: inherit; }
body.page-home .home-image-copy .home-hero-service-line { max-width: 48ch; font-size: 22px; line-height: 1.5; }
body.page-home .home-image-bottom { align-items: center; font-size: 13px; text-transform: none; letter-spacing: 0; }
body.page-home .home-service-item h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
body.page-home .home-service-item h3 a::after { content: ''; position: absolute; inset: 0; }
body.page-home .home-service-item:focus-within { outline: 3px solid var(--brand-red); outline-offset: 4px; }
body.page-home .home-service-item h3 a:focus-visible { outline: none; }
body.page-home .home-service-item:hover h3 a { color: var(--brand-red); }
body.page-home .home-service-note,
body.page-home .comparison-card-caption,
body .comparison-card-caption { font-size: 14px; }
body.page-home .home-reasons-heading h2 { max-width: 22ch; }
body .contact-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }
body .contact-intro-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-size: 23px; color: var(--brand-red); }
body .contact-intro-phone svg { width: 22px; height: 22px; }
body .contact-intro-actions .text-link { color: var(--ink); font-size: 16px; }
@media (max-width: 900px) {
  body .page-intro { padding-top: 44px; padding-bottom: 32px; }
  body .site-header.is-scroll-hidden { transform: none; pointer-events: auto; }
}
@media (max-width: 640px) {
  body.page-home .home-image-hero::after { background: linear-gradient(0deg, rgba(18, 18, 18, .88), rgba(18, 18, 18, .52) 70%, rgba(18, 18, 18, .14)); }
  body.page-home .home-image-copy h1 { font-size: clamp(38px, 10.5vw, 44px); }
  body.page-home .home-image-copy .home-hero-service-line { font-size: 19px; line-height: 1.5; margin-top: 18px; }
  body.page-home .home-hero-actions { margin-top: 24px; }
  body.page-home .home-image-bottom { bottom: 20px; left: 24px; right: 24px; gap: 16px; }
  body.page-home .home-hero-review-stars > span { width: 20px; height: 20px; font-size: 17px; }
  body .page-intro > p { margin-top: 20px; font-size: 18px; }
  body .contact-intro-actions { margin-top: 20px; gap: 8px 24px; }
  body .contact-intro-phone { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  body *, body *::before, body *::after { scroll-behavior: auto; }
}

/* Show the inline form on desktop. At narrower widths the quote link opens Contact. */
body.page-home:not(.home-form-in-hero) .home-hero-form-slot { display: none; }
@media (min-width: 1101px) {
  body.page-home.home-form-in-hero .home-image-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
    align-items: center;
    column-gap: clamp(40px, 5vw, 88px);
    height: auto;
    min-height: 760px;
    padding: 40px 6.35% 88px;
  }
  body.page-home.home-form-in-hero .home-image-copy {
    position: relative;
    z-index: 1;
    inset: auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  body.page-home.home-form-in-hero .home-image-copy h1 {
    font-size: clamp(48px, 4.2vw, 74px);
    max-width: 12ch;
    line-height: 1.06;
  }
  body.page-home.home-form-in-hero .home-image-copy h1 em { display: inline; }
  body.page-home.home-form-in-hero .home-hero-service-line { font-size: 21px; max-width: 36ch; }
  body.page-home .home-hero-form-slot { position: relative; z-index: 1; min-width: 0; color: var(--ink); }
  body.page-home .home-hero-form-slot .contact-form {
    padding: 26px 28px;
    width: 100%;
    margin: 0;
    color: var(--ink);
  }
  body.page-home .home-hero-form-slot .contact-form::before { display: none; }
  body.page-home .home-hero-form-slot .contact-experience h2 { color: var(--ink); font-size: 32px; line-height: 1.15; }
  body.page-home .home-hero-form-slot .contact-experience .field { margin-bottom: 14px; }
  body.page-home .home-hero-form-slot .contact-experience .field label { color: var(--ink); font-size: 15px; }
  body.page-home .home-hero-form-slot .contact-experience .field input:not([type=file]),
  body.page-home .home-hero-form-slot .contact-experience .field textarea { min-height: 46px; padding: 10px 12px; font-size: 16px; }
  body.page-home .home-hero-form-slot .contact-experience .field textarea { min-height: 96px; }
  body.page-home .home-hero-form-slot .contact-photos { margin-bottom: 12px; }
  body.page-home .home-hero-form-slot .form-privacy { margin-bottom: 12px; }
  body.page-home .home-hero-form-slot .contact-submit { width: 100%; min-height: 50px; font-size: 16px; }
  body.page-home .home-hero-form-slot .contact-result { color: var(--ink); }
}
