/* ============================================================
   MF Malingstjenester — design system
   Fonts: Schibsted Grotesk (display) + Inter (body) — self-hosted
   Signature: tricolor brush bar (green→yellow→red)
   ============================================================ */

/* Self-hosted variable fonts (latin subset). Replaces the render-blocking
   Google Fonts request; each file covers its full weight range. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  /* Colour */
  --ink: #141413;
  --ink-soft: #46433c;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f1efe8;
  --line: #e6e2d9;
  --line-strong: #d6d1c5;
  --muted: #6a655a;

  --green: #3f9b3a;
  --green-ink: #2c7a29;
  --yellow: #ffce00;
  --red: #e02b22;

  /* Text on dark (ink) surfaces */
  --on-dark: #d5d2c9;
  --on-dark-muted: #a4a097;
  --on-dark-faint: #8f8b81;

  /* Type */
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 19, .05), 0 2px 8px rgba(20, 20, 19, .04);
  --shadow-md: 0 8px 30px rgba(20, 20, 19, .08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 19, .14);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root { accent-color: var(--green); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) transparent; }
::selection { background: var(--ink); color: var(--paper); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.narrow { max-width: var(--wrap-narrow); margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }

/* Eyebrow + brush signature */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 34px; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
}
.center .eyebrow { justify-content: center; }

.brush-bar {
  /* used as a bare <span>; without this it stays inline and width/height never apply */
  display: block;
  height: 6px; width: 68px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
}
.center .brush-bar { margin-inline: auto; }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.section-head h2 { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .5rem 1rem; border-radius: var(--radius);
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.06rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px; width: fit-content;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); gap: .75rem; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--lg { font-size: 1.06rem; gap: .6rem; padding-bottom: 4px; }
.link-arrow--lg svg { width: 1.15em; height: 1.15em; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  color: var(--ink-soft); position: relative; padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}
.nav-phone svg { width: 1.05em; height: 1.05em; color: var(--green-ink); }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-top: 1.4rem; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent {
  background-image: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: var(--stroke, 100%) .12em;
  padding-bottom: .04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* keep the brush stroke on one line — a split accent renders as two bars */
  white-space: nowrap;
}
.hero .lead { margin-top: 1.5rem; max-width: 34ch; }
.hero .btn-row { margin-top: 2rem; }
.hero-proof {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: .95rem; max-width: 34rem;
}
.hero-proof__mark {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em;
}
.hero-proof__body { min-width: 0; padding-top: .1rem; }
.hero-proof__quote {
  font-family: var(--font-body); font-weight: 600; font-size: 1.08rem;
  line-height: 1.45; letter-spacing: -0.005em; color: var(--ink);
  text-wrap: balance;
}
.hero-proof__who {
  margin-top: .45rem; font-size: .85rem; line-height: 1.45; color: var(--muted);
}
.hero-proof__who strong { font-weight: 500; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-media__img {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
}
.hero-media__img picture { display: block; width: 100%; height: 100%; }
.hero-media__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-media__img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  border-radius: inherit;
}
.hero-badge {
  position: absolute; left: -22px; bottom: 34px; z-index: 3;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.05rem 1.3rem;
  display: flex; align-items: center; gap: .9rem; max-width: 260px;
  border: 1px solid var(--line);
}
.hero-badge__num { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.hero-badge__txt { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.hero-media__stripe {
  position: absolute; top: -14px; right: 26px; z-index: 3;
  height: 10px; width: 120px; border-radius: 6px; transform: rotate(-4deg);
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
  box-shadow: var(--shadow-sm);
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); color: #fff; }
.trust-strip__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem 2.6rem; padding-block: 1.2rem;
}
.trust-strip__item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: #efeee9;
}
.trust-strip__item svg { width: 1.15rem; height: 1.15rem; color: var(--yellow); flex: none; }

/* ============================================================
   Services grid
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.7rem 1.8rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); margin-bottom: 1.3rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.svc-card:hover .svc-card__icon { background: var(--ink); color: #fff; }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: .55rem; }
.svc-card p { color: var(--muted); font-size: .98rem; }
.svc-card .link-arrow { margin-top: 1.2rem; font-size: .95rem; }

/* ============================================================
   Feature / why-us with stats
   ============================================================ */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature-media { position: relative; }
