/* ── SARA'S STORY STORE — GLOBAL STYLES v2 ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy:       #042a88;
  --navy-mid:   #0a3da0;
  --teal:       #5ed5ce;
  --teal-mid:   #98e4df;
  --teal-pale:  #ccf1ef;
  --teal-ultra: #e8faf9;
  --white:      #ffffff;
  --text-dark:  #042a88;
  --text-mid:   #3a4a6b;
  --text-light: #7a8aab;
  --border:     #b8e8e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-mid); background: var(--white); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--teal-pale);
  padding: 0 48px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(4,42,136,0.1); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.87rem; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--teal-pale); }
.nav-cta { background: var(--navy) !important; color: white !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--navy-mid) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(4,42,136,0.25) !important; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Nunito', sans-serif; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.18; }
h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
h4 { font-size: 0.9rem; font-weight: 800; }

.section-label {
  display: inline-block; font-family: 'Lato', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); background: rgba(94,213,206,0.15);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 12px;
}
.sl-dark { background: rgba(94,213,206,0.18); color: var(--teal-mid); }
.lead { font-size: 1.02rem; color: var(--text-mid); line-height: 1.78; max-width: 600px; }
.lead-white { color: rgba(255,255,255,0.75); }
.lead-wide { max-width: 700px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: all 0.22s; font-family: 'Lato', sans-serif;
  border: 2px solid transparent; cursor: pointer;
}
.btn-navy { background: var(--navy); color: white; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(4,42,136,0.22); }
.btn-teal { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(94,213,206,0.4); }
.btn-white-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: white; }

/* ── SECTIONS ── */
.section    { padding: 88px 72px; }
.section-md { padding: 64px 72px; }
.section-sm { padding: 48px 72px; }
.bg-white   { background: var(--white); }
.bg-navy    { background: var(--navy); }
.bg-pale    { background: var(--teal-pale); }
.bg-ultra   { background: var(--teal-ultra); }

/* ── MARQUEE ── */
.marquee-strip { background: var(--navy); color: white; padding: 13px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-inner span { padding: 0 32px; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.82; }
.marquee-inner .dot { color: var(--teal); padding: 0 4px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 136px 72px 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(94,213,206,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(152,228,223,0.08) 0%, transparent 45%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto 32px; }
.page-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── STARS ── */
.stars-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stars-deco span { position: absolute; color: rgba(94,213,206,0.35); font-size: 1rem; animation: twinkle 3s ease-in-out infinite alternate; }
.stars-deco span:nth-child(1)  { top:10%; left:6%;   animation-delay:0s; }
.stars-deco span:nth-child(2)  { top:20%; left:20%;  animation-delay:.5s;  font-size:.7rem; }
.stars-deco span:nth-child(3)  { top:8%;  left:52%;  animation-delay:.9s; }
.stars-deco span:nth-child(4)  { top:18%; left:78%;  animation-delay:.2s;  font-size:.8rem; }
.stars-deco span:nth-child(5)  { top:12%; left:92%;  animation-delay:1.1s; }
.stars-deco span:nth-child(6)  { top:72%; left:4%;   animation-delay:.7s;  font-size:.75rem; }
.stars-deco span:nth-child(7)  { top:80%; left:88%;  animation-delay:.3s; }
.stars-deco span:nth-child(8)  { top:85%; left:45%;  animation-delay:1.4s; font-size:.65rem; }
.stars-deco span:nth-child(9)  { top:40%; left:3%;   animation-delay:.6s;  font-size:.8rem; }
.stars-deco span:nth-child(10) { top:55%; left:96%;  animation-delay:1.2s; font-size:.7rem; }
.stars-deco span:nth-child(11) { top:30%; left:62%;  animation-delay:.4s;  font-size:.6rem; }
.stars-deco span:nth-child(12) { top:65%; left:30%;  animation-delay:1.6s; font-size:.75rem; }
@keyframes twinkle {
  0%   { opacity:.1; transform:scale(.8); }
  100% { opacity:1;  transform:scale(1.4); }
}

/* ── CARDS ── */
.card {
  background: white; border-radius: 20px; border: 2px solid var(--border);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 52px rgba(4,42,136,0.1); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
input[type=text],input[type=email],input[type=tel],textarea,select {
  font-family: 'Lato', sans-serif; font-size: 0.92rem;
  border-radius: 10px; outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
}
input[type=text],input[type=email],input[type=tel],select { padding: 12px 16px; }
textarea { padding: 12px 16px; resize: vertical; min-height: 90px; }
.fl input,.fl textarea,.fl select { background: white; border: 2px solid var(--border); color: var(--text-dark); }
.fl input:focus,.fl textarea:focus,.fl select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94,213,206,0.2); }
.fl input::placeholder,.fl textarea::placeholder { color: var(--text-light); }
.fd input,.fd textarea { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2); color: white; }
.fd input:focus,.fd textarea:focus { border-color: var(--teal); }
.fd input::placeholder,.fd textarea::placeholder { color: rgba(255,255,255,0.45); }

