/* ══════════════════════════════════════════════════════════════════
   Little Way Playschool — homepage in the units.gr register.
   Sticky numbered left rail + a bento of big rounded solid-color blocks,
   a scrolling marquee, and BLACK-ON-BRIGHT text (the units.gr contrast rule).
   Brand-faithful: teal-led palette, Quicksand/Urbanist, the school's own art.
   Built on the tokens + .shell/.side-nav in styles.css.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --r-block: 26px;
  --ink-on: #211a20;   /* near-black for text on bright brand colors (high contrast) */
  --gap: 16px;
}

body.home-body { background: var(--cream); }

/* ── Left rail additions (units-style CTA + social) ──────────────── */
.side-nav__brand img { width: 100%; height: auto; }
.side-nav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.side-nav__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pink); color: #fff; border-radius: 16px; padding: 15px 12px;
  font-family: var(--disp); font-weight: 600; font-size: 15px; line-height: 1.15; text-align: center;
  box-shadow: 0 6px 18px rgba(231,84,128,.32); transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.side-nav__cta:hover { transform: translateY(-2px); text-decoration: none; background: var(--pink-deep); box-shadow: 0 10px 24px rgba(231,84,128,.42); }
.side-nav__social { display: flex; gap: 6px; }
.side-nav__social a { flex: 1; display: grid; place-items: center; height: 40px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.side-nav__social a:hover { background: var(--plum); text-decoration: none; }

/* ── Content = bento grid of rounded blocks ──────────────────────── */
.uhome { max-width: 1320px; }
.ubento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); grid-auto-flow: dense; }

.ub {
  position: relative; overflow: hidden; border-radius: var(--r-block);
  padding: clamp(24px, 3vw, 40px); min-width: 0;
  display: flex; flex-direction: column;
}
a.ub { text-decoration: none; color: inherit; }
a.ub, .ub { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.ub:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(58,46,58,.16); text-decoration: none; }

