/* ==========================================================================
   The Seek Movement – site styles
   Tokens mirror the original Bricks / Core Framework theme.
   ========================================================================== */

:root {
  --primary: #2c6e49;
  --primary-hover: #338054;
  --primary-dark: #245b3c;
  --primary-deep: #1d4931;
  --primary-light: #c8e9d7;
  --secondary: #0c3547;
  --secondary-hover: #0d3b4e;
  --green-bright: #4ab866;
  --green-bright-hover: #3fa457;

  --bg-light: #d9d9d9;
  --bg-ultra-light: #f2f2f2;
  --bg-dark: #404040;
  --bg-ultra-dark: #1a1a1a;

  --text: #000;
  --text-muted: rgba(0, 0, 0, 0.8);
  --text-light: #fff;
  --text-light-muted: rgba(255, 255, 255, 0.8);
  --white-trans-40: rgba(255, 255, 255, 0.4);
  --black-trans-50: rgba(0, 0, 0, 0.5);
  --border: #d0d5dd;
  --danger: #cc1818;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --text-xs: 0.8125rem;
  --text-s: 0.9rem;
  --text-m: 1.125rem;
  --text-l: 1.35rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-xxl: clamp(1.85rem, 1.4rem + 1.6vw, 2.7rem);
  --h1: clamp(2.25rem, 1.6rem + 2.2vw, 2.96rem);
  --h2: clamp(1.6rem, 1.3rem + 1vw, 2.3rem);
  --h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  --h4: 1.25rem;
  --h5: 1.125rem;

  --space-xs: 1.2rem;
  --space-s: 1.5rem;
  --space-m: 2rem;
  --space-l: 2.75rem;
  --space-xl: 3.5rem;
  --space-xxl: 4.5rem;
  --section-space: clamp(3rem, 2rem + 4vw, 5.6rem);

  --content-width: 1170px;
  --gutter: 1.25rem;
  --header-h: 72px;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-xl: 11.25px;
  --radius-xxl: 17px;
  --radius-pill: 999px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-m);
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
body.home { padding-top: 0; }
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0 0 1em; padding-left: 1.5rem; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container {
  width: min(var(--content-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: var(--section-space); }
.section--page { padding-top: var(--space-l); }
.text-center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  padding: 0.7em 1.35em;
  border: 0; border-radius: var(--radius-xl);
  font-size: 1rem; font-weight: 500; letter-spacing: 0.5px; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn .chev { width: 1em; height: 1em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-hover); color: #fff; }
.btn-lg { font-size: var(--text-m); padding: 0.75em 1.5em; }
.btn-link { background: transparent; color: inherit; padding-inline: 0.5em; font-size: var(--text-m); font-weight: 400; }
.btn-link:hover { opacity: 0.8; }
.btn-donate {
  width: 100%; background: var(--green-bright); color: #fff;
  border-radius: var(--radius-pill); font-size: var(--text-m); padding: 0.9em 1.5em;
}
.btn-donate:hover, .btn-donate:focus-visible { background: var(--green-bright-hover); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; color: #000;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header.is-transparent:not(.is-scrolled):not(.menu-open) { background: transparent; color: #fff; box-shadow: none; }
.site-header.menu-open { background: var(--bg-ultra-dark); color: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
}
.logo { display: inline-flex; color: inherit; line-height: 0; }
.logo-svg { height: 40px; width: auto; display: block; }
.logo-svg :not([fill="none"]) { fill: currentColor; }
.header-right { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: inherit; text-decoration: none; text-transform: uppercase;
  font-weight: 500; font-size: 1rem; letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}
.site-nav a:hover { opacity: 0.75; }
.header-cta { font-size: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px;
  background: transparent; border: 0; cursor: pointer; color: inherit;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.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 {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-ultra-dark); color: #fff;
  padding: 1.5rem clamp(1rem, 4vw, 4rem); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block; padding: 1rem 0; color: #fff; text-decoration: none;
  font-size: 1.35rem; font-weight: 500; text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-right { gap: 0.75rem; }
  .header-cta { padding: 0.6em 1em; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative; min-height: 650px;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--section-space));
  padding-bottom: var(--section-space);
  background: url("../img/hero-the-well.jpg") 80% center / cover no-repeat;
  color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--black-trans-50); pointer-events: none; }
.hero .container { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: var(--h1); margin: 0; width: 55%; }
.hero h2 { font-size: 1.25rem; margin: 0; width: 55%; }
.hero p { width: 60%; margin: 0; color: var(--text-light); }
.hero .btn { align-self: flex-start; margin-top: var(--space-xs); }

/* ---------- Home: intro ---------- */
.intro { background: var(--bg-light); padding-block: var(--section-space); }
.intro .container { display: flex; align-items: center; gap: var(--space-m); }
.intro-text { flex: 0 0 67%; }
.intro-text p:first-child { font-weight: 700; }
.intro-logo { flex: 1; display: flex; justify-content: center; }
.intro-logo img { width: 200px; }

/* ---------- Home: features ---------- */
.features { margin-bottom: var(--space-xxl); }
.features-heading { text-align: center; padding-block: var(--space-xl); margin: 0; font-size: var(--text-xl); }
.features-heading em { color: var(--primary); }
.feature { display: flex; align-items: stretch; }
.feature-media {
  flex: 0 0 50%; min-height: 440px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-xxl);
}
.feature-body {
  flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-l);
}
.feature:nth-child(even) .feature-media { order: 2; }
.eyebrow {
  text-transform: uppercase; font-size: var(--text-s); letter-spacing: 1px; font-weight: 300;
  margin: 0 0 0.35rem;
}
.feature-body h3 { font-size: var(--h3); margin: 0 0 var(--space-xs); }