/* ── SLIDERS ── */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--teal-pale);
  border-radius: 3px; outline: none; cursor: pointer;
  padding: 0; border: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--navy); cursor: pointer;
  box-shadow: 0 2px 8px rgba(4,42,136,0.25); transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
footer { background: var(--navy); color: white; padding: 64px 72px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.72; margin: 14px 0 22px; max-width: 260px; }
.footer-col h4 { font-family: 'Nunito',sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; font-weight: 800; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.36); }
.footer-badge { font-size: 0.75rem; color: rgba(255,255,255,0.36); background: rgba(255,255,255,0.07); padding: 5px 14px; border-radius: 100px; }
.social-links { display: flex; gap: 12px; align-items: center; }
.social-btn { width: 32px; height: 32px; background: transparent; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: opacity 0.2s, transform 0.2s; overflow: hidden; border-radius: 0; }
.social-btn:hover { transform: translateY(-2px); opacity: 0.75; }
.social-btn svg { width: 28px; height: 28px; fill: currentColor; }
.social-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── FOOTER LOGO on dark bg ── */
.footer-brand .footer-logo-wrap {
  width: 84px; height: 84px; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; margin-bottom: 16px;
}
.footer-brand .footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 8px; border-radius: 8px; transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--teal-pale); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DROPDOWN ── */
.nav-mobile {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: white; border-top: 2px solid var(--teal-pale);
  box-shadow: 0 8px 32px rgba(4,42,136,0.12); z-index: 199; padding: 12px 16px 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid var(--teal-ultra); }
.nav-mobile ul li:last-child { border-bottom: none; }
.nav-mobile ul li a {
  display: block; padding: 13px 16px; text-decoration: none;
  color: var(--text-mid); font-weight: 700; font-size: 0.95rem;
  border-radius: 8px; transition: all 0.2s;
}
.nav-mobile ul li a:hover, .nav-mobile ul li a.active { color: var(--navy); background: var(--teal-pale); }
.nav-mobile .mob-cta { background: var(--navy); color: white !important; border-radius: 10px; margin-top: 8px; text-align: center; }
.nav-mobile .mob-cta:hover { background: var(--navy-mid) !important; }

/* ── SERVICE CARDS (schools page) ── */
.service-card {
  background: white; border-radius: 18px;
  border: 2px solid var(--border); border-left: 5px solid var(--teal);
  padding: 32px 36px; margin-bottom: 22px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: 0 14px 44px rgba(4,42,136,0.1); transform: translateY(-2px); }
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.service-card .service-sub { font-size: 0.82rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; display: block; }
.service-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.78; margin-bottom: 12px; }
.service-card p:last-of-type { margin-bottom: 0; }
.service-card strong { color: var(--navy); }
.service-card .author-note { margin-top: 14px; margin-bottom: 14px; }
.service-card .issuu-wrap { margin-top: 14px; }
.service-card .tags { margin-top: 18px; }

/* ── YOUTUBE EMBED ── */
.yt-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; margin: 20px 0; }
.yt-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.yt-placeholder { background: var(--teal-ultra); border: 2px dashed var(--teal); border-radius: 14px; padding: 40px; text-align: center; margin: 20px 0; color: var(--text-light); font-size: 0.9rem; }

/* ── BOOK FAIR BOOKING MODAL ── */
.bf-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,42,136,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.bf-modal {
  background: white; border-radius: 24px; padding: 40px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.bf-modal h3 { margin-bottom: 6px; }
.bf-modal > p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.65; margin-bottom: 24px; }
.bf-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--teal-pale); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--navy);
  font-weight: 700; transition: background 0.2s; line-height: 1;
}
.bf-modal-close:hover { background: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section,.section-md,.section-sm { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer { padding: 48px 24px 32px; }
  .page-hero { padding: 116px 24px 60px; }
}
@media (max-width: 600px) {
  .service-card { padding: 24px 20px; }
  .bf-modal { padding: 28px 20px; }
}
