/* ============================================
   MOMAS HAPPY PLACE DAYCARE — STYLE SHEET
   ============================================ */

:root{
  --cream:      #FFF9EE;
  --cream-alt:  #FFF1D8;
  --ink:        #2A2018;
  --ink-soft:   #6B5B49;
  --orange:     #F2892E;
  --orange-deep:#C85A12;
  --green:      #5FA134;
  --blue:       #2F7FB0;
  --pink:       #DB3E75;
  --white:      #FFFFFF;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 14px 30px -12px rgba(42,32,24,0.22);
  --shadow-card: 0 8px 20px -10px rgba(42,32,24,0.25);
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 92px; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; line-height:1.15; color: var(--ink); }
p{ margin:0 0 1em; }

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

/* ---- language toggle behavior ---- */
.lang-es{ display:none; }
body.es .lang-en{ display:none; }
body.es .lang-es{ display:inline; }

/* generic helpers */
.center{ text-align:center; }
.eyebrow{
  font-family: var(--font-body);
  font-weight:700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--orange-deep);
  margin-bottom: .6em;
}
.section-lead{
  max-width: 620px;
  margin: 0 auto 2.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-note{ color: var(--ink-soft); font-size:.9rem; margin-top: 1.5rem; }

h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom:.4em; }
.section h2{ margin-bottom: .3em; }
.section > .wrap > h2{ margin-bottom: .35em; }

/* ---- buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 1rem;
  padding: .95em 1.7em;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ transform: translateY(-2px); background:#B04E0D; }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--cream); }
.btn-small{ padding:.6em 1.2em; font-size:.85rem; }

/* ================= HEADER ================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,249,238,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42,32,24,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px;
  gap: 1.5rem;
}
.brand-logo{ height: 62px; width:auto; }

.main-nav{ display:flex; gap: 1.8rem; align-items:center; }
.main-nav a{
  font-family: var(--font-display);
  font-weight:600;
  font-size: .98rem;
  position:relative;
  padding: .3em 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:3px; width:0;
  background: var(--orange); border-radius:3px; transition: width .2s ease;
}
.main-nav a:hover::after{ width:100%; }
.portal-nav-link{ white-space:nowrap; }
.admissions-nav-link{ white-space:nowrap; color: var(--orange-deep) !important; }

.header-actions{ display:flex; align-items:center; gap: .8rem; }
.lang-btn{
  font-family: var(--font-display); font-weight:700; font-size:.85rem;
  border: 2px solid var(--ink); background:transparent; color:var(--ink);
  border-radius:999px; padding:.4em .9em; cursor:pointer;
}
.lang-btn:hover{ background:var(--ink); color:var(--cream); }
.header-call{ display:inline-flex; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center;
  width:40px; height:40px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; height:3px; width:26px; background:var(--ink); border-radius:3px; }
.nav-toggle span + span{ margin-top:5px; }

/* ================= HERO ================= */
.hero{ position:relative; overflow:hidden; padding: 4.5rem 0 5rem; }
.hero-decor{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.blob{ position:absolute; border-radius:50%; filter: blur(2px); opacity:.35; }
.blob-orange{ width:340px; height:340px; background: var(--orange); top:-120px; right:-80px; }
.blob-blue{ width:220px; height:220px; background: var(--blue); bottom:-60px; left:-60px; opacity:.25;}
.blob-pink{ width:160px; height:160px; background: var(--pink); bottom:40px; right:12%; opacity:.2; }
.sunburst{ position:absolute; width:440px; height:440px; top:-40px; left:38%; transform:translateX(-50%); }
.star{ position:absolute; color: var(--orange); opacity:.55; font-size:1.4rem; }
.star-1{ top: 18%; left: 6%; font-size:1.1rem; }
.star-2{ top: 62%; left: 46%; color:var(--pink); }
.star-3{ top: 8%; right: 8%; color:var(--blue); font-size:1rem; }

.hero-inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items:center;
}
.hero-copy h1{ font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight:800; }
.hero-sub{ font-size:1.08rem; color: var(--ink-soft); max-width: 480px; }
.hero-actions{ display:flex; gap: 1rem; flex-wrap:wrap; margin: 1.6rem 0 1.8rem; }

