/* === CORNERSTONE SCHOLARSHIP FUND — styles.css === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1a3055;
  --navy-dk:   #0f1e35;
  --navy-mid:  #234070;
  --gold:      #b8960c;
  --gold-lt:   #d4aa30;
  --gold-pale: #faf4e1;
  --white:     #ffffff;
  --off-white: #f8f6f1;
  --gray:      #64748b;
  --gray-lt:   #94a3b8;
  --border:    #e2d9c8;
  --text:      #2d2d2d;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── UTILITIES ── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--white); }
.btn-white-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dk); border-color: var(--navy-dk); color: var(--white); }
.btn-navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-donate {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
}
.nav-donate:hover { background: var(--navy-dk) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
}

/* ── HOME HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8960c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184,150,12,0.15);
  border: 1px solid rgba(184,150,12,0.3);
  color: var(--gold-lt);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold-lt); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.hero-trust-item strong { color: rgba(255,255,255,0.8); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── HOW IT WORKS (HOME) ── */
.steps-section { padding: 5rem 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}
.step-number {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

/* ── ABOUT SECTION (HOME) ── */
.about-home { background: var(--off-white); padding: 5rem 0; }
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.about-logo-box {
  background: var(--navy);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.about-logo-box img { max-width: 240px; margin: 0 auto; }
.trust-badges { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
}
.trust-badge-icon {
  width: 20px;
  height: 20px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 768px) { .about-home-grid { grid-template-columns: 1fr; } }

/* ── FAMILIES SECTION ── */
.families-section { background: var(--navy); padding: 5rem 0; }
.families-section .section-label { color: var(--gold-lt); }
.families-section .section-title { color: var(--white); }
.families-section .section-sub { color: rgba(255,255,255,0.7); }
.families-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.families-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1.75rem;
}
.families-card h3 { color: var(--gold-lt); font-size: 1rem; margin-bottom: 0.5rem; }
.families-card p { color: rgba(255,255,255,0.65); font-size: 0.875rem; line-height: 1.65; }
@media (max-width: 768px) { .families-grid { grid-template-columns: 1fr; } }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ── CONTENT SECTIONS ── */
.content-section { padding: 5rem 0; }
.content-section.alt { background: var(--off-white); }

/* ── ABOUT PAGE ── */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 2rem;
}
.mission-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.mission-card p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.board-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  text-align: center;
}
.board-avatar {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}
.board-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.board-title { font-size: 0.75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}
.value-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.value-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }

.compliance-box {
  background: var(--navy);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 3rem;
}
.compliance-box h3 { color: var(--gold-lt); margin-bottom: 1rem; }
.compliance-box p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0; }
.compliance-box strong { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}

/* ── HOW IT WORKS PAGE ── */
.credit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.credit-box {
  background: var(--navy);
  border-radius: 4px;
  padding: 2rem;
}
.credit-box .credit-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.credit-pct {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--gold-lt);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.credit-box h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.credit-box p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

.process-steps { margin-top: 2.5rem; }
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.process-step-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-step-body p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

.faq { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  user-select: none;
  gap: 1rem;
}
.faq-q::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--gold); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

@media (max-width: 640px) { .credit-grid { grid-template-columns: 1fr; } }

/* ── APPLY PAGE ── */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.eligibility-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}
.elig-badge {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.875rem;
}
.eligibility-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.eligibility-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }

.award-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.award-card {
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}
.award-card.featured { border-color: var(--gold); background: var(--gold-pale); }
.award-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.award-per { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.75rem; }
.award-label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

.timeline-box {
  background: var(--navy);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 2rem;
}
.timeline-box h3 { color: var(--gold-lt); margin-bottom: 1.5rem; }
.timeline-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.timeline-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 1rem 1.25rem;
}
.t-date { font-size: 0.8rem; color: var(--gold-lt); font-weight: 700; margin-bottom: 0.25rem; }
.t-label { font-size: 0.875rem; color: rgba(255,255,255,0.78); }

.schools-note {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}
.schools-note strong { color: var(--navy); }

@media (max-width: 640px) {
  .eligibility-grid { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr; }
  .timeline-items { grid-template-columns: 1fr; }
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}
.contact-item-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-lt);
  margin-bottom: 0.25rem;
}
.contact-item-body a,
.contact-item-body p { font-size: 0.95rem; text-decoration: none; color: var(--text); line-height: 1.55; }
.contact-item-body a:hover { color: var(--navy); text-decoration: underline; }

.contact-sidebar {
  background: var(--navy);
  border-radius: 4px;
  padding: 2.5rem;
}
.contact-sidebar h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.15rem; }
.contact-sidebar p { color: rgba(255,255,255,0.68); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-sidebar .sidebar-ein {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.6;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ── FOOTER ── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.footer-brand-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
