/* =====================================================================
   Lubna's Pre School — design system
   Warm, joyful-but-refined preschool identity.
   Type: Fredoka (display) + Nunito (body). Palette: butter paper + marigold
   / coral / teal / plum crayon accents. Signature: arch-topped photos +
   hand-drawn crayon-squiggle accents under headings.
   ===================================================================== */

:root {
  --paper:      #fffdf7;   /* warm butter white */
  --paper-2:    #fff4db;   /* pale sunshine — alt sections */
  --paper-3:    #eef7f5;   /* pale mint — occasional alt */
  --ink:        #2c2a29;   /* soft warm near-black */
  --ink-soft:   #6b655f;   /* muted body text */
  --line:       #efe6d2;   /* hairlines on paper */

  --marigold:   #f4a72c;
  --marigold-d: #d98a12;
  --coral:      #f0654a;
  --teal:       #2aa79b;
  --plum:       #7a5cc0;
  --sky:        #3ba7c9;

  --card:       #ffffff;
  --shadow:     0 14px 34px -18px rgba(60,44,20,.34);
  --shadow-sm:  0 6px 18px -10px rgba(60,44,20,.30);
  --arch:       46% 46% 12% 12% / 34% 34% 12% 12%;  /* the signature arch radius */
  --r:          20px;
  --r-lg:       28px;
  --wrap:       1120px;
  --font-d: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-b: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.66;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); }

/* ---- focus (accessibility) ---- */
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* ---- eyebrow + crayon squiggle signature ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marigold-d);
  margin-bottom: .5rem;
}
.squiggle { display: block; width: 118px; height: 11px; margin: .1rem 0 1.1rem; color: var(--marigold); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head .squiggle { margin-inline: auto; }
.section-head p { max-width: 40rem; margin-inline: auto; color: var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  --c: var(--marigold);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-d); font-weight: 500; font-size: 1.02rem;
  padding: .82rem 1.55rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--marigold); color: #4a2e00; box-shadow: 0 10px 22px -10px rgba(244,167,44,.9); }
