/* ===================== 1. TOKENS ===================== */
:root {
  --forest:   #1E2D24;   /* hero + dark sections */
  --ledger:   #34483B;
  --teak:     #C9913F;   /* main action color */
  --teak-hi:  #DBA556;
  --oxide:    #8E3B22;
  --bone:     #E9ECE6;   /* cool light section */
  --white:    #FFFFFF;
  --ink:      #1B1E1B;
  --muted:    #5A5F58;
  --line:     #D3D8D0;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teak); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0 0 .5em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 6px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { padding: 1rem 1.6rem; font-size: 1.08rem; }
.btn--teak { background: var(--teak); color: var(--forest); }
.btn--teak:hover { background: var(--teak-hi); }
.btn--line { border-color: currentColor; color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--forest); border-color: var(--white); }

/* ===================== 2. TRUST STRIP + HEADER ===================== */
.trust-strip { background: var(--teak); color: var(--forest); font-size: .88rem; font-weight: 600; }
.trust-strip__inner { display: flex; justify-content: center; gap: 2.5rem; padding: .45rem 0; flex-wrap: wrap; }
.trust-strip span::before { content: "✓"; margin-right: .4rem; }

.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
/* Logo artwork is light, so it sits on a dark chip to read against the white header */
.brand__chip {
  display: grid; place-items: center;
  width: 50px; height: 50px; flex: 0 0 50px;
  background: var(--forest); border-radius: 12px;
}
.brand__chip img { width: 46px; height: 46px; object-fit: contain; display: block; }
.brand__name { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 1.2rem; line-height: 1.05; }
.brand em { display: block; font-style: normal; font-weight: 500; color: var(--muted); font-size: .95rem; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--oxide); }

.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; }

/* ===================== 3. HERO ===================== */
.hero { background: var(--forest); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 7.5rem; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  font-weight: 900;
  font-stretch: 72%;
  letter-spacing: -.01em;
  line-height: .92;
  text-transform: none;
  max-width: 9ch;
}
.hero__checks { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; gap: .65rem; font-size: 1.12rem; }
.hero__checks li { display: flex; gap: .7rem; align-items: baseline; }
.hero__checks li::before { content: "✓"; color: var(--teak); font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ===================== 4. BEFORE / AFTER SLIDER (signature) ===================== */
.ba { --pos: 50%; --ba-ratio: 4 / 3; position: relative; margin: 0; }
.ba--portrait { --ba-ratio: 3 / 4; } /* for photos shot upright on a phone */
.ba__stage, .ba { isolation: isolate; }
.ba__layer {
  position: absolute; inset: 0 0 auto 0;
  aspect-ratio: var(--ba-ratio);
  overflow: hidden; border-radius: 10px;
  background: var(--ledger);
}
/* Each layer holds the double-wide photo; one shows its left half, the other its right half */
.ba__layer img { position: absolute; top: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; }
.ba__before img { left: 0; }
.ba__after img  { left: -100%; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }

.ba::before { content: ""; display: block; aspect-ratio: var(--ba-ratio); } /* reserves space */

.ba__tag {
  position: absolute; top: .9rem; z-index: 2;
  padding: .25rem .6rem; border-radius: 4px;
  font-size: .8rem; font-weight: 700;
  background: rgba(27,30,27,.75); color: var(--white);
}
.ba__tag--before { left: .9rem; }
.ba__tag--after { right: .9rem; background: var(--teak); color: var(--forest); }

.ba__handle {
  position: absolute; top: 0; left: var(--pos); z-index: 2;
  width: 3px; aspect-ratio: auto; height: 0; padding-bottom: 0;
  transform: translateX(-50%);
  background: var(--white);
  pointer-events: none;
}
.ba__handle { height: calc(var(--ba-h, 100%)); }
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--forest);
  font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.ba__range {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba__range:focus-visible ~ .ba__handle span,
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--teak); outline-offset: 2px; }

.ba figcaption { margin-top: .8rem; font-size: .95rem; opacity: .85; }
.ba--hero figcaption { color: rgba(255,255,255,.75); }

/* ===================== 5. ESTIMATE BAR ===================== */
.estimate { margin-top: -4.5rem; position: relative; z-index: 5; }
.estimate__card {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1.2fr auto;
  gap: 1rem; align-items: end;
  background: var(--white);
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border-top: 6px solid var(--teak);
  box-shadow: 0 18px 40px rgba(30,45,36,.18);
}
.estimate__card h2 { font-size: 1.6rem; font-stretch: 80%; font-weight: 800; margin: 0; align-self: center; padding-right: .5rem; }
.field { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
  font: 500 1rem var(--body); color: var(--ink);
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white);
  width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--ledger); outline: none; box-shadow: 0 0 0 3px rgba(52,72,59,.2); }
