/* ============================================
   Sylvia Brinkman Foundation - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors - ORHS Cardinal & Gray */
  --cardinal: #580018;
  --cardinal-dark: #3d0011;
  --cardinal-light: #8a1a3a;

  /* Expanded Gray Palette (Apple HIG-inspired) */
  --gray-100: #F5F5F7;       /* section backgrounds */
  --gray-200: #E8E8ED;       /* borders, dividers */
  --gray-300: #D2D2D7;       /* inactive, disabled */
  --gray-400: #AEAEB2;       /* placeholder text */
  --gray-500: #8E8E93;       /* captions, metadata */
  --gray-600: #636366;       /* secondary body text */
  --gray-700: #48484A;       /* body text alt */
  --gray-800: #333333;       /* primary body text */

  /* Legacy aliases (backward compat) */
  --gray: #D2D2D7;
  --gray-light: #F5F5F7;
  --gray-dark: #636366;

  --white: #FFFFFF;
  --black: #1d1d1f;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 60px;
  --container-max: 1200px;
  --container-narrow: 720px;

  /* Shadows & Radii */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.08);
  --radius-card: 12px;
  --radius-button: 50px;
  --radius-input: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.53;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip to Content --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cardinal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: var(--cardinal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cardinal-light);
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background-color: var(--gray-100);
}

.section--cardinal {
  background-color: var(--cardinal);
  color: var(--white);
}

.section--cardinal h2,
.section--cardinal h3,
.section--cardinal h4 {
  color: var(--white);
}

.section--cardinal a {
  color: var(--white);
  text-decoration: underline;
}

.section--cardinal a:hover {
  opacity: 0.9;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

/* Hero logo image */
.hero-logo-img {
  display: block;
  margin: 0 auto clamp(8px, 2vw, 24px);
  height: clamp(60px, 18vw, 230px);
  width: auto;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0 24px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu li a {
  display: block;
  padding: 6px 14px;
  color: var(--black);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-button);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-menu li a:hover {
  background: var(--gray-100);
  color: var(--cardinal);
}

.nav-menu li a.active {
  color: var(--cardinal);
  font-weight: 600;
}

.nav-menu li a.nav-cta {
  background: var(--cardinal);
  color: var(--white);
  font-weight: 600;
  padding: 6px 18px;
}

.nav-menu li a.nav-cta:hover {
  background: var(--cardinal-dark);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu open state */
.nav-menu.open {
  max-height: 400px;
  opacity: 1;
  padding: 12px 24px 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.nav-menu li {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu.open li {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu.open li:nth-child(1) { transition-delay: 0.05s; }
.nav-menu.open li:nth-child(2) { transition-delay: 0.08s; }
.nav-menu.open li:nth-child(3) { transition-delay: 0.11s; }
.nav-menu.open li:nth-child(4) { transition-delay: 0.14s; }
.nav-menu.open li:nth-child(5) { transition-delay: 0.17s; }
.nav-menu.open li:nth-child(6) { transition-delay: 0.20s; }

.nav-menu.open li a {
  padding: 12px 16px;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    gap: 6px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: none;
  }

  .nav-menu li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-home {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  aspect-ratio: 3.5 / 1;
  margin-top: 68px;
  text-align: center;
  overflow: hidden;
}

.hero--home {
  aspect-ratio: 2.833 / 1;
}

.hero--home .hero-content {
  justify-content: flex-end;
  padding-bottom: clamp(20px, 2vw, 32px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--cardinal);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(88, 0, 24, 0.65) 0%,
    rgba(61, 0, 17, 0.79) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vw 2vw;
  max-width: none;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.4rem, 5.5vw, 3.5rem);
  margin-bottom: 0.3em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.85rem, 2.5vw, 1.3rem);
  max-width: min(600px, 80vw);
  margin: 0 auto clamp(0.6em, 1.5vw, 1.5em);
  line-height: 1.5;
}

.hero .hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5em;
}

.hero-buttons {
  display: flex;
  gap: clamp(6px, 1.5vw, 16px);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: clamp(6px, 1.2vw, 16px) clamp(12px, 3vw, 40px);
  font-size: clamp(0.7rem, 1.4vw, 1.1rem);
}

/* Page hero (smaller) */
.hero--page {
  aspect-ratio: 5 / 1;
}

.hero--page h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

/* Utility/transactional page hero (compact) */
.hero--utility {
  aspect-ratio: 8 / 1;
}

.hero--utility h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.hero--utility p {
  font-size: 0.95rem;
  margin-top: 6px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.2;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--cardinal);
  color: var(--white);
  border-color: var(--cardinal);
}

.btn--primary:hover {
  background: var(--cardinal-dark);
  border-color: var(--cardinal-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--cardinal);
}

.btn--outline-dark {
  background: transparent;
  color: var(--cardinal);
  border-color: var(--cardinal);
}

.btn--outline-dark:hover {
  background: var(--cardinal);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--cardinal);
  border-color: var(--white);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn--small,
.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn--secondary {
  background: var(--white);
  color: var(--cardinal);
  border-color: var(--cardinal);
}

.btn--secondary:hover {
  background: var(--cardinal);
  color: var(--white);
}

.btn--tertiary {
  background: transparent;
  color: var(--gray-dark);
  border-color: var(--gray-300, #D2D2D7);
}

.btn--tertiary:hover {
  border-color: var(--gray-400, #AEAEB2);
  color: var(--black);
}

/* --- Login Brand Block --- */
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand img {
  margin: 0 auto 16px;
  display: block;
}

.login-brand h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.login-brand p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin: 0;
}

/* --- C2: Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--exit {
  transform: translateX(120%);
  opacity: 0;
}

.toast--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.toast--error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

.toast--warning {
  background: #fff3e0;
  color: #bf4500;
  border: 1px solid #ffe0b2;
}

.toast-icon {
  display: flex;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

/* Interactive cards only — add .card--interactive to cards that link somewhere */
.card--interactive {
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card--interactive:hover {
    transform: none;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cardinal);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Fund Rows (Foundation page) --- */
.fund-rows {
  max-width: 740px;
  margin: 0 auto;
}

.fund-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-300);
}

.fund-row:first-child {
  padding-top: 0;
}

.fund-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fund-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cardinal);
  flex-shrink: 0;
}