.feature-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.feature-media__stripe {
  position: absolute; bottom: -14px; left: 30px; height: 10px; width: 130px; border-radius: 6px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
}
.value-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.value-item { display: flex; gap: 1rem; }
.value-item__mark {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--green-ink);
}
.value-item__mark svg { width: 20px; height: 20px; }
.value-item h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.value-item p { color: var(--muted); font-size: .98rem; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.stat { border-top: 3px solid var(--ink); padding-top: 1rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1; letter-spacing: -.03em; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: .5rem; }

/* ============================================================
   Process steps (a real sequence)
   ============================================================ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; counter-reset: step; }
.steps__progress {
  position: absolute; top: 8px; left: 0; width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
  transform: scaleX(0); transform-origin: left center; z-index: 1; pointer-events: none;
}
@media (max-width: 1024px) { .steps__progress { display: none; } }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--green-ink);
  position: absolute; top: 0; left: 0;
}
.step::after {
  content: ""; position: absolute; top: 8px; left: 46px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* ============================================================
   Projects gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; margin-top: 3rem; }
.gallery figure {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); cursor: pointer;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,19,.55), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 2; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* ============================================================
   Project entries (prosjekter.html)
   ============================================================ */
.project + .project { margin-top: clamp(3.5rem, 7vw, 6rem); }
.project__head { max-width: 720px; }
.project__head h2 { margin-top: .75rem; }
.project__head p { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }
.project .gallery { margin-top: 1.75rem; }

.project__meta {
  display: flex; flex-wrap: wrap; gap: .5rem .65rem; margin-top: 1.1rem;
}
.project__tag {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .3rem .8rem; background: var(--surface);
}

/* ---------- Before / after ---------- */
.ba-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 2vw, 1.25rem); margin-top: 2.25rem;
}
.ba-item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-2); cursor: pointer;
  aspect-ratio: 16 / 10;
}
.ba-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ba-item:hover img { transform: scale(1.04); }
.ba-item__tag {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .38rem .8rem; border-radius: 100px;
  background: rgba(255,255,255,.94); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.ba-item__tag--after { background: var(--ink); color: #fff; }
.ba-note { margin-top: 1rem; color: var(--muted); font-size: .95rem; text-align: center; }

/* ============================================================
   Boxed call-to-action
   ============================================================ */
.cta-box-wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cta-box {
  position: relative; margin-inline: auto; max-width: 720px;
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: clamp(2.25rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: radial-gradient(38% 80% at 25% 0%, rgba(20,20,19,.07), transparent 70%);
}
/* side rules that overshoot the box, as in the reference */
.cta-box::before, .cta-box::after {
  content: ""; position: absolute; top: -1.5rem; bottom: -1.5rem; width: 1px;
  background: var(--line-strong); pointer-events: none;
}
.cta-box::before { left: 0; }
.cta-box::after { right: 0; }
/* dashed centre line, behind the content */
/* corner plus marks */
.cta-box__plus {
  position: absolute; z-index: 2; width: 22px; height: 22px; color: var(--muted); opacity: .55;
}
.cta-box__plus--tl { top: -11px; left: -11px; }
.cta-box__plus--tr { top: -11px; right: -11px; }
.cta-box__plus--bl { bottom: -11px; left: -11px; }
.cta-box__plus--br { bottom: -11px; right: -11px; }

.cta-box__body { position: relative; z-index: 1; text-align: center; }
.cta-box__body .brush-bar { margin-inline: auto; margin-bottom: 1.1rem; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.cta-box p { color: var(--muted); margin-top: .7rem; font-size: 1.05rem; }
.cta-box .btn-row {
  position: relative; z-index: 1; justify-content: center;
}

@media (max-width: 720px) {
  .ba-grid { grid-template-columns: 1fr; }
  .cta-box .btn-row .btn { flex: 1 1 100%; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(15,15,14,.9); padding: 4vw; backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: #fff; width: 48px; height: 48px; }
.lightbox__close svg { width: 30px; height: 30px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0;
  color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__prev { left: 2vw; } .lightbox__next { right: 2vw; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.quote__stars { display: flex; gap: .15rem; color: var(--yellow); }
.quote__stars svg { width: 1.05rem; height: 1.05rem; }
.quote p { font-size: 1.02rem; color: var(--ink-soft); margin-top: auto; }
.quote__who { display: flex; align-items: center; gap: .8rem; }
.quote__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  object-fit: cover; background: var(--surface-2); border: 1px solid var(--line);
}
.quote__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.quote__role { color: var(--muted); font-size: .86rem; }

/* ============================================================
   CTA band (dark)
   ============================================================ */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(63,155,58,.20), transparent 60%),
    radial-gradient(700px 400px at 10% 120%, rgba(224,43,34,.16), transparent 60%);
}
.cta-band .wrap { position: relative; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: .9rem; max-width: 46ch; }
.cta-band .brush-bar { margin-bottom: 1.4rem; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .92rem; margin-bottom: .45rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63,155,58,.15); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--green-ink); }
.form-status.err { color: var(--red); }

.contact-aside { display: grid; gap: 1.4rem; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--green-ink); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.contact-item a, .contact-item p { color: var(--ink-soft); }
.contact-item a:hover { color: var(--green-ink); }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { margin-top: 1.2rem; max-width: 16ch; }
.page-hero p { color: var(--muted); margin-top: 1.2rem; max-width: 56ch; font-size: 1.15rem; }
.crumbs { font-size: .88rem; color: var(--muted); font-family: var(--font-display); }
.crumbs a:hover { color: var(--ink); }

/* Service detail rows */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.svc-detail:nth-child(even) .svc-detail__media { order: -1; }
.svc-detail__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc-detail ul.ticks { margin-top: 1.4rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.ticks svg { width: 1.15rem; height: 1.15rem; color: var(--green-ink); flex: none; margin-top: .28rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand__logo { display: flex; align-items: center; gap: .7rem; }
.footer-brand__logo img { height: 46px; width: auto; }
.footer-brand__logo span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.footer-brand__logo span small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); }
.footer-brand p { margin-top: 1.1rem; font-size: .95rem; color: var(--on-dark-muted); max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a, .footer-col p { color: var(--on-dark-muted); font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--yellow); flex: none; margin-top: .2rem; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .2s var(--ease), transform .2s var(--ease); }
.social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .86rem; color: var(--on-dark-faint);
}

/* ============================================================
   Sticky mobile call bar
   ============================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.mobile-cta .btn { padding: .8rem 1rem; font-size: .95rem; }

/* ============================================================
   Motion — focal hero sequence + supporting reveals
   ============================================================ */

/* Motion is driven by GSAP (js/main.js). Elements are only hidden once
   GSAP is confirmed present (html.gsap), so if the library or the script
   fails to load, everything stays fully visible — content never depends
   on JS. GSAP tweens the paint stroke via the --stroke custom property. */
html.gsap .reveal { opacity: 0; }

/* The hero is intentionally NOT opacity-gated: it renders from CSS alone
   and its intro (js/main.js) animates transform only, so it stays fully
   visible even if GSAP never loads or JS is disabled. */

/* Hero primary CTA arrow follows the click intent */
.btn--primary svg { transition: transform .25s var(--ease-out); }
.btn--primary:hover svg { transform: translateX(3px); }

/* Header lifts off the page once you start scrolling */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,20,19,.07); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav-links .btn { display: inline-flex; margin-top: 1rem; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-media__img { aspect-ratio: 16/12; }
  .feature-grid, .form-grid, .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .feature-media { max-width: 480px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall { grid-row: span 1; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 72px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
/* Phones: hero CTAs go full-width and stack, so both are easy thumb targets */
@media (max-width: 640px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .btn-row .btn { width: 100%; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
}

/* ============================================================
   Device & input adaptation (touch, safe areas, targets)
   ============================================================ */

/* Tap feedback works on every input method */
.btn:active { transform: translateY(0) scale(.98); }
.svc-card:active, .gallery figure:active { transform: translateY(0) scale(.99); }

/* Touch devices: no real hover, so surface the content hover would reveal
   and cancel the transforms iOS otherwise leaves "stuck" after a tap. */
@media (hover: none) {
  .gallery figure::after { opacity: 1; }
  .gallery figcaption { opacity: 1; transform: none; }
  .gallery figure:hover img { transform: none; }
  .svc-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .svc-card:hover .svc-card__icon { background: var(--surface-2); color: var(--ink); }
  .btn--primary:hover, .btn--ghost:hover, .btn--light:hover, .btn--outline-light:hover { transform: none; box-shadow: none; }
  .btn--primary:hover { box-shadow: var(--shadow-sm); }
  .social a:hover { transform: none; }
  .link-arrow:hover { gap: .5rem; }
  .link-arrow:hover svg { transform: none; }
  .btn--primary:hover svg { transform: none; }
}

/* Coarse pointers get full-size touch targets */
@media (pointer: coarse) {
  .social a { width: 44px; height: 44px; }
  .nav-links a { padding-block: .5rem; }
}

/* Fixed mobile bar clears the notch, home indicator and rounded corners */
.mobile-cta {
  padding-left: max(.6rem, env(safe-area-inset-left));
  padding-right: max(.6rem, env(safe-area-inset-right));
  padding-bottom: max(.6rem, env(safe-area-inset-bottom));
}
@media (max-width: 860px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Reduced motion: GSAP still fades content in on scroll (opacity is not
   vestibular motion) but skips all movement, parallax and the stroke
   drawing. The stroke is shown static here; the no-JS / no-GSAP failsafe
   (html.gsap is dropped after 2.6s) still guarantees content appears. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .accent { background-size: 100% .12em !important; }
}
