/* Shared structure for the daycare sites. Every colour, font and shape comes
   from tokens that themes/<slug>.css defines; this file only lays things out. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: var(--text-base, clamp(1rem, 0.95rem + 0.25vw, 1.1rem));
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.1; margin: 0 0 0.6em; color: var(--heading, var(--ink)); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
address { font-style: normal; }
.wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }

.kicker { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; color: var(--kicker, var(--brand)); margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.section { padding-block: var(--space-section, clamp(4rem, 3rem + 5vw, 8rem)); position: relative; }
.sec-head { max-width: 44rem; margin-bottom: 2.5rem; }
.more { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border-radius: var(--btn-r, 999px); border: 2px solid transparent;
  font-family: var(--font-btn, var(--font-b)); font-weight: 700; text-decoration: none; font-size: 1rem;
  cursor: pointer;
  transition: transform var(--dur, 180ms) var(--ease, ease-out), box-shadow var(--dur, 180ms) var(--ease, ease-out), background-color var(--dur, 180ms);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-main { background: var(--brand); color: var(--brand-ink); box-shadow: var(--btn-shadow, none); }
.btn-ghost { background: transparent; color: var(--ghost-ink, var(--ink)); border-color: currentColor; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--link, var(--brand)); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform var(--dur, 180ms); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr-bg, var(--bg)); border-bottom: 1px solid var(--hdr-line, var(--line)); }
.hdr-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.hdr-nav { display: flex; gap: 0.25rem; }
.hdr-nav a { text-decoration: none; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 999px; transition: background-color var(--dur, 180ms); }
.hdr-nav a:hover { background: var(--nav-hover, var(--surface)); }
.hdr-nav a[aria-current="page"] { background: var(--nav-active, var(--surface)); color: var(--nav-active-ink, var(--ink)); }
.hdr-call { font-weight: 700; text-decoration: none; white-space: nowrap; padding: 0.6rem 1.1rem; border-radius: var(--btn-r, 999px); background: var(--brand); color: var(--brand-ink); }

/* Hero (layout only; each theme shapes it) */
.hero { position: relative; overflow: hidden; }
.hero video { width: 100%; height: 100%; object-fit: cover; }
.hero-frame, .hero-media { background: var(--surface) url("/assets/hero-poster.jpg") center / cover no-repeat; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-sub { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 34rem; color: var(--muted); }

/* Photo strip */
.strip { padding-top: clamp(2rem, 4vw, 4rem); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 2vw, 1.5rem); align-items: start; }
.strip-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Welcome / about */
.welcome-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facts li { padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; background: var(--chip-bg, var(--surface)); color: var(--chip-ink, var(--ink)); }

/* Ages */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.age { padding: 1.6rem; background: var(--card-bg, var(--surface)); border-radius: var(--card-r, 20px); }
.age h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem); margin-bottom: 0.4rem; }
.age-range { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.age-tag { font-weight: 600; }
.age-body { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Services */
.svcs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem 2rem; }
.svc { padding: 1.4rem 0 0; border-top: 2px solid var(--line); }
.svc-num { font-family: var(--font-d); font-weight: 700; color: var(--num, var(--brand)); font-size: 0.95rem; }
.svc h3 { margin: 0.35rem 0 0.4rem; }
.svc p { color: var(--muted); margin: 0; }
.day-in, .hours-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.day-in .svcs { grid-template-columns: 1fr; }
.hours-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.day-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--photo-r, 24px); }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours th, .hours td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours td { text-align: right; font-weight: 600; }
.hours .closed { color: var(--muted); }
.hours .closed td { font-weight: 400; }

/* CTA band */
.cta-band { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--cta-bg, var(--brand)); color: var(--cta-ink, var(--brand-ink)); position: relative; overflow: hidden; }
.cta-band h2 { color: inherit; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; position: relative; }
.cta-in p { margin: 0; opacity: 0.9; max-width: 36rem; }
.cta-actions { margin-top: 0; }

