/* Doodle Bugs CCLC — site stylesheet
   Designed to be edited rarely. Colors, fonts, and spacing are all defined
   once at the top so a small change can cascade through the site. */

:root {
  --cream: #FFF9F1;
  --mint: #D8EFDF;
  --mint-soft: #ECF7EF;
  --ink: #2A2A33;
  --ink-soft: #4E4E5A;
  --muted: #7A7A86;
  --sunshine: #F5C518;
  --sky: #5BAFD6;
  --grass: #7BB661;
  --coral: #E76F51;
  --line: #E6E0D2;

  --font-display: "Pacifico", "Brush Script MT", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 42, 51, 0.08);
}

* { 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.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 1rem;
}

/* ---- Skip link ---- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }

/* ---- Layout: sidebar on desktop, top nav on mobile ---- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--mint);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { margin-bottom: 3rem; }
.brand-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}
.brand-title a { color: inherit; text-decoration: none; }

.nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.nav li { margin: .4rem 0; }
.nav a {
  display: inline-block;
  padding: .5rem .2rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
  transition: color .2s ease, transform .25s ease, text-shadow .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .2rem;
  height: 2px;
  background: var(--coral);
  transition: right .3s ease;
}
.nav a:hover,
.nav a:focus {
  color: var(--ink);
  transform: translateX(4px);
  text-shadow: 0 0 14px rgba(231, 111, 81, .35);
  text-decoration: none;
}
.nav a:hover::after,
.nav a:focus::after { right: 30%; }
.nav a.active { color: var(--ink); }
.nav a.active::after { right: 0; background: var(--ink); }

.sidebar-footer { margin-top: 2rem; }
.sidebar-footer a { color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }

.main { flex: 1; min-width: 0; }

/* ---- Mobile header (hidden on desktop) ---- */
.mobile-header { display: none; }
.mobile-nav { display: none; }

/* ---- Hero ----
   Uses native image aspect-ratio (2048x872) so the background image and
   overlay text scale together with the frame width. No independent resize. */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2048 / 872;
  max-height: 70vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.15));
  z-index: 1;
}
.hero-home-v1 { background-image: url('../images/hero/home-hero-v1.jpg'); }
.hero-home-v2 { background-image: url('../images/hero/home-hero-v2.jpg'); }
.hero > div {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero.hero-top { align-items: flex-start; }
.hero.hero-bottom { align-items: flex-end; }
.hero.hero-bottom > div { padding-bottom: .5rem; }

.hero-switcher {
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding: 1rem;
  background: var(--mint-soft);
  font-size: .9rem;
}
.hero-switcher a {
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.hero-switcher a.active { background: var(--ink); color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: 1.15rem; max-width: 36ch; margin: 0 auto 1.5rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero .cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 2px solid #fff; }
.btn-secondary:hover { background: var(--cream); text-decoration: none; }

/* ---- Page sections ---- */
.section { padding: 4rem 2rem; }
.section-narrow { max-width: 800px; margin: 0 auto; }
.section-wide { max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--mint-soft); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-alt .section-title { margin-bottom: 3.5rem; }
.section-alt .section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}
.section-alt .section-title h2::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.section-title .eyebrow { display: block; }

/* ---- Program list (Home) ---- */
.programs-wrap { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.programs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2rem;
}
@media (max-width: 1100px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .programs { grid-template-columns: 1fr; }
}
.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--mint);
  color: var(--ink);
  text-decoration: none;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.program-card:hover,
a.program-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(42, 42, 51, 0.12);
  border-top-color: var(--coral);
  text-decoration: none;
}
.program-card h3 { font-family: var(--font-display); margin: 0 0 .35rem; font-size: 1.3rem; }
.program-card .age { margin: 0; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; line-height: 1.3; }
.program-card .age strong { color: var(--ink); font-weight: 700; font-size: .95rem; }

