/* ============================================================
   Hispanic Inliers — shared stylesheet
   Used by every page (index, apply, contact, previous-grants)
   ============================================================ */

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

:root {
  --navy:   #1F2937;  /* charcoal — used for headings/text, not fills */
  --navy2:  #374151;  /* lighter charcoal */
  --gold:   #C9A24B;  /* warm gold accent */
  --gold2:  #AD8938;  /* darker gold for hover states */
  --white:  #FFFFFF;
  --offwhite: #FAFAF9; /* barely-there warm gray for section separation */
  --gray:   #6B7280;
  --lightgray: #E5E7EB;
  --green:  #10B981;
  --red:    #DC2626;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: #1F2937;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lightgray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.nav-logo span.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-logo span.tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold2);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4B5563;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold2); }
.nav-links a.active { color: var(--gold2); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold2) !important; color: var(--white) !important; }

.beta-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
}

@media (max-width: 680px) {
  .nav-links li a:not(.nav-cta) { display: none; }
  .nav-links { justify-content: flex-end; }
}

/* ─── HERO (homepage, full-height) ───────────────────── */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(201,162,75,0.05) 0px, rgba(201,162,75,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-60deg, rgba(201,162,75,0.05) 0px, rgba(201,162,75,0.05) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,162,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,75,0.1);
  border: 1px solid rgba(201,162,75,0.35);
  color: var(--gold2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-badge::before { content: '★'; font-size: 10px; }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 em { font-style: normal; color: var(--gold2); }

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--lightgray);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--navy); background: var(--offwhite); }

.hero-deadline {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
}

.hero-deadline strong { color: var(--navy); }
.hero-deadline::before { content: '📅'; font-size: 14px; }

/* ─── PAGE HERO (subpages, shorter) ──────────────────── */
.page-hero {
  background: var(--offwhite);
  border-bottom: 1px solid var(--lightgray);
  padding: 140px 48px 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero h1 em { font-style: normal; color: var(--gold2); }

.page-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
}

/* ─── IMPACT STATS ────────────────────────────────── */
.stats-bar { background: var(--white); border-top: 1px solid var(--lightgray); border-bottom: 1px solid var(--lightgray); padding: 0; }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  padding: 36px 40px;
  text-align: center;
  border-right: 1px solid var(--lightgray);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--gold2);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 680px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--lightgray); }
  .stat-item:last-child { border-bottom: none; }
}

/* ─── GENERIC SECTIONS ────────────────────────────── */
.section { padding: 96px 48px; border-top: 1px solid var(--lightgray); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  line-height: 1.75;
  color: #4B5563;
  max-width: 640px;
}

@media (max-width: 680px) {
  .section { padding: 64px 24px; }
}

/* Mission two-column */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.mission-visual {
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-stat-card {
  background: var(--white);
  border: 1px solid var(--lightgray);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-stat-icon {
  width: 44px; height: 44px;
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mission-stat-card p { margin: 0; color: var(--navy); }
.mission-stat-card p strong { display: block; font-size: 22px; font-family: 'Fraunces', serif; color: var(--navy); }
.mission-stat-card p span { font-size: 13px; color: var(--gray); }

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── HOW IT WORKS ────────────────────────────────── */
.how-section { background: var(--offwhite); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }

.step-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 32px;
  border: 1px solid var(--lightgray);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-3px); }

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  font-weight: 900;
  color: var(--lightgray);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.step-body { font-size: 15px; line-height: 1.7; color: var(--gray); }

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

/* ─── ELIGIBILITY SNAPSHOT ────────────────────────── */
.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }

.elig-card { background: var(--white); border: 1px solid var(--lightgray); border-radius: 16px; padding: 40px; color: var(--navy); }
.elig-card h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }

.elig-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.elig-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: #4B5563; line-height: 1.5; }
.elig-list li::before {
  content: '✓'; background: var(--green); color: white;
  font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}

.timeline-card { background: var(--offwhite); border-radius: 16px; padding: 40px; border: 1px solid var(--lightgray); }
.timeline-card h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }

.timeline-items { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 28px; position: relative; }
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--lightgray);
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.timeline-content strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.timeline-content span { font-size: 13px; color: var(--gray); }

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

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-section { background: var(--offwhite); border-top: 1px solid var(--lightgray); padding: 96px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-section .section-label { color: var(--gold2); }
.cta-section .section-title { color: var(--navy); max-width: 700px; margin: 0 auto 16px; }
.cta-section p { color: var(--gray); font-size: 17px; max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── FORMS (Apply / Contact) ────────────────────── */
.form-card {
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
  border-radius: 16px;
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.form-field .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray); font-size: 13px; display: block; margin-top: 4px; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--lightgray);
  border-radius: 8px;
  background: var(--white);
  color: #1F2937;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold2);
}

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

.form-honeypot { position: absolute; left: -9999px; }

.form-note {
  font-size: 13px;
  color: var(--gray);
  margin-top: -8px;
  margin-bottom: 28px;
}

.form-submit-row { margin-top: 8px; }

.form-success {
  display: none;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  color: #047857;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}
.form-success.show { display: block; }

/* Contact card */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
  border-radius: 16px;
  padding: 56px 40px;
}

.contact-email {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin: 20px 0 8px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.contact-email:hover { color: var(--gold2); }

/* Recipient / placeholder cards for Previous Grants page */
.recipients-note {
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
  border-radius: 12px;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #4B5563;
  max-width: 720px;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--lightgray);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

footer .wordmark {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer p { font-size: 13px; color: var(--gray); }

footer .footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
footer .footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
footer .footer-links a:hover { color: var(--gold2); }