/* ---------- Accordions ---------- */
.acc details { margin: 0; }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 0.55em; height: 0.55em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transition: transform 0.2s ease; margin-right: 0.3em;
}
.acc .acc-body :last-child { margin-bottom: 0; }

/* boxed (green "weekend" accordion) */
.acc--boxed { width: 60%; border-radius: var(--radius-xxl); overflow: hidden; }
.acc--boxed summary { background: var(--primary-deep); padding: var(--space-s) var(--space-m); font-size: 1.6rem; }
.acc--boxed summary::after { transform: rotate(-45deg); }
.acc--boxed details[open] summary::after { transform: rotate(45deg); }
.acc--boxed .acc-body { background: var(--primary-dark); padding: var(--space-m); }
.acc--boxed .acc-body ul { list-style: circle; }

/* lined (navy FAQ accordion) */
.acc--lines { width: 60%; border-bottom: 1px solid var(--white-trans-40); }
.acc--lines details { border-top: 1px solid var(--white-trans-40); }
.acc--lines summary { padding: var(--space-s) var(--space-s) var(--space-s) 0; font-size: var(--text-m); }
.acc--lines summary::after { transform: rotate(45deg); }
.acc--lines details[open] summary::after { transform: rotate(-135deg); }
.acc--lines .acc-body { padding: 0 var(--space-s) var(--space-s) 0; }

/* plain (registration details) */
.acc--plain summary { padding: 0.8rem 0; text-transform: uppercase; font-size: var(--h4); border-bottom: 1px solid transparent; }
.acc--plain summary::after { transform: rotate(45deg); }
.acc--plain details[open] summary::after { transform: rotate(-135deg); }
.acc--plain .acc-body { padding: 0.25rem 0 1rem; }

/* ---------- Home: weekend + FAQ sections ---------- */
.weekend { background: var(--primary); color: var(--text-light); padding-block: var(--section-space); }
.faq-section { background: var(--secondary); color: #fff; padding-block: var(--space-xxl); }
.stack-center { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); }
.section-title { font-size: var(--text-xxl); letter-spacing: 2px; margin: 0; text-align: center; }

/* ---------- Page hero / title bands ---------- */
.page-hero, .band {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--hero-image) center / cover no-repeat;
}
.page-hero { height: 350px; }
.band { height: 420px; background-position: center 80%; }
.page-hero::before, .band::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
.page-hero .container, .band .container { position: relative; }
.page-hero h1, .band h2 { margin: 0; font-size: var(--text-xxl); }
.page-hero h1 { font-size: var(--h1); }
.page-title { padding-top: var(--space-m); }
.page-title h1 { margin: 0; }