/* Skins — bright blocks carry NEAR-BLACK text (units.gr contrast rule) */
.ub--teal  { background: var(--teal);  color: var(--ink-on); }
.ub--gold  { background: var(--gold);  color: var(--ink-on); }
.ub--green { background: var(--green); color: var(--ink-on); }
.ub--pink  { background: var(--pink);  color: var(--ink-on); }
.ub--cream { background: var(--cream-2); color: var(--ink); border: 1px solid var(--border); }
.ub--paper { background: #fff; color: var(--ink); border: 1px solid var(--border); }
/* Deep blocks carry WHITE text */
.ub--plum  { background: var(--plum-deep); color: #fff; }

/* Spans */
.sp3 { grid-column: span 3; } .sp4 { grid-column: span 4; } .sp5 { grid-column: span 5; }
.sp6 { grid-column: span 6; } .sp7 { grid-column: span 7; } .sp8 { grid-column: span 8; }
.sp12 { grid-column: span 12; }
.rows2 { grid-row: span 2; }

/* Shared type inside blocks */
.ub .kick { font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; margin-bottom: 12px; }
.ub h2 { font-family: var(--disp); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(26px, 3.4vw, 44px); }
.ub h3 { font-family: var(--disp); font-weight: 600; letter-spacing: -.01em; font-size: clamp(22px, 2.4vw, 30px); }
.ub p { font-size: 16px; line-height: 1.55; }
.ub .arrow { margin-top: auto; padding-top: 18px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }

/* ── Hero block ──────────────────────────────────────────────────── */
.uhero { grid-column: span 12; min-height: 60vh; padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.uhero .dof { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.uhero .dof .orb { position: absolute; border-radius: 50%; }
.uhero .dof .o1 { width: 40vw; height: 40vw; left: -10%; top: -20%; background: radial-gradient(circle at 40% 40%, rgba(75,194,195,.5), transparent 66%); filter: blur(28px); }
.uhero .dof .o2 { width: 30vw; height: 30vw; right: -6%; bottom: -18%; background: radial-gradient(circle at 50% 50%, rgba(235,180,83,.42), transparent 66%); filter: blur(30px); }
.uhero .dof .o3 { width: 24vw; height: 24vw; right: 24%; top: 6%; background: radial-gradient(circle at 50% 50%, rgba(231,84,128,.28), transparent 68%); filter: blur(34px); }
.uhero__in { position: relative; z-index: 1; }
.uhero__logo { width: min(320px, 60%); height: auto; display: block; margin-bottom: 26px; }
.uhero h1 { font-family: var(--disp); font-weight: 600; letter-spacing: -.025em; line-height: 1.0;
  font-size: clamp(32px, 4.6vw, 60px); color: var(--ink); max-width: 15ch; }
.uhero h1 .turn { color: var(--plum); }
.uhero__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.5; margin-top: 18px; max-width: 30ch; text-wrap: balance; }
.uhero__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  background: var(--pink); color: #fff; font-family: var(--body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill); box-shadow: 0 10px 26px rgba(231,84,128,.34);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.uhero__cta:hover { transform: translateY(-2px); text-decoration: none; background: var(--pink-deep); box-shadow: 0 14px 32px rgba(231,84,128,.44); }
.uhero__art { position: relative; z-index: 1; display: grid; place-items: center; }
.uhero__art img { width: min(78%, 340px); height: auto; filter: drop-shadow(0 20px 44px rgba(58,46,58,.2)); }
@media (max-width: 820px) { .uhero { grid-template-columns: 1fr; min-height: 0; } .uhero__art { display: none; } }

/* ── Marquee ticker ──────────────────────────────────────────────── */
.umarquee { grid-column: span 12; background: var(--plum-deep); color: #fff; border-radius: var(--r-pill);
  overflow: hidden; padding: 14px 0; }
.umarquee__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marq 32s linear infinite; }
.umarquee:hover .umarquee__track { animation-play-state: paused; }
.umarquee span { font-family: var(--disp); font-weight: 600; font-size: 17px; padding: 0 8px; }
.umarquee .sep { color: var(--gold); padding: 0 22px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Program blocks (illustration + price + CTA) ─────────────────── */
.uprog { min-height: 320px; }
.uprog__art { width: 116px; height: 116px; object-fit: contain; margin: -6px 0 8px -6px; }
.uprog .price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 8px; font-family: var(--disp); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }
.uprog .price small { font-family: var(--body); font-weight: 700; font-size: 14px; opacity: .72; }
.uprog .pull { margin-top: 16px; font-family: var(--disp); font-weight: 500; font-size: 17px; line-height: 1.4; }

/* ── Chat block ──────────────────────────────────────────────────── */
.uchat { padding: clamp(20px, 2.4vw, 30px); }
.uchat .chatcard { max-width: none; margin: 0; width: 100%; border: 0; box-shadow: none; background: transparent; padding: 0; flex: 1; display: flex; flex-direction: column; }
.uchat .chat-log { flex: 1; min-height: 300px; max-height: 52vh; overflow-y: auto; }
.uchat .live-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; font-weight: 800; font-size: 13.5px; color: var(--green-deep); }
.uchat .live-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* ── Reviews block: switchable testimonial slider ────────────────── */
.urev { justify-content: flex-start; }
.urev-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.urev .score { display: flex; align-items: baseline; gap: 10px; }
.urev .score b { font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.urev .stars { color: var(--gold); }
.urev-viewport { flex: 1; display: flex; align-items: center; min-height: 148px; margin: 18px 0 6px; }
.urev-slide { margin: 0; opacity: 1; transition: opacity .32s var(--ease); }
.urev-slide.fade { opacity: 0; }
.urev .quote { font-family: var(--disp); font-weight: 500; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.42; letter-spacing: -.01em; }
.urev .who { display: block; margin-top: 14px; font-family: var(--script); font-size: 22px; opacity: .95; }
.urev-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.urev-nav { display: flex; gap: 8px; }
.urev-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1); color: #fff; font-size: 17px; cursor: pointer; display: grid; place-items: center;
  transition: background .16s var(--ease), border-color .16s var(--ease); }
.urev-btn:hover { background: rgba(255,255,255,.24); border-color: #fff; }
.urev-dots { display: flex; align-items: center; gap: 2px; }
/* 8px visible dot, 24px hit area (padding + content-box clip) */
.urev-dots button { width: 8px; height: 8px; padding: 8px; box-sizing: content-box; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.36); background-clip: content-box;
  transition: background .16s var(--ease), transform .16s var(--ease); }
