/* ═══════════════════════════════════════════════════════════
   Scholarships Ja — by Jamaica's Promise
   Mostly white · Jamaican colour accents (green / gold / black)
   ═══════════════════════════════════════════════════════════ */

:root {
  --white: #FFFFFF;
  --tint: #F4F7F5;
  --ink: #1A1A1A;
  --text: #333A35;
  --muted: #5E6B63;
  --line: #E4E8E4;
  --green: #009B3A;
  --green-dark: #007A2E;
  --green-tint: #E8F4ED;
  --gold: #FED100;
  --gold-tint: #FFF6D6;
  --gold-ink: #6A5400;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Archivo', 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 10px 18px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── Flag bar ─────────────────────────────────────────────── */
.flag-bar {
  height: 6px;
  background: linear-gradient(90deg, #000 33.4%, #FED100 33.4% 66.7%, #009B3A 66.7%);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--text);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a.nav-cta {
  background: var(--green); color: var(--white); font-weight: 600;
  margin-left: 8px;
}
.site-nav a.nav-cta:hover { background: var(--green-dark); color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.site-nav a.nav-cta[aria-current="page"] { color: var(--white); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  text-decoration: none; text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  text-wrap: balance;
  margin-bottom: 14px;
}
.section-lead { max-width: 62ch; color: var(--muted); font-size: 16.5px; margin-bottom: 40px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  color: var(--ink); text-wrap: balance;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.hero-art .art-stat { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hero-art .art-stat:last-child { border-bottom: none; }
.hero-art .art-num { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-art .art-label { font-size: 13px; color: var(--muted); }

@media (max-width: 800px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Quick facts ──────────────────────────────────────────── */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 26px 18px; text-align: center;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact-num { font-size: 26px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.fact-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── About + named awards ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 16px; max-width: 65ch; }
.about-text strong { color: var(--ink); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.awards-card {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.awards-card .awards-kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.awards-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.awards-card p { font-size: 14px; color: rgba(255, 255, 255, 0.88); margin-bottom: 18px; }
.awards-card .award-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}
.awards-card .award-item strong { display: block; color: var(--white); }
.awards-card .award-item span { color: rgba(255, 255, 255, 0.75); font-size: 13px; }

/* ── Eligibility ──────────────────────────────────────────── */
.elig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.elig-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.elig-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.elig-card p { font-size: 14px; color: var(--muted); }
.elig-card.priority { border-color: var(--gold); background: var(--white); }
.badge-priority {
  display: inline-block;
  background: var(--gold-tint); color: var(--gold-ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px;
  margin-top: 12px;
}
@media (max-width: 860px) { .elig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .elig-grid { grid-template-columns: 1fr; } }

/* ── Institutions ─────────────────────────────────────────── */
.inst-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.inst-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-weight: 600; color: var(--ink); font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.inst-card::before {
  content: "";
  flex: 0 0 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
@media (max-width: 860px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inst-grid { grid-template-columns: 1fr; } }

/* ── How to apply ─────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 36px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: var(--muted); }
.step-card a { color: var(--green); font-weight: 600; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ── Apply page ───────────────────────────────────────────── */
.page-head { padding: 64px 0 8px; }
.page-head h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 12px; text-wrap: balance;
}

.cycle-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: var(--green-tint);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin: 24px 0 0;
  font-size: 15px; color: var(--ink);
}
.cycle-banner .dot {
  flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--green);
}
.cycle-banner.closed { background: var(--gold-tint); border-color: var(--gold); }
.cycle-banner.closed .dot { background: var(--gold); }

.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.download-card .doc-type {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.download-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.download-card p { font-size: 14px; color: var(--muted); flex: 1; }
@media (max-width: 700px) { .download-grid { grid-template-columns: 1fr; } }

.checklist {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.checklist ul { list-style: none; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px; color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  flex: 0 0 22px; height: 22px;
  background: var(--green-tint); color: var(--green);
  border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist li strong { color: var(--ink); }

.submit-panel {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.submit-panel .submit-label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.submit-email {
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 800; color: var(--ink);
  word-break: break-all;
  margin-bottom: 18px;
}
.submit-panel .subject-hint {
  display: inline-block;
  background: var(--tint); border: 1px solid var(--line); border-radius: 6px;
  font-size: 13.5px; color: var(--text);
  padding: 8px 14px; margin-bottom: 22px;
}
.submit-panel .subject-hint code {
  font-family: Consolas, Monaco, monospace; font-size: 13px; color: var(--ink);
}
.submit-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.submit-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

.help-box {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 26px 28px;
  font-size: 15px;
}
.help-box strong { color: var(--ink); }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 6px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand .brand-name { color: var(--white); font-size: 19px; font-weight: 800; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.6); font-size: 11.5px; margin-top: 1px; }
.footer-brand p { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); margin-top: 14px; max-width: 40ch; }
.footer-col h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 14px; }
.footer-col a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col a:focus-visible { outline-color: var(--gold); }
.footer-logo-link {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.footer-logo-link:focus-visible { outline-color: var(--gold); }
.footer-logo-link img { height: 54px; width: auto; display: block; }
.footer-charity {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  max-width: 32ch;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
}
.footer-flag { display: flex; gap: 4px; }
.footer-flag span { width: 26px; height: 5px; border-radius: 2px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