/* ---------- Prose ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--h2); margin: var(--space-l) 0 0.5rem; }
.prose h3 { font-size: var(--h3); margin: var(--space-m) 0 0.5rem; }
.prose h4 { font-size: var(--h4); margin: var(--space-m) 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--primary); font-weight: 700; }
.prose--narrow { max-width: 800px; }

/* ---------- Donate ---------- */
.donate-grid { display: flex; gap: var(--space-m); align-items: flex-start; }
.donate-content { flex: 0 0 65%; }
.donate-content h4 { text-transform: uppercase; }
.donate-card {
  flex: 1; position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--secondary); color: #fff;
  padding: var(--space-m); border-radius: var(--radius-xxl);
}
.donate-card h3 { border-bottom: 1px solid #fff; padding-bottom: 2px; margin: 0 0 var(--space-xs); font-size: var(--h3); }
.donate-card p { margin-bottom: var(--space-xs); }
.amount-field {
  display: flex; align-items: center;
  background: #fff; color: #000; border-radius: var(--radius-pill);
  padding: 0.2rem 1.25rem; margin-bottom: 1rem;
}
.amount-field > span { font-weight: 700; font-size: 1.2rem; margin-right: 0.5rem; }
.amount-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.2rem; padding: 0.8rem 0;
}
.amount-field:focus-within { box-shadow: 0 0 0 3px var(--green-bright); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-ultra-light); border: 1px solid var(--bg-light);
  border-radius: var(--radius-xxl); padding: clamp(1.25rem, 4vw, 3rem);
  max-width: 820px; margin-inline: auto;
}
.form-card > h1, .form-card > h2 { margin-top: 0; }
.form-section { margin-top: var(--space-l); }
.form-section h3 {
  font-size: var(--h3); margin: 0 0 var(--space-s);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--bg-light);
}
.form-section h3 + p { margin-top: -0.5rem; }
.field { margin-bottom: 1.25rem; }
.field > label, .field > .label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.req { color: var(--danger); font-weight: 400; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-m);
  font: inherit; background: #fff; color: #000;
}
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row { margin-top: 1.25rem; }
.hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: 0.4rem; }
.choice { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.65rem; font-weight: 400; cursor: pointer; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2em 0 0; accent-color: var(--primary); }
.choice a { color: var(--primary); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-summary table { width: 100%; border-collapse: collapse; }
.order-summary th, .order-summary td { padding: 0.65rem 0; border-bottom: 1px solid var(--bg-light); text-align: left; }
.order-summary th:last-child, .order-summary td:last-child { text-align: right; }
.order-summary tr.total td { font-weight: 700; border-bottom: 0; }
.form-actions { margin-top: var(--space-m); }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-m); }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdecec; color: #8a1c1c; }
.form-status.success { background: var(--primary-light); color: var(--primary-dark); }
.form-status.info { background: #e9f6fb; color: #0c3547; }
.event-meta { color: var(--text-muted); border-bottom: 1px solid var(--bg-light); padding-bottom: 0.75rem; margin-bottom: 1rem; }

/* Likert matrix (survey) */
.likert { display: grid; grid-template-columns: minmax(130px, 1.4fr) repeat(5, 1fr); gap: 0.4rem 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.likert .head { font-size: var(--text-xs); text-align: center; font-weight: 500; line-height: 1.2; }
.likert .row-label { font-weight: 500; }
.likert-row { display: contents; }
.likert .opt { display: flex; justify-content: center; }
.likert .opt input { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); margin: 0; }
.likert .opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-ultra-light); padding-block: var(--space-l);
  font-size: var(--text-xs); text-align: center; color: var(--text-muted);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-logo { color: #3d4242; margin-bottom: var(--space-m); line-height: 0; }
.footer-logo .logo-svg { height: 55px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .acc--boxed, .acc--lines { width: 100%; }
  .hero h1, .hero h2, .hero p { width: 80%; }
  .donate-content { flex-basis: 58%; }
}

@media (max-width: 767px) {
  .hero { min-height: 560px; }
  .hero h1, .hero h2, .hero p { width: 100%; }
  .intro .container { flex-direction: column-reverse; }
  .intro-text { flex-basis: auto; }
  .feature { flex-direction: column; }
  .feature-media { flex-basis: auto; min-height: 260px; order: 0 !important; }
  .feature-body { flex-basis: auto; padding: var(--space-m) var(--space-xs); }
  .acc--boxed summary { font-size: 1.25rem; padding: var(--space-xs) var(--space-s); }
  .acc--boxed .acc-body { padding: var(--space-s); }
  .donate-grid { flex-direction: column-reverse; }
  .donate-content { flex-basis: auto; }
  .donate-card { position: static; width: 100%; }
  .page-hero { height: 260px; }
  .band { height: 300px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row .field { margin-bottom: 1.25rem; }
  .field-row .field:last-child { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .likert { display: block; }
  .likert .head { display: none; }
  .likert-row { display: block; margin-bottom: 1.25rem; }
  .likert .row-label { margin-bottom: 0.4rem; }
  .likert .opt { justify-content: flex-start; gap: 0.6rem; margin-bottom: 0.4rem; }
  .likert .opt span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

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