/* ================================================================
   Rho Xi Uplift and Building Foundation — Redesign Prototype
   Color Palette: Deep Purple (#4A2070) + Gold (#C8A025)
   ================================================================ */

/* ── Google Fonts loaded in HTML ─────────────────────────────── */

/* ── Custom Properties ────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --purple:          #4A2070;
  --purple-light:    #6B3FA0;
  --purple-dark:     #2D1244;
  --purple-surface:  #F5EFFD;
  --purple-border:   #DDD0F0;

  --gold:            #C8A025;
  --gold-light:      #E5C668;
  --gold-dark:       #9B7A1A;
  --gold-surface:    #FDF8EC;

  /* Neutrals */
  --white:           #FFFFFF;
  --off-white:       #FAFAF9;
  --gray-50:         #F8F7FC;
  --gray-100:        #EEE8F8;
  --gray-200:        #DDD0F0;
  --gray-500:        #9B8BB8;
  --gray-700:        #4A3D6B;
  --text-dark:       #1E0A3C;
  --text-muted:      #6B5E8A;

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

  /* Spacing Scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(74, 32, 112, 0.08);
  --shadow-sm:  0 2px 8px rgba(74, 32, 112, 0.10);
  --shadow-md:  0 4px 20px rgba(74, 32, 112, 0.14);
  --shadow-lg:  0 8px 40px rgba(74, 32, 112, 0.18);

  /* Transitions */
  --ease: 0.22s ease;

  /* Layout */
  --nav-height: 76px;
  --container: 1160px;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.section { padding-block: var(--sp-20); }
.section--alt { background: var(--gray-50); }
.section--purple {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
  color: var(--white);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { max-width: 68ch; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.section-label::before { content: '— '; }
.section-label::after  { content: ' —'; }

.section-title {
  margin-bottom: var(--sp-4);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
}
.section-header {
  margin-bottom: var(--sp-12);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--purple-dark);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 160, 37, 0.4);
}
.btn--purple {
  background: var(--purple);
  color: var(--white);
}
.btn--purple:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-purple {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
}
.btn--outline-purple:hover {
  background: var(--purple-surface);
  transform: translateY(-2px);
}
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ── Navigation ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--purple-border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  line-height: 1;
}
/* Header logo — transparent PNG shows cleanly on white nav bar */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Tagline beneath wordmark — small caps, muted relative to the purple/gold logo */
.logo-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Footer logo — wrap in white pill so the purple/gold logo reads on dark bg */
.footer-brand .logo-img {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  height: 60px;
}

/* Unused fallback; kept for safety */
.logo-mark { display: none; }

/* Main Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--purple);
  background: var(--purple-surface);
}
.nav-link svg { width: 14px; height: 14px; transition: transform var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--ease), transform var(--ease);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-link {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.dropdown-link:hover {
  color: var(--purple);
  background: var(--purple-surface);
}

/* Nav Donate Button */
.nav-donate {
  margin-left: var(--sp-4);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple);
  border-radius: var(--radius-full);
  transition: all var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Nav Panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: var(--white);
  z-index: 999;
  padding: var(--sp-6);
  overflow-y: auto;
  border-top: 3px solid var(--gold);
  transform: translateX(100%);
  transition: transform var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: block;
  padding: var(--sp-3) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-group { padding: var(--sp-3) 0 0 var(--sp-4); }
.mobile-nav-sub {
  display: block;
  padding: var(--sp-2) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.mobile-nav-group-label {
  display: block;
  padding: var(--sp-3) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray-100);
}

/* ── Page Wrapper (accounts for fixed header) ─────────────────── */
.page-body { padding-top: var(--nav-height); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(140deg, var(--purple-dark) 0%, var(--purple) 55%, #6B3FA0 100%);
  color: var(--white);
  padding: var(--sp-24) 0;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 80% 30%, rgba(200,160,37,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 800px at -10% 80%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(200,160,37,0.18);
  border: 1px solid rgba(200,160,37,0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero h1 span { color: var(--gold-light); }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-8);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, var(--purple-dark) 0%, var(--purple) 70%);
  color: var(--white);
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
}
.page-hero-badge {
  display: inline-block;
  background: rgba(200,160,37,0.2);
  border: 1px solid rgba(200,160,37,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--sp-4);
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── Gold Bar Divider ─────────────────────────────────────────── */
.gold-bar {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Mission Section ──────────────────────────────────────────── */
.mission-visual {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mission-visual::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 15rem;
  color: rgba(255,255,255,0.07);
  line-height: 1;
}
.mission-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  position: relative;
}
.mission-attr {
  margin-top: var(--sp-5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.mission-facts {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.mission-fact-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.mission-fact-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Program Cards ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
  transform: translateY(-4px);
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: 1.6rem;
}
.card h3 { margin-bottom: var(--sp-3); color: var(--purple-dark); }
.card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; margin-bottom: var(--sp-5); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap var(--ease);
}
.card-link:hover { gap: var(--sp-3); }
.card-link svg { width: 16px; height: 16px; }

/* Featured card variant */
.card--featured {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  border-color: transparent;
  color: var(--white);
}
.card--featured:hover { border-color: var(--gold); }
.card--featured .card-icon { background: rgba(200,160,37,0.25); }
.card--featured h3 { color: var(--gold-light); }
.card--featured p { color: rgba(255,255,255,0.8); }
.card--featured .card-link { color: var(--gold-light); }

/* ── Stats Strip ──────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  padding: var(--sp-12) 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  background: var(--gold-surface);
  border-top: 4px solid var(--gold);
  padding: var(--sp-16) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--purple-dark); margin-bottom: var(--sp-4); }
.cta-banner p { color: var(--text-muted); max-width: 55ch; margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-banner .actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── Info Box ─────────────────────────────────────────────────── */
.info-box {
  background: var(--purple-surface);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
}
.info-box p { color: var(--text-dark); max-width: none; }

/* ── Event Detail Cards ───────────────────────────────────────── */
.event-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
}
.event-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.event-detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--sp-1);
}
.event-detail-value { font-weight: 600; color: var(--text-dark); }

