/* Brand tokens, taken from the Van Leeuwen Painters logo */
:root {
  --ink: #161616;
  --ink-2: #3a3d3a;
  --muted: #5d625d;
  --paper: #fafaf8;
  --paper-2: #f0f3ee;
  --line: #dfe4dc;
  --accent: #3f9c2c;      /* logo green */
  --accent-bright: #5cb847; /* green on dark backgrounds */
  --accent-ink: #ffffff;
  --accent-dark: #2e7d22; /* buttons / small green text (AA on white) */
  --radius: 14px;
  --wrap: 1120px;
  --font-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--font-head);
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent-dark);
  background: var(--accent-dark);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { background: #24661a; border-color: #24661a; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: 10px 18px; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 128px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--accent-bright); }
.lede { font-size: 1.15rem; color: #cfd3cf; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #cfd3cf; }
.trust li::before { content: "✓"; color: var(--accent-bright); font-weight: 700; margin-right: 8px; }

.hero-art { position: relative; height: 420px; }
.swatch {
  position: absolute; width: 58%; height: 78%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transform-origin: 50% 110%;
  display: flex; align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.swatch::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; background: #fff; }
.swatch span { position: relative; z-index: 1; font: 700 .9rem/1 var(--font-head); color: var(--ink); }
.s1 { left: 6%;  top: 10%; background: #7d8a7a; transform: rotate(-14deg); }
.s2 { left: 18%; top: 6%;  background: #e4e1d6; transform: rotate(-4deg); }
.s3 { left: 30%; top: 8%;  background: #2f4a3c; transform: rotate(6deg); }
.s4 { left: 42%; top: 12%; background: var(--accent); transform: rotate(16deg); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section > .wrap > h2 { max-width: 20em; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,42,54,.08); }
.card svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #e6f2e1; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; padding: 18px 20px; }
.checks strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.checks span { color: var(--muted); font-size: .96rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; display: flex; align-items: flex-end; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: relative; padding: 14px 16px; font-size: .9rem; font-weight: 500; color: #fff; }
.ph1 { background: linear-gradient(135deg, #6f8a7a, #4d6657); }
.ph2 { background: linear-gradient(135deg, #2f4f6b, #1f2a36); }
.ph3 { background: linear-gradient(135deg, #c79a5b, #9c7038); }
.ph4 { background: linear-gradient(135deg, #8a9aa8, #5f6b78); }
.ph5 { background: linear-gradient(135deg, #a2685a, #7c4a3f); }
.ph6 { background: linear-gradient(135deg, #3f6a6a, #2a4848); }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.areas li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; }

/* Quote */
.quote { background: var(--ink); color: #fff; }
.quote .eyebrow { color: var(--accent-bright); }
.quote p { color: #cfd3cf; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; }
.contact-list span { color: #8f958f; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.contact-list a { color: #fff; font-weight: 600; text-decoration-color: var(--accent-bright); text-underline-offset: 4px; }

.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input:not([type=checkbox]), .form textarea {
  font: inherit; font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,156,44,.25); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; user-select: none; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form .fine { color: var(--muted); font-size: .85rem; margin: 0; }

/* Master Painters NZ member badge (shows the official logo once assets/master-painters-nz.png exists) */
.mp-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); border-radius: 12px; padding: 12px 18px;
  text-decoration: none; color: #fff;
}
/* Hero uses the white logo on dark; About uses the green (recoloured black) logo on white */
.mp-badge img { height: 60px; width: auto; }
.mp-badge span { display: none; font-size: .9rem; line-height: 1.3; }
.mp-badge span strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.mp-badge.no-logo img { display: none; }
.mp-badge.no-logo span { display: block; }
.mp-badge.no-logo::before { content: "✓"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 700; }
.mp-hero { margin-top: 28px; padding: 0; background: transparent; }
.mp-about { margin-bottom: 16px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.mp-about img { height: 76px; }

/* Footer */
.site-footer { background: #0e0f0e; color: #8f958f; padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: 0; }
.brand-footer img { height: 44px; }

.call-fab { display: none; }

/* Simple pages (thanks / 404) */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.simple p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 88px; padding-bottom: 64px; }
  .hero-art { height: 260px; max-width: 420px; }
  .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle .bar::before { position: absolute; top: -7px; }
  .nav-toggle .bar::after { position: absolute; top: 7px; }
  .nav ul {
    display: none;
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .nav ul.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 16px; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .cards, .gallery, .areas, .form .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .call-fab {
    display: grid; place-items: center;
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .call-fab { background: var(--accent-dark); }
  .call-fab svg { width: 24px; height: 24px; fill: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 600px) {
  .brand img { height: 42px; }
}