/* ---- Three-column pillars (Home) ---- */
.pillars {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.pillar {
  text-align: center;
  padding: .5rem 2rem;
  position: relative;
}
.pillar + .pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(42,42,51,.18), transparent);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.pillar h3::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillar + .pillar::before {
    left: 15%;
    right: 15%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(42,42,51,.18), transparent);
  }
  .pillar { padding: 1rem .5rem; }
}

/* ---- Curriculum list ---- */
.curr-list { padding-left: 1.2rem; }
.curr-list li { margin: .6rem 0; }
.curr-list strong { color: var(--ink); }

/* ---- Teacher cards ---- */
.teacher-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.teacher-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.teacher-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  background: var(--mint);
  display: block;
}
.teacher-card h3 { font-family: var(--font-display); margin: 0; font-size: 1.5rem; }
.teacher-card p { margin: .3rem 0 0; color: var(--ink-soft); }

/* ---- Tour gallery ---- */
.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.room-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.room-card-body { padding: 1.5rem 2rem; }
.room-card h3 { font-family: var(--font-display); margin-top: 0; font-size: 1.8rem; }
.room-card .age { color: var(--muted); font-size: .95rem; display: flex; flex-direction: column; line-height: 1.3; margin: .3rem 0 .6rem; }
.room-card .age strong { color: var(--ink); font-weight: 700; font-size: 1rem; }

/* ---- Contact ---- */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-card a { color: var(--ink); font-weight: 700; }
.contact-card .big-phone { font-size: 1.6rem; display: block; margin: 1rem 0; }
.hours-list { list-style: none; padding: 0; margin: 1rem 0; }
.hours-list li { margin: .25rem 0; }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: #cfcfd6;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: .9rem;
}
.footer a { color: #fff; }
.footer .footer-bug { font-size: 1.4rem; }

/* ---- Responsive: mobile ---- */
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar { display: none; }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--mint);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
  }
  .mobile-header .brand-title { font-size: 1.2rem; max-width: 70%; }
  .menu-toggle {
    background: none;
    border: 2px solid var(--ink);
    color: var(--ink);
    border-radius: 8px;
    padding: .4rem .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }

  .mobile-nav {
    display: none;
    background: var(--mint);
    padding: 0 1.2rem 1.2rem;
    list-style: none;
    margin: 0;
    position: sticky;
    top: 64px;
    z-index: 49;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav li { margin: .4rem 0; }
  .mobile-nav a { color: var(--ink); font-weight: 600; display: block; padding: .5rem 0; }

  .section { padding: 2.5rem 1.2rem; }
  .hero { max-height: none; }
  .room-card-body { padding: 1.2rem; }
  .contact-card { padding: 1.5rem; }
}

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

.welcome-heading { margin: 0; }
.welcome-heading img { display: block; max-width: 420px; width: 100%; height: auto; margin: 0 auto; mix-blend-mode: multiply; }

/* ---- Welcome panel (Tour intro) ---- */
.welcome-panel {
  background: var(--mint-soft);
  border-radius: var(--radius);
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--grass);
}
.welcome-panel .section-title { margin-bottom: 1.5rem; }
.welcome-panel .welcome-lead {
  font-size: 1.15rem;
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  color: var(--ink);
}
.welcome-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.welcome-points li {
  list-style: none;
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: .95rem;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(42,42,51,.05);
}
.welcome-points li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: .25rem;
  font-weight: 400;
}
.welcome-points ul { padding: 0; margin: 0; }
@media (max-width: 820px) {
  .welcome-points { grid-template-columns: 1fr; }
}

/* Version switcher pill */
.version-switcher {
  display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap;
  padding: .6rem 1rem; background: #64748B; font-size: .85rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.version-switcher::after {
  content: "Concept picker will not appear in finished website";
  display: block; width: 100%; text-align: center;
  font-size: .7rem; font-weight: 400; letter-spacing: .02em;
  color: rgba(255,255,255,.75); padding-top: .35rem;
}
.version-switcher a { color: #fff; padding: .25rem .8rem; border-radius: 999px; text-decoration: none; }
.version-switcher a.active { background: #fff; color: #64748B; }