/* ── Schedule Table ───────────────────────────────────────────── */
.schedule {
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule-row {
  display: flex;
  align-items: center;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
  gap: var(--sp-4);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:first-child {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  font-weight: 700;
}
.schedule-time {
  font-weight: 600;
  color: var(--purple);
  min-width: 90px;
  font-size: 0.9rem;
}
.schedule-row:first-child .schedule-time { color: var(--gold-light); }
.schedule-event { color: var(--text-dark); }

/* ── Gallery Grid ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--purple-border);
  transition: all var(--ease);
  position: relative;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  /* Replace with: background-image: url(path/to/image); background-size: cover; */
}
.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery-year-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.gallery-info {
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
}
.gallery-info h4 { font-size: 0.9rem; color: var(--text-dark); margin-bottom: var(--sp-1); }
.gallery-info p { font-size: 0.78rem; color: var(--text-muted); max-width: none; }

/* ── Contact Info ─────────────────────────────────────────────── */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.contact-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--sp-1);
}
.contact-item-value { font-weight: 600; color: var(--text-dark); }
.contact-item-value a { color: var(--purple); }
.contact-item-value a:hover { color: var(--purple-light); text-decoration: underline; }

/* ── Donate Options ───────────────────────────────────────────── */
.donate-option {
  background: var(--white);
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--ease);
  cursor: pointer;
}
.donate-option:hover,
.donate-option.selected {
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
}
.donate-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: var(--sp-2);
}
.donate-desc { font-size: 0.875rem; color: var(--text-muted); }

/* ── Recipient Gallery ────────────────────────────────────────── */
.recipient-card {
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease);
}
.recipient-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.recipient-photo {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}
.recipient-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.recipient-info { padding: var(--sp-5); }
.recipient-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--purple-dark); }
.recipient-year {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}
.recipient-info p { font-size: 0.85rem; color: var(--text-muted); max-width: none; margin-top: var(--sp-2); }

/* ── Sponsorship Levels ───────────────────────────────────────── */
.sponsor-tier {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  transition: all var(--ease);
}
.sponsor-tier > .btn {
  margin-top: auto;
}
.sponsor-tier:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
}
.sponsor-tier--title {
  border-color: var(--gold);
  background: linear-gradient(to bottom, var(--gold-surface), var(--white));
}
.sponsor-tier-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.sponsor-tier-badge--title { background: var(--gold); color: var(--purple-dark); }
.sponsor-tier-badge--gold   { background: var(--purple); color: var(--white); }
.sponsor-tier-badge--silver { background: var(--gray-200); color: var(--text-dark); }
.sponsor-tier-badge--bronze { background: #CD7F32; color: var(--white); }
.sponsor-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: var(--sp-4);
}
.sponsor-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }
.sponsor-perks { list-style: none; margin-bottom: var(--sp-6); }
.sponsor-perks li {
  padding: var(--sp-2) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.sponsor-perks li::before { content: '✓'; color: var(--purple); font-weight: 700; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #1A0A2E 100%);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-20) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-brand .logo-mark { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.footer-brand .logo-text-main { color: var(--white); }
.footer-brand .logo-text-sub { color: var(--gold-light); }
.footer-brand p {
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 32ch;
}
.footer-501c3 {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(200,160,37,0.15);
  border: 1px solid rgba(200,160,37,0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-top: var(--sp-4);
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(200,160,37,0.3);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer-link:hover { color: var(--gold-light); }
.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.footer-contact-icon {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-contact-text a { color: var(--gold-light); }
.footer-contact-text a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  max-width: none;
}
.footer-bottom-links { display: flex; gap: var(--sp-5); }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ── Scholarship Steps ────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--sp-4); }
.step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step h4 { color: var(--purple-dark); margin-bottom: var(--sp-1); }
.step p { font-size: 0.9rem; color: var(--text-muted); max-width: none; }

/* ── Wufoo Form Embed Note ────────────────────────────────────── */
.form-embed-wrapper {
  background: var(--white);
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-embed-header {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  padding: var(--sp-5) var(--sp-6);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.form-embed-body {
  padding: var(--sp-8);
  text-align: center;
}
.form-embed-body p { color: var(--text-muted); margin-inline: auto; margin-bottom: var(--sp-6); }

/* ── Back to Top ──────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--ease);
  z-index: 100;
  font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--purple-light); transform: translateY(-3px); }

/* ── Skip to Content (Accessibility) ─────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--purple);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Utility: Gold Accent Line ────────────────────────────────── */
.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  margin-top: var(--sp-4);
}
.accent-line--center { margin-inline: auto; }

/* ── Registration Form ───────────────────────────────────────── */
.reg-form-body { padding: var(--sp-8); text-align: left; }
.reg-form-section { margin-bottom: var(--sp-8); }
.reg-form-section:last-of-type { margin-bottom: 0; }
.reg-form-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--purple-dark);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--purple-border);
}
.required { color: var(--purple); }

