/* ══════════════════════════════════════════════════════════════════
   Phase 1A · Home Hero  (scholarship composition)     S.MONK  2026-04
   ══════════════════════════════════════════════════════════════════
   Two-column hero:
     • Left  — batch pill, 3-line headline, subtitle, CTAs, trust row
     • Right — big scholarship card stacked on 2 small stat cards
   Visual target: phase1a/APPROVED_HERO_REFERENCE.jpg
   Tokens from Phase 0 design system; local accents (green) are
   declared in :root below because they're used only in this hero.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --hh-green-500: #10D87A;
  --hh-green-600: #0FB968;
}

/* ── Section shell ──────────────────────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1938 0%, #17315E 100%);
  /* Nav is fixed at 68px. Slide the hero up under it so the gradient
     meets the viewport edge, then pad the content back down. */
  margin-top: -68px;
  padding: calc(68px + clamp(40px, 5vw, 72px)) 0 clamp(56px, 6vw, 96px);
  isolation: isolate;
}
/* Disable the pseudo-image overlay that public-header.php prints when
   $hero_bg_image is set. Phase 1A owns the hero background. */
.home-hero::before { display: none !important; }

/* Faint grid behind the content — masked so edges fade out. */
.home-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
          mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grid ───────────────────────────────────────────────────────── */
/* max-width + padding match the rest of the site (.wrap / .ni use
   1200 max with ~40 px side padding) so the hero content edges align
   with the nav, marquee, features, and every section below. */
.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.5vw, 40px);
}

/* ── Left column ────────────────────────────────────────────────── */
.home-hero__content { min-width: 0; }

.home-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(20,163,181,0.12);
  border: 1px solid rgba(20,163,181,0.35);
  color: #3BC0D0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.home-hero__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10D87A;
  box-shadow: 0 0 0 0 rgba(16,216,122,0.6);
  animation: hh-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes hh-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16,216,122,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16,216,122,0);    }
  100% { box-shadow: 0 0 0 0   rgba(16,216,122,0);    }
}

.home-hero__title {
  color: #fff;
  font-family: var(--f-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.home-hero__title .home-hero__accent {
  display: block;
  color: #F88649;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  margin-top: 8px;
}

.home-hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 26px;
}

.home-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.home-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--f-body, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast, 120ms), background var(--t-fast, 120ms), border-color var(--t-fast, 120ms);
}
.home-hero__btn--primary { background: #F26B2B; color: #fff; }
.home-hero__btn--primary:hover { background: #E85D1A; transform: translateY(-1px); }
.home-hero__btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.home-hero__btn--ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05); }

.home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}
.home-hero__check {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}
.home-hero__check svg {
  color: #10D87A;
  flex-shrink: 0;
}

/* ── Right column showcase ──────────────────────────────────────── */
.home-hero__showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Big scholarship card */
.hh-big-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F26B2B 0%, #C54A12 100%);
  border-radius: 22px;
  padding: 32px clamp(24px, 3vw, 38px);
  box-shadow: 0 20px 60px rgba(242,107,43,0.25), 0 2px 8px rgba(242,107,43,0.15);
  isolation: isolate;
}
.hh-big-card::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hh-big-card::after {
  content: ""; position: absolute; left: -40px; bottom: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,0,0,0.18) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hh-big-card > * { position: relative; z-index: 1; }

.hh-big-card__row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap; white-space: nowrap;
  margin-bottom: 12px;
}
.hh-big-card__badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
}
.hh-big-card__eyebrow {
  color: rgba(255,255,255,0.95);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hh-big-card__number {
  color: #fff;
  font-family: var(--f-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: clamp(56px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  display: flex; align-items: baseline;
}
.hh-big-card__unit {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  margin-left: 8px;
  opacity: 0.9;
  letter-spacing: 0;
}
.hh-big-card__title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hh-big-card__caption {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  line-height: 1.5;
  max-width: 380px;
}

/* Two stat cards row */
.hh-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hh-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px 24px;
  height: 162px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.hh-stat-card::before {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px;
  pointer-events: none; z-index: 0;
}
.hh-stat-card > * { position: relative; z-index: 1; }

.hh-stat-card--teal {
  background: linear-gradient(135deg, rgba(20,163,181,0.18) 0%, rgba(20,163,181,0.05) 100%);
  border-color: rgba(59,192,208,0.35);
  box-shadow: 0 8px 24px rgba(20,163,181,0.1);
}
.hh-stat-card--teal::before {
  background: radial-gradient(circle, rgba(59,192,208,0.22) 0%, transparent 70%);
}
.hh-stat-card--green {
  background: linear-gradient(135deg, rgba(16,216,122,0.15) 0%, rgba(16,216,122,0.04) 100%);
  border-color: rgba(16,216,122,0.3);
  box-shadow: 0 8px 24px rgba(16,216,122,0.08);
}
.hh-stat-card--green::before {
  background: radial-gradient(circle, rgba(16,216,122,0.2) 0%, transparent 70%);
}

.hh-stat-card__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hh-stat-card--teal  .hh-stat-card__eyebrow { color: #3BC0D0; }
.hh-stat-card--green .hh-stat-card__eyebrow { color: #10D87A; }

.hh-stat-card__number {
  color: #fff;
  font-family: var(--f-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: auto;
}
.hh-stat-card__unit { font-weight: 700; }
.hh-stat-card--teal  .hh-stat-card__unit { color: #3BC0D0; }
.hh-stat-card--green .hh-stat-card__unit { color: #10D87A; }

.hh-stat-card__caption {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
/* Keep the two-column hero at common laptop widths. Only stack when
   there's genuinely not enough horizontal room for the scholarship +
   stat cards to stay readable on the right. */
@media (max-width: 860px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .home-hero__showcase {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
  .home-hero__sub { max-width: none; }
}
/* Between 860 and 1100, tighten column gap + shrink big-card padding a
   touch so both columns fit comfortably without stacking. */
@media (min-width: 861px) and (max-width: 1100px) {
  .home-hero__inner { grid-template-columns: 54% 46%; gap: 28px; }
  .home-hero__title { font-size: clamp(30px, 4.4vw, 48px); }
  .hh-big-card { padding: 26px 24px; }
  .hh-big-card__number { font-size: clamp(56px, 7vw, 72px); }
  .hh-big-card__unit   { font-size: clamp(24px, 3vw, 30px); }
  .hh-stats-row { gap: 12px; }
  .hh-stat-card { padding: 18px 20px; height: 138px; }
  .hh-stat-card__number { font-size: clamp(32px, 3.6vw, 40px); }
}

@media (max-width: 600px) {
  .home-hero { padding: clamp(32px, 8vw, 56px) 0 clamp(40px, 8vw, 64px); }
  .home-hero__title { font-size: 34px; }
  .home-hero__title .home-hero__accent { font-size: 24px; }
  .home-hero__ctas { gap: 10px; }
  .home-hero__btn { width: 100%; justify-content: center; }
  .home-hero__trust { gap: 10px 16px; }

  .hh-stats-row { grid-template-columns: 1fr; }
  .hh-stat-card { height: auto; min-height: 140px; }

  .hh-big-card { padding: 26px 24px; border-radius: 18px; }
  .hh-big-card__row { flex-wrap: wrap; white-space: normal; }
  .hh-big-card__number { font-size: 64px; }
  .hh-big-card__unit   { font-size: 28px; }
}

@media (max-width: 480px) {
  .home-hero__title { font-size: 34px; }
}

/* Reduced motion disables the pulsing dot. */
@media (prefers-reduced-motion: reduce) {
  .home-hero__dot { animation: none; }
  .home-hero__btn { transition: none; }
}
