/* =================================================================
   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; }

/* Two overlapping feature photos that shift apart slightly on hover */
.feature-stack .fm-main { position: relative; z-index: 1; transition: transform .55s ease; }
.feature-stack .fm-overlay {
  position: absolute; z-index: 3; left: -5%; bottom: -12%; width: 40%; height: auto;
  aspect-ratio: auto; border-radius: var(--r-lg); border: 5px solid var(--charcoal);
  box-shadow: var(--shadow-lg); transition: transform .55s ease;
}
.feature-stack:hover .fm-main { transform: translate(9px, -9px); }
.feature-stack:hover .fm-overlay { transform: translate(-11px, 14px); }
.feature-stack .media-tag { top: 1rem; bottom: auto; }
@media (max-width: 860px) {
  .feature-stack { margin-bottom: 3rem; }
  .feature-stack .fm-overlay { width: 42%; bottom: -8%; }
}
.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); }
/* Hover crossfade between a before image and its after image */
.gallery-grid figure.ba-hover .ba-after {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.gallery-grid figure.ba-hover:hover .ba-after { opacity: 1; }
.gallery-grid figure.ba-hover:hover img { transform: none; }
.ba-hover-hint {
  position: absolute; top: .8rem; left: .8rem; z-index: 3;
  background: rgba(18,22,24,.8); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .35rem .65rem; border-radius: 4px; transition: opacity .4s ease; pointer-events: none;
}
.gallery-grid figure.ba-hover:hover .ba-hover-hint { opacity: 0; }
/* Auto crossfade: loops before -> after -> before on its own */
@keyframes baAutoFade {
  0%, 38%   { opacity: 0; }
  52%, 88%  { opacity: 1; }
  100%      { opacity: 0; }
}
.gallery-grid figure.ba-auto .ba-after { animation: baAutoFade 7s ease-in-out infinite; }
.gallery-grid figure.ba-auto:nth-child(2) .ba-after { animation-delay: -2.3s; }
.gallery-grid figure.ba-auto:nth-child(3) .ba-after { animation-delay: -4.6s; }
.gallery-grid figure.ba-auto .ba-hover-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid figure.ba-auto .ba-after { animation: none; }
  .gallery-grid figure.ba-auto .ba-hover-hint { display: block; }
}
.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; } }

/* =================================================================
   Price callout (roof page)
   ================================================================= */