.reg-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-field input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
.form-field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74,32,112,0.14);
}

/* Sponsorship tier radio cards */
.radio-card-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.radio-card { position: relative; }
.radio-card input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.radio-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-4);
  height: 100%;
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-dark);
  transition: all var(--ease);
}
.radio-card input[type="radio"]:checked + .radio-card-label {
  border-color: var(--purple);
  background: var(--purple-surface);
  box-shadow: 0 0 0 2px var(--purple);
}
.radio-card input[type="radio"]:focus-visible + .radio-card-label {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Person / Team toggle */
.reg-type-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.reg-type-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-type-toggle-label {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-dark);
  cursor: pointer;
  text-align: center;
  transition: all var(--ease);
}
.reg-type-toggle input[type="radio"]:checked + .reg-type-toggle-label {
  background: var(--purple);
  color: var(--white);
}
.reg-type-toggle input[type="radio"]:focus-visible + .reg-type-toggle-label {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.member-section {
  background: var(--gray-50);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.member-section:last-child { margin-bottom: 0; }
.member-section-title { font-weight: 600; color: var(--purple); margin-bottom: var(--sp-4); font-size: 0.95rem; }

.form-submit-row { margin-top: var(--sp-8); text-align: center; }

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn[disabled] { opacity: 0.75; cursor: not-allowed; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-error-msg {
  display: none;
  background: #FDECEC;
  border: 1px solid #E8A0A0;
  color: #8B2C2C;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-6);
  font-size: 0.9rem;
}

.form-success { text-align: center; padding: var(--sp-10) var(--sp-6); }
.form-success-icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.form-success-note {
  background: var(--gold-surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-6);
  text-align: left;
  max-width: 52ch;
  margin-inline: auto;
}
.form-success-note strong { color: var(--purple-dark); }
.form-success-note ol { margin: var(--sp-3) 0 0 1.25rem; color: var(--text-dark); }
.form-success-note li { margin-bottom: var(--sp-2); }

/* Textarea + select — extend .form-field input styling */
.form-field textarea,
.form-field select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
  resize: vertical;
}
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74,32,112,0.14);
}
.form-help { font-size: 0.8rem; color: var(--text-muted); }

/* Word counter beneath the essay textarea */
.word-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  font-weight: 600;
}
.word-counter.is-invalid { color: #B3261E; }

/* Checkbox field (required-documents acknowledgment) */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-field label { font-size: 0.9rem; color: var(--text-dark); cursor: pointer; }

/* Required Documents callout — gold accent so it reads as an action item */
.required-docs-box {
  background: var(--gold-surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}
.required-docs-box h3 {
  color: var(--purple-dark);
  margin-bottom: var(--sp-3);
  font-size: 1.05rem;
}
.required-docs-box ol {
  margin: 0 0 var(--sp-5) 1.25rem;
  color: var(--text-dark);
  font-size: 0.92rem;
}
.required-docs-box li { margin-bottom: var(--sp-2); }
.required-docs-box .checkbox-field { border-top: 1px solid rgba(200,160,37,0.4); padding-top: var(--sp-5); }

/* Eligibility / scholarship-details spec cards */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
.spec-card {
  background: var(--white);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.spec-card h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--purple-dark);
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}
.spec-card p { color: var(--text-muted); font-size: 0.9rem; max-width: none; }
.spec-card p + p { margin-top: var(--sp-3); }

/* Conditional field reveal (Legacy name field) */
.conditional-field { margin-top: var(--sp-5); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .site-nav, .nav-donate { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  .logo-img { height: 38px; }
  .logo-tagline { font-size: 0.52rem; letter-spacing: 0.05em; margin-top: 1px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: var(--sp-16) 0 var(--sp-20); min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-6); }

  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding-block: var(--sp-12); }

  .reg-form-grid { grid-template-columns: 1fr; }
  .radio-card-group { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .reg-form-body { padding: var(--sp-6); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--sp-4); }
  .mission-facts { flex-direction: column; gap: var(--sp-4); }

  .radio-card-group { grid-template-columns: 1fr; }
  .reg-type-toggle { flex-direction: column; width: 100%; }
  .reg-type-toggle-label { width: 100%; }
}
