/* ── Ruth and Jayne's Learning Adventures — Shared Stylesheet ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:  #FFD93D;
  --pink:    #FF6BA8;
  --teal:    #3ECFB2;
  --blue:    #4FC3F7;
  --green:   #56C596;
  --coral:   #FF6B6B;
  --ink:     #1A1A2E;
  --white:   #FFFDF7;
  --light:   #F8F9FA;
  --muted:   #6B7280;
  --radius:  18px;
  --nav-h:   80px;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: var(--nav-h);
  background: rgba(255,253,247,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--yellow);
}
.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
  line-height: 1.1;
}
.nav-logo .tagline {
  font-family: 'Nunito', sans-serif; font-size: 0.7rem;
  font-weight: 700; color: var(--teal); display: block;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a {
  font-weight: 800; font-size: 0.88rem; color: var(--ink);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }

/* Worksheets dropdown hint */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 200px; overflow: hidden; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: #FFF9C4; }
.nav-dropdown-menu .dd-icon { font-size: 1.1rem; }

.nav-cta {
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: 0.88rem;
  padding: 10px 20px; border-radius: 50px; border: 2.5px solid var(--ink);
  cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }

/* ── FOOTER ── */
site-footer, footer.site-footer {
  background: var(--ink);
  padding: 56px 5vw 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px; border-bottom: 1px solid #ffffff18;
  flex-wrap: wrap; gap: 2rem; padding-top: 8px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: 'Fredoka One', cursive; font-size: 1.5rem;
  color: #fff; margin-bottom: 6px;
}
.footer-tagline { font-size: 0.82rem; color: #9CA3AF; font-weight: 700; line-height: 1.5; }

.footer-nav h5 {
  font-weight: 900; font-size: 0.82rem; color: #fff; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #9CA3AF; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }

/* Channel buttons row in footer */
.footer-channel-btns {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 8px; margin-top: 4px; padding-top: 6px;
}
.footer-ch-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 50px;
  font-weight: 800; font-size: 0.78rem;
  text-decoration: none; white-space: nowrap;
  border: 1.8px solid; transition: transform .15s, box-shadow .15s;
}
.footer-ch-btn:hover { transform: translateY(-2px); }
.fc-yt   { background: #FF0000; color: #fff; border-color: #FF0000; }
.fc-vid  { background: transparent; color: #9CA3AF; border-color: #9CA3AF44; }
.fc-vid:hover { color: var(--yellow); border-color: var(--yellow); }
.fc-sub  { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.footer-rainbow {
  height: 4px; border-radius: 2px; margin: 28px 0 16px;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--teal), var(--blue), var(--green));
}
.footer-bottom { text-align: center; font-size: 0.8rem; color: #6B7280; font-weight: 600; }

/* ── SHARED SECTION HELPERS ── */
.section-eyebrow {
  display: inline-block; font-weight: 900; font-size: 0.78rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
.ey-yellow { background: var(--yellow); color: var(--ink); }
.ey-pink   { background: var(--pink);   color: #fff; }
.ey-teal   { background: var(--teal);   color: #fff; }

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15; margin-bottom: 1rem; color: var(--ink);
}
.section-sub { font-size: 1rem; color: #4B5563; font-weight: 600; line-height: 1.75; max-width: 540px; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--pink); color: #fff;
  font-weight: 900; font-size: 1rem;
  padding: 14px 28px; border-radius: 50px;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif;
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-outline {
  background: transparent; color: var(--ink);
  font-weight: 900; font-size: 1rem;
  padding: 12px 26px; border-radius: 50px;
  border: 2.5px solid var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { gap: 1.6rem; }
}
@media (max-width: 660px) {
  .nav-links { display: none; }
  .footer-top { flex-direction: column; gap: 1.4rem; }
  .footer-ch-btn { flex: 1 1 auto; justify-content: center; padding: 7px 10px; font-size: 0.72rem; }
  .nav-dropdown-menu { display: none !important; } /* no hover menus on mobile */
}
