/* ==========================================================================
   Mrs Reena's Cocoon — Design System
   Theme: cocoon → butterfly (growth, nurturing, transformation)
   ========================================================================== */

:root {
  /* Palette */
  --cream:        #FFFBF4;
  --cream-deep:    #FFF6E9;
  --blush:        #FCE1E6;
  --blush-deep:    #F6B9C4;
  --mint:          #DCF2E6;
  --mint-deep:     #A9DFC4;
  --butter:        #FDEFC8;
  --butter-deep:   #F8D989;
  --lavender:      #E9E2F7;
  --lavender-deep: #C9B8ED;
  --sky:           #DCEEF7;

  --ink:           #4A3B3E;
  --ink-soft:      #7A6A6D;
  --ink-faint:     #A6989A;

  --primary:       #E8768C;
  --primary-dark:  #D65B75;
  --primary-light: #F6A9B8;
  --secondary:     #5FA982;
  --secondary-dark:#3F8A66;
  --accent:        #F3B33E;

  --surface:       #FFFFFF;
  --border:        #F0E1DE;

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

  --shadow-sm: 0 2px 10px rgba(74, 59, 62, 0.06);
  --shadow-md: 0 8px 28px rgba(74, 59, 62, 0.10);
  --shadow-lg: 0 18px 48px rgba(74, 59, 62, 0.14);

  --font-heading: 'Fredoka', 'Baloo 2', sans-serif;
  --font-body: 'Quicksand', 'Nunito', sans-serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

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

section { padding: 88px 0; position: relative; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--blush);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn-outline:hover { background: var(--blush); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: #3FA24C;
  color: #fff;
}
.btn-whatsapp:hover { background: #2f8a3b; transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* Top notice bar -------------------------------------------------------- */
.notice-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
.notice-bar a { color: var(--butter); text-decoration: underline; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand .logo-mark { height: 40px; width: auto; flex-shrink: 0; object-fit: contain; }
.brand-wordmark { height: 50px; width: auto; display: block; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 1; }
.main-nav a {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--blush); color: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.branch-switcher { position: relative; }
.branch-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  background: var(--mint);
  color: var(--secondary-dark);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.branch-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.branch-switcher.open .branch-switcher-menu { display: flex; }
.branch-switcher-menu button {
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.branch-switcher-menu button:hover { background: var(--blush); }
.branch-switcher-menu button.active { color: var(--primary-dark); background: var(--blush); }
.branch-switcher-menu button span { display: block; font-weight: 500; font-size: 0.76rem; color: var(--ink-faint); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .header-actions { flex-shrink: 0; }
  .header-actions .btn-label { display: none; }
  .branch-switcher { min-width: 0; flex-shrink: 1; }
  .branch-switcher-btn span:not(.visually-hidden) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand .logo-mark { height: 34px; width: auto; }
  .brand-wordmark { height: 38px; width: auto; }
  .branch-switcher { display: none; }
  .header-actions > a.btn-primary.btn-sm { display: none; }
}

/* Hero ------------------------------------------------------------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy .section-tag { margin-bottom: 20px; }
.hero-copy p.lead { font-size: 1.15rem; margin: 18px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary-dark); }
.hero-trust div span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-art { position: relative; }
.blob {
  border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
  background: var(--blush);
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.blob svg { width: 62%; height: 62%; }
.floaty {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }
.floaty.one { width: 70px; height: 70px; background: var(--butter); top: -6%; right: 6%; animation-delay: .2s; }
.floaty.two { width: 46px; height: 46px; background: var(--mint); bottom: 4%; left: -4%; animation-delay: 1.1s; }
.floaty.three { width: 30px; height: 30px; background: var(--lavender); top: 40%; right: -6%; animation-delay: 2s; }

.bg-blob-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  z-index: -1;
}

/* Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-badge { margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 30px; height: 30px; }
.bg-blush { background: var(--blush); color: var(--primary-dark); }
.bg-mint { background: var(--mint); color: var(--secondary-dark); }
.bg-butter { background: var(--butter); color: #9C6B12; }
.bg-lavender { background: var(--lavender); color: #6B4FA0; }
.bg-sky { background: var(--sky); color: #2F7EA6; }

/* Program cards */
.program-card { position: relative; overflow: hidden; }
.program-card .age-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--butter);
  color: #9C6B12;
  margin-bottom: 14px;
}

/* Placeholder photo blocks --------------------------------------------- */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, var(--cream-deep), var(--cream-deep) 12px, #fff 12px, #fff 24px);
  border: 2px dashed var(--blush-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--ink-faint);
  padding: 20px;
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: .6; }
.photo-placeholder span { font-size: 0.82rem; font-weight: 600; max-width: 220px; }

.real-photo { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.real-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .real-photo { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.founder-photo { aspect-ratio: 392/453; max-width: 420px; margin-inline: auto; }

/* Two-column content ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse .split-media { order: 2; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--secondary); margin-top: 2px; }

/* Bands ------------------------------------------------------------ */
.band { background: var(--mint); }
.band-blush { background: var(--blush); }
.band-lavender { background: var(--lavender); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #E4D7D9; }

/* Branch strip ------------------------------------------------------- */
.branch-strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .branch-strip-grid { grid-template-columns: 1fr; } }
.branch-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.branch-card-head {
  padding: 26px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.branch-card-head h3 { margin-bottom: 6px; }
.branch-card-body { padding: 0 28px 28px; }
.branch-card address { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; display: flex; gap: 10px; }
.branch-card address svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.branch-card .map-frame { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); }
.branch-card .map-frame iframe { width: 100%; height: 210px; border: 0; display: block; }
.branch-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-pill {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--secondary-dark);
  white-space: nowrap;
}

/* Testimonials ------------------------------------------------------- */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 940px) { .testimonial-track { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .testimonial-track { grid-template-columns: 1fr; } }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p.quote { font-style: italic; color: var(--ink); margin-bottom: 18px; }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; }
.testimonial-meta strong { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 500; }
.testimonial-meta span { font-size: 0.78rem; color: var(--ink-faint); }

/* Timeline / process ------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 22px 26px;
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

/* Forms ------------------------------------------------------------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid var(--border);
}
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 6px; }

/* FAQ / accordion ------------------------------------------------------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
}
.accordion-trigger .plus { font-size: 1.4rem; color: var(--primary); transition: transform .2s ease; flex-shrink: 0; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.accordion-item.open .accordion-panel { max-height: 320px; }
.accordion-panel p { padding: 0 4px 20px; font-size: 0.95rem; }

/* Gallery ------------------------------------------------------------ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar button {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-bar button.active, .filter-bar button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item .photo-placeholder { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.video-embed { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* Callout / CTA band ------------------------------------------------- */
.cta-band {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBE1E6; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #E7DBDD; padding: 72px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { height: 36px; width: auto; object-fit: contain; }
.site-footer p { color: #C6B5B8; font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #C6B5B8; font-size: 0.92rem; }
.footer-col a:hover { color: var(--blush-deep); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #A6989A;
}

/* Floating WhatsApp button ------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #3FA24C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }
.whatsapp-float:hover { transform: scale(1.06); }

/* Page hero (inner pages) --------------------------------------------- */
.page-hero {
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
}
.page-hero .section-head { margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--primary-dark); font-weight: 600; }

/* Utility ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.small-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  background: var(--cream-deep);
  border: 1px dashed var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.divider { height: 1px; background: var(--border); margin: 40px 0; }
