/* =========================================================
   EduRise Marketing Solutions — Design System
   Palette sourced from the brand mark:
   Navy  #0A2456 / #071A3D   Gold #C8890D / #E0A93A
   Ivory #FAF8F3 background, warm and editorial — never
   generic "AI cream" (#F4F1EA) or dark-mode-with-one-accent.
   ========================================================= */

:root {
  /* ---- Color tokens ---- */
  --navy-950: #071a3d;
  --navy-800: #0a2456;
  --navy-600: #1b3a73;
  --navy-100: #e7ecf5;

  --gold-700: #9c6b08;
  --gold-600: #c8890d;
  --gold-400: #e0a93a;
  --gold-200: #f2dfaa;

  --ivory-50: #faf8f3;
  --ivory-100: #f2eee3;
  --ivory-200: #e8e2d4;

  --ink: #1c1a16;
  --ink-soft: #55524a;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-utility: "Inter", sans-serif;

  /* ---- Layout ---- */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------
   Reset & base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-utility);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold-600);
  display: inline-block;
}

.section { padding: 108px 0; position: relative; }
.section--alt { background: var(--ivory-100); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #cdd7ea; }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 0.4em; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(100deg, var(--gold-600), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(200, 137, 13, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(200, 137, 13, 0.6); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-950); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: #fff; }
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px -12px rgba(7, 26, 61, 0.18);
  transition: padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px -10px rgba(7, 26, 61, 0.22);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: height 0.4s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-utility);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold-600);
  transition: width 0.3s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 0; top: 76px; background: var(--ivory-50); flex-direction: column; justify-content: flex-start; padding: 40px 28px; transform: translateX(100%); transition: transform 0.4s var(--ease-out); gap: 22px; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 20px; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; z-index: 101; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
  .nav-cta .btn-outline, .nav-cta .btn-ghost { display: none; }
}

/* ---------------------------------------------------------
   Hero — full-bleed photo
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,61,0.72) 0%, rgba(7,26,61,0.8) 45%, rgba(7,26,61,0.9) 100%);
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero-copy .eyebrow { justify-content: center; color: var(--gold-400); }
.hero-copy .eyebrow::before { background: var(--gold-400); }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin: 0.5em 0 0.45em;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--gold-400); font-style: italic; }
.hero-copy p.lead {
  font-size: 1.15rem;
  color: #dde3f0;
  max-width: 620px;
  margin: 0 auto 2.1em;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { min-height: 70vh; }
}

/* ---------------------------------------------------------
   Page hero — compact version for interior pages
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-950);
  text-align: center;
  padding: 64px 24px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,61,0.76) 0%, rgba(7,26,61,0.84) 100%);
  z-index: 1;
}
.page-hero-copy { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.page-hero-copy .eyebrow { justify-content: center; color: var(--gold-400); }
.page-hero-copy .eyebrow::before { background: var(--gold-400); }
.page-hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0.4em 0 0.3em;
  letter-spacing: -0.01em;
}
.page-hero-copy p {
  color: #dde3f0;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .page-hero { min-height: 38vh; padding: 48px 20px; }
}

/* ---------------------------------------------------------
   Stat strip
   --------------------------------------------------------- */
.stat-strip {
  background: var(--navy-950);
  padding: 46px 0;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.14);
  padding-left: 20px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: var(--gold-400);
  display: block;
}
.stat .label {
  color: #cdd7ea;
  font-size: 13.5px;
  font-family: var(--font-utility);
}
@media (max-width: 800px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------
   Two Pathways — recurring signature motif
   --------------------------------------------------------- */
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(7,26,61,0.25); }
.pathway {
  position: relative;
  padding: 56px 48px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.pathway::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(7,26,61,0.15) 10%, rgba(7,26,61,0.92) 90%);
}
.pathway-a::before { background: linear-gradient(190deg, rgba(7,26,61,0.2) 10%, rgba(10,36,86,0.94) 88%); }
.pathway-b::before { background: linear-gradient(190deg, rgba(80,55,10,0.15) 10%, rgba(28,20,7,0.92) 88%); }
.pathway > * { position: relative; z-index: 2; }
.pathway .eyebrow { color: var(--gold-400); }
.pathway .eyebrow::before { background: var(--gold-400); }
.pathway h3 { color: #fff; font-size: 1.7rem; margin-top: 0.3em; }
.pathway p { color: #dbe2ef; }
.pathway ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.pathway li { font-size: 14.5px; color: #dbe2ef; padding-left: 20px; position: relative; }
.pathway li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--gold-400);
}
@media (max-width: 860px) {
  .pathways { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Cards / process / grid
   --------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--ivory-200);
  border-radius: var(--radius-md);
  padding: 34px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(7,26,61,0.25);
  border-color: transparent;
}
.card .num-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-200);
  -webkit-text-stroke: 1px var(--gold-600);
  color: transparent;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Photo feature block */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }
.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature-media:hover img { transform: scale(1.05); }
.feature-media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.feature-copy ul { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.feature-copy li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.feature-copy li .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-600); margin-top: 6px; }
@media (max-width: 860px) {
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-media { order: 0; }
}

/* Process timeline */
.process { position: relative; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--ivory-200);
}
.process-row:first-child { border-top: none; }
.process-step {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-600);
}
.process-copy h4 { margin-bottom: 0.3em; font-size: 1.05rem; color: var(--navy-950); font-family: var(--font-utility); font-weight: 700; }
.process-copy p { margin: 0; font-size: 14.5px; }

/* Testimonials */
.testimonial-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .testimonial-strip { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--ivory-200);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-200); line-height: 0.6; }
.testimonial p.quote { font-size: 15px; color: var(--ink); font-style: italic; margin: 0; }
.testimonial .attribution { font-size: 13px; color: var(--ink-soft); font-family: var(--font-utility); }
.testimonial .attribution strong { color: var(--navy-950); display: block; font-size: 14px; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800) 60%, var(--gold-700) 140%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7deee; max-width: 560px; margin: 0 auto 2em; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b9c3da; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h5 { color: #fff; font-family: var(--font-utility); font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { color: #9aa6c2; font-size: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Scroll reveal utility (driven by app.js)
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .cta-band { padding: 48px 24px; }
}

/* ---------------------------------------------------------
   Article body — typography for rendered rich-text blog content
   --------------------------------------------------------- */
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.article-body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.4em; }
.article-body p { color: var(--ink); margin-bottom: 1.3em; }
.article-body a { color: var(--gold-700); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body img { border-radius: var(--radius-md); margin: 1.6em 0; width: 100%; height: auto; }
.article-body blockquote {
  border-left: 3px solid var(--gold-600);
  padding-left: 20px;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--ink-soft);
}
.article-body pre {
  background: var(--navy-950);
  color: #e7ecf5;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

