/* ===================================================================
   SANDHILLS READINESS — community preparedness site stylesheet
   -------------------------------------------------------------------
   HOW TO RE-THEME THE WHOLE SITE:
   Change the values in the :root block right below. Colors and fonts
   cascade from here — you do not need to touch anything else to shift
   the palette. Everything else in this file is layout and polish.

   This is a sibling of benweger.com (same skeleton), tuned warmer:
   clay / terracotta + field green, for a community / outdoors feel.
   =================================================================== */

:root {
  /* ---- COLOR (edit these to re-skin the site) ---- */
  --bone:        #F6F1E7;  /* warm sand — main light background           */
  --bone-2:      #EEE6D6;  /* deeper sand — alternate bands               */
  --ink:         #241E18;  /* warm near-black — body text                 */
  --ink-soft:    #574B3E;  /* muted brown — secondary text                */
  --iron:        #34402F;  /* deep pine — dark band background            */
  --iron-deep:   #232C20;  /* darkest pine — hero + values band           */
  --moss:        #4C7A3F;  /* primary accent — field green                */
  --moss-bright: #94B26C;  /* lighter green — for use on dark backgrounds */
  --bronze:      #C8723E;  /* secondary accent — clay / terracotta        */
  --bronze-soft: #E0945C;  /* lighter clay — for use on dark backgrounds  */
  --line:        rgba(36, 30, 24, 0.12);    /* hairlines on light         */
  --line-dark:   rgba(246, 241, 231, 0.16); /* hairlines on dark          */

  /* ---- TYPE ---- */
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---- RHYTHM ---- */
  --container: 1140px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 6px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--moss); color: var(--bone); }

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

/* Accessibility: skip link + focus rings */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- SHARED BITS ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--bronze);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
}
.eyebrow--light { color: var(--moss-bright); }
.eyebrow--light .num { color: var(--bronze-soft); }
.section-head--center .eyebrow { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--bronze);
  color: var(--bone);
  border-color: var(--bronze);
}
.btn--primary:hover { background: #B5612F; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(246, 241, 231, 0.4);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(246,241,231,0.08); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
/* solid once you scroll past the hero (toggled by main.js) */
.site-header.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 44, 32, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  transition: color 0.3s ease;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-suffix { color: var(--bronze-soft); font-style: italic; font-weight: 500; }
.scrolled .brand { color: var(--ink); }
.scrolled .brand-suffix { color: var(--bronze); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--bone);
  position: relative;
  transition: color 0.2s ease;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--bronze-soft);
  transition: width 0.22s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.scrolled .nav a { color: var(--ink-soft); }
.scrolled .nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1.5px solid rgba(246,241,231,0.45);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--bone); color: var(--ink) !important; border-color: var(--bone); }
.scrolled .nav-cta { border-color: var(--bronze); color: var(--bronze) !important; }
.scrolled .nav-cta:hover { background: var(--bronze); color: var(--bone) !important; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: none;
  border: none;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.3s ease;
}
.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--iron-deep);
  border-top: 1px solid var(--line-dark);
  padding: 0.5rem var(--pad-x) 1.5rem;
}
.mobile-nav a {
  color: var(--bone);
  padding: 0.9rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--bronze-soft); font-weight: 600; }
.mobile-nav.open { display: flex; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--iron-deep);
  color: var(--bone);
  padding: clamp(8rem, 18vh, 12rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
/* faint clay + field glow + grain so the dark band isn't flat */
.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 80% 6%, rgba(200,114,62,0.18), transparent 55%),
    radial-gradient(95% 85% at 6% 100%, rgba(148,178,108,0.16), transparent 55%);
}
.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 880px; }
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
  font-weight: 600;
  margin: 0 0 1.6rem;
  letter-spacing: -0.025em;
}
.hero-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  color: rgba(246, 241, 231, 0.84);
  max-width: 46ch;
  margin-bottom: 2.4rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.hero-meta li {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.62);
  position: relative;
  padding-left: 1.1rem;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--bronze-soft);
  border-radius: 50%;
}

/* ---------- GENERIC SECTION ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--bone-2); }
.section--dark {
  background: var(--iron-deep);
  color: var(--bone);
  overflow: hidden;
}
.section-head { margin-bottom: 3rem; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.section--dark h2 { color: var(--bone); }

/* Mission: lead paragraph + supporting prose */
.mission-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.mission-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 0.2rem 0 0; }
.mission-body .eyebrow { margin-bottom: 0.8rem; }
.prose { font-size: 1.1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.mission-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}
.mission-lead .accent { color: var(--moss); }

/* ---------- ACTIVITY CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section--alt .card { background: #FAF6EC; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(35, 44, 32, 0.1);
  border-color: rgba(76, 122, 63, 0.4);
}
.card-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--bronze);
  display: block;
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; line-height: 1.2; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.99rem; }
.card-tags {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--moss);
  background: rgba(76, 122, 63, 0.1);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
}

/* ---------- "WHO IT'S FOR" LIST ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2.4rem;
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.audience li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.audience li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  background: var(--bronze);
  border-radius: 2px;
  transform: rotate(45deg);
}
.audience strong { color: var(--ink); font-weight: 600; }

/* ---------- VALUES BAND (dark) ---------- */
.virtues {
  list-style: none;
  margin: 0 auto 3.5rem;
  padding: 0;
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.virtues li {
  background: var(--iron-deep);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  text-align: center;
  padding: 1.5rem 0.5rem;
  letter-spacing: 0.01em;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.virtues li:hover { background: var(--moss); color: var(--bone); }
.pullquote { text-align: center; max-width: 760px; margin: 0 auto; }
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--bone);
  margin-bottom: 1.2rem;
}
.pullquote cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
.pullquote cite span { color: rgba(246,241,231,0.55); }

/* ---------- JOIN / INTEREST LIST ---------- */
.join { background: var(--bone-2); }
.join-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.join-inner .eyebrow { justify-content: center; }
.join-inner h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.join-lead { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 2.2rem; }

/* The signup form. With no backend, submitting opens a pre-filled email.
   See the EDIT note in index.html for swapping in a real provider. */
.join-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 1.1rem;
}
.join-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.join-form input[type="email"]::placeholder { color: rgba(87, 75, 62, 0.6); }
.join-form input[type="email"]:focus { border-color: var(--moss); outline-offset: 1px; }
.join-form .btn { flex: 0 0 auto; }
.join-or {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}
.join-or a { color: var(--moss); font-weight: 600; border-bottom: 1px solid rgba(76,122,63,0.35); }
.join-or a:hover { border-bottom-color: var(--moss); }
.join-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 1.6rem auto 0;
  max-width: 48ch;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--iron-deep); color: var(--bone); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--bone); }
.footer-brand .brand-mark { width: 46px; height: 46px; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.footer-tag { font-size: 0.85rem; color: rgba(246,241,231,0.58); margin: 0.2rem 0 0; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: rgba(246,241,231,0.74); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--bone); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(246,241,231,0.48); margin: 0; }
.footer-bottom a { color: rgba(246,241,231,0.7); border-bottom: 1px solid rgba(246,241,231,0.25); }
.footer-bottom a:hover { color: var(--bone); }

/* ---------- SCROLL-REVEAL (subtle fade-up; disabled if user prefers reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* anchor offset so sticky header doesn't cover section tops */
section[id] { scroll-margin-top: 90px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .virtues { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .virtues li { font-size: 0.92rem; padding: 1.1rem 0.3rem; }
  .hero-meta { gap: 0.5rem 1.2rem; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .join-form .btn { width: 100%; }
  .join-form input[type="email"] { flex-basis: 100%; }
}
