/* ============================================================
   CodeLearn NG — pages.css
   Page-specific overrides and unique sections
   ============================================================ */

/* ── HOME: HERO ─────────────────────────────────────────── */
.hero {
  background: var(--deep-navy);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.022) 0px,
    rgba(255,255,255,0.022) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 96px 0;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--harvest-gold);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero h1 em {
  color: var(--harvest-gold);
  font-style: italic;
}

.hero__tagline {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero__content { padding: 72px 0; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
}

/* ── HOME: STATS BAR ────────────────────────────────────── */
.stats-section {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stats-grid .stat-card {
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--harvest-gold);
  border-right: none;
  border-top: none;
  border-bottom: none;
  padding: 28px 40px;
  background: transparent;
}

.stats-grid .stat-card + .stat-card {
  border-left: 1px solid var(--border);
  border-left: 3px solid var(--harvest-gold);
  margin-left: -1px;
}

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

  .stats-grid .stat-card + .stat-card {
    border-top: 1px solid var(--border);
    margin-left: 0;
  }
}

/* ── HOME: PROGRAMMES OVERVIEW ──────────────────────────── */
.programmes-intro {
  margin-bottom: 48px;
}

.programmes-intro .streamside-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* ── ABOUT: ORIGIN STORY ────────────────────────────────── */
.origin-story {
  max-width: 760px;
}

.origin-story p + p {
  margin-top: 20px;
}

.pull-quote {
  margin: 40px 0;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--harvest-gold);
}

.pull-quote blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--deep-navy);
  line-height: 1.4;
  font-weight: 400;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── ABOUT: PILLARS GRID ────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillars-grid .pillar-card:nth-child(1) { border-top-color: var(--deep-navy); }
.pillars-grid .pillar-card:nth-child(2) { border-top-color: var(--brand-blue); }
.pillars-grid .pillar-card:nth-child(3) { border-top-color: var(--harvest-gold); }

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

/* ── PROGRAMMES: HERO INTRO ─────────────────────────────── */
.streamside-intro-text {
  max-width: 680px;
  margin-bottom: 48px;
}

.streamside-intro-text p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 12px;
}

/* ── BOOK PAGE ──────────────────────────────────────────── */
.book-hero {
  background: var(--deep-navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.book-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.book-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.story-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: var(--card-border);
  border-radius: 10px;
}

.story-item__num {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--harvest-gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.story-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 4px;
}

.story-item__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

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

/* ── IMPACT: STATS ──────────────────────────────────────── */
.impact-stats {
  background: var(--deep-navy);
  padding: 80px 0;
}

.impact-stats .stat-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  border-left-color: var(--harvest-gold);
}

.impact-stats .stat-card__number {
  color: var(--white);
}

.impact-stats .stat-card__label {
  color: rgba(255,255,255,0.6);
}

/* ── GET INVOLVED ───────────────────────────────────────── */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

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

/* ── CONTACT PAGE ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 840px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* ── 404 ────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 120px 0;
}

.not-found h1 {
  font-size: 120px;
  color: var(--cloud-tint);
  margin-bottom: 24px;
}

.not-found h2 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 40px;
}