.fund-text {
  text-align: left;
}

.fund-text h3 {
  margin-bottom: 4px;
}

.fund-text p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Transparency / Giving Cards --- */
.giving-hero {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--gray-300);
}

.giving-hero-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cardinal);
  line-height: 1.1;
}

.giving-hero-label {
  color: var(--gray-600);
  font-size: 1rem;
  margin-top: 4px;
}

.giving-group {
  margin-top: 32px;
}

.giving-group:first-of-type {
  margin-top: 0;
}

.giving-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.giving-group-header h3 {
  margin: 0;
}

.giving-group-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cardinal);
}

.giving-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--cardinal);
  padding: 24px 28px;
  margin-bottom: 12px;
}

.giving-card:last-child {
  margin-bottom: 0;
}

.giving-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.giving-card-recipient {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.giving-card-amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cardinal);
  white-space: nowrap;
  flex-shrink: 0;
}

.giving-card-amount.giving-card-amount--pending {
  color: var(--gray-400);
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 1rem;
}

.giving-card-detail {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin: 4px 0 0;
}

/* --- Editorial Blockquote --- */
.quote-editorial {
  text-align: center;
  padding: 48px 24px;
  margin: 48px 0;
  border: none;
  background: none;
}

.quote-editorial::before {
  content: '\201C';
  display: block;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--cardinal);
  opacity: 0.3;
  margin-bottom: -8px;
}

.quote-editorial p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--black);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 16px;
}

.quote-editorial footer {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-style: normal;
}

.quote-editorial footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--cardinal);
  margin: 0 auto 12px;
  opacity: 0.4;
  border-radius: 1px;
}

/* --- Photo Placeholder --- */
.photo-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  min-height: 200px;
}

