/* ============================================================
   Tiriti-dynamic leadership — site stylesheet
   Hemisphere + Big River Creative
   ============================================================ */

:root {
  --whenua-deep:  #0B2A4A;
  --whenua:       #1C4E7D;
  --whenua-light: #4A7BA8;
  --tiriti:       #2A9D8F;
  --tiriti-deep:  #1F7A6F;
  --tiriti-light: #6FC3B9;
  --centre:       #C7E1ED;
  --centre-soft:  #E6F1F8;
  --kowhai:       #D4A017;
  --paper:        #FFFFFF;
  --paper-soft:   #FFFFFF;
  --ink:          #1A1A1A;
  --ink-soft:     #333333;
  --muted:        #6B6B6B;
  --rule:         #E5E1D8;
  --rule-strong:  #C9C2B3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Type ===== */
h1, h2, h3, .display {
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: 0;
  color: var(--whenua-deep);
}
h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.05;
  font-weight: 400;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  font-weight: 400;
}
h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.35;
  font-weight: 500;
}
p { margin-bottom: 1.1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.2rem, 1.85vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 38ch;
}

em { font-style: italic; font-weight: 400; }
strong { font-weight: 600; color: var(--whenua-deep); }

a {
  color: var(--whenua);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 78, 125, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
a:hover {
  color: var(--tiriti-deep);
  border-bottom-color: var(--tiriti);
}

/* ===== Layout ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  border: none;
  color: var(--whenua-deep);
}
.brand:hover { border: none; color: var(--whenua-deep); }
.brand-mark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--whenua-deep);
  white-space: nowrap;
}
.brand-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--tiriti-deep);
}

nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] {
  border-bottom-color: var(--tiriti);
  color: var(--whenua-deep);
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .brand-mark { font-size: 1.45rem; }
  nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem 1.2rem;
  }
  nav a { font-size: 0.88rem; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tiriti-deep);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--tiriti);
}
.hero h1 .italic { font-style: italic; font-weight: 400; }
.hero h1 .accent { color: var(--tiriti-deep); }
.hero h1 .ground { color: var(--whenua); }

/* ===== Framework feature ===== */
.framework-feature {
  margin: clamp(2rem, 5vw, 4rem) 0;
}
.framework-feature-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.framework-feature img {
  width: 100%;
  height: auto;
  display: block;
}
.framework-feature figcaption {
  margin: 1.5rem auto 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-style: italic;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.55;
  text-align: center;
}

/* ===== Content sections ===== */
.content {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}
.content:last-of-type { border-bottom: none; }

.section-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 850px) {
  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.5rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.section-label .num {
  color: var(--tiriti);
  font-size: 1.4rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
@media (max-width: 850px) {
  .section-label { flex-direction: row; align-items: baseline; gap: 0.7rem; }
  .section-label .num { font-size: 1.1rem; }
}

/* ===== Two voices ===== */
.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.voice { padding: 2rem 0; position: relative; }
.voice:first-child {
  border-right: 1px solid var(--rule);
  padding-right: 2rem;
}
.voice:last-child { padding-left: 2rem; }
.voice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
}
.voice:first-child::before { background: var(--whenua); }
.voice:last-child::before { background: var(--tiriti); }

@media (max-width: 700px) {
  .voices { grid-template-columns: 1fr; }
  .voice:first-child {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-left: 0;
  }
  .voice:last-child {
    padding-left: 0;
    padding-right: 0;
  }
}

.voice-org {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--whenua-deep);
  margin-bottom: 0.3rem;
}
.voice-org a {
  color: inherit;
  border-bottom: 1px solid rgba(28, 78, 125, 0.18);
}
.voice-org a:hover { color: var(--tiriti-deep); border-bottom-color: var(--tiriti); }
.voice-person {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.voice-person a {
  color: inherit;
  border-bottom: 1px solid rgba(51, 51, 51, 0.18);
}
.voice-person a:hover { color: var(--tiriti-deep); border-bottom-color: var(--tiriti); }
.voice-meta {
  font-style: italic;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.voice p { font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* ===== Quote ===== */
blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--whenua);
  border-left: 2px solid var(--tiriti);
  padding: 0.5rem 0 0.5rem 1.6rem;
  margin: 2rem 0;
  max-width: 38ch;
}
blockquote cite {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== Te Pūtake grid ===== */
.putake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.8rem 2.2rem;
  margin-top: 2rem;
}
.putake-item {
  padding-top: 1.2rem;
  border-top: 2px solid var(--tiriti);
}
.putake-mauri {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--whenua-deep);
  margin-bottom: 0.2rem;
}
.putake-trans {
  font-size: 0.78rem;
  color: var(--tiriti-deep);
  font-style: italic;
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.putake-desc { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }

/* ===== Three streams ===== */
.streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--rule);
}
.stream-item {
  padding: 1.6rem 1.6rem 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.stream-item + .stream-item {
  border-left: 1px solid var(--rule);
  padding-left: 1.6rem;
}
@media (max-width: 700px) {
  .stream-item + .stream-item { border-left: none; padding-left: 0; }
  .stream-item { padding-right: 0; }
}
.stream-mauri {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--whenua-deep);
  margin-bottom: 0.15rem;
}
.stream-trans {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--tiriti-deep);
  font-style: italic;
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.stream-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ===== Whakapapa ===== */
.whakapapa { list-style: none; margin: 1.8rem 0; }
.whakapapa li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  align-items: baseline;
}
.whakapapa li:last-child { border-bottom: none; }
.whakapapa .year {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: var(--tiriti-deep);
  font-size: 0.96rem;
  font-weight: 500;
}
@media (max-width: 600px) {
  .whakapapa li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ===== Process ===== */
.process { counter-reset: step; margin-top: 1.3rem; }
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.process-step:last-child { border-bottom: 1px solid var(--rule); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--tiriti);
  font-weight: 400;
}
.process-step h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--whenua-deep);
}
.process-step p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ===== Forms grid ===== */
.forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.form-item {
  padding: 1.6rem 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
}
.form-item h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  color: var(--whenua-deep);
}
.form-item p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ===== Pull quote ===== */
.pull-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--whenua);
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2.2rem 0;
  font-style: italic;
  max-width: 50ch;
}

