/* Bizzy Bunch Preschool — public marketing site (v2 mockup)
   Mobile-first, system fonts only, no external requests.
   Lead brand color: #C8102E. Playful supporting tints for sections and cards. */

:root {
  --red: #C8102E;
  --red-dark: #9B0C24;
  --red-deep: #7A091C;
  --red-soft: #FDECEE;
  --red-mid: #F5C4CC;
  --white: #FFFFFF;
  --cream: #FFF8F6;
  --ink: #1A1515;
  --muted: #5A5151;
  --line: #E8D0D3;
  --sky: #D7F0FB;
  --sky-deep: #0A5A75;
  --sky-mid: #7EC8E0;
  --sun: #FFF9D6;
  --sun-deep: #6B4E00;
  --sun-mid: #E6C04A;
  --mint: #D4F3E6;
  --mint-deep: #0B6B45;
  --mint-mid: #6DC49A;
  --pink: #FDE2E7;
  --pink-deep: #9B0C24;
  --pink-mid: #EFA3B0;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(200, 16, 46, 0.06), 0 10px 28px rgba(200, 16, 46, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 1080px;
  --focus: 2px solid var(--red);
  --wave-h: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); }

a:hover { color: var(--red); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  color: var(--red-deep);
}

h1 { font-size: clamp(1.85rem, 6.2vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.05rem); }
h3 { font-size: 1.15rem; color: var(--ink); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.125rem;
  color: var(--ink);
}

.muted { color: var(--muted); }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 40;
  text-decoration: none;
  font-weight: 650;
}
.skip-link:focus { left: 0; color: var(--white); }

/* Placeholders — dashed outline on white so they stay clear on yellow/tinted sections,
   on the red hero, and in the footer. */
.tbc {
  display: inline;
  background: var(--white);
  color: var(--ink);
  padding: 0.07em 0.42em;
  border-radius: 5px;
  border: 2px dashed var(--red-deep);
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.72rem 1.25rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(122, 9, 28, 0.25);
}
.btn:hover,
.btn:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}
.btn:focus-visible { outline-offset: 3px; }

.btn-secondary {
  background: var(--white);
  color: var(--red-dark);
  border-color: var(--red);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--pink);
  color: var(--red-deep);
  border-color: var(--red-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  align-items: center;
  margin: 1.25rem 0 0;
}

/* Header — white so the line-art logo stays crisp, with a crayon-stripe accent */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 0;
  backdrop-filter: saturate(160%) blur(8px);
}

.site-header::after {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg,
    #C8102E 0 20%,
    #F5C44C 20% 40%,
    #3D9AD7 40% 60%,
    #2EBA7A 60% 80%,
    #F07A3D 80% 100%);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 1.15rem 0.7rem;
  max-width: calc(var(--max) + 0.5rem);
  margin: 0 auto;
}

.brand {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: 138px;
  height: auto;
}
.brand:hover,
.brand:focus-visible { opacity: 0.92; }

.header-enroll {
  margin-left: auto;
  padding: 0.58rem 1.05rem;
  font-size: 0.98rem;
}

.site-nav {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red-dark);
  background: var(--red-soft);
}
.site-nav a[aria-current="page"] {
  color: var(--red-dark);
  background: var(--red-soft);
}
.site-nav .enroll-btn { display: none; }

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0.65rem 1.25rem 0.75rem;
  }
  .brand img { width: 168px; }
  .header-enroll { display: none; }
  .site-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.15rem 0.2rem;
  }
  .site-nav a { font-size: 1rem; padding: 0.45rem 0.7rem; }
  .site-nav .enroll-btn {
    display: inline-flex;
    margin-left: 0.45rem;
    padding: 0.62rem 1.15rem;
  }
}