.btn-primary:hover { background: #ffb63f; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(240,101,74,.85); }
.btn-coral:hover { background: #f5765d; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--marigold); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,247,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.logo-chip { width: 50px; height: 50px; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 5px 14px -5px rgba(60,44,20,.45); border: 3px solid #fff; outline: 2px solid var(--marigold); outline-offset: 0; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .logo-chip, .brand:focus-visible .logo-chip { transform: rotate(-7deg) scale(1.05); }
.brand-tag { display: flex; flex-direction: column; font-family: var(--font-d); font-weight: 600; font-size: 1.16rem; line-height: 1.02; color: var(--ink); }
.brand-tag small { font-family: var(--font-b); font-weight: 700; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .logo-chip { transition: none; } }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: .3rem; }
.site-nav a { font-family: var(--font-d); font-weight: 500; color: var(--ink); padding: .5rem .8rem; border-radius: 999px; font-size: 1rem; }
.site-nav a:hover { text-decoration: none; background: var(--paper-2); }
.site-nav a.active { color: var(--marigold-d); }
.site-nav .btn { margin-inline-start: .4rem; padding: .6rem 1.15rem; font-size: .95rem; }
.nav-toggle { display: none; margin-inline-start: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---- section rhythm ---- */
.block { padding: clamp(3.4rem, 7vw, 5.6rem) 0; }
.tint  { background: var(--paper-2); }
.tint-mint { background: var(--paper-3); }

/* ---- hero ---- */
.hero { padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.hero-copy .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .55rem .95rem; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-family: var(--font-d); font-size: 1.06rem; }
.fact span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* the signature arch-topped hero photo */
.hero-photo { position: relative; }
.arch { border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-photo .arch img { aspect-ratio: 5 / 6; }
/* playful floating shapes */
.blob { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); opacity: .5; }
.blob.a { width: 120px; height: 120px; background: var(--marigold); top: -22px; left: -30px; }
.blob.b { width: 80px;  height: 80px;  background: var(--teal);     bottom: 30px; right: -26px; opacity: .4; }
.badge-float { position: absolute; bottom: 18px; left: -14px; background: #fff; border-radius: 16px; padding: .6rem .9rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .55rem; font-family: var(--font-d); font-weight: 500; }
.badge-float .ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--coral); }
.badge-float .ring svg { width: 19px; height: 19px; }
.badge-float small { display: block; font-family: var(--font-b); font-weight: 700; font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ---- enroll banner ---- */
.enroll { background: linear-gradient(120deg, var(--marigold) 0%, #ffbf4d 100%); color: #4a2e00; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; box-shadow: var(--shadow); }
.enroll .txt { flex: 1 1 20rem; }
.enroll .eyebrow { color: #7a4a00; }
.enroll h2 { color: #3f2800; margin-bottom: .25rem; }
.enroll p { margin: 0; color: #5a3a00; }
.enroll .camp { display: inline-block; margin-top: .7rem; background: rgba(255,255,255,.55); border-radius: 999px; padding: .3rem .85rem; font-family: var(--font-d); font-weight: 500; font-size: .92rem; }

/* ---- value cards ---- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value { background: var(--card); border-radius: var(--r); padding: 1.5rem 1.3rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem; }
.ic svg { width: 27px; height: 27px; }
.value h3 { margin-bottom: .35rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* crayon color chips (icon backgrounds) */
.c-coral    { background: #fde4dd; color: var(--coral); }
.c-teal     { background: #d8f0ec; color: var(--teal); }
.c-marigold { background: #fdeccb; color: var(--marigold-d); }
.c-plum     { background: #e8e1f7; color: var(--plum); }
.c-sky      { background: #d9eef6; color: var(--sky); }

/* ---- facilities grid ---- */
.facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fac { display: flex; gap: .95rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.15rem; box-shadow: var(--shadow-sm); transition: transform .16s ease; }
.fac:hover { transform: translateY(-3px); }
.fac .ic { width: 46px; height: 46px; border-radius: 13px; flex: none; margin: 0; }
.fac .ic svg { width: 24px; height: 24px; }
.fac h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.fac p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery-grid.compact { grid-template-columns: repeat(3, 1fr); }
.gcell { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.gcell:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow); }
.gcell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.gcell:nth-child(4n+1) { border-top-left-radius: 40px; }
.gcell:nth-child(4n)   { border-top-right-radius: 40px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(30,22,10,.86); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1.2rem; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); border: 5px solid #fff; }
.lb button { position: absolute; top: 1rem; right: 1.2rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow); }

/* ---- app band ---- */
.app-band { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem 2rem; align-items: center; }
.app-icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: var(--shadow); border: 4px solid #fff; }
.store-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.store { display: inline-flex; align-items: center; gap: .55rem; background: var(--ink); color: #fff; border-radius: 14px; padding: .6rem 1.05rem; font-family: var(--font-d); font-weight: 500; }
.store:hover { text-decoration: none; background: #43403d; }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-family: var(--font-b); font-weight: 700; font-size: .64rem; letter-spacing: .06em; opacity: .8; }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.prose p { font-size: 1.06rem; }
.prose .lead { font-size: 1.22rem; color: var(--ink); font-family: var(--font-d); font-weight: 400; }
.callout { background: var(--paper-3); border-radius: var(--r); padding: 1.5rem 1.6rem; margin-top: 1.4rem; border-left: 5px solid var(--teal); }
.callout h3 { color: var(--teal); }
.callout p { margin: 0; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; margin: 0; }
.info-list .ic svg { width: 21px; height: 21px; }
.info-list b { font-family: var(--font-d); font-weight: 500; }
.map-embed { border: 1px solid var(--line); width: 100%; height: 240px; border-radius: var(--r); box-shadow: var(--shadow-sm); margin-top: .4rem; background: var(--paper-3); display: block; }
.map-cap { display: block; margin-top: .55rem; font-size: .88rem; color: var(--ink-soft); }
.map-cap a { font-family: var(--font-d); }

/* form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.contact-form label { display: block; margin-bottom: .9rem; }
.contact-form label span { display: block; font-family: var(--font-d); font-weight: 500; font-size: .92rem; margin-bottom: .3rem; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--marigold); outline: none; background: #fff; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-status.ok  { background: #e5f4ea; color: #1f7a41; border: 1px solid #b6e0c4; }
.form-status.bad { background: #fdeaea; color: #b12a2a; border: 1px solid #f3c4c4; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #efe9df; padding: clamp(2.6rem, 5vw, 3.6rem) 0 1.6rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem 2rem; }
.site-footer .brand-tag { color: #fff; }
.site-footer .brand-tag small { color: #b8b1a6; }
.site-footer p { color: #c7c0b5; font-size: .95rem; max-width: 26rem; }
.foot-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #b8b1a6; font-family: var(--font-b); font-weight: 700; margin-bottom: .7rem; }
.foot-col a, .foot-col span { display: block; color: #e6e0d6; padding: .18rem 0; font-size: .96rem; }
.foot-col a:hover { color: var(--marigold); text-decoration: none; }
.foot-bottom { border-top: 1px solid #43403d; margin-top: 2.2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; color: #a49d92; font-size: .85rem; }
.foot-bottom a { color: #a49d92; }

/* ---- scroll reveal (progressive enhancement: hidden only when JS is on) ---- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .value, .fac, .gcell { transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 940px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-grid.compact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1rem; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem .6rem; }
  .site-nav .btn { margin: .4rem 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 24rem; margin-inline: auto; }
  .about-grid, .contact-grid, .app-band { grid-template-columns: 1fr; }
  .app-band { justify-items: center; text-align: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .values, .facilities { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