/* ===== FAQ ===== */
.faq { margin-top: 1.5rem; }
.faq details {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  color: var(--whenua-deep);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--tiriti);
  font-size: 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ===== CTA ===== */
.cta {
  background: var(--centre-soft);
  color: var(--ink);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  margin: 3rem 0 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--centre);
}
.cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--whenua), var(--tiriti));
}
.cta h2 { color: var(--whenua-deep); }
.cta p { color: var(--ink-soft); }
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  color: var(--tiriti-deep);
  border-bottom: 1px solid var(--tiriti);
  padding-bottom: 0.2rem;
  font-style: italic;
}
.cta-link:hover { color: var(--whenua-deep); border-bottom-color: var(--whenua-deep); }
.cta-secondary { font-size: 0.9rem; margin-top: 1.3rem; color: var(--muted); }
.cta-secondary a { color: var(--tiriti-deep); border-bottom-color: var(--tiriti); }
.cta-secondary a:hover { color: var(--whenua-deep); border-bottom-color: var(--whenua-deep); }

/* ===== Footer ===== */
footer {
  background: var(--paper-soft);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-lockup img {
  max-width: 220px;
  height: auto;
  margin-bottom: 0.9rem;
  display: block;
}
.footer-lockup p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  margin: 0;
}
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1.5;
  border: none;
}
.footer-col a:hover { color: var(--tiriti); border: none; }
.footer-bottom {
  max-width: 1240px;
  margin: 3rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Kōrero form ===== */
.korero-form { margin-top: 1.6rem; display: grid; gap: 1.3rem; max-width: 580px; }
.korero-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.korero-form input,
.korero-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.korero-form input:focus,
.korero-form textarea:focus {
  outline: none;
  border-color: var(--tiriti);
  background: var(--paper);
}
.korero-form textarea { min-height: 140px; resize: vertical; }
.korero-form button {
  justify-self: start;
  padding: 0.85rem 2.5rem;
  background: var(--tiriti-deep);
  color: var(--paper);
  border: none;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  border-radius: 2px;
}
.korero-form button:hover { background: var(--whenua-deep); }

/* Hide honeypot field from real users — bots will still see it and trip the trap */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