.urev-dots button[aria-selected="true"] { background: #fff; background-clip: content-box; transform: scale(1.3); }
.urev-write { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 800; font-size: 14.5px; color: var(--plum-deep); background: #fff; border-radius: var(--r-pill);
  padding: 11px 20px; transition: transform .16s var(--ease); }
.urev-write:hover { transform: translateY(-2px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .urev-slide { transition: none; } }

/* ── Stat / proof block ──────────────────────────────────────────── */
.ustat .big { font-family: var(--disp); font-weight: 700; font-size: clamp(56px, 8vw, 88px); line-height: .9; }
.ustat .schools { font-size: 13.5px; opacity: .86; margin-top: 14px; line-height: 1.6; }
.ustat .ib { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.92); color: var(--plum-deep); padding: 8px 15px; border-radius: var(--r-pill); }

/* ── Pathway block ───────────────────────────────────────────────── */
.upath .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.upath .pill { color: #fff; }

/* ── Big CTA block ─ pink is the call-to-action role ──────────────── */
.ucta { grid-column: span 12; text-align: center; align-items: center; padding: clamp(36px, 5vw, 60px);
  background: var(--pink); color: #fff; }
.ucta .hand { font-family: var(--script); font-weight: 500; font-size: clamp(24px, 3vw, 36px); opacity: .92; }
.ucta h2 { max-width: 18ch; margin: 8px auto 6px; }
.ucta p { max-width: 46ch; margin: 0 auto; opacity: .92; }
.ucta__btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; background: #fff; color: var(--pink-deep);
  font-family: var(--body); font-weight: 700; font-size: 17px; padding: 16px 32px; border-radius: var(--r-pill);
  box-shadow: 0 10px 26px rgba(0,0,0,.14); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.ucta__btn:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.ucta :focus-visible { outline-color: #fff; }

/* ── Footer: two frames — brand-tinted map + contact details ─────── */
.umap { padding: 0; min-height: 320px; position: relative; }
.umap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(.4) sepia(.6) hue-rotate(122deg) saturate(1.3) brightness(.9) contrast(1.03); }
.umap-tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(125deg, rgba(75,194,195,.34), rgba(58,46,58,.22)); }
.umap-open { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-lift); }
.umap-open:hover { text-decoration: none; transform: translateY(-2px); }

.ufoot { background: var(--ink); color: #e8ddE8; justify-content: flex-start; }
.ufoot .fb { font-family: var(--disp); font-weight: 600; font-size: 22px; color: #fff; }
.ufoot-addr { color: #cdbecd; font-size: 15px; line-height: 1.7; margin-top: 8px; }
.ufoot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800;
  font-size: 14px; padding: 12px 18px; min-height: 44px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease); }
.fbtn:hover { transform: translateY(-2px); text-decoration: none; }
.fbtn--call { background: var(--teal); color: #0c3c3d; }
.fbtn--wa   { background: var(--green); color: #163600; }
.fbtn--copy, .fbtn--ig { background: transparent; border: 1.5px solid rgba(255,255,255,.32); color: #fff; }
.fbtn--copy:hover, .fbtn--ig:hover { background: rgba(255,255,255,.12); }
.fbtn--copy.copied { background: var(--gold); color: #4a3200; border-color: var(--gold); }
.ufoot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.ufoot-links a { color: #cdbecd; font-size: 14px; font-weight: 700; }
.ufoot-links a:hover { color: #fff; }
.ufoot-copy { margin-top: auto; padding-top: 22px; font-size: 13px; color: #9d8e9d; }
@media (max-width: 760px) { .umap { min-height: 240px; } }

/* ── Responsive collapse of the 12-col grid ──────────────────────── */
@media (max-width: 1080px) {
  .sp3,.sp4,.sp5 { grid-column: span 6; }
  .sp6,.sp7,.sp8 { grid-column: span 12; }
  .rows2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .ubento { grid-template-columns: 1fr; }
  .ub, .sp3,.sp4,.sp5,.sp6,.sp7,.sp8,.sp12,.uhero,.umarquee,.ucta,.ufoot { grid-column: 1 / -1; }
  .uhero { min-height: 0; }
}

/* ── Reveal + reduced motion ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .umarquee__track { animation: none; }
}
