:root {
  /* Rainbow palette drawn from the Blessed Beginnings logo */
  --red: #e30613;
  --orange: #ec6608;
  --yellow: #ffc700;
  --green: #3aa935;
  --blue: #0072bc;
  --purple: #8f2d8f;

  --green-dark: color-mix(in srgb, var(--green), #000 15%);
  --cream: #fbf8f2;
  --cream-soft: color-mix(in srgb, var(--cream), #000 5%);
  --ink: #262626;
  --muted: #63665f;
  --accent: var(--orange);
  --accent-soft: #f6d9a8;
  --primary: var(--green);
  --primary-dark: color-mix(in srgb, var(--primary), #000 15%);
  --rainbow: linear-gradient(90deg, var(--red) 0 16.6%, var(--orange) 0 33.3%, var(--yellow) 0 50%, var(--green) 0 66.6%, var(--blue) 0 83.3%, var(--purple) 0 100%);
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 12px 30px rgba(67, 96, 60, 0.10);
  --maxw: 1120px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: 1.3rem; margin: 0 0 .3em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-soft { background: var(--cream-soft); }
.prose { max-width: 820px; }
.prose p, .split-copy p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .82rem; color: var(--accent); margin: 0 0 .6em; }
.note { color: var(--muted); font-style: italic; margin-top: 1.5rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; padding: 14px 28px; border-radius: 999px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--green-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,.07); }
.site-header::before { content: ""; display: block; height: 6px; background: var(--rainbow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-dark); }
.brand-logo { height: 62px; width: auto; display: block; }
.brand-mark { font-size: 1.7rem; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .98rem; }
.site-nav a:hover { background: var(--cream-soft); }
.site-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--green-dark); border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%); padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media img, .map { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map { border: 0; }

/* Page hero (inner pages) — color set per page via --hero-color */
.page-hero { background: var(--hero-color, var(--blue)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.92); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 6px solid var(--accent); }
.card:nth-child(1) { border-top-color: var(--red); }
.card:nth-child(2) { border-top-color: var(--green); }
.card:nth-child(3) { border-top-color: var(--blue); }
.card h3 { color: var(--ink); }
.card p { margin: 0; color: var(--muted); }

/* Staff */
.staff-grid { display: grid; gap: 26px; }
.staff-card { display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); align-items: start; }
.staff-photo img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.staff-body h3 { margin-bottom: 0; }
.staff-role { color: var(--accent); font-family: var(--font-head); font-weight: 600; margin: 0 0 .6em; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 38px; }
.check-list li::before { content: "✿"; position: absolute; left: 0; top: -2px; color: var(--accent); font-size: 1.3rem; }
.check-list li:nth-child(6n+1)::before { color: var(--red); }
.check-list li:nth-child(6n+2)::before { color: var(--orange); }
.check-list li:nth-child(6n+3)::before { color: var(--yellow); }
.check-list li:nth-child(6n+4)::before { color: var(--green); }
.check-list li:nth-child(6n+5)::before { color: var(--blue); }
.check-list li:nth-child(6n+6)::before { color: var(--purple); }

/* Schedule */
.schedule { display: grid; gap: 4px; }
.schedule-row { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 20px; border-radius: var(--radius); }
.schedule-row:nth-child(odd) { background: var(--cream-soft); }
.schedule-time { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); }
.schedule-detail h3 { margin-bottom: .2em; }
.schedule-detail p { margin: 0; color: var(--muted); }

/* Tuition table */
.tuition-table { display: grid; gap: 14px; max-width: 720px; }
.tuition-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); border-left: 6px solid var(--accent); }
.tuition-program { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.tuition-price { text-align: right; }
.tuition-price strong { display: block; color: var(--primary-dark); font-size: 1.1rem; }
.tuition-price span { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-block { margin-bottom: 28px; }
.contact-block h3 { color: var(--accent); }

/* Virtual tour */
.section-tour { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%); }
.tour-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.tour-head .lead { margin: 0 auto; }
.tour-video { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.tour-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border-top: 6px solid var(--accent); }
.testimonial:nth-child(1) { border-top-color: var(--red); }
.testimonial:nth-child(2) { border-top-color: var(--blue); }
.testimonial:nth-child(3) { border-top-color: var(--green); }
.testimonial:nth-child(4) { border-top-color: var(--purple); }
.testimonial blockquote { margin: 0 0 .8em; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.testimonial blockquote::before { content: "\201C"; color: var(--accent); font-family: Georgia, serif; font-size: 1.4em; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.testimonial figcaption { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); }

/* CTA band */
.cta-band { background: var(--primary-dark); }
.cta-inner { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.6em; }

/* Footer */
.site-footer { position: relative; background: #262a24; color: #e8e6dd; padding: 56px 0 28px; margin-top: 20px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-brand { font-size: 1.3rem; margin-bottom: .5em; }
.site-footer a { color: var(--accent-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-social { display: flex; gap: 18px; margin-top: 14px; }
.footer-social a { font-family: var(--font-head); font-weight: 600; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #b9b7ac; }

/* Flexible page builder blocks */
.block-heading { margin-bottom: .2em; }
.split-rev .split-media { order: 2; }
.block-image { margin: 0; }
.block-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0 auto; }
.block-image figcaption, .gallery figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.banner { background: var(--banner-color, var(--green)); color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; }
.banner h2 { color: #fff; margin-bottom: .3em; }
.banner p { color: rgba(255,255,255,.9); margin-bottom: 1.4em; }

/* Loading screen */
#site-loader { position: fixed; inset: 0; z-index: 9999; background: #ffffff; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
#site-loader::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--rainbow); }
#site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { height: 92px; width: auto; margin: 0 auto 24px; animation: loaderPulse 1.5s ease-in-out infinite; }
.loader-dots { display: flex; gap: 12px; justify-content: center; }
.loader-dots span { width: 14px; height: 14px; border-radius: 50%; animation: loaderBounce 1s infinite ease-in-out both; }
.loader-dots span:nth-child(1) { background: var(--red); animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { background: var(--green); animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { background: var(--blue); }
.loader-message { margin: 22px 0 0; color: var(--muted); font-family: var(--font-body); font-size: 1rem; }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
@keyframes loaderBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .loader-logo, .loader-dots span { animation: none; } }

/* Friendly "page not found" page */
.notfound { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.notfound-inner { max-width: 620px; }
.notfound-logo { height: 120px; width: auto; margin: 0 auto 28px; }
.notfound h1 { margin-bottom: .3em; }
.notfound .lead { margin: 0 auto 1.8em; }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; width: 100%; }
  body.nav-open .site-nav { display: block; }
  body.nav-open .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; width: 100%; padding-top: 12px; }
  .site-nav a { display: block; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split-rev .split-media { order: 0; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tuition-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tuition-price { text-align: left; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-photo img { max-width: 220px; }
  .schedule-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