.hero-badges{ display:flex; flex-wrap:wrap; gap:.6rem; }
.hero-badges li{
  background: var(--white);
  border: 1px solid rgba(42,32,24,.1);
  padding:.5em 1em; border-radius:999px;
  font-size:.82rem; font-weight:700; color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.hero-photos{ position:relative; height: 420px; }
.hp{ position:absolute; border-radius: var(--radius-md); object-fit:cover; box-shadow: var(--shadow-soft); border: 6px solid var(--white); }
.hp-1{ width: 68%; height: 62%; top:0; right:0; }
.hp-2{ width: 52%; height: 46%; bottom:0; left:0; }
.hp-3{ width: 40%; height: 34%; bottom: 8%; right: 6%; transform: rotate(-4deg); }

/* scallop divider — container bg = color above, svg path fill = color below */
.scallop{
  height: 40px;
  line-height: 0;
  background: var(--top, var(--cream));
}
.scallop svg{ display:block; width:100%; height:100%; }
.scallop path{ fill: var(--bottom, var(--cream)); }

/* ================= SECTIONS ================= */
.section{ padding: 5.5rem 0; }
.section-alt{ background: var(--cream-alt); }

/* ---- feature grid ---- */
.feature-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem;
  margin-top: 2.5rem;
}
.feature-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.feature-card:hover{ transform: translateY(-4px); }
.feature-icon{
  width:56px; height:56px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
  margin-bottom: 1rem;
}
.feature-icon svg{ width:30px; height:30px; }
.feature-card h3{ font-size: 1.1rem; margin-bottom:.4em; }
.feature-card p{ color: var(--ink-soft); font-size:.94rem; margin:0; }

/* ---- programs ---- */
.program-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem;
  margin-top: 2.5rem;
}
.program-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  position:relative;
  padding-bottom: 1.6rem;
}
.program-photo{ height: 190px; overflow:hidden; }
.program-photo img{ width:100%; height:100%; object-fit:cover; }
.program-age{
  position:absolute; top:160px; left:1.4rem;
  background: var(--orange-deep); color:#fff;
  font-family: var(--font-display); font-weight:700; font-size:.8rem;
  padding:.4em .9em; border-radius:999px;
  box-shadow: var(--shadow-card);
}
.program-card h3{ padding: 1.6rem 1.4rem 0; font-size:1.2rem; }
.program-card ul{ padding: .6rem 1.4rem 0; display:flex; flex-direction:column; gap:.5rem; }
.program-card li{
  position:relative; padding-left: 1.4em; color: var(--ink-soft); font-size:.92rem;
}
.program-card li::before{
  content:"✓"; position:absolute; left:0; top:0; color: var(--green); font-weight:700;
}

/* ---- gallery ---- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.g-item{
  position:relative; margin:0; border-radius: var(--radius-md); overflow:hidden;
  aspect-ratio: 1 / 1;
}
.g-item img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.g-item:hover img{ transform: scale(1.06); }
.g-item figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(0deg, rgba(20,14,8,.72), transparent);
  color:#fff; font-family: var(--font-display); font-weight:600; font-size:.85rem;
  padding: 1.6rem .9rem .7rem;
}
.gallery-follow{ margin-top: 2.2rem; color: var(--ink-soft); }
.gallery-follow a{ color: var(--orange-deep); font-weight:700; }

/* ---- timeline ---- */
.timeline{
  display:grid; grid-template-columns: repeat(6,1fr); gap: 1rem;
  margin-top: 2.5rem;
}
.t-item{
  background: var(--white); border-radius: var(--radius-sm);
  padding: 1.2rem .9rem; text-align:center; box-shadow: var(--shadow-card);
  border-top: 4px solid var(--orange);
}
.t-item:nth-child(2){ border-color: var(--blue); }
.t-item:nth-child(3){ border-color: var(--green); }
.t-item:nth-child(4){ border-color: var(--pink); }
.t-item:nth-child(5){ border-color: var(--orange-deep); }
.t-item:nth-child(6){ border-color: var(--blue); }
.t-time{ display:block; font-family: var(--font-display); font-weight:700; font-size:.85rem; color: var(--orange-deep); margin-bottom:.4em; }
.t-item p{ margin:0; font-size:.88rem; color: var(--ink-soft); }