/* Interior page banner */
.page-hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); max-width: 18ch; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.about-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--photo-r, 24px); }
.about-photos-sec { padding-top: 0; }

/* Contact */
.contact-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cform { display: grid; gap: 1rem; }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.cform input, .cform select, .cform textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--field-bg, #fff);
  border: 2px solid var(--line); border-radius: var(--field-r, 12px); padding: 0.75rem 0.9rem; min-height: 48px; width: 100%;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring, rgba(0, 0, 0, 0.08)); }
.cform-submit { justify-self: start; }
.cform-submit[disabled] { opacity: 0.6; cursor: progress; }
.cform-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.cform-status.is-ok { color: var(--ok, #1d7a46); }
.cform-status.is-err { color: var(--err, #b3261e); }
.place { padding: 1.75rem; border-radius: var(--card-r, 20px); background: var(--card-bg, var(--surface)); display: grid; gap: 0.6rem; justify-items: start; margin-bottom: 1.5rem; }
.place h3 { margin: 0; }
.place-phone { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; text-decoration: none; color: var(--link, var(--brand)); }
.place-email { word-break: break-all; }

/* Footer */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.foot h2 { color: inherit; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); margin-bottom: 0.3em; }
.foot-top { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.foot-logo { height: 120px; width: auto; background: var(--foot-logo-bg, #fff); border-radius: 20px; padding: 10px; box-sizing: content-box; }
.foot-copy p { margin: 0; opacity: 0.85; }
.btn-foot { background: var(--foot-btn-bg, #fff); color: var(--foot-btn-ink, var(--ink)); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--foot-line, rgba(255, 255, 255, 0.2)); font-size: 0.95rem; }
.foot-meta a { text-decoration-color: var(--foot-line, rgba(255, 255, 255, 0.4)); text-underline-offset: 3px; }
.foot-by { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--foot-line, rgba(255, 255, 255, 0.2)); }
.foot-by-card { display: block; flex: none; width: 168px; background: #fff; border-radius: 10px; overflow: hidden; transition: transform var(--dur, 180ms); }
.foot-by-card:hover { transform: translateY(-2px); }
.foot-by-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.foot-by-text { margin: 0; font-size: 0.9rem; display: grid; gap: 0.15rem; opacity: 0.85; }
.foot-by-text a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.foot-by-url { font-size: 0.82rem; opacity: 0.75; }
.callbar { display: none; }

/* Reveal (translate/opacity only; transform is reserved for parallax) */
.reveal { opacity: 0; translate: 0 18px; transition: opacity 600ms var(--ease, ease-out), translate 600ms var(--ease, ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Responsive */
@media (max-width: 1000px) {
  .ages { grid-template-columns: repeat(2, 1fr); }
  .hdr-nav a { padding-inline: 0.55rem; }
}
@media (max-width: 860px) {
  .hdr-nav, .hdr-call { display: none; }
  .hdr-in { min-height: 64px; }
  .brand img { height: 44px; }
  .welcome-in, .day-in, .hours-in, .contact-in { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; justify-items: start; }
  .foot-logo { height: 90px; }
  body { padding-bottom: 64px; }
  .callbar {
    display: grid; grid-template-columns: 2fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--brand); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
  }
  .callbar a { color: var(--brand-ink); text-align: center; font-weight: 700; padding: 1rem; text-decoration: none; }
  .callbar a + a { border-left: 1px solid rgba(255, 255, 255, 0.35); }
}
@media (max-width: 560px) {
  .ages { grid-template-columns: 1fr; }
  .cform .row { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: 1fr; }
  .brand-name { font-size: 0.98rem; }
  .foot-by { flex-direction: column; align-items: flex-start; }
}
/* Mobile nav: a compact row under the header instead of a hamburger. */
@media (max-width: 860px) {
  .hdr-nav { display: flex; order: 3; width: 100%; justify-content: space-between; padding-bottom: 0.6rem; }
  .hdr-in { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.5rem; }
  .hdr-nav a { font-size: 0.92rem; padding: 0.4rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-depth] { transform: none !important; }
}