/* Decorative shapes */
.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
}
.blob-yellow { background: #FFF3B0; }
.blob-sky { background: #7DD3F0; }
.blob-mint { background: #7EE0B0; }
.blob-white { background: rgba(255, 255, 255, 0.18); }
.blob-a { width: 170px; height: 170px; top: -60px; left: -50px; opacity: 0.35; }
.blob-b { width: 130px; height: 130px; right: 6%; bottom: 8%; opacity: 0.28; }
.blob-c { width: 90px; height: 90px; right: -28px; top: 18%; opacity: 0.3; }
.blob-d { width: 70px; height: 70px; left: 38%; top: -20px; opacity: 0.22; border-radius: 40% 60% 55% 45%; }

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.dot-lg { width: 18px; height: 18px; }
.d1 { left: 8%; bottom: 22%; }
.d2 { left: 22%; bottom: 12%; width: 8px; height: 8px; }
.d3 { right: 28%; top: 16%; }
.d4 { right: 18%; top: 28%; width: 8px; height: 8px; background: #FFF3B0; opacity: 0.55; }
.d5 { left: 48%; bottom: 18%; background: #7EE0B0; opacity: 0.45; }

/* Hero + inner page heroes: bold red band, white type */
.hero,
.page-hero {
  position: relative;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 2.15rem 0 3.7rem;
}

.hero .wrap,
.page-hero .wrap { position: relative; z-index: 1; }

.hero h1,
.page-hero h1,
.hero h2,
.page-hero h2 { color: var(--white); }

.hero .lede,
.page-hero .lede,
.hero p,
.page-hero p { color: var(--white); }

.hero .eyebrow,
.page-hero .eyebrow { color: #FFF3B0; }

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-badge {
  width: min(100%, 250px);
}

.hero-logo { width: 100%; height: auto; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

/* Invert buttons on red bands so they stay visible */
.hero .btn,
.page-hero .btn,
.cta-band .btn {
  background: var(--white);
  color: var(--red-dark);
  border-color: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.hero .btn:hover,
.hero .btn:focus-visible,
.page-hero .btn:hover,
.page-hero .btn:focus-visible,
.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  background: #FFF3B0;
  color: var(--red-deep);
  border-color: #FFF3B0;
}
.hero .btn-secondary,
.page-hero .btn-secondary,
.cta-band .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}
.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible,
.page-hero .btn-secondary:hover,
.page-hero .btn-secondary:focus-visible,
.cta-band .btn-secondary:hover,
.cta-band .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: var(--white);
}

.page-hero { padding: 2.2rem 0 3.5rem; text-align: center; }
.page-hero .wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero .actions { justify-content: center; }

@media (min-width: 840px) {
  .hero { padding: 2.9rem 0 4rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 2.6rem;
  }
  .hero-badge { width: 100%; }
  .hero-copy { order: -1; }
  .page-hero { padding: 2.6rem 0 3.8rem; }
}

/* Wavy section dividers */
.wave {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--wave-h);
  margin: 0;
  transform: translateY(-100%);
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  color: inherit;
}
.wave svg {
  width: 100%;
  height: var(--wave-h);
  display: block;
  fill: currentColor;
}
.section-sky > .wave,
.section-sky { --wave-fill: var(--sky); }
.section-sun > .wave,
.section-sun { --wave-fill: var(--sun); }
.section-mint > .wave,
.section-mint { --wave-fill: var(--mint); }
.section-pink > .wave,
.section-pink { --wave-fill: var(--pink); }
.cta-band > .wave { color: var(--red); }
.site-footer > .wave { color: var(--red-dark); }
.section-sky > .wave { color: var(--sky); }
.section-sun > .wave { color: var(--sun); }
.section-mint > .wave { color: var(--mint); }
.section-pink > .wave { color: var(--pink); }

/* Sections */
.section {
  position: relative;
  padding: 2.7rem 0 3.6rem;
}
.section-sky { background: var(--sky); }
.section-sun { background: var(--sun); }
.section-mint { background: var(--mint); }
.section-pink { background: var(--pink); }

.section-intro {
  font-size: 1.08rem;
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section h2 + .section-intro { margin-top: -0.15rem; }

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.25rem;
  overflow: hidden;
  position: relative;
}
.card-accent { padding-top: 1.45rem; }
.card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: var(--card-accent, var(--red));
}
.card-pink {
  background: #FFE8ED;
  border-color: #EFA3B0;
  --card-accent: #C8102E;
}
.card-sky {
  background: #DFF3FB;
  border-color: #8ECDE4;
  --card-accent: #1A8AB3;
}
.card-sun {
  background: #FFD56A;
  border-color: #C99614;
  --card-accent: #C99614;
}
.card-mint {
  background: #D8F3E6;
  border-color: #7DC9A5;
  --card-accent: #1FA971;
}
.card h3 { margin-bottom: 0.45em; }
.card p { margin-bottom: 0.7em; color: var(--ink); }
.card .card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--red-dark);
}
.card .card-link:hover { text-decoration: underline; color: var(--red); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--card-accent, var(--red));
}
.card-icon svg { width: 26px; height: 26px; display: block; }

