/* ============================================
   SPARK LITERACY INNOVATIONS — SHARED STYLES
   ============================================ */

/* Load fonts from Google (works when online; falls back gracefully offline) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --blue:       #3b6f8d;
  --blue-dark:  #2d4a52;
  --blue-light: #d7ecf0;
  --coral:      #e66b5d;
  --yellow:     #f3d25b;
  --yellow-pale:#fdf7dc;
  --white:      #ffffff;
  --off-white:  #f8f9fa;
  --text:       #2c2c2c;
  --text-mid:   #555555;
  --text-light: #777777;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
  --font-head:  'Nunito', 'Trebuchet MS', Arial, sans-serif;
  --font-body:  'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue-dark);
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* NAV */
.nav {
  background: var(--white);
  border-bottom: 1px solid #e8eef2;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 100px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--blue-dark);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--coral); }
.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px !important;
}
.nav-cta:hover { background: #d45847 !important; text-decoration: none !important; }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1.3;
}
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #d45847; color: var(--white); text-decoration: none; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); text-decoration: none; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--blue); text-decoration: none; }
.btn-sm { font-size: 14px; padding: 10px 20px; }
.btn-lg { font-size: 18px; padding: 16px 36px; }

/* ACCENT BAR */
.accent-bar {
  width: 48px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* LABELS */
.label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.label-blue { background: var(--blue-light); color: var(--blue); }
.label-coral { background: #fde8e5; color: var(--coral); }
.label-yellow { background: var(--yellow-pale); color: #9a7800; }

/* COMING SOON TAG */
.tag-coming {
  display: inline-block;
  background: var(--yellow);
  color: #6b5500;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 16px; }
.card-dot-coral { background: var(--coral); }
.card-dot-blue  { background: var(--blue); }
.card-dot-yellow { background: var(--yellow); }

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* HERO SPLIT */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.hero-split-text {
  background: var(--coral);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split-img { overflow: hidden; min-height: 400px; }
.hero-split-img img { width: 100%; height: 100%; object-fit: cover; }

/* PAGE HERO */
.page-hero { background: var(--blue); padding: 64px 24px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

/* FOOTER */
.footer { background: var(--blue-dark); padding: 48px 24px 32px; text-align: center; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--white); margin-bottom: 4px; }
.footer-tagline { font-size: 13px; margin-bottom: 24px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; justify-content: center; gap: 24px; list-style: none; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 24px auto; max-width: 400px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background 0.2s; }
.footer-socials a:hover { background: var(--coral); text-decoration: none; }
.footer-socials svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.75); }
.footer-socials a:hover svg { fill: #ffffff; }

/* HAMBURGER MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue);
  text-decoration: none;
}
.nav-mobile-menu a:hover { color: var(--coral); }
.nav-mobile-menu .nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.2rem !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-text { padding: 48px 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.9rem !important; }
  h2 { font-size: 1.6rem !important; }
}

/* ENHANCED PAGE HEROES */
.page-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero-content { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.page-hero-content h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 12px; }
.page-hero-content p { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }
.page-hero-content .hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
