@import url("../fonts/fonts.css");

/* ============================================================
   Wee Kare Learning Center — faithful rebuild of the original
   WordPress/Elementor site as static HTML/CSS.

   Values below were measured from the live site's computed styles,
   not eyeballed:
     container   1140px
     type        Roboto 400/600/700/900
     blue        #0070C0        navy        #29235C
     tile grey   #DADADA        footer grey #EDEDED
     body        16px / 24px / #333
     tile radius 15px           card radius 30px
   ============================================================ */

:root {
  --blue: #0070c0;
  --navy: #29235c;
  --tile: #dadada;
  --band: #ededed;
  --ink: #333;
  --white: #fff;
  --shell: 1140px;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: Roboto, sans-serif; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:where(a, button):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Header
   ============================================================ */

.site-header { background: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 12px;
}

.brand img { width: 228px; }

.brand-note {
  border-left: 2px solid var(--blue);
  padding-left: 14px;
  max-width: 250px;
  display: grid;
  gap: 8px;
}
.brand-note p {
  font-size: 11px;
  line-height: 14px;
  color: var(--ink);
}
.brand-note__mail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.brand-note__mail img { width: 20px; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.main-nav a {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--blue);
  padding: 13px 16px;
}
.main-nav li + li { border-left: 1px solid #ccc; }
.main-nav ul { display: flex; align-items: center; }

.social-set { display: flex; gap: 8px; }
.social-set a { display: block; width: 46px; }
.social-set img { width: 100%; border-radius: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: 700 15px/1 Roboto, sans-serif;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .brand-note { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    order: 5;
    width: 100%;
    margin-left: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav li + li { border-left: 0; border-top: 1px solid #e2e2e2; }
  .site-header__inner { flex-wrap: wrap; }
  .social-set { margin-left: auto; }
}

/* ============================================================
   Hero slider
   The original scales its height with the viewport at roughly 4:1
   (measured 2411x596 on a wide display, 1485x360 on a laptop).
   ============================================================ */

.hero {
  position: relative;
  height: 580px;              /* measured on the live site */
  overflow: hidden;
  background: var(--blue);
}

.hero__viewport {
  position: relative;
  height: 100%;
}

/* each slide carries its own photo, as on the original */
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

/* No CSS overlay here on purpose: Web-12/13/14.jpg are pre-composed
   slides that already carry the blue fade on their left side. Adding a
   tint on top double-darkens them and washes out the photography. */

.hero__slide--s1 { background-image: url("../img/hero-12.jpg"); }
.hero__slide--s2 { background-image: url("../img/hero-13.jpg"); }
.hero__slide--s3 { background-image: url("../img/hero-14.jpg"); }

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  color: var(--white);
}

.hero__copy { max-width: 340px; }
.hero__heart { width: 110px; margin-bottom: 16px; }

.hero__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  color: var(--white);
  margin-bottom: 14px;
}

.hero__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

/* the "All staff members…" slide is centred and lighter */
.hero__slide--centered .hero__inner { text-align: center; }
.hero__slide--centered .hero__copy {
  max-width: 760px;
  margin-inline: auto;
}
.hero__statement {
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  color: var(--white);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0;
  color: rgb(255 255 255 / 0.85);
  font-size: 34px; line-height: 1;
  cursor: pointer;
}
.hero__arrow:hover { color: #fff; }
.hero__arrow--prev { left: 6px; }
.hero__arrow--next { right: 6px; }

.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 3;
  display: flex; justify-content: center; gap: 9px;
}
.hero__dots button {
  width: 9px; height: 9px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
}
.hero__dots button[aria-current="true"] { background: #fff; }

@media (max-width: 900px) {
  .hero { height: auto; }
  .hero__viewport { height: auto; }
  .hero__slide {
    position: static;
    display: none;
    padding-block: 46px 56px;
  }
  .hero__slide.is-active { display: flex; }
  .hero__copy { max-width: none; }
  .hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 79 138 / 0.62), rgb(0 79 138 / 0.80));
  }
}

/* ============================================================
   "Let's not forget … kids will be kids"
   ============================================================ */

.creed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding-block: 34px;
}
.creed h2 {
  font-size: 50px;
  font-weight: 600;
  line-height: 50px;
  color: var(--navy);
}
.creed img { width: 137px; }

@media (max-width: 700px) {
  .creed { gap: 14px; padding-block: 26px; }
  .creed h2 { font-size: 32px; line-height: 34px; }
  .creed img { width: 70px; }
}

/* ============================================================
   Navy band + the white curriculum card that sits on it
   ============================================================ */

.band { background: var(--navy); padding-top: 44px; }

.band__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 46px;
}

.point { display: flex; align-items: center; gap: 16px; }
.point img { height: 60px; width: auto; flex: none; }
.point p { font-size: 14px; line-height: 19px; color: var(--white); }

@media (max-width: 780px) {
  .band__points { grid-template-columns: 1fr; gap: 18px; }
}

.card {
  background: var(--white);
  border-radius: 30px;
  padding: 56px clamp(22px, 5vw, 66px) 66px;
}