.price-callout {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 2rem 2.2rem; margin: 2rem 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
  position: relative; overflow: hidden; border: 1px solid rgba(47,166,75,.4);
  box-shadow: var(--shadow-md);
}
.price-callout::after {
  content: ""; position: absolute; right: -6%; top: -60%; width: 46%; height: 220%;
  background: radial-gradient(circle, rgba(47,166,75,.32), transparent 70%);
}
.price-main { position: relative; z-index: 1; display: flex; flex-direction: column; }
.price-label { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: #8fe3a3; margin-bottom: .3rem; }
.price-amount { font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: .95; color: #fff; display: flex; align-items: baseline; gap: .55rem; }
.price-unit { font-size: 1.15rem; font-weight: 600; color: #dbe4dd; letter-spacing: 0; }
.price-terms { position: relative; z-index: 1; max-width: 42ch; margin: .9rem 0 0; font-size: .9rem; line-height: 1.5; color: #c5cdc8; }
.price-cta { position: relative; z-index: 1; flex: none; white-space: nowrap; box-shadow: 0 10px 26px rgba(47,166,75,.4); }
@media (max-width: 560px) {
  .price-amount { font-size: 3.2rem; }
  .price-cta { width: 100%; }
}

/* =================================================================
   Reviews / testimonials
   ================================================================= */
.reviews { overflow: hidden; }
.reviews-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.google-badge {
  display: inline-flex; align-items: center; gap: .7rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: .55rem 1.1rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.3rem;
}
.google-badge svg { flex: none; }
.gb-rating { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--ink); line-height: 1; }
.gb-count { color: var(--muted); font-size: .9rem; }
.gb-divider { width: 1px; height: 22px; background: var(--line); }

.rv-stars { letter-spacing: 1px; line-height: 1; }
.rv-star { color: #f5b301; }
.rv-star-empty { color: #d8dcd5; }

.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.review-card {
  flex: 0 0 380px; width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.reviews-grid .review-card { flex: none; width: auto; }
.rv-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.rv-avatar { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 50%; color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; font-family: var(--display); }
.rv-id { display: flex; flex-direction: column; line-height: 1.25; }
.rv-name { font-weight: 700; color: var(--ink); }
.rv-date { font-size: .82rem; color: var(--muted); }
.rv-google { margin-left: auto; flex: none; }
.rv-text { margin: 0; color: var(--slate); font-size: .97rem; line-height: 1.55; }
.reviews-cta { text-align: center; margin-top: 2.4rem; }

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
@media (max-width: 560px) { .review-card { flex-basis: 290px; width: 290px; } }

/* =================================================================
   Before & after slider
   ================================================================= */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.ba-grid-single { grid-template-columns: 1fr; max-width: 660px; margin-inline: auto; }
.ba-item { margin: 0; }
.ba-item figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.ba-item figcaption strong { color: var(--ink); }
.ba-slider {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); user-select: none; touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }

/* Crossfade variant (hover to reveal the after) */
.ba-cross {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.ba-cross .ba-after { opacity: 0; transition: opacity 1.4s ease; }
.ba-cross:hover .ba-after { opacity: 1; }
.ba-cross .ba-tag-after { opacity: 0; transition: opacity .5s ease; }
.ba-cross:hover .ba-tag-after { opacity: 1; }
.ba-cross:hover .ba-tag-before { opacity: 0; transition: opacity .5s ease; }
.ba-cross:hover .ba-hover-hint { opacity: 0; }
.ba-tag {
  position: absolute; bottom: .85rem; z-index: 3; padding: .35rem .7rem;
  background: rgba(18,22,24,.8); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; pointer-events: none;
}
.ba-tag-before { left: .85rem; }
.ba-tag-after { right: .85rem; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; z-index: 4;
  background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.35);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.ba-handle::before, .ba-handle::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.ba-handle::before { left: 9px; border-right: 7px solid var(--green-700); transform: translateY(-50%); }
.ba-handle::after { right: 9px; border-left: 7px solid var(--green-700); transform: translateY(-50%); }
.ba-range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 44px; height: 100px; border: 0; background: transparent; cursor: ew-resize; }

/* =================================================================
   Certificates
   ================================================================= */
.hero-cert-link {
  display: inline-block; margin-left: .55rem; font-size: .85rem; font-weight: 600;
  color: #bdeac8; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.hero-cert-link:hover { color: #fff; }

.cert-note {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--green-soft); border: 1px solid #cde9d3; border-left: 4px solid var(--green);
  border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .98rem; color: var(--slate);
}
.cert-note-icon { color: var(--green-700); flex: none; margin-top: 2px; }
.cert-note strong { color: var(--ink); }
.cert-note a { display: inline-block; margin-top: .35rem; font-weight: 600; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.04); }
.cert-thumb-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; color: var(--green-700); background: linear-gradient(135deg, #eef3ee, #dfeae1);
  text-align: center; font-family: var(--display); font-weight: 600; line-height: 1.1; font-size: 1.05rem;
}
.cert-pdf-tag {
  position: absolute; top: .7rem; right: .7rem; background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 4px;
}
.cert-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.cert-body h2 { font-size: 1.12rem; line-height: 1.2; margin: 0 0 .5rem; }
.cert-issuer { color: var(--muted); font-size: .92rem; margin: 0 0 .2rem; }
.cert-year { color: var(--green-700); font-weight: 600; font-size: .88rem; margin: 0 0 1.1rem; }
.cert-body .btn { margin-top: auto; align-self: flex-start; }
.cert-foot { text-align: center; margin-top: 2.6rem; color: var(--muted); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .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); }
  /* backdrop-filter makes the header a containing block for position:fixed
     children, which clipped the slide-out menu to the header height. The blur
     is decorative, so drop it at mobile widths. */
  .site-header.scrolled, body:not([data-page="home"]) .site-header {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: #fff;
  }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    /* Top padding only needs to clear the close button (~58px tall on a phone),
       not the full header height. */
    padding: calc(var(--header-h) - 1rem) 1.1rem 1.1rem;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-menu.open { transform: translateX(0); }
  /* Clean, borderless rows: full-width tap targets, no dividers.
     Scoped away from the two buttons so they keep their own styling. */
  .nav-menu > li:not(.nav-cta):not(.nav-call) > a {
    display: block; color: var(--ink) !important; padding: .66rem .55rem;
    font-size: 1rem; border-bottom: 0; border-radius: var(--r);
  }
  .nav-menu > li:not(.nav-cta):not(.nav-call) > a:active { background: var(--green-soft); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .1rem 0 .35rem .55rem; }
  .sub-menu a { display: block; padding: .44rem .6rem; font-size: .93rem; color: var(--muted); }
  .has-sub > a::after { content: ""; }
  /* Spacing alone separates the links from the action buttons. */
  .nav-cta { margin-top: 1.1rem; border-top: 0; }
  .nav-call { margin-top: .5rem; }
  .nav-cta a, .nav-call a { width: 100%; padding: .78rem 1rem; justify-content: center; font-weight: 700; }
  /* Two solid buttons: green primary, dark phone. No faint outlined box, and
     colours forced so the hero/scrolled header states cannot override them. */
  body .site-header .nav-cta a {
    background: var(--green) !important; color: #fff !important; border-color: var(--green) !important;
  }
  body .site-header .nav-call a {
    background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important;
  }
  .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; }
}
