/* ============================================================
   Groundswell Collective — grassroots women's network, Maine
   Plain CSS, no build step. Palette pulled from the logo:
     navy #1e2a5e · teal #17a88a · gold #efa820
   ============================================================ */

:root {
  --navy: #1e2a5e;
  --navy-deep: #161f47;
  --teal: #17a88a;
  --teal-dark: #128a71;
  --gold: #efa820;
  --gold-dark: #d8930f;

  --cream: #faf8f2;
  --cream-alt: #f2eee2;
  --ink: #1e2a5e;
  --ink-soft: #4a5675;
  --line: #e4e0d3;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(30, 42, 94, 0.10);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.4em; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(23, 168, 138, 0.30); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  text-decoration: none; color: var(--navy);
}
.brand-icon { width: 34px; height: 34px; }
.nav-cta {
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(23, 168, 138, 0.12), transparent),
    radial-gradient(700px 360px at 85% 30%, rgba(239, 168, 32, 0.10), transparent);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; padding-bottom: 90px; }
.hero-logo {
  width: min(340px, 74vw); height: auto; margin-bottom: 12px;
  filter: drop-shadow(0 12px 28px rgba(30, 42, 94, 0.15));
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 600; max-width: 18ch; margin-top: 8px;
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft); max-width: 44ch; margin-bottom: 30px;
}

/* Wave divider into the night-sky mission */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 110px; display: block; }
.wave-divider path { fill: var(--navy); }

/* ---------- Mission (night sky) ---------- */
.mission {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 96px 0 104px;
  overflow: hidden;
}
/* Faint scattered stars, echoing the logo's night sky */
.mission .stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 12%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 44% 30%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 62% 16%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 12%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 20% 72%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.1px 1.1px at 70% 78%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 52% 60%, var(--gold), transparent);
}
.mission-inner { position: relative; z-index: 1; text-align: center; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  font-weight: 700; color: var(--teal); margin-bottom: 22px;
}
.mission .section-eyebrow { color: #4fd3b6; }
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500; line-height: 1.5; color: #f3f5ff; margin: 0;
}
.mission-statement strong { color: #fff; font-weight: 700; }
.mission-statement .gold { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------- Connect / form ---------- */
.connect { padding: 92px 0 100px; }
.connect h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.connect-text { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 40px; }

.inquiry-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; text-align: left; }
.field-full { grid-column: 1 / -1; }
.inquiry-form .btn-block { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 168, 138, 0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; min-height: 1.2em; text-align: center; }
.form-note.error { color: #c0392b; }

/* Success state */
.form-success { max-width: 620px; margin: 0 auto; text-align: center; padding: 48px 24px; }
.success-mark {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 2rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(23, 168, 138, 0.3);
}
.form-success h3 { font-size: 1.8rem; color: var(--navy); }
.form-success p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 56px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-icon { width: 52px; height: 52px; margin-bottom: 6px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.footer-tag { color: rgba(250, 248, 242, 0.75); margin: 0; max-width: 44ch; }
.footer-fine { font-size: 0.85rem; color: rgba(250, 248, 242, 0.5); margin: 10px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .brand span { font-size: 1rem; }
  .inquiry-form { grid-template-columns: 1fr; padding: 26px; }
  .connect, .mission, .hero-inner { }
}

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