/* ==========================================================================
   Toa Rangatira Projects — v52
   Brand: Zilla Slab (display/wordmark) + Archivo (body), self-hosted.
   Red #C8102E used at large scale only (accents, bars, buttons), never small text.
   ========================================================================== */

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/zillaslab-600.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zillaslab-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/archivo-600.woff2") format("woff2");
}

:root {
  --red: #c8102e;
  --red-deep: #a20c24;
  --ink: #18191b;
  --black: #0e0e0e;
  --muted: #5b5f66;
  --paper: #f6f4f0;
  --white: #ffffff;
  --line: #e4e2dd;
  --field: #fbfaf8;

  --display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-sm: 0 10px 26px rgba(20, 20, 20, 0.08);
  --shadow: 0 22px 50px rgba(20, 20, 20, 0.13);
  --container: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.08; }
p { margin: 0; }

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.section { padding-block: 96px; }

/* Eyebrow / kicker — neutral text, red only as a short leading rule (large-scale device) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  width: 26px;
  height: 3px;
  background: var(--red);
  content: "";
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 11px 16px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--red); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-deep); }
.btn-light { color: var(--ink); background: var(--white); }
.btn-light:hover, .btn-light:focus-visible { background: #ece9e3; }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.22); }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(0, 0, 0, 0.42); border-color: var(--white); }

:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.5); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header::after {
  position: absolute;
  inset: auto 0 -3px 0;
  height: 3px;
  background: var(--red);
  content: "";
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-logo { display: block; height: 52px; width: auto; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.wordmark span { color: var(--red); }
.tagline {
  margin-top: 5px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call {
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  transition: background 140ms ease;
}
.header-call:hover, .header-call:focus-visible { background: var(--red-deep); }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  overflow: hidden;
  background: var(--black);
}
.hero::before {
  position: absolute;
  inset: 0;
  background: url("assets/porirua-hero.webp") center 46% / cover no-repeat;
  content: "";
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(8, 8, 8, 0.84) 0%, rgba(8, 8, 8, 0.62) 46%, rgba(8, 8, 8, 0.12) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: 84px; max-width: 760px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero-label::before { width: 30px; height: 3px; background: var(--red); content: ""; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: #ff8a9d; }

.hero-lead {
  margin-top: 22px;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
  line-height: 1.55;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }

.hero-points {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.hero-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-points li::before {
  position: absolute;
  left: 0; top: -1px;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
  content: "›";
}

/* ---------- Section heading ---------- */
.section-heading { max-width: 680px; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(2rem, 3.6vw, 2.95rem); }
.section-heading > p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Job types ---------- */
.job-types { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service-card-featured { border-top: 3px solid var(--red); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card > p { color: var(--muted); margin-bottom: 20px; }
.service-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-card li { position: relative; padding-left: 22px; font-size: 0.96rem; }
.service-card li::before {
  position: absolute;
  left: 0; top: 0.05em;
  color: var(--ink);
  font-weight: 700;
  content: "+";
}
.service-card-featured li::before { color: var(--red); }

/* ---------- Process (genuine 1-2-3 sequence: numbering justified) ---------- */
.approach-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.approach-intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.approach-intro > p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.process-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: step; }
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  min-width: 1.4ch;
}
.process-list h3 { font-size: 1.3rem; margin-bottom: 6px; }
.process-list p { color: var(--muted); }

/* ---------- Boundaries & support (dark, three frosted panes) ---------- */
.scope-section {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(10, 11, 13, 0.82) 0%,
      rgba(10, 11, 13, 0.50) 32%,
      rgba(10, 11, 13, 0.47) 66%,
      rgba(10, 11, 13, 0.74) 100%),
    url("assets/wellington-night.jpg") center / cover no-repeat;
  color: var(--white);
}
.section-heading-light h2 { color: var(--white); }
.section-heading-light .kicker { color: rgba(255, 255, 255, 0.78); }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.support-pane {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: rgba(13, 14, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.support-pane-accent { border-left: 5px solid var(--red); background: rgba(13, 14, 17, 0.64); }
.pane-kicker {
  margin-bottom: 12px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.support-pane h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.support-pane p { color: rgba(255, 255, 255, 0.82); }
.support-pane p + p { margin-top: 12px; }
.support-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.support-list li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; }
.support-list li::before { position: absolute; left: 0; top: 0.05em; color: var(--red); font-weight: 700; content: "+"; }

/* ---------- Service area ---------- */
.area-section { background: var(--paper); }
.area-head { max-width: 720px; margin-bottom: 44px; }
.area-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.area-head > p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 18px; }
.region-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.region-card h3 {
  font-size: 1.12rem;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--red);
}
.region-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.region-card li { color: var(--muted); font-size: 0.93rem; }
.area-foot { margin-top: 32px; color: var(--muted); font-size: 1rem; }
.area-foot a { color: var(--red); font-weight: 600; }
.area-foot a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.contact-copy > p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.contact-actions { margin-top: 30px; display: grid; gap: 12px; }
.contact-actions a {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.contact-actions a:hover, .contact-actions a:focus-visible { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.contact-actions strong { font-size: 1.02rem; }
.contact-actions span { margin-top: 3px; color: var(--muted); font-size: 0.95rem; }

.hours { margin-top: 26px; padding-left: 18px; display: grid; gap: 3px; border-left: 3px solid var(--line); }
.hours strong { font-size: 0.95rem; }
.hours span { color: var(--muted); font-size: 0.92rem; }

.contact-form {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.botcheck { position: absolute; left: -9999px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  font-weight: 400;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.16);
}
.photo-note {
  margin: 2px 0 4px;
  padding: 13px 15px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: var(--radius);
}
.photo-note strong { color: var(--ink); }
.contact-form .btn { width: 100%; }
.form-status { font-size: 0.86rem; color: var(--muted); }
.form-status a { color: var(--red); text-decoration: underline; }
.form-status.is-error { color: var(--red-deep); font-weight: 600; }
.form-status.is-ok { color: #186b3f; font-weight: 600; }

/* ---------- Legal page ---------- */
.legal-page { padding-block: 70px; }
.legal-content { max-width: 760px; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal-content p { color: var(--muted); margin-top: 10px; }
.legal-content a { color: var(--red); text-decoration: underline; }
.legal-updated { margin-top: 34px; font-size: 0.86rem; }
.legal-back { font-weight: 600; font-size: 0.92rem; color: var(--red); }
.legal-back:hover, .legal-back:focus-visible { color: var(--red-deep); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 30px; color: rgba(255, 255, 255, 0.66); background: var(--black); border-top: 5px solid var(--red); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-wordmark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.footer-wordmark span { color: var(--red); }
.footer-grid > div > p { margin-top: 4px; font-size: 0.92rem; }
.footer-grid .owner { margin-top: 12px; color: rgba(255, 255, 255, 0.82); }
.footer-details { text-align: right; }
.footer-details a:hover { color: var(--white); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 8px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .section { padding-block: 70px; }
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-call { display: none; }
  .approach-grid, .contact-grid, .support-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-details { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-logo { height: 44px; }
  .hero-inner { padding-block: 60px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .support-pane, .contact-form, .region-card { padding: 26px 22px; }
  .footer-details { text-align: left; }
  /* keep page clear of the sticky CTA bar */
  body { padding-bottom: 64px; }
  .mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  }
  .mobile-cta a {
    padding: 15px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid var(--line);
  }
  .mobile-cta a:last-child { border-right: 0; }
  .mobile-cta a:nth-child(2) { color: var(--white); background: var(--red); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
