/* WA Bright Kids Family Day Care
   Colours are taken from the logo; the deeper variants are for text so it stays readable. */

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Young Serif";
  src: url("assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF6EE;
  --paper-2: #F3EBDD;
  --card: #FFFDF9;
  --ink: #3D291A;          /* logo brown */
  --ink-soft: #6A5545;
  --line: #E4D7C4;          /* decorative rules only */
  --field-line: #958070;    /* form borders, 3:1 or better */
  --placeholder: #7A6656;

  --orange: #F9A21A;       /* logo */
  --sky: #00B8EE;          /* logo */
  --green: #8BC53F;        /* logo */
  --red: #EF4F23;          /* logo */

  --orange-text: #B85A06;
  --sky-text: #0A78AD;
  --green-text: #457D1C;

  --sky-tint: #E4F3F9;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 650; margin: 0 0 0.4em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover { text-decoration-color: currentColor; }
.link-plain { text-decoration: none; font-weight: 600; }
.link-plain:hover { text-decoration: underline; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.95rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sky-text); outline-offset: 3px; border-radius: 4px; }
.band-ink :focus-visible { outline-color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1.05rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2A1C11; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(251, 246, 238, .6); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-tree { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text img { width: 146px; height: auto; }
.brand-sub {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; text-decoration: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.header-call:hover { background: #2A1C11; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; max-width: 620px; margin-left: auto; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(40px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin-bottom: 8px; }
.facts > div:nth-child(1) dt { color: var(--orange-text); }
.facts > div:nth-child(2) dt { color: var(--sky-text); }
.facts > div:nth-child(3) dt { color: var(--green-text); }
.facts dd { margin: 0; color: var(--ink-soft); max-width: 22ch; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
#educators[hidden] + #contact { padding-top: 0; }
.band-sky { background: var(--sky-tint); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .muted { color: #D8C8B6; }

.intro { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.intro p { font-size: 1.2rem; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > div > p { max-width: 46ch; }

/* Leaf marker, after the leaves in the logo */
.points {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px clamp(32px, 6vw, 96px);
}
.points li { position: relative; padding-left: 44px; }
.points li::before,
.leaf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 100% 0;
  background: var(--orange);
}
.points li::before { top: 2px; }
.points li:nth-child(4n+2)::before { background: var(--sky); transform: rotate(90deg); }
.points li:nth-child(4n+3)::before { background: var(--green); }
.points li:nth-child(4n+4)::before { background: var(--red); transform: rotate(90deg); }
.points p { color: var(--ink-soft); max-width: 44ch; }

/* Hours */
.hours-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(61, 41, 26, .18); }
.hours-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(61, 41, 26, .18);
}
.hours-list strong { font-weight: 650; }
.hours-list span { color: var(--ink-soft); text-align: right; font-size: 1rem; }

/* Fees */
.fee-notes p { font-size: 1.15rem; }
.fee-notes p + p { margin-top: 1.1em; }

/* Steps */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-n { display: block; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 2.6rem; line-height: 1; margin-bottom: 16px; }
.steps li:nth-child(1) .step-n { color: var(--orange-text); }
.steps li:nth-child(2) .step-n { color: var(--sky-text); }
.steps li:nth-child(3) .step-n { color: var(--green-text); }
.steps p { color: var(--ink-soft); }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-weight: 650;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 100% 0;
  background: var(--orange);
  transition: transform .2s ease;
}
.faq details:nth-child(4n+2) summary::after { background: var(--sky); }
.faq details:nth-child(4n+3) summary::after { background: var(--green); }
.faq details:nth-child(4n+4) summary::after { background: var(--red); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; max-width: 58ch; }

/* Review */
.review {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px clamp(32px, 6vw, 96px);
}
.review > * { border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 56px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  max-width: 30ch;
  text-wrap: balance;
}
.quote figcaption { margin-top: 16px; font-weight: 600; }
.review-links { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; align-items: flex-start; }

/* Educators */
.band-ink h2 { max-width: 16ch; }
.band-ink p { color: #EADFD1; }
.list-title { font-size: 1.25rem; margin-bottom: 20px; }
.leaf-list { list-style: none; margin: 0 0 24px; padding: 0; }
.leaf-list li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid rgba(251, 246, 238, .16);
}
.leaf-list li:first-child { border-top: 1px solid rgba(251, 246, 238, .16); }
.leaf-list li::before { top: 18px; width: 16px; height: 16px; }
.leaf-list li:nth-child(4n+2)::before { background: var(--sky); }
.leaf-list li:nth-child(4n+3)::before { background: var(--green); }
.leaf-list li:nth-child(4n+4)::before { background: var(--red); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-info > p { max-width: 42ch; color: var(--ink-soft); }
.contact-block { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
address { font-style: normal; margin-bottom: 8px; }

.open-status {
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
  margin: -2px 0 10px;
}
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B8A898; }
.open-status.is-open { color: var(--green-text); }
.open-status.is-open::before { background: var(--green); }

.hours { border-collapse: collapse; width: 100%; max-width: 340px; margin-bottom: 12px; }
.hours th, .hours td { padding: 6px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }

.enquiry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.enquiry h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 6px; }
.enquiry > p.muted { margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { border-color: var(--sky-text); background: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #C2391B; border-width: 2px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form-error { color: #B3341A; font-weight: 600; font-size: 1rem; }
.form-sent, .form-done {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #EEF6E6;
  font-size: 1rem;
}
.form-sent p + p { margin-top: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-button {
  font: inherit; font-weight: 600; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}

.map-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px);
}

.map {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Footer */
.site-footer { background: var(--paper-2); padding: 64px 0 40px; font-size: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-bottom { border-top: 1px solid var(--line); }
.footer-brand img { width: 180px; }
.footer-title { font-family: var(--sans); font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; }
.site-footer p { color: var(--ink-soft); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.acknowledgement { margin: 32px 0 16px; max-width: 70ch; color: var(--ink-soft); }
.legal { font-size: 0.875rem; color: var(--ink-soft); }

.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav ul { gap: 20px; }
  .header-call { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .header-call-number { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav ul {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open ul { display: flex; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav ul li:last-child a { border-bottom: 0; }

  .nav { order: 3; margin-left: 0; }
  .header-call { margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; margin: 0 auto; }
  .hero .actions .btn-ghost { display: none; }

  .split, .contact { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review { grid-template-columns: 1fr; }
  .review-links { border-top: 0; padding-top: 0; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 238, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .2s ease;
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; font-size: 1rem; white-space: nowrap; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }

  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div {
    padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px;
  }
  .facts dt { margin: 0; font-size: 2rem; }

  .actions .btn { flex: 1 1 100%; }
  .hero-art img { max-width: 220px; }
  .hero { padding-top: 16px; }
  .hours-list li { flex-direction: column; gap: 2px; }
  .hours-list span { text-align: left; }
  .field-row { flex-direction: column; gap: 0; }
  .map iframe { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .mobile-bar .btn { padding: 0 8px; gap: 6px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
