/* =================================================================
   Mason Wairau Painters — design system
   Brand: koru green + charcoal, clean modern editorial feel
   ================================================================= */

:root {
  --green:      #2fa64b;
  --green-600:  #248f3d;
  --green-700:  #1c7a33;
  --green-900:  #0f3d1c;
  --green-soft: #eaf6ec;

  --ink:        #14181a;
  --charcoal:   #1c2125;
  --slate:      #3a4248;
  --body:       #2c3338;
  --muted:      #5d666c;
  --line:       #e4e7e2;
  --paper:      #f7f8f4;
  --paper-2:    #eef0ea;
  --white:      #ffffff;

  --shadow-sm: 0 1px 2px rgba(20,24,26,.06), 0 2px 8px rgba(20,24,26,.05);
  --shadow-md: 0 10px 30px rgba(20,24,26,.10);
  --shadow-lg: 0 24px 60px rgba(20,24,26,.16);

  --wrap: 1200px;
  --r: 6px;
  --r-lg: 14px;
  --header-h: 92px;

  --display: "Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1rem; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Eyebrow / section intros ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--green-700); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--green); display: inline-block; }
.eyebrow-light { color: #bdeac8; }
.eyebrow-light::before { background: var(--green); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 62ch; }
.center { text-align: center; }
.center .eyebrow, .center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { --pad-y: 1.05rem; --pad-x: 1.9rem; font-size: 1.05rem; }
.btn-solid { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47,166,75,.28); }
.btn-solid:hover { background: var(--green-600); color: #fff; box-shadow: 0 12px 26px rgba(47,166,75,.34); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-700); }
.btn-text { color: var(--green-700); font-weight: 600; padding: 0; }
.btn-text::after { content: " \2192"; transition: margin .15s; }
.btn-text:hover::after { margin-left: .25rem; }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.0);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, body:not([data-page="home"]) .site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; height: var(--header-h); padding: 0; }
/* Logo is absolutely placed so its size never changes the bar height. */
.brand { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; }
/* Compact logo for the white bar (scrolled state) and all inner pages. */
.brand-logo { height: calc(var(--header-h) * 0.95); width: auto; display: block; transition: height .3s ease, filter .3s ease; }
/* Over the home hero there is no white bar, so the logo can be large and
   overhang the video — making "Painters Ltd" clearly legible. It is rendered
   white (like the footer) here, and shrinks to the compact colour logo once
   the header turns solid white on scroll. */