/* ---- admissions CTA banner ---- */
.admissions-banner{ background: var(--orange-deep); padding: 3.2rem 0; }
.admissions-banner-inner{ display:flex; align-items:center; justify-content:space-between; gap: 2rem; flex-wrap:wrap; }
.admissions-banner h2{ color:#fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom:.3em; }
.admissions-banner-sub{ color:#FFE1BE; max-width:480px; margin:0; }
.admissions-btn{ background:#fff; color:var(--orange-deep); flex:none; box-shadow: var(--shadow-soft); white-space:nowrap; }
.admissions-btn:hover{ background:#FFF3E4; transform:translateY(-2px); }
@media (max-width:700px){ .admissions-banner-inner{ flex-direction:column; text-align:center; } }

/* ---- FAQ ---- */
.faq-list{ max-width: 760px; margin: 2.5rem auto 0; display:flex; flex-direction:column; gap:.9rem; }
.faq-item{ background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow:hidden; }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: 1.2rem 1.5rem; font-family: var(--font-display); font-weight:700; font-size:1.02rem; color: var(--ink);
}
.faq-icon{
  flex:none; width:28px; height:28px; border-radius:50%; background: var(--cream-alt); color: var(--orange-deep);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; font-weight:700;
  transition: transform .2s ease;
}
.faq-item.active .faq-icon{ transform: rotate(45deg); background: var(--orange-deep); color:#fff; }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-a p{ padding: 0 1.5rem 1.3rem; color: var(--ink-soft); margin:0; font-size:.95rem; }
.faq-a a{ color: var(--orange-deep); font-weight:700; }
.faq-item.active .faq-a{ max-height: 240px; }

/* ---- contact form ---- */
.contact-form-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-card); margin-top: 2rem;
}
.contact-form-card h3{ font-size:1.25rem; margin-bottom:.2em; }
.contact-form-sub{ color: var(--ink-soft); margin-bottom: 1.4rem; }
.cf-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1rem 1.2rem; margin-bottom: 1rem; }
.contact-form label{
  display:flex; flex-direction:column; gap:.4rem; font-size:.85rem; font-weight:700; color: var(--ink-soft);
}
.contact-form label.cf-full{ grid-column: 1/-1; margin-bottom: 1.2rem; }
.contact-form input, .contact-form textarea{
  border:1.6px solid #E6D9C4; border-radius: var(--radius-sm); padding:.65em .85em;
  font-size:.95rem; font-family: var(--font-body); color: var(--ink); background: var(--cream); font-weight:500;
}
.contact-form textarea{ min-height:110px; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus{ outline:2px solid var(--orange); outline-offset:1px; }
.contact-form-status{ margin-top:.9rem; font-size:.9rem; font-weight:700; min-height:1.2em; }
.contact-form-status.ok{ color: var(--green); }
.contact-form-status.err{ color: var(--pink); }


.location-grid{
  display:grid; grid-template-columns: .95fr 1.05fr; gap: 2.5rem;
  margin-top: 2.5rem; align-items:stretch;
}
.location-info{ background:var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }
.info-row{ display:flex; gap:1rem; align-items:flex-start; margin-bottom: 1.4rem; }
.info-icon{
  width:42px; height:42px; flex:none; border-radius:12px;
  background: var(--cream-alt); color: var(--orange-deep);
  display:flex; align-items:center; justify-content:center;
}
.info-icon svg{ width:22px; height:22px; }
.info-row h4{ font-size:.98rem; margin-bottom:.2em; }
.info-row p{ margin:0; color: var(--ink-soft); font-size:.95rem; }
.info-row a:hover{ color: var(--orange-deep); }
.location-cta{ display:flex; gap:.8rem; flex-wrap:wrap; margin-top: 1.6rem; }
.location-map{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-card); min-height: 340px; }
.location-map iframe{ width:100%; height:100%; min-height:340px; }

/* ================= FOOTER ================= */
.site-footer{ background: var(--ink); color: #E7DDCF; padding-top: 4rem; }
.footer-inner{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo{ height: 72px; margin-bottom: 1rem; }
.footer-brand p{ color:#C9BCA9; font-size:.92rem; max-width: 320px; }
.footer-social{ display:inline-flex; align-items:center; gap:.5em; color:#fff; font-weight:700; margin-top:.4rem; }
.footer-links h4, .footer-contact h4{ font-family: var(--font-display); color:#fff; font-size:1rem; margin-bottom:1rem; }
.footer-links a, .footer-contact p, .footer-contact a{ display:block; color:#C9BCA9; font-size:.92rem; margin-bottom:.7rem; }
.footer-links a:hover, .footer-contact a:hover{ color: var(--orange); }
.footer-bottom{ text-align:center; padding: 1.4rem 0; font-size:.82rem; color:#9C8E7B; }
.footer-portal-link{ margin-top:.3rem; }
.footer-portal-link a{ color:#B9A98F; text-decoration:underline; }
.footer-portal-link a:hover{ color: var(--orange); }

/* mobile call fab */
.mobile-call-fab{
  display:none; position:fixed; right:18px; bottom:162px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background: var(--orange-deep); color:#fff;
  align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
}
.whatsapp-fab{
  display:flex; position:fixed; right:18px; bottom:90px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff;
  align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.whatsapp-fab:hover{ transform: translateY(-2px); }

/* ---- FAQ chat widget ---- */
.faq-chat-fab{
  display:flex; position:fixed; right:18px; bottom:18px; z-index:210;
  width:58px; height:58px; border-radius:50%; border:none; cursor:pointer;
  background: var(--orange-deep); color:#fff;
  align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.faq-chat-fab:hover{ transform: translateY(-2px); }
.faq-chat-fab.hide{ display:none; }

.faq-chat-panel{
  display:none; position:fixed; right:18px; bottom:88px; z-index:220;
  width:min(340px, calc(100vw - 36px)); max-height:min(480px, calc(100vh - 120px));
  background:#fff; border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.35);
  flex-direction:column;
}
.faq-chat-panel.open{ display:flex; }
.faq-chat-header{ display:flex; align-items:center; gap:.7rem; padding:1rem 1.1rem; background: var(--cream-alt); }
.faq-chat-header img{ height:34px; width:34px; object-fit:contain; }
.faq-chat-header-text{ flex:1; display:flex; flex-direction:column; font-size:.8rem; color:var(--ink-soft); }
.faq-chat-header-text strong{ font-family:var(--font-display); color:var(--ink); font-size:.95rem; }
.faq-chat-header button{ background:none; border:none; font-size:1rem; color:var(--ink-soft); cursor:pointer; }
.faq-chat-body{ flex:1; overflow-y:auto; padding:1rem 1.1rem; display:flex; flex-direction:column; gap:.7rem; }
.chat-bubble{ max-width:88%; padding:.7em .9em; border-radius:14px; font-size:.88rem; line-height:1.4; }
.chat-bubble.bot{ background: var(--cream-alt); color:var(--ink); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-bubble.user{ background: var(--orange-deep); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.faq-chat-questions{ display:flex; flex-direction:column; gap:.5rem; }
.faq-chat-questions button{
  text-align:left; background:#fff; border:1.6px solid var(--cream-alt); border-radius:12px;
  padding:.6em .8em; font-family:var(--font-body); font-weight:600; font-size:.85rem; color:var(--ink);
  cursor:pointer; transition: border-color .15s ease;
}
.faq-chat-questions button:hover{ border-color: var(--orange); }
.faq-chat-footer{ padding:.9rem 1.1rem; border-top:1px solid var(--cream-alt); }
@media (max-width:480px){
  .faq-chat-panel{ right:10px; bottom:82px; }
  .faq-chat-fab, .whatsapp-fab, .mobile-call-fab{ right:10px; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photos{ height: 320px; margin-top: 1rem; }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .program-grid{ grid-template-columns: 1fr; max-width:460px; margin-left:auto; margin-right:auto; }
  .timeline{ grid-template-columns: repeat(3,1fr); }
  .location-grid{ grid-template-columns: 1fr; }
  .location-map{ min-height: 300px; }
  .cf-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1/-1; }
}

@media (max-width: 760px){
  html{ scroll-padding-top: 70px; }
  .header-inner{ height:68px; }
  .brand-logo{ height:48px; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0; z-index:150;
    background: var(--cream); flex-direction:column; align-items:stretch;
    padding: 0 24px; gap: 0; max-height:0; overflow:hidden;
    transition: max-height .3s ease, padding .3s ease;
    box-shadow: 0 16px 30px -10px rgba(42,32,24,.25);
  }
  .main-nav.open{ max-height: 80vh; overflow-y:auto; padding: 1.2rem 24px 1.8rem; }
  .main-nav a{ font-size: 1.15rem; padding: .7em 0; border-bottom: 1px solid rgba(42,32,24,.08); }
  .header-call{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

  .hero{ padding: 2.6rem 0 3.2rem; }
  .hero-badges{ gap:.5rem; }
  .hero-badges li{ font-size:.74rem; padding:.45em .8em; }
  .hero-photos{ display:none; }
  .feature-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .timeline{ grid-template-columns: repeat(2,1fr); }
  .section{ padding: 3.4rem 0; }
  .mobile-call-fab{ display:flex; }
  body.menu-open{ overflow:hidden; }
  body.menu-open .whatsapp-fab, body.menu-open .mobile-call-fab, body.menu-open .faq-chat-fab{ display:none; }
  .footer-inner{ grid-template-columns: 1fr; text-align:left; }
}