.photo-placeholder--portrait {
  aspect-ratio: 3 / 4;
  max-width: 300px;
}

.photo-placeholder--landscape {
  aspect-ratio: 16 / 9;
}

.photo-placeholder--square {
  aspect-ratio: 1;
  max-width: 200px;
}

.photo-placeholder--3x2 {
  aspect-ratio: 3 / 2;
}

.photo-placeholder--4x5 {
  aspect-ratio: 4 / 5;
}

.photo-placeholder--pano {
  aspect-ratio: 21 / 9;
}

/* --- Mission Text --- */
.mission-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.mission-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.mission-text p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0;
}

.mission-text .mission-logo {
  display: block;
  margin: 0 auto 20px;
  height: clamp(90px, 12vw, 140px);
  width: auto;
}

/* Tighten the mission section's top padding when it follows the home hero
   so the logo sits closer to the photo */
.hero--home + main > .section:first-child {
  padding-top: clamp(20px, 3vw, 40px);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 52px 24px;
  background: linear-gradient(135deg, var(--cardinal) 0%, var(--cardinal-dark) 100%);
}

.cta-banner h2 {
  margin-bottom: 0.5em;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 1.5em;
  opacity: 0.9;
}

/* --- Footer --- */
.site-footer {
  background: var(--cardinal-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}


.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--black);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Normalize select height to match inputs */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23636366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cardinal);
  box-shadow: 0 0 0 3px rgba(88, 0, 24, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cardinal);
  cursor: pointer;
}

.form-error {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-help {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.text-cardinal {
  color: var(--cardinal);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* --- Board Member Card --- */
.board-card {
  text-align: center;
}

.board-card .photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  aspect-ratio: auto;
}

.board-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.board-card .board-title {
  color: var(--cardinal);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Giving Level Cards (donate page) --- */
/* Scope text-align: center only to donate-page level cards,
   not to transparency cards inside .giving-group */
.giving-group .giving-card {
  text-align: left;
}

.giving-card {
  text-align: center;
  border-top: 4px solid var(--cardinal);
}

.giving-card .giving-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cardinal);
  font-weight: 700;
  margin-bottom: 4px;
}

.giving-card .giving-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* --- Donate: Other Ways to Help icon cards --- */
.help-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--cardinal);
}

/* --- Donate: Scholarship Amount Hero --- */
.scholarship-amount-hero {
  text-align: center;
  padding: 8px 0 0;
}

.scholarship-amount-hero .amount-figure {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--cardinal);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.scholarship-amount-hero .amount-label {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

.scholarship-amount-hero .amount-label strong {
  color: var(--gray-800);
}

/* --- FAQ Accordion --- */
.faq-accordion {
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
}

.faq-accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  transition: color var(--transition-fast);
}

.faq-accordion-btn:hover { color: var(--cardinal); }
.faq-accordion-btn[aria-expanded="true"] { color: var(--cardinal); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform 0.25s ease, color var(--transition-fast);
}

.faq-accordion-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--cardinal);
}

.faq-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-accordion-body.open {
  grid-template-rows: 1fr;
}

.faq-accordion-body > div {
  overflow: hidden;
}

.faq-accordion-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding-bottom: 18px;
  margin: 0;
  line-height: 1.6;
}

/* --- Responsive Padding --- */
@media (min-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: 96px;
  }
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (min-width: 768px) {
  .two-col--flipped .photo-col { order: 2; }
  .two-col--flipped .text-col { order: 1; }
}

/* --- Photo Bleed (full-width break) --- */
.photo-bleed {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.photo-bleed .photo-placeholder {
  border-radius: 0;
  border: none;
  width: 100%;
  height: 100%;
  min-height: auto;
}

/* --- Story Section Spacing --- */
.story-section {
  padding: var(--section-padding) 0;
}

.story-section + .story-section {
  padding-top: 0;
}

/* --- Scholarship Timeline --- */
.scholarship-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .scholarship-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

.timeline-track {
  border-left: 4px solid var(--cardinal);
  padding-left: 24px;
}

.timeline-track h3 {
  margin-bottom: 20px;
}

.timeline-step {
  position: relative;
  padding-bottom: 20px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--cardinal);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--cardinal);
}