@media (min-width: 640px) {
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.card-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

/* Photo & map placeholders */
.photo-row {
  display: grid;
  gap: 1rem;
  margin: 0 0 0.25rem;
}
@media (min-width: 720px) {
  .photo-row-2 { grid-template-columns: 1fr 1fr; }
}

.photo-ph,
.map-ph {
  margin: 0;
  background: var(--white);
  border: 3px dashed var(--red-mid);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem 1rem;
  gap: 0.7rem;
  color: var(--red);
}
.photo-ph-sky {
  background: #E8F6FC;
  border-color: #5EB3D1;
  color: var(--sky-deep);
}
.photo-ph-mint {
  background: #E5F7EE;
  border-color: #5CBC8F;
  color: var(--mint-deep);
}
.photo-ph svg,
.map-ph svg {
  width: 64px;
  height: 64px;
  display: block;
}
.map-ph {
  min-height: 260px;
  background: #E8F6FC;
  border-color: #5EB3D1;
  color: var(--red);
}
.map-embed {
  margin: 0;
  align-self: stretch;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-link { margin: 0.6rem 0 0; font-weight: 600; }
.contact-note { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); }
.photo-ph-wide { min-height: 240px; }
@media (min-width: 720px) {
  .photo-ph-wide { min-height: 300px; }
}

figcaption { font-size: 0.95rem; }

/* Info pairs */
.info-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon dt"
    "icon dd";
  gap: 0.15rem 0.75rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--white);
  border: 2px solid rgba(26, 21, 21, 0.06);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(200, 16, 46, 0.04);
}
.info-row .icon-wrap { grid-area: icon; margin-top: 0.05rem; }
.info-row dt {
  grid-area: dt;
  font-weight: 750;
  color: var(--red-deep);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.info-row dd { grid-area: dd; margin: 0; }

@media (min-width: 700px) {
  .info-row {
    grid-template-columns: auto 16rem 1fr;
    grid-template-areas: "icon dt dd";
    align-items: center;
    gap: 0.3rem 1rem;
  }
}

.icon-wrap {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--icon-bg, var(--red-soft));
  color: var(--icon-fg, var(--red));
}
.icon-wrap svg { width: 20px; height: 20px; display: block; }
.icon-red { --icon-bg: #FDE2E7; --icon-fg: #C8102E; }
.icon-sky { --icon-bg: #D7F0FB; --icon-fg: #0A5A75; }
.icon-sun { --icon-bg: #FFF0B8; --icon-fg: #6B4E00; }
.icon-mint { --icon-bg: #D4F3E6; --icon-fg: #0B6B45; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--red);
  color: var(--white);
  padding: 2.8rem 0 3.4rem;
  text-align: center;
  overflow: hidden;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: var(--white);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .actions { justify-content: center; }

/* Contact layout */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.3rem;
  border: 2px solid #c5e4f0;
}

.contact-details {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.contact-details div {
  padding: 0.85rem 0 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details div:last-child { border-bottom: 0; }
.contact-details dt {
  font-weight: 750;
  color: var(--red-deep);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-details dd { margin: 0; }

/* Enrollment inquiry */
#enroll { scroll-margin-top: 6.5rem; }

.enroll-panel {
  background: var(--white);
  border: 2px solid var(--pink-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem 1.6rem;
  border-top: 10px solid var(--red);
}
@media (min-width: 720px) {
  .enroll-panel { padding: 1.85rem 1.8rem 1.95rem; }
}

.form-note {
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--red-deep);
  font-weight: 600;
  margin: 0 0 1.15rem;
}

.inquiry-form {
  display: grid;
  gap: 0.95rem;
  max-width: 36rem;
}
.field { display: grid; gap: 0.3rem; }
.field label {
  font-weight: 700;
  font-size: 0.95rem;
}
.req {
  color: var(--red-dark);
  font-weight: 750;
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d7b8bc;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  appearance: none;
}
textarea { min-height: 8rem; resize: vertical; }

input:focus-visible,
textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-color: var(--red);
}

.form-actions { margin-top: 0.3rem; }

#form-status {
  display: none;
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  border: 2px dashed var(--red-deep);
  border-radius: var(--radius-sm);
  font-weight: 650;
}
#form-status.is-visible { display: block; }

/* Footer */
.site-footer {
  position: relative;
  background: var(--red-dark);
  color: var(--white);
  padding: 2.8rem 0 1.6rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #FFE8EB; }
.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1.1rem 0;
}
.footer-nav a {
  text-decoration: none;
  font-weight: 650;
  padding: 0.15rem 0;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-tag {
  margin: 0.4rem 0 0;
  opacity: 0.92;
  font-size: 0.95rem;
}
.footer-legal {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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