/* ---------- Tokens ---------- */
:root {
  --ivory: #faf6ee;
  --ivory-alt: #f2ead9;
  --charcoal: #241f1c;
  --charcoal-soft: #3a332e;
  --barn-red: #9c2b2b;
  --barn-red-dark: #7c2020;
  --amber: #d8942a;
  --amber-light: #f0b555;
  --tan: #b98d5e;
  --brown: #6b4a30;
  --line: rgba(36, 31, 28, 0.12);

  --font-display: 'Rye', 'Georgia', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(36, 31, 28, 0.08);
  --container-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  line-height: 1.15;
}

h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--barn-red-dark); text-decoration-thickness: 1.5px; }
a:hover { color: var(--barn-red); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 760px; }
.centered { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; border-radius: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--charcoal);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.primary-nav a:hover { color: var(--barn-red-dark); }

.nav-cta {
  background: var(--barn-red);
  color: var(--ivory) !important;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--barn-red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--barn-red);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--barn-red-dark); color: var(--ivory); }
.btn-secondary {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--ivory); }
.btn-wide { width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at top right, var(--ivory-alt), var(--ivory) 60%);
}
.hero-inner { text-align: center; }
.hero-logo {
  max-width: 300px;
  margin: 0 auto 1.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  color: var(--brown);
  border: none;
  margin: 0 auto 1.25rem;
  max-width: 640px;
  padding: 0;
  font-style: normal;
}
.hero-body {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--charcoal-soft);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-photo {
  max-width: 720px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-divider {
  height: 3px;
  max-width: 220px;
  margin: 3rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--amber) 20%, var(--barn-red) 50%, var(--amber) 80%, transparent);
  opacity: 0.6;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--ivory-alt); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading.centered { text-align: center; }
.lockup-line {
  font-family: var(--font-display);
  color: var(--barn-red-dark);
  font-size: 1.3rem;
  margin-top: 2rem;
}
.disclaimer {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}
.section-links { margin-top: 2rem; font-weight: 600; }

.mission-quote {
  font-style: italic;
  color: var(--charcoal-soft);
  border-left: 3px solid var(--amber);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 2rem auto;
  text-align: left;
}
.mission-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cause-card, .event-type-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.event-type-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--ivory-alt);
  box-shadow: none;
  border: 1px solid var(--line);
}
.event-type-card p { margin: 0; font-weight: 600; }
.cause-icon { font-size: 1.8rem; display: inline-block; margin-bottom: 0.5rem; }
img.cause-icon { width: 88px; height: 88px; font-size: 0; object-fit: contain; }
.event-types-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.step-card {
  position: relative;
  background: var(--ivory-alt);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--barn-red);
  color: var(--ivory);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--tan), var(--amber));
  border: none;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--charcoal);
  cursor: pointer;
  padding: 1rem;
}
.gallery-icon { font-size: 2.5rem; }
.gallery-label { font-weight: 700; font-size: 0.95rem; text-align: center; }

.gallery-item-photo {
  background: var(--ivory-alt);
  padding: 0;
  overflow: hidden;
}
.gallery-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox[hidden] { display: none; }
.lightbox-content {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: min(90vw, 800px);
  max-height: 90vh;
  overflow-y: auto;
}
.lightbox-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.lightbox-photo {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  margin: 0 auto 1rem;
}
.lightbox-caption { font-weight: 700; font-size: 1.1rem; margin: 0; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 2px solid var(--ivory);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Form ---------- */
.inquiry-form { margin-top: 2.5rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.optional { font-weight: 400; color: var(--charcoal-soft); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ivory);
  min-height: 44px;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--amber);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.form-checkbox input { margin-top: 0.35rem; width: 20px; height: 20px; }
.form-checkbox label { font-weight: 500; margin-bottom: 0; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  background: #fbe7e7;
  border: 1px solid var(--barn-red);
  color: var(--barn-red-dark);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.form-errors ul { margin: 0; padding-left: 1.25rem; }

/* ---------- Donate / thank you ---------- */
.donate-section { text-align: center; }
.thank-you-section { text-align: center; }
.thank-you-logo { max-width: 220px; margin: 0 auto 1.5rem; }
.hero-lede-small {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown);
}
.back-home { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-alt);
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  color: var(--ivory);
}
.footer-tagline { color: var(--amber-light); font-weight: 700; margin: 0 0 0.25rem; }
.footer-line { margin: 0 0 0.75rem; }
.footer-supporting { color: rgba(250, 246, 238, 0.7); font-size: 0.95rem; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  color: var(--ivory-alt);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--amber-light); }
.footer-meta { font-size: 0.9rem; color: rgba(250, 246, 238, 0.65); }
.footer-responsible { margin-top: 1rem; font-weight: 600; color: var(--amber-light); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
  }
  .form-row-split { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 3rem 0; }
}
