/* ==========================================================================
   FOUNDA INC (founda.org) — Master Design System & Responsive Stylesheet
   Entity: FOUNDA INC (EIN: 33-1842975) | 501(c)(3) Tax-Exempt Public Charity
   Headquarters: 10625 N Tatum, Suite D115-139, Phoenix, AZ 85028
   ========================================================================== */

/* CSS Reset & Design Tokens */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-midnight: #010307;
  --bg-ocean-surface: #1c4a7e;
  --bg-ocean-twilight: #0c2544;
  --bg-ocean-abyss: #010307;
  --surface-slate: #162a45;
  --surface-slate-elevated: #1e3658;
  --surface-card: rgba(18, 34, 58, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(6, 182, 212, 0.35);
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  --accent-blue: #2563EB;
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-brand: 'Syncopate', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 72px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(
    180deg,
    #1c4a7e 0%,
    #163f6d 10%,
    #103259 22%,
    #0c2544 36%,
    #081b33 52%,
    #051327 68%,
    #030c1a 82%,
    #020610 93%,
    #010307 100%
  );
  background-repeat: no-repeat;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: hidden;
}

/* Background Backdrop Layers */
.ocean-depth-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #1c4a7e 0%,
    #163f6d 10%,
    #103259 22%,
    #0c2544 36%,
    #081b33 52%,
    #051327 68%,
    #030c1a 82%,
    #020610 93%,
    #010307 100%
  );
}

.ocean-surface-rays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 850px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 55% at 50% -12%, rgba(56, 189, 248, 0.28), transparent 75%),
    radial-gradient(ellipse 65% 42% at 16% 2%, rgba(6, 182, 212, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 84% 6%, rgba(37, 99, 235, 0.26), transparent 65%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.12) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.12) 100%);
}

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

/* ==========================================================================
   TOP VERIFICATION BAR (Legal entity, EIN, Address, Domain)
   ========================================================================== */
.top-verification-banner {
  position: relative;
  z-index: 55;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 24, 46, 0.96) 0%, rgba(13, 36, 68, 0.94) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0 14px 0;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.verification-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verification-lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.verification-badge-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.verification-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.18);
}

.verification-seal-badge svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.verification-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin: 0;
}

.verification-ein-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

.verification-ein-tag strong {
  color: #38bdf8;
  font-weight: 600;
}

.verification-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.3fr 0.95fr;
  gap: 12px;
  align-items: stretch;
}

.verification-cell {
  background: rgba(14, 32, 56, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.verification-cell:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(18, 40, 70, 0.85);
}

.cell-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
}

.cell-statement {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.48;
  margin: 0;
}

.cell-statement strong {
  color: #ffffff;
  font-weight: 600;
}

.cell-domain-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cell-domain-link:hover {
  color: #7dd3fc;
}

.cell-address {
  font-style: normal;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.cell-address strong {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 960px) {
  .verification-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .verification-lead-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   STICKY HEADER & DISTINCT MULTI-PAGE NAVIGATION
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  background: rgba(22, 52, 88, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

#site-header.scrolled {
  background: rgba(6, 15, 28, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  color: var(--accent-cyan);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  border-radius: 7px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover .brand-mark {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.55));
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-cyan);
  margin-left: -5px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

/* Tab button style for distinct navigation */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

/* 501(c)(3) Status Chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.status-chip:hover {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseAnimation 2.2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hamburger & Mobile Drawer */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--surface-slate);
  border-color: var(--accent-cyan);
}