.card h2 {
  font-size: 40px;
  font-weight: 900;
  line-height: 44px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 46px;
}

.card__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  margin-bottom: 46px;
}
.card__row:last-child { margin-bottom: 0; }
.card__row--flip .card__art { order: 2; }

.card__art { display: flex; justify-content: center; }
.card__art img { width: min(100%, 545px); }
.card__art--flower img { width: min(100%, 133px); }
.card__art--rocket img { width: min(100%, 220px); }
.card__art--calendar img { width: min(100%, 530px); }
.card__photo { margin-bottom: 40px; }
.card__photo img { width: 100%; border-radius: 8px; }

.card p { font-size: 16px; line-height: 24px; color: var(--ink); }

@media (max-width: 780px) {
  .card h2 { font-size: 28px; line-height: 32px; margin-bottom: 28px; }
  .card__row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  .card__row--flip .card__art { order: 0; }
  .card__art img { width: min(70%, 210px); }
}

.band__tail { height: 56px; background: var(--navy); }

/* ============================================================
   Services
   ============================================================ */

.services { padding-block: 56px 40px; }

.services__head { text-align: center; margin-bottom: 40px; }
.services__head h2 {
  font-size: 55px;
  font-weight: 900;
  line-height: 60px;
  color: var(--blue);
  text-transform: uppercase;
}
.services__head p {
  font-size: 40px;
  font-weight: 900;
  line-height: 44px;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 6px;
}