.timeline-step h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-step p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- FAQ / Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--black);
}

.faq-answer {
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Status Badge --- */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-button);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge--open {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge--closed {
  background: #fbe9e7;
  color: #c62828;
}

.status-badge--upcoming {
  background: #fff3e0;
  color: #bf4500;
}

/* ============================================
   Memorial & Tribute Gifts — Ken Burns Cinematic
   ============================================ */

.memorial-kb {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #060002;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.memorial-kb-vignette {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(6,0,2,0.6) 100%);
  z-index: 4;
  pointer-events: none;
}

.kb-image-area {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.kb-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

.kb-slide.active {
  opacity: 1;
  z-index: 2;
}

.kb-slide-bg {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  transition: transform 0s;
}

.kb-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.kb-slide.active .kb-slide-bg {
  transition: transform 10s ease-in-out;
}

.kb-slide-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top,
    rgba(6, 0, 2, 0.85) 0%,
    rgba(6, 0, 2, 0.3) 60%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.kb-slide-name-overlay {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  z-index: 3;
  padding: 0 32px;
}

.kb-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 200, 180, 0.9);
  margin-bottom: 5px;
  font-weight: 500;
}

.kb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: rgba(255, 255, 255, 0.97);
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.kb-slide--no-image .kb-slide-bg {
  background:
    radial-gradient(350px 350px at center 40%, rgba(88, 0, 24, 0.2), transparent),
    linear-gradient(150deg, #0a0004, #180008, #0a0004);
}

.kb-flame {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.kb-flame svg {
  width: 140px;
  height: 140px;
  color: rgba(255, 200, 180, 0.25);
  filter: drop-shadow(0 0 30px rgba(255, 150, 80, 0.35));
  animation: flame-glow 3s ease-in-out infinite alternate;
}

@keyframes flame-glow {
  0% { filter: drop-shadow(0 0 20px rgba(255, 150, 80, 0.2)); opacity: 0.7; }
  100% { filter: drop-shadow(0 0 40px rgba(255, 150, 80, 0.5)); opacity: 1; }
}

.kb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s ease;
}

.kb-arrow:hover { color: rgba(255, 255, 255, 0.45); }
.kb-arrow svg { width: 28px; height: 28px; }
.kb-arrow--prev { left: 8px; }
.kb-arrow--next { right: 8px; }

.kb-text-area {
  background: #060002;
  padding: 20px 32px 40px;
  text-align: center;
  position: relative;
  height: 140px;
}

.kb-text-slide {
  position: absolute;
  top: 20px; left: 32px; right: 32px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.kb-text-slide.active {
  opacity: 1;
}

.kb-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 200, 180, 0.25);
  margin: 0 auto 14px;
}

.kb-message {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 8px;
}

.kb-donor {
  font-size: 0.78rem;
  color: rgba(255, 200, 180, 0.65);
  font-weight: 300;
}

.kb-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
}

.kb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.kb-dot.active {
  background: rgba(255, 200, 180, 0.7);
  box-shadow: 0 0 8px rgba(255, 150, 100, 0.4);
}

.kb-dot:hover {
  background: rgba(255, 200, 180, 0.4);
}

.kb-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.kb-progress-bar {
  height: 100%;
  background: rgba(255, 200, 180, 0.25);
  width: 0;
}

.kb-progress-bar.animating {
  animation: kb-progress-fill 8s linear forwards;
}

@keyframes kb-progress-fill {
  0% { width: 0; }
  100% { width: 100%; }
}

.memorial-kb:hover .kb-progress-bar {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .kb-slide .kb-slide-bg { transition: none !important; }
  .kb-slide { transition: opacity 0.3s ease; }
  .kb-progress-bar { animation: none !important; }
}

@media (max-width: 480px) {
  .kb-arrow { display: none; }
  .kb-text-area { padding: 16px 24px 32px; }
}
