/* ========================================
   MomSkool – Playful Learning Website
   ======================================== */

:root {
  /* Bright playful palette */
  --pink: #FF6B9D;
  --coral: #FF8E53;
  --yellow: #FFD93D;
  --mint: #6BCB77;
  --sky: #4D96FF;
  --purple: #9B59B6;
  --lavender: #C9B1FF;
  --cream: #FFF8F0;
  --soft-white: #FFFFFF;
  --dark: #2D2A32;
  --gray: #5A5560;
  --light-gray: #F5F0EB;

  /* Soft shadows */
  --shadow: 0 8px 24px rgba(45, 42, 50, 0.12);
  --shadow-hover: 0 12px 32px rgba(45, 42, 50, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Soft parent-page override */
body.parent-page {
  background: linear-gradient(180deg, #F8F4F0 0%, #EDE7E0 100%);
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Floating shapes ========== */
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.18;
  animation: float 12s ease-in-out infinite;
}

.shape-1 { top: 12%; left: 8%; animation-delay: 0s; }
.shape-2 { top: 25%; right: 10%; animation-delay: 2s; font-size: 2.2rem; }
.shape-3 { bottom: 30%; left: 15%; animation-delay: 4s; }
.shape-4 { top: 60%; right: 18%; animation-delay: 1s; }
.shape-5 { bottom: 15%; right: 8%; animation-delay: 3s; }

.floating-shapes.soft .shape {
  opacity: 0.12;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid rgba(255, 107, 157, 0.15);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo-icon {
  font-size: 1.6rem;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--gray);
}

.nav-link:hover,
.nav-link.active {
  background: var(--pink);
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: 0.25s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 50px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--dark);
}

.highlight {
  background: linear-gradient(120deg, var(--pink), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--dark);
  border: 3px solid var(--lavender);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.hero-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.hero-card:nth-child(2) {
  transform: translateY(20px);
}

.hero-card:nth-child(2):hover {
  transform: translateY(14px) rotate(1deg);
}

.hero-emoji {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.hero-card p {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ========== Quick Access Cards ========== */
.quick-access {
  position: relative;
  z-index: 1;
  padding: 30px 0 70px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin-bottom: 36px;
  color: var(--dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 4px solid transparent;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

.card-math:hover { border-color: var(--sky); }
.card-reading:hover { border-color: var(--mint); }
.card-science:hover { border-color: var(--yellow); }
.card-creative:hover { border-color: var(--pink); }
.card-parent:hover { border-color: var(--lavender); }
.card-about:hover { border-color: var(--coral); }

/* ========== Why section ========== */
.why-section {
  position: relative;
  z-index: 1;
  background: white;
  padding: 70px 0;
  border-radius: 40px 40px 0 0;
  margin-top: 20px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.why-item {
  text-align: center;
  padding: 10px;
}

.why-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink);
  opacity: 0.7;
  margin-bottom: 8px;
}

.why-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.why-item p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 50px 0 30px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
}

.parent-hero {
  background: linear-gradient(135deg, rgba(201, 177, 255, 0.25), rgba(255, 107, 157, 0.12));
  border-radius: 0 0 30px 30px;
  margin-bottom: 20px;
}

/* ========== Games / Tabs ========== */
.games-section {
  position: relative;
  z-index: 1;
  padding: 20px 0 60px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.tab-btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 3px solid transparent;
  background: white;
  color: var(--gray);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.2s;
}

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

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-hover);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray);
}

/* Padlet placeholders */
.padlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.padlet-slot {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
  border: 3px dashed rgba(255, 107, 157, 0.35);
}

.padlet-placeholder {
  padding: 40px 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.padlet-placeholder h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.padlet-placeholder p {
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 280px;
}

.placeholder-box {
  margin-top: 16px;
  width: 100%;
  min-height: 60px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 2px dashed #ccc;
}

/* When you paste a real Padlet, the placeholder styling can be overridden */
.padlet-slot iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

.tip-banner {
  background: linear-gradient(90deg, var(--lavender), var(--pink));
  color: white;
  padding: 18px 0;
  text-align: center;
  font-weight: 600;
}

.tip-banner a {
  color: white;
  text-decoration: underline;
}

/* ========== Parent Break ========== */
.parent-content {
  position: relative;
  z-index: 1;
  padding: 30px 0 70px;
}

.parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.parent-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.parent-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--dark);
}

.parent-card p {
  color: var(--gray);
  margin-bottom: 12px;
}

.calm-list {
  list-style: none;
  margin-top: 16px;
}

.calm-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-weight: 600;
  color: var(--dark);
}

.calm-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tip-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tip-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--dark);
}

.tip-item p {
  margin: 0;
  font-size: 0.92rem;
}

.highlight-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  color: var(--pink);
  font-weight: 600;
}

.padlet-placeholder.small {
  margin-top: 16px;
  padding: 24px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 2px dashed #ccc;
}

/* ========== About ========== */
.about-content {
  position: relative;
  z-index: 1;
  padding: 20px 0 70px;
}

.about-block {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.about-block h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--pink);
}

.about-block p {
  color: var(--gray);
  margin-bottom: 12px;
}

.steps-list {
  margin: 16px 0 0 20px;
  color: var(--gray);
}

.steps-list li {
  margin-bottom: 18px;
  padding-left: 6px;
}

.steps-list strong {
  color: var(--dark);
}

code {
  background: var(--light-gray);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--purple);
}

.note {
  margin-top: 16px;
  font-style: italic;
  color: var(--gray);
}

.final-note {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(201, 177, 255, 0.15));
  border: 3px solid rgba(255, 107, 157, 0.2);
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: white;
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-brand p {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}

/* ========== Responsive ========== */
@media (max-width: 800px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px;
    border-bottom: 3px solid rgba(255, 107, 157, 0.2);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 500px) {
  .category-tabs {
    gap: 8px;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .padlet-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Logo images ========== */
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.footer-brand > div span {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.footer-brand > div p {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}
