/* =========================================================
   The Zulu Collective — site styles
   Palette extracted from the logo (images/logo.webp):
     Forest green (primary)  #1c2c21  — "ZULU" wordmark, Z monogram
     Olive gold   (accent)   #736c41  — "COLLECTIVE", ring, rules
     Cream        (ground)   #faf7f0  — logo background
   ========================================================= */

:root {
  --green-900: #1c2c21;   /* primary (from logo) */
  --green-800: #243a2b;
  --green-700: #2f4a37;
  --green-100: #e6ece4;
  --gold-600:  #736c41;   /* accent (from logo) — 5.1:1 on cream */
  --gold-400:  #b5a66a;   /* light accent for dark backgrounds */
  --gold-200:  #e4dcb8;
  --cream:     #faf7f0;   /* background (from logo) */
  --cream-200: #f2ede1;
  --ink:       #1f2420;
  --ink-muted: #4d554f;   /* 7:1 on cream */
  --white:     #ffffff;
  --error:     #9b2c1f;

  --font-display: "Josefin Sans", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(28, 44, 33, 0.08);
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

a { color: var(--green-700); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-600); }

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--green-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--green-900);
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
}
.brand-text {
  font-family: var(--font-display);
  line-height: 1.05;
}
.brand-text strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold-600);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--green-900);
  color: var(--green-900);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--green-900);
  font-weight: 600;
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { background: var(--green-100); color: var(--green-900); }
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold-600);
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (max-width: 760px) {
  .brand img { width: 48px; height: 48px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold-200);
    box-shadow: var(--shadow);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .site-nav a[aria-current="page"] {
    border-bottom: none;
    border-left: 4px solid var(--gold-600);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--gold-400); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-200); color: var(--green-900); }
.btn-outline { border-color: var(--gold-400); color: var(--cream); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-dark { background: var(--green-900); color: var(--cream); }
.btn-dark:hover { background: var(--green-700); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(181, 166, 106, 0.18), transparent 45%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: var(--cream);
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--cream); }
.hero .eyebrow { color: var(--gold-400); }
.hero p.lead { font-size: 1.2rem; color: #e9e6dc; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-logo {
  justify-self: center;
  width: min(100%, 400px);
  border-radius: 24px;
  border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 10px rgba(181, 166, 106, 0.15), 0 20px 50px rgba(0,0,0,0.35);
  aspect-ratio: 1;
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: min(80%, 300px); order: -1; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

/* Decorative rule — mirrors "— COLLECTIVE —" in the logo */
.rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
}
.rule::before, .rule::after {
  content: "";
  height: 2px;
  width: 2.5rem;
  background: currentColor;
  opacity: 0.8;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.page-header h1 { color: var(--cream); margin-bottom: 0.5rem; }
.page-header .eyebrow { color: var(--gold-400); }
.page-header p { color: #e9e6dc; max-width: 40rem; margin-inline: auto; font-size: 1.15rem; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--cream-200); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--ink-muted); }

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* Max three columns — keeps a six-card grid at a tidy 3 × 2 */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid-3 .card { display: flex; flex-direction: column; }

/* "Supports these aims" pills on activity cards */
.aim-tags {
  list-style: none;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.aim-tags li {
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid #c8d4c6;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.card {
  background: var(--white);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  margin-bottom: 1rem;
}
.card .icon svg { width: 1.5rem; height: 1.5rem; }

/* Values strip: Connect · Share · Relax · Enjoy */
.values {
  background: var(--green-900);
  color: var(--cream);
  padding-block: 1.25rem;
}
.values ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.values li + li::before { content: "•"; color: var(--gold-400); margin-right: 1rem; }

/* Two-column text + media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
/* Image on the left on wider screens; text still comes first on mobile */
@media (min-width: 761px) { .split-reverse > figure { order: -1; } }

/* Story photos (About page) */
.story-figure { margin: 0; }
.story-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--gold-400);
  box-shadow: var(--shadow);
}
.story-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

.placeholder-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed var(--gold-600);
  background: var(--cream-200);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  text-align: center;
  padding: 1rem;
  font-weight: 600;
}

.placeholder-note {
  background: #fff8dc;
  border-left: 4px solid var(--gold-600);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--gold-400); }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--green-900);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold-600);
}
.timeline li.is-current::before { background: var(--gold-600); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-family: var(--font-display); font-weight: 700; color: var(--gold-600); letter-spacing: 0.1em; }

/* ---------- Aims & Objectives ---------- */
.mission {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.55;
  font-family: var(--font-display);
  color: var(--green-900);
}
.mission blockquote { margin: 0; }

.aims-list {
  list-style: none;
  counter-reset: aim;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.aims-list > li {
  counter-increment: aim;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.aims-list > li::before {
  content: counter(aim, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  background: var(--green-900);
  border: 3px solid var(--gold-400);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.aims-list h3 { margin-bottom: 0.35rem; }
.aims-list p { margin: 0; color: var(--ink-muted); }

.objectives {
  margin: 0;
  padding-left: 1.25rem;
}
.objectives li { margin-bottom: 0.6rem; }
.objectives li::marker { color: var(--gold-600); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--green-900);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta h2 { color: var(--cream); }
.cta p { color: #e9e6dc; max-width: 36rem; margin-inline: auto; margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--green-900); }
.field .req { color: var(--error); }
.field .hint { font-size: 0.9rem; color: var(--ink-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #c9c3ab;
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(115, 108, 65, 0.35);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 0.9rem; font-weight: 600; }


.honeypot { display: none !important; }

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.form-status.success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-700); }
.form-status.failure { background: #fbe9e6; color: var(--error); border: 1px solid var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #d9d6cc;
  padding-block: 2.5rem 1.5rem;
  border-top: 4px solid var(--gold-600);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.site-footer .tagline {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
  margin: 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-400); }
.copyright { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; text-align: center; }