.estimate__card .btn { height: 48px; }

/* ===================== 6. SECTIONS ===================== */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--dark { background: var(--forest); color: var(--white); }
.section--bone { background: var(--bone); }
.section__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 850; font-stretch: 75%; max-width: 16ch; }
.section__intro { color: var(--muted); max-width: 55ch; margin: -.5rem 0 0; }
.section--dark .section__intro { color: rgba(255,255,255,.72); }

/* Services lanes */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.lane { padding: 2.2rem; border-radius: 12px; display: flex; flex-direction: column; }
.lane--paint { background: var(--bone); }
.lane--teak  { background: var(--oxide); color: var(--white); }
.lane h3 { font-size: 2.4rem; font-stretch: 70%; font-weight: 900; }
.lane > p { font-size: 1.1rem; max-width: 34ch; }
.lane dl { margin: 1rem 0 1.8rem; }
.lane dl div { padding: 1rem 0; border-top: 1px solid rgba(0,0,0,.14); }
.lane--teak dl div { border-color: rgba(255,255,255,.25); }
.lane dt { font-weight: 700; }
.lane dd { margin: .2rem 0 0; opacity: .82; }
.lane__link { margin-top: auto; font-weight: 700; text-underline-offset: 4px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }

/* Process */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--forest); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .6rem;
  font-family: var(--display); font-weight: 900; font-stretch: 70%;
  font-size: 3rem; line-height: 1; color: var(--teak);
}
.steps h3 { font-size: 1.5rem; font-stretch: 85%; font-weight: 800; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

/* Why us */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.why__number { margin: 0; font-weight: 600; font-size: 1.2rem; max-width: 16ch; }
.why__number span {
  display: block; font-family: var(--display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(8rem, 20vw, 14rem); line-height: .8; color: var(--ledger);
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--oxide); font-weight: 800; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--oxide); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 55ch; }

/* Final CTA */
.final { background: var(--teak); padding: clamp(3rem, 7vw, 4.5rem) 0; color: var(--forest); }
.final__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; font-stretch: 72%; margin: 0; max-width: 14ch; }
.final__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.final .btn--teak { background: var(--forest); color: var(--white); }
.final .btn--teak:hover { background: var(--ledger); }
.final .btn--line { color: var(--forest); }
.final .btn--line:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* Footer */
.footer { background: var(--forest); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer p { margin: 0 0 .5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.footer__logo { width: 100%; max-width: 280px; height: auto; display: block; margin-bottom: 1rem; }
.footer__head { font-weight: 700; color: var(--white); }
.footer__head--social { margin-top: 1.6rem; }

/* --- social / review links --- */
.social { display: flex; flex-direction: column; gap: .7rem; margin-top: .7rem; }
.social__link {
  display: inline-flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-weight: 600; font-size: .95rem; width: fit-content;
  transition: color .18s ease;
}
.social__link svg { width: 22px; height: 22px; flex: 0 0 22px; }
.social__link:hover,
.social__link:focus-visible { color: var(--teak-hi); }
.footer__phone { display: inline-block; font-size: 1.4rem; font-weight: 700; color: var(--teak); text-decoration: none; }
.footer .footer__legal { border-top: 1px solid rgba(255,255,255,.15); margin: 2.5rem auto 0; padding-top: 1.2rem; font-size: .88rem; }

.mobile-bar { display: none; }

/* ===================== 7. RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .estimate__card { grid-template-columns: 1fr 1fr; }
  .estimate__card h2 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 860px) {
  .header__inner { height: 64px; }
  .header__cta { display: none; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
  }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -7px; }
  .menu-btn span::after { top: 7px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }

  .hero__grid, .lanes, .gallery, .why, .faq { grid-template-columns: 1fr; }
  .why, .faq { gap: 1.5rem; }
  .hero { padding-bottom: 6rem; }

  .footer__grid { grid-template-columns: 1fr; }

  /* Sticky call / estimate bar on phones */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  }
  .mobile-bar a { padding: 1rem; text-align: center; font-weight: 700; text-decoration: none; }
  .mobile-bar a:first-child { background: var(--forest); color: var(--white); }
  .mobile-bar a:last-child { background: var(--teak); color: var(--forest); }
  body { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .trust-strip__inner { gap: .2rem 1.2rem; font-size: .8rem; }
  .trust-strip span:last-child { display: none; }
  .estimate__card { grid-template-columns: 1fr; padding: 1.2rem; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .lane { padding: 1.6rem; }
}

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