/* ============================================
   LITTLE RYDERS PRESCHOOL — SHARED STYLES
   Brand Guidelines v1.0 — Fredoka + Nunito
   ============================================ */

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

:root {
  /* Brand palette — exact hex from guidelines */
  --purple: #74459B;
  --red: #EF3C2A;
  --yellow: #FDB714;
  --blue: #297BBF;
  --sunglow: #FFC951;
  --green: #78BB43;
  --navy: #1F3A6B;
  --charcoal: #2F3542;
  --warm-white: #FAF7F0;
  --white: #FFFFFF;

  /* Derived tints for soft surfaces (kept OFF brand text/icons; backgrounds only) */
  --purple-tint: #F1EAF6;
  --blue-tint: #E8F2FA;
  --yellow-tint: #FFF6E0;
  --green-tint: #EEF7E7;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 24px rgba(31, 58, 107, 0.10);
  --shadow-lift: 0 16px 40px rgba(31, 58, 107, 0.16);

  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3, h4 { font-weight: 500; }

p { margin: 0; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

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

/* ============ UTILITY ============ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--purple);
  display: inline-block;
  margin-bottom: 10px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.text-center { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: #4a5165;
  max-width: 640px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(239, 60, 42, 0.32);
}
.btn--primary:hover { background: #d9321f; box-shadow: 0 14px 28px rgba(239, 60, 42, 0.4); }

.btn--secondary {
  background: var(--white);
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn--secondary:hover { background: var(--purple-tint); }

.btn--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}
.btn--light:hover { box-shadow: var(--shadow-lift); }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 58, 107, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .nav__cta .btn--secondary { display: none; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--warm-white);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand img { height: 64px; margin-bottom: 14px; }

.footer__tagline {
  font-family: var(--font-display);
  color: var(--sunglow);
  font-size: 1.05rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { opacity: 0.85; transition: opacity 0.15s; }
.footer__links a:hover { opacity: 1; color: var(--sunglow); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

/* ============ STAR DECORATIONS ============ */
.star-deco {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  opacity: 0.8;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.05) rotate(8deg); }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ============ FLIGHT PATH (signature structural device) ============ */
.flight-path {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.flight-path svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.pill-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pop 0.5s ease 0.3s backwards, wa-pulse 2.8s ease-in-out 1.2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes wa-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-float__tooltip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}