.hamburger-icon {
  width: 22px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 49;
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-drawer .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer .nav-link.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   PAGE HEADERS, HERO, TYPOGRAPHY & SECTIONS
   ========================================================================== */
main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-header-section {
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-heading {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 720px;
}

/* Hero Section (Home) */
#hero {
  padding-top: 84px;
  padding-bottom: 96px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
}

.telemetry-indicator {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.telemetry-tag {
  color: var(--text-primary);
  font-weight: 500;
}

.telemetry-tag.active {
  color: var(--accent-emerald);
}

.telemetry-divider {
  color: var(--text-muted);
  user-select: none;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span.accent-text {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Action Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill-primary {
  background-color: var(--surface-slate);
  color: var(--text-primary);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.1);
}

.btn-pill-primary:hover {
  background-color: var(--surface-slate-elevated);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}

.btn-pill-secondary {
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-pill-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   PROGRAM CARDS & GRIDS
   ========================================================================== */
.programs-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.program-preview-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.program-preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.badge-science {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-reading {
  background: rgba(37, 99, 235, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-grants {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.program-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.program-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.card-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link-cta:hover {
  color: #7dd3fc;
  gap: 10px;
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC: LEGAL DECLARATION & MISSION STATEMENTS
   ========================================================================== */
.about-mission-card {
  background: rgba(18, 36, 62, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 40px 36px;
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.about-mission-p {
  color: #e2e8f0;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-mission-p:last-of-type {
  margin-bottom: 0;
}

/* Explicit Non-Profit Legal Declaration Block required by prompt */
.legal-declaration-box {
  background: linear-gradient(135deg, rgba(8, 28, 56, 0.9) 0%, rgba(13, 36, 70, 0.85) 100%);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.15);
  margin-top: 36px;
  margin-bottom: 44px;
}

.legal-declaration-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.legal-declaration-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-declaration-quote {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  padding-left: 20px;
  border-left: 4px solid var(--accent-emerald);
  margin-bottom: 20px;
}

.legal-grid-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Governance / Board Transparency */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.governance-card {
  background: rgba(14, 28, 48, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.governance-card-title {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.governance-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT PAGE: ADDRESS CARD & SECURE FORM
   ========================================================================== */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

/* Physical Street Address Card */
.prominent-address-card {
  background: linear-gradient(135deg, rgba(16, 36, 64, 0.85) 0%, rgba(8, 20, 38, 0.95) 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(6, 182, 212, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.address-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: fit-content;
}

.address-block {
  font-style: normal;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  padding-left: 16px;
  border-left: 3px solid var(--accent-cyan);
}

.address-block .entity-name {
  color: #38bdf8;
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.channel-icon {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-value {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
}

.channel-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-link:hover {
  color: #7dd3fc;
}

/* Secure Contact Form */
.secure-form-container {
  background: rgba(18, 34, 58, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.form-label .required-indicator {
  color: #f87171;
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #38bdf8;
  background: rgba(14, 30, 52, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

/* Anti-spam honeypot (visually hidden from human users) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

.form-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback-alert {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.form-feedback-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   PROGRAMS PAGE: DETAILED PROGRAM BREAKDOWNS
   ========================================================================== */
.program-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.program-feature-row:last-of-type {
  border-bottom: none;
}

.program-feature-row.reverse {
  direction: rtl;
}

.program-feature-row.reverse > * {
  direction: ltr;
}

.program-feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-feature-visual {
  background: rgba(14, 28, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.program-feature-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   GLOBAL FOOTER (Standard across all 3+ pages)
   ========================================================================== */
#site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(1, 3, 7, 0.94);
  padding-top: 60px;
  padding-bottom: 44px;
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand-column {
  max-width: 540px;
  padding: 24px 28px;
  background: rgba(13, 27, 50, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-501-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-top: 12px;
  margin-bottom: 14px;
}

.footer-501-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.footer-trust-statement {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-trust-statement strong {
  color: #ffffff;
}

.footer-address {
  font-style: normal;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-address strong {
  color: #38bdf8;
}

.footer-navigation-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

/* Compliance statement row required by prompt */
.footer-compliance-row {
  padding: 16px 20px;
  background: rgba(8, 20, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
}

.footer-compliance-row strong {
  color: #e2e8f0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.back-to-top {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .programs-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .program-feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .program-feature-row.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .programs-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-pill {
    width: 100%;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