.services__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  background: var(--tile);
  border-radius: 15px;
  min-height: 178px;
  padding: 22px 12px 16px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  text-align: center;
  color: var(--blue);
  transition: background-color .18s ease;
}
.tile:hover { background: #cfcfcf; text-decoration: none; }
.tile img { height: 70px; width: auto; }
.tile span { font-size: 14px; line-height: 18px; }

.services__aside { text-align: center; }
.services__aside img { width: min(100%, 401px); margin: 0 auto 22px; }
.services__aside p {
  font-size: 35px;
  font-weight: 900;
  line-height: 39px;
  color: var(--blue);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .services__head h2 { font-size: 38px; line-height: 42px; }
  .services__head p { font-size: 24px; line-height: 28px; }
  .services__body { grid-template-columns: 1fr; gap: 32px; }
  .services__aside p { font-size: 24px; line-height: 28px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Video + partner logos
   ============================================================ */

.video { padding-block: 24px 40px; }
.video__frame {
  width: min(100%, 370px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.video__frame iframe { width: 100%; height: 100%; border: 0; }

/* Seven marks. Flex rather than grid so the final row of three centres
   instead of hanging left, and so marks can carry different widths. */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(16px, 2.6vw, 34px);
  row-gap: clamp(18px, 3vw, 34px);
  padding-block: 34px 48px;
}
/* Normalised by shape, not by one height: a square mark held to the same
   height as a 5:1 wordmark reads about half the size. */
.partners img { flex: 0 0 auto; width: 208px; height: 96px; object-fit: contain; }
.partners img.is-wide { width: 236px; height: 76px; }
.partners img.is-tall { width: 132px; height: 116px; }

@media (max-width: 860px) {
  .partners img { width: 168px; height: 80px; }
  .partners img.is-wide { width: 190px; height: 64px; }
  .partners img.is-tall { width: 108px; height: 96px; }
}
@media (max-width: 560px) {
  .partners img { width: 132px; height: 68px; }
  .partners img.is-wide { width: 148px; height: 54px; }
  .partners img.is-tall { width: 88px; height: 80px; }
}

/* ============================================================
   "What families say"
   ============================================================ */


.families {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  padding-bottom: 58px;
}
.families h2 {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
  max-width: 510px;
}
.families img { width: min(100%, 500px); }
@media (max-width: 800px) {
  .families h2 { font-size: 34px; line-height: 36px; }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--band); padding-top: 44px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr .8fr 1fr 1.25fr;
  gap: 28px;
  padding-bottom: 34px;
}

.site-footer h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: var(--blue);
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.site-footer ul { display: grid; gap: 6px; }
.site-footer a,
.site-footer li { font-size: 14px; line-height: 20px; color: var(--blue); }

.foot-brand img { width: 380px; margin-bottom: 16px; }
.foot-social { display: flex; gap: 8px; }
.foot-social a {
  width: 34px; height: 34px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
}
/* these PNGs already carry their own brand colours and backgrounds, so
   they are shown as-is — tinting them white erases the glyph entirely */
.foot-social img { width: 100%; height: 100%; object-fit: contain; }

.foot-fact { display: flex; gap: 12px; align-items: flex-start; }
.foot-fact img { width: 42px; flex: none; }
.foot-fact h2 { margin-bottom: 4px; }
.foot-fact p, .foot-fact a { font-size: 14px; line-height: 20px; display: block; }

.foot-map {
  border: 4px solid var(--blue);
  border-radius: 4px;
  overflow: hidden;
  min-height: 190px;
}
.foot-map iframe { width: 100%; height: 100%; min-height: 182px; border: 0; }

.colophon {
  border-top: 1px solid #dcdcdc;
  padding-block: 16px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: #555;
}
.colophon a { color: #555; }

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Legal / prose pages (privacy policy)
   ============================================================ */

.legal { padding-block: 40px 60px; }
.legal__inner { max-width: 760px; }
.legal h1 {
  font-size: 40px; font-weight: 900; line-height: 44px;
  color: var(--navy); margin-bottom: 10px;
}
.legal .dates {
  font-size: 14px; line-height: 21px; color: #666;
  padding-bottom: 20px; border-bottom: 1px solid #e0e0e0; margin-bottom: 30px;
}
.legal h2 {
  font-size: 24px; font-weight: 700; line-height: 30px; color: var(--navy);
  margin-top: 38px; margin-bottom: 10px;
  padding-top: 24px; border-top: 1px solid #e8e8e8;
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 17px; font-weight: 700; color: var(--blue); margin: 22px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 25px; margin-bottom: 12px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li::marker { color: var(--blue); }
.legal a { font-weight: 500; text-decoration: underline; }
.legal__contact {
  margin-top: 14px; padding: 20px 24px;
  background: var(--band); border-radius: 15px;
}
.legal__contact p { margin-bottom: 4px; }
.legal__contact p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .legal h1 { font-size: 28px; line-height: 32px; }
  .legal h2 { font-size: 20px; line-height: 26px; }
}

/* ============================================================
   Forms — shared field styling for the hero quick form and the
   full contact form.
   ============================================================ */

.field { display: grid; gap: 5px; margin: 0 0 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.field label,
.bigform legend {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--navy);
}
.field label span { color: var(--blue); }

.field input,
.field select,
.field textarea {
  font: 400 15px/22px Roboto, sans-serif;
  color: var(--ink);
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8cdd6;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(0 112 192 / 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; background: #fdf6f5; }

.field-error { font-size: 13px; line-height: 18px; color: #c0392b; }

/* honeypot — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-solid {
  font: 700 16px/1 Roboto, sans-serif;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
.btn-solid:hover { background: #005493; transform: translateY(-1px); }
.btn-solid:disabled { opacity: .6; cursor: default; transform: none; }

.form-note { font-size: 12px; line-height: 18px; color: #667; margin-top: 12px; }
.form-note a { text-decoration: underline; }

.form-status { font-size: 14px; line-height: 20px; margin-top: 10px; }
.form-status:empty { margin-top: 0; }
.form-status.is-ok { color: #17703f; font-weight: 500; }
.form-status.is-err { color: #c0392b; font-weight: 500; }

.check { display: flex; align-items: center; gap: 8px; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check label { font-size: 15px; line-height: 20px; color: var(--ink); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* ---- hero quick form ---- */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__overlay-inner { display: flex; justify-content: flex-end; width: 100%; }

.quickform {
  pointer-events: auto;
  width: 360px;
  max-width: 100%;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(4px);
  border-radius: 15px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 46px -18px rgb(0 0 0 / 0.45);
}
.quickform__title {
  font-size: 24px; font-weight: 900; line-height: 28px;
  color: var(--navy); margin-bottom: 4px;
}
.quickform__sub { font-size: 13px; line-height: 19px; color: #556; margin-bottom: 16px; }
.quickform .btn-solid { width: 100%; }

/* below 1040px the card would start covering the child in the slide
   photography, so it drops out of the hero and stacks underneath */
@media (max-width: 1040px) {
  .hero__overlay { position: static; display: block; pointer-events: auto; }
  .hero__overlay-inner { justify-content: center; padding-block: 26px 0; }
  .quickform { width: 100%; max-width: 440px; }

  /* the hero is now taller than the slider, so absolutely-positioned
     controls would centre against the form. Pin the dots back into flow
     and drop the arrows — the dots are the touch control anyway. */
  .hero { height: auto; padding-bottom: 30px; }
  .hero__arrow { display: none; }
  .hero__dots { position: static; padding-top: 14px; }
}

/* ---- full contact form ---- */

.contact { background: var(--band); padding-block: 54px 62px; }
.contact__head { max-width: 620px; margin-bottom: 30px; }
.contact__head h2 {
  font-size: 40px; font-weight: 900; line-height: 44px;
  color: var(--navy); margin-bottom: 10px;
}
.contact__head p { font-size: 16px; line-height: 24px; color: var(--ink); }
.contact__head a { text-decoration: underline; }

.bigform {
  background: #fff;
  border-radius: 15px;
  padding: clamp(22px, 4vw, 40px);
  max-width: 760px;
}
.bigform fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.bigform legend { padding: 0; margin-bottom: 8px; }
.fieldset-hint { font-size: 13px; line-height: 19px; color: #667; margin-bottom: 10px; }
.bigform fieldset .check-row { margin-bottom: 4px; }
.bigform > .check { margin: -6px 0 16px; }

@media (max-width: 700px) {
  .contact__head h2 { font-size: 28px; line-height: 32px; }
}