body[data-page="home"] .site-header:not(.scrolled) .brand { align-items: flex-start; }
body[data-page="home"] .site-header:not(.scrolled) .brand-logo {
  height: calc(var(--header-h) + 56px);
  filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0,0,0,.5));
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-menu > li > a {
  display: inline-block; padding: .6rem .85rem; font-weight: 600; font-size: .96rem;
  color: var(--ink); border-radius: var(--r); transition: color .15s, background .15s;
}
body[data-page="home"] .site-header:not(.scrolled) .nav-menu > li > a { color: #fff; }
body[data-page="home"] .site-header:not(.scrolled) .nav-menu > li > a.nav-roof { color: #bdeac8; }
.nav-menu > li > a:hover, .nav-menu > li > a.is-active { color: var(--green-700); }
body[data-page="home"] .site-header:not(.scrolled) .nav-menu > li > a:hover { color: #bdeac8; }
.nav-roof { color: var(--green-700); }

.has-sub { position: relative; }
.has-sub > a::after { content: " \25BE"; font-size: .7em; opacity: .7; }
.sub-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: .6rem .8rem; border-radius: var(--r); color: var(--body); font-weight: 500; font-size: .95rem; }
.sub-menu a:hover { background: var(--green-soft); color: var(--green-700); }

.nav-cta { margin-left: .4rem; }
.nav-call a { font-size: .9rem; }
/* On the dark home hero the ghost phone button needs a transparent, outlined
   look so its text isn't white-on-white. It reverts to the ghost style once
   the header turns solid (scrolled) or on inner pages. */
body[data-page="home"] .site-header:not(.scrolled) .nav-call a {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
body[data-page="home"] .site-header:not(.scrolled) .nav-call a:hover {
  background: #fff;
  color: var(--ink);
}

.nav-toggle { display: none; }

/* =================================================================
   Hero (home) with video background
   ================================================================= */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; margin-top: calc(var(--header-h) * -1 - 3px); padding-top: var(--header-h);
  background: #0e1416;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-wrap iframe,
.hero-video-wrap img.hero-fallback {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  object-fit: cover; border: 0; pointer-events: none;
}
.hero-video-wrap img.hero-fallback { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,20,22,.55) 0%, rgba(14,20,22,.35) 40%, rgba(14,20,22,.78) 100%),
    linear-gradient(90deg, rgba(15,40,24,.55) 0%, rgba(14,20,22,.15) 60%);
}
.hero-inner { position: relative; z-index: 2; padding: 5rem 0; width: min(var(--wrap), 92%); margin-inline: auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: #cdeed4; margin-bottom: 1.3rem;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--green); }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 1.2rem; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero h1 em { font-style: normal; color: #7fe095; }
.hero-sub { font-size: 1.25rem; max-width: 56ch; color: #eaf2ec; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center;
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .95rem; color: #e8f1ea; }
.hero-trust .tick { color: #7fe095; font-weight: 800; }
.hero-stat strong { font-family: var(--display); font-size: 1.6rem; color: #fff; margin-right: .35rem; }

/* =================================================================
   Trust / accreditation strip
   ================================================================= */
.trust-strip { background: var(--ink); color: #fff; padding: 1.6rem 0; }
.trust-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.4rem; }
.trust-strip img { height: 54px; width: auto; background: #fff; border-radius: var(--r); padding: 7px 10px; filter: none; }
/* On desktop the logos sit inline with the label (the wrapper is transparent). */
.trust-logos { display: contents; }
/* On mobile: keep the label on one line and turn the logos into a horizontal
   scroll strip underneath, so nothing wraps awkwardly. */
@media (max-width: 640px) {
  .trust-strip-inner { flex-direction: column; gap: 1rem; }
  .trust-strip-inner > p { margin: 0; white-space: nowrap; }
  .trust-logos {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 1.2rem;
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .trust-logos::-webkit-scrollbar { display: none; }
  .trust-strip img { flex: 0 0 auto; }
}
.trust-strip p { margin: 0; font-weight: 600; letter-spacing: .02em; color: #cfd6d2; }

/* =================================================================
   Generic feature row (image + text)
   ================================================================= */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.feature-media .media-tag {
  position: absolute; bottom: 1rem; left: 1rem; background: var(--ink); color: #fff;
  padding: .55rem .9rem; border-radius: var(--r); font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
}
.feature-media .media-tag .dot { width: 8px; height: 8px; background: var(--green); border-radius: 2px; }
.feature ul.ticks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.feature ul.ticks li { padding-left: 1.9rem; position: relative; color: var(--slate); }
.feature ul.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--green); font-weight: 800;
  background: var(--green-soft); width: 1.35rem; height: 1.35rem; border-radius: var(--r);
  display: grid; place-items: center; font-size: .8rem;
}

/* =================================================================
   Roof focal block (home)
   ================================================================= */
.roof-focal { background: var(--charcoal); color: #fff; position: relative; overflow: hidden; }
.roof-focal::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 50%; height: 140%;
  background: radial-gradient(circle, rgba(47,166,75,.18), transparent 70%);
}
.roof-focal h2, .roof-focal h3 { color: #fff; }
.roof-focal .lead { color: #c9d1cd; }
.roof-focal .feature-media img { box-shadow: var(--shadow-lg); }
.roof-focal .eyebrow { color: #8fe3a3; }
.roof-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; }
.roof-pills span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: .55rem .9rem; border-radius: var(--r); font-size: .9rem; color: #e7efe9;
}

/* =================================================================
   Services grid
   ================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,20,18,0) 30%, rgba(12,16,14,.55) 60%, rgba(10,14,12,.92) 100%); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card .svc-body { position: relative; z-index: 2; padding: 1.5rem; }
.svc-card h3 { color: #fff; margin-bottom: .35rem; }
.svc-card p { color: #dbe4dd; font-size: .95rem; margin: 0 0 .9rem; }
.svc-card .svc-more { font-weight: 600; color: #8fe3a3; font-size: .92rem; }
.svc-card .svc-more::after { content: " \2192"; }
.svc-card.is-featured { grid-column: span 1; outline: 2px solid var(--green); outline-offset: 0; }
.svc-flag {
  position: absolute; top: 1rem; left: 1rem; z-index: 3; background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: var(--r);
}

/* =================================================================
   Process / steps
   ================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem 1.5rem; position: relative; }
.step .step-no {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--green-700);
  background: var(--green-soft); width: 2.6rem; height: 2.6rem; border-radius: var(--r);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* =================================================================
   Stats band
   ================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--green-700); line-height: 1; }
.stat-label { color: var(--muted); font-weight: 500; margin-top: .4rem; }

/* =================================================================
   Why-choose cards
   ================================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-icon { width: 3rem; height: 3rem; border-radius: var(--r); background: var(--green-soft); color: var(--green-700); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .card-icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* =================================================================
   Page hero (inner pages)
   ================================================================= */
.page-hero { position: relative; color: #fff; padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem,6vw,4.5rem); overflow: hidden; background: var(--ink); margin-top: calc(var(--header-h) * -1 - 3px); padding-top: calc(var(--header-h) + 4rem); }
.page-hero img.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .42; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,20,22,.6), rgba(14,20,22,.85)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #e3ebe5; }
.breadcrumb { font-size: .85rem; color: #aebab1; margin-bottom: 1.3rem; }
.breadcrumb a { color: #cfe7d5; }
.breadcrumb span { opacity: .6; margin: 0 .4rem; }

/* =================================================================
   Prose (content pages)
   ================================================================= */
.prose { max-width: 72ch; }
.prose.wide { max-width: 100%; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: .6rem; margin: 1.2rem 0; }
.prose ul li { padding-left: 1.9rem; position: relative; }
.prose ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(47,166,75,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green); }

.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 3rem; align-items: start; }
.sidebar-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; position: sticky; top: 100px; }
.sidebar-card h3 { font-size: 1.2rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .2rem; }
.sidebar-card ul a { display: block; padding: .55rem .7rem; border-radius: var(--r); color: var(--body); font-weight: 500; }
.sidebar-card ul a:hover, .sidebar-card ul a.active { background: var(--green-soft); color: var(--green-700); }

/* =================================================================
   Gallery
   ================================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(10,14,12,.82)); color: #fff; font-size: .9rem; font-weight: 500;
}
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .tall img { aspect-ratio: 4/6; height: 100%; }

/* =================================================================
   Contact
   ================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info .ci-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:last-child { border-bottom: 0; }
.ci-icon { flex: none; width: 2.8rem; height: 2.8rem; border-radius: var(--r); background: var(--green-soft); color: var(--green-700); display: grid; place-items: center; }
.ci-item h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.ci-item p, .ci-item address { margin: 0; color: var(--muted); font-style: normal; }
.ci-item a { font-weight: 600; }

form.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r);
  font: inherit; color: var(--body); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,166,75,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 2rem; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* =================================================================
   Misc bands
   ================================================================= */
.band-soft { background: var(--paper); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .lead { color: #c9d1cd; }

.cta-band { background: var(--green-900); color: #fff; padding: clamp(3.5rem,7vw,5.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(47,166,75,.35), transparent 55%); }
.cta-band-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band-lead { color: #d6e6da; max-width: 52ch; margin: 0; }
.cta-band-actions { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
.cta-band-actions .btn { width: 100%; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--ink); color: #c4ccc7; padding-top: 4rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { margin-bottom: 1rem; height: 70px; width: auto; }
/* New logo has dark text that vanishes on the dark footer, so render it as a
   clean white silhouette and size it up to match the header. No box/border. */
.footer-brand img.footer-logo { height: 104px; filter: brightness(0) invert(1); }
.footer-brand p { color: #9aa39d; max-width: 38ch; }
.footer-badges { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-badges img { height: 52px; width: auto; background: #fff; border-radius: var(--r); padding: 6px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: #b6beb8; }
.footer-col a:hover { color: var(--green); }
.footer-contact address { color: #9aa39d; line-height: 1.5; }
.footer-hours { color: #7fe095; font-weight: 600; }
.footer-areas { padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.08); color: #8b938d; font-size: .9rem; }
.footer-areas strong { color: #c4ccc7; }
.footer-bottom { background: #0e1214; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.2rem 0; font-size: .85rem; color: #7e867f; }
.footer-bottom p { margin: 0; }

/* =================================================================
   Reveal animation
   ================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .services-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
    padding: .6rem; z-index: 120;
  }
  .nav-toggle span:not(.vh) { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
  body[data-page="home"] .site-header:not(.scrolled) .nav-toggle span:not(.vh) { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); background: #fff;
    flex-direction: column; align-items: stretch; gap: .1rem; padding: 5.5rem 1.4rem 2rem;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a { color: var(--ink) !important; padding: .9rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem .8rem; }
  .has-sub > a::after { content: ""; }
  .nav-cta, .nav-call { margin-top: .8rem; }
  .nav-cta a, .nav-call a { width: 100%; }
  .feature, .split, .contact-grid, .cta-band-inner { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .sidebar-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --header-h: 80px; }
  body[data-page="home"] .site-header:not(.scrolled) .brand-logo { height: calc(var(--header-h) + 30px); }
  .services-grid, .cards-3, .steps, .gallery-grid, .field-row { grid-template-columns: 1fr; }
  .gallery-grid .tall { grid-row: auto; }
  .gallery-grid .tall img { aspect-ratio: 4/3; }
  .hero { min-height: 88vh; }
  .footer-grid { grid-template-columns: 1fr; }
}
