/* =========================================================================
   Saving Grace / Literacy Learner Path — brand stylesheet for the WordPress
   marketing site. Framework-agnostic (no Tailwind): pure CSS custom properties
   + component classes that mirror the React app's landing page exactly, so the
   WordPress content engine looks like one seamless site with the product app.

   Source of truth: artifacts/reading-program/src/index.css (design tokens),
   pages/home.tsx (header/hero), components/SiteFooter.tsx (footer).
   Enqueue this in the theme's functions.php.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Brand palette (SGEG 2026 design system) ---- */
  --navy: #26358C;        /* primary */
  --navy-deep: #1B2766;   /* primary border / deep */
  --cyan: #26BBC1;        /* secondary / primary CTA */
  --cyan-deep: #1B9AA0;   /* CTA hover */
  --yellow: #F9BE00;      /* accent */
  --red: #E31A51;         /* eyebrow / emphasis */
  --ink: #0F1230;         /* body text */
  --ink-mid: #4A4F75;     /* muted text */
  --grey-warm: #F7F8FB;   /* muted background */
  --border-soft: #E8EAF3; /* hairline borders */
  --white: #ffffff;

  /* ---- Type ---- */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Radius ---- */
  --radius: 1.25rem;      /* cards */
  --radius-pill: 9999px;  /* buttons, badges */

  /* ---- Navy-tinted elevation (matches the app's shadow scale) ---- */
  --shadow-sm: 0 2px 12px rgba(27, 39, 102, 0.05);
  --shadow-md: 0 14px 38px rgba(27, 39, 102, 0.09);
  --shadow-lg: 0 24px 64px rgba(27, 39, 102, 0.14);
  --shadow-xl: 0 32px 80px rgba(27, 39, 102, 0.18);
  --shadow-2xl: 0 40px 96px rgba(27, 39, 102, 0.22);

  /* Content width — matches max-w-6xl (72rem) header/footer, 56rem hero. */
  --wrap: 72rem;
  --wrap-narrow: 56rem;
}

/* ---- Base ---- */
body.sg {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.sg h1, .sg h2, .sg h3, .sg h4, .sg h5, .sg h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 .5em;
}
.sg a { color: var(--navy); }
.sg .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sg .wrap--narrow { max-width: var(--wrap-narrow); }
.sg .muted { color: var(--ink-mid); }
.sg .bg-warm { background: var(--grey-warm); }

/* ---- Buttons (mirror hero CTAs) ---- */
.sg .btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sg .btn:hover { transform: translateY(-2px); }
.sg .btn--primary { background: var(--cyan); color: var(--white); box-shadow: var(--shadow-lg); }
.sg .btn--primary:hover { background: var(--cyan-deep); box-shadow: var(--shadow-xl); }
.sg .btn--outline-cyan { background: var(--white); color: var(--navy); border-color: var(--cyan); box-shadow: var(--shadow-sm); }
.sg .btn--outline-cyan:hover { background: var(--grey-warm); }
.sg .btn--outline-navy { background: var(--white); color: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-sm); }
.sg .btn--outline-navy:hover { background: var(--grey-warm); }

/* ---- Eyebrow badge (hero pill) ---- */
.sg .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem; border-radius: var(--radius-pill);
  background: var(--cyan); color: var(--white);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  box-shadow: var(--shadow-sm);
}

/* ---- Header (sticky white bar) ---- */
.sg-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}
.sg-header__inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sg-header__brand { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; }
.sg-header__logo { height: 4rem; width: auto; object-fit: contain; }
.sg-header__brandtext { border-left: 2px solid var(--cyan); padding-left: 1.25rem; }
.sg-header__title { display: block; font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 2.25rem; line-height: 1; color: var(--navy); }
.sg-header__subtitle { display: block; margin-top: .25rem; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--cyan); }
.sg-header__nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 600; }
.sg-header__nav a { color: var(--navy); text-decoration: none; }
.sg-header__nav a:hover { color: var(--cyan-deep); }
@media (max-width: 720px) {
  .sg-header__title { font-size: 1.5rem; }
  .sg-header__logo { height: 3.25rem; }
  .sg-header__brandtext { border-left: 0; padding-left: 0; }
}

/* ---- Hero ---- */
.sg-hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--white), var(--grey-warm)); padding: 3rem 0 4rem; text-align: center; }
.sg-hero__inner { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 1.25rem; }
.sg-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.05; color: var(--navy); margin: 1rem 0 .25rem; }
.sg-hero__kicker { font-size: clamp(.8rem, 2vw, 1rem); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--red); }
.sg-hero__lead { font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 800; font-family: var(--font-heading); color: var(--cyan); margin: 1rem 0; }
.sg-hero__body { font-size: 1.0625rem; color: var(--ink-mid); font-weight: 500; max-width: 42rem; margin: 0 auto 1.5rem; line-height: 1.6; }
.sg-hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.sg-hero__note { font-size: .875rem; font-weight: 500; color: var(--ink-mid); margin-top: 1rem; }
.sg-hero__note b { color: var(--cyan); }

/* Trust row */
.sg-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .875rem; font-weight: 700; color: var(--ink-mid); }
.sg-trust span { display: inline-flex; align-items: center; gap: .375rem; }

/* Section headings */
.sg-section { padding: 4rem 0; }
.sg-section--warm { background: var(--grey-warm); border-top: 1px solid var(--border-soft); }
.sg-section h2 { font-size: clamp(1.75rem, 4vw, 2rem); text-align: center; }

/* ---- Footer (navy) ---- */
.sg-footer { background: var(--navy); color: var(--white); }
.sg-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.sg-footer a:hover { color: var(--white); text-decoration: underline; }
.sg-footer__grid { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.sg-footer__coltitle { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--cyan); margin-bottom: .75rem; }
.sg-footer__logo { background: var(--white); padding: .625rem 1rem; border-radius: .75rem; display: inline-block; }
.sg-footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.sg-footer__bar .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .75rem; color: rgba(255,255,255,.6); }
@media (max-width: 720px) { .sg-footer__grid { grid-template-columns: 1fr; text-align: center; } }
