/* Giovanni Kitchens — giovannikitchens.com
   Palette from the company van wrap: green, red, near-black, white.
   Editorial craftsman voice: Fraunces display serif + Inter body. */

:root {
  --ink: #16181a;
  --ink-soft: #3d4145;
  --ink-faint: #6b7075;
  --ivory: #faf7f2;
  --ivory-deep: #f2ede4;
  --white: #ffffff;
  --green: #0e6b44;
  --green-bright: #1fa36b;
  --green-whisper: #e7f2ec;
  --red: #c8102e;
  --line: #e2dcd1;
  --line-dark: #2a2d30;
  --radius: 3px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: .75rem 1.25rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 3rem); margin-inline: auto; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--green-bright); }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h2 em { font-style: italic; color: var(--green); }

h3 { font-size: 1.35rem; line-height: 1.3; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--green-bright); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: var(--measure); }

p { max-width: var(--measure); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.75rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  white-space: nowrap;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #10794e, var(--green) 55%, #0a5233);
  color: var(--white);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 2px 8px -2px rgba(14,107,68,.5);
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #0f6d47, #0b5636 55%, #084227);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -4px rgba(14,107,68,.55);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 2px 6px -2px rgba(14,107,68,.45); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(250,247,242,.45); }
.btn--ghost-light:hover { border-color: var(--ivory); background: rgba(250,247,242,.08); }
.btn--phone { font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.btn--phone::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .85rem 0;
}
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand__name span { color: var(--green); }
.brand__tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green-bright); color: var(--green); }
.site-nav .btn { border-bottom: none; }
.site-nav a.btn--primary { color: var(--white); }
.site-nav a.btn--primary:hover { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55rem .7rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; border: 1px solid transparent; }
  body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(100deg, rgba(16,17,18,.96) 38%, rgba(16,17,18,.78) 70%, rgba(16,17,18,.6)),
    url("/assets/img/hero-cabinet-door.jpg") center right / cover no-repeat var(--ink);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Subtle cabinet-panel grid etched into the dark backdrop */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(250,247,242,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,247,242,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: 1.5rem;
}
.hero__kicker::before { content: ""; width: 34px; height: 1px; background: var(--green-bright); }
.hero .lede { color: rgba(250,247,242,.78); margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero__note { margin-top: 1.4rem; font-size: .9rem; color: rgba(250,247,242,.55); }

.hero__figure { position: relative; margin: 0; }
.hero__figure img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgba(250,247,242,.14);
}
.hero__figure figcaption {
  margin-top: .8rem; font-size: .85rem; color: rgba(250,247,242,.55);
}
.hero__figure::after {
  content: ""; position: absolute; top: 1.1rem; left: -1.1rem; right: 1.1rem; bottom: 3.2rem;
  border: 1px solid rgba(31,163,107,.4); border-radius: var(--radius);
  z-index: -1;
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure::after { display: none; }
}

/* Price-beat ribbon */
.ribbon {
  background: var(--red); color: var(--white);
  text-align: center; padding: .8rem 1rem;
  font-weight: 700; font-size: clamp(.92rem, 1.6vw, 1.05rem);
  letter-spacing: .04em;
}
.ribbon a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trust bar ---------- */

.trustbar { background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding: 1.9rem 0;
}
.trust {
  display: flex; flex-direction: column; gap: .15rem;
  border-left: 2px solid var(--green-bright); padding-left: 1rem;
}
.trust strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.trust span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
@media (max-width: 880px) { .trustbar__inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section--tint { background: var(--ivory-deep); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--dark .lede, .section--dark p { color: rgba(250,247,242,.75); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Reface vs replace */
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pathway {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.pathway--featured { border-top: 3px solid var(--green); }
.pathway h3 { font-size: 1.6rem; }
.pathway__badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: var(--green-whisper);
  padding: .3rem .7rem; border-radius: var(--radius);
}
.pathway ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pathway li { padding-left: 1.5rem; position: relative; color: var(--ink-soft); }
.pathway li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .85rem; height: 1px; background: var(--green-bright);
}
.pathway__foot { margin-top: auto; padding-top: 1rem; font-size: .92rem; color: var(--ink-faint); }
@media (max-width: 880px) { .pathways { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--ivory); padding: 1.9rem 1.7rem;
  transition: background-color .25s ease;
}
.service:hover { background: var(--green-whisper); }
.service h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.service__num {
  display: block; font-family: var(--font-display); font-style: italic;
  color: var(--green-bright); font-size: .95rem; margin-bottom: .9rem;
}
@media (max-width: 880px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img {
  width: 100%; aspect-ratio: 680 / 314; object-fit: cover;
  transition: transform .45s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2rem .9rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(22,24,26,.82));
  color: var(--ivory); font-size: .85rem; font-weight: 500;
}
.gallery-grid--page { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.gallery-grid--page img { aspect-ratio: auto; }
@media (max-width: 880px) { .gallery-grid, .gallery-grid--page { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.section--dark .step h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: .6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display); font-style: italic;
  color: var(--green-bright); font-size: 1.05rem; margin-bottom: 1rem;
}
.step p { font-size: .95rem; margin: 0; }
@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.compare thead th { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare td.yes { color: var(--green); font-weight: 600; }
.compare td.no { color: var(--ink-faint); }
.compare-scroll { overflow-x: auto; }

/* Quote / pull */
.pull {
  border-left: 3px solid var(--green-bright);
  background: var(--green-whisper);
  padding: 1.75rem 2rem;
  margin: 0;
}
.pull p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-style: italic; line-height: 1.45; margin: 0 0 .8rem; color: var(--ink); }
.pull cite { font-style: normal; font-size: .88rem; color: var(--ink-faint); }

.proof-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center; margin-top: 2.5rem;
}
@media (max-width: 640px) { .proof-row { grid-template-columns: 1fr; justify-items: start; } }

/* Area chips */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.areas li {
  border: 1px solid var(--line); background: var(--white);
  padding: .45rem 1rem; border-radius: var(--radius);
  font-size: .92rem; color: var(--ink-soft);
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--green); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.5rem; }
.faq p { color: var(--ink-soft); margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,242,.5); margin-bottom: .3rem; }
.contact-list a { color: var(--ivory); text-decoration: none; }
.contact-list a:hover { color: var(--green-bright); }
.contact-list .phone-big { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }

.quote-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.quote-form h3 { margin-bottom: .4rem; }
.quote-form > p { font-size: .92rem; color: var(--ink-faint); margin-top: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  padding: .7rem .85rem; color: var(--ink);
  background: var(--white); border: 1px solid #c9c2b6; border-radius: var(--radius);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: none; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-status { font-size: .92rem; margin-top: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } .field--row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: #101112; color: rgba(250,247,242,.65); font-size: .92rem; }
.site-footer a { color: rgba(250,247,242,.85); text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}
.site-footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,242,.45); font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer__legal { border-top: 1px solid var(--line-dark); padding: 1.4rem 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Italian tricolor identity ---------- */

.tricolor {
  height: 4px;
  background: linear-gradient(90deg,
    #0e6b44 0%, #0e6b44 33.33%,
    #faf7f2 33.33%, #faf7f2 66.66%,
    #c8102e 66.66%, #c8102e 100%);
}
.tricolor--thin { height: 3px; width: 72px; border-radius: 2px; }
.heritage-line {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.heritage-line .tricolor--thin { flex-shrink: 0; }
.section--dark .eyebrow--red { color: #e05a6d; }

/* Heritage section: dark workshop backdrop */
.section--heritage {
  background:
    linear-gradient(100deg, rgba(16,17,18,.94) 30%, rgba(16,17,18,.72)),
    var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}
.section--heritage .lede, .section--heritage p { color: rgba(250,247,242,.78); }

/* Texture backdrops (subtle, from generated art) */
.section--wood {
  background:
    linear-gradient(100deg, rgba(16,17,18,.92) 35%, rgba(16,17,18,.72)),
    url("/assets/img/heritage-workshop.jpg") center / cover no-repeat var(--ink);
  color: var(--ivory);
}
@media (max-width: 880px) {
  .section--wood {
    background:
      linear-gradient(rgba(16,17,18,.9), rgba(16,17,18,.9)),
      url("/assets/img/heritage-workshop.jpg") center / cover no-repeat var(--ink);
  }
}
.section--wood .lede, .section--wood p { color: rgba(250,247,242,.75); }
.section--plaster {
  background:
    linear-gradient(rgba(250,247,242,.62), rgba(250,247,242,.72)),
    url("/assets/img/texture-plaster.jpg") center / cover;
}
.section--marble {
  background:
    linear-gradient(rgba(250,247,242,.88), rgba(250,247,242,.9)),
    url("/assets/img/texture-marble.jpg") center / cover;
}

/* ---------- Before / after slider ---------- */

.ba-slider {
  position: relative;
  aspect-ratio: 680 / 314;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-slider__after { clip-path: inset(0 0 0 var(--ba, 50%)); }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba, 50%);
  width: 3px; background: var(--ivory);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(22,24,26,.25);
  pointer-events: none;
}
.ba-slider__handle::after {
  content: "\2194";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory); color: var(--ink);
  border-radius: 50%;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(22,24,26,.35);
}
.ba-slider__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-slider__label {
  position: absolute; top: .8rem;
  padding: .3rem .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(22,24,26,.72); color: var(--ivory);
  border-radius: var(--radius);
  pointer-events: none;
}
.ba-slider__label--before { left: .8rem; }
.ba-slider__label--after { right: .8rem; }
.ba-caption { margin-top: .9rem; font-size: .88rem; color: var(--ink-faint); }

/* ---------- Desktop-only flourish (mobile stays tight) ---------- */

@media (hover: hover) and (min-width: 881px) {
  /* Cursor spotlight on service cards */
  .service { position: relative; overflow: hidden; }
  .service::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(31,163,107,.12), transparent 65%);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
  }
  .service:hover::after { opacity: 1; }

  /* Button sheen sweep */
  .btn--primary { position: relative; overflow: hidden; }
  .btn--primary::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -80%;
    width: 50%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
  }
  .btn--primary:hover::after { left: 130%; }

  /* Card tilt-lift on gallery */
  .gallery-grid figure { transition: transform .35s ease, box-shadow .35s ease; }
  .gallery-grid figure:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(22,24,26,.45); }
}

/* Hero headline letter reveal (desktop; falls back to plain text) */
.display .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.display .word > span { display: inline-block; transform: translateY(110%); }
.js-lettered .display .word > span { animation: word-rise .7s cubic-bezier(.2,.65,.25,1) forwards; }
@keyframes word-rise { to { transform: translateY(0); } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green) 0%, var(--green-bright) 55%, var(--red) 100%);
  pointer-events: none;
}

/* ---------- County landing pages ---------- */

.county-hero {
  background:
    linear-gradient(100deg, rgba(16,17,18,.95) 40%, rgba(16,17,18,.75)),
    url("/assets/img/hero-cabinet-door.jpg") center right / cover no-repeat var(--ink);
  color: var(--ivory);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.county-hero .lede { color: rgba(250,247,242,.78); margin-top: 1.4rem; }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.city-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
}
.city-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.city-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px) { .city-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
