/* ============================================================
   Bushwillow Kids — over the Agetha Child theme (shell + design)
   Light-header variant, full-bleed home hero, green brand accents.
   ============================================================ */
:root {
  --bw-green: #3a6135;
  --bw-green-dark: #2e4b2c;
  --bw-green-soft: rgba(58, 97, 53, 0.09);
  --gold: #c99a3f;
  --gold-deep: #b8890f;
  --cream: #f9f1e6;
  --cream-card: #fff;
  --ink: #2b2b2b;
  --line: #ece1cd;
}

/* ---------- light header (child theme shell is dark by default) ---------- */
.site-head {
  background: rgba(250, 247, 240, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head.scrolled { box-shadow: 0 6px 18px rgba(29, 29, 29, 0.09); }
.site-head nav a { color: #3f3a30; }
.site-head nav a:hover,
.site-head nav a.on { color: var(--bw-green-dark); background: var(--bw-green-soft); }
.site-head nav a.nav-pill { color: #fff; background: var(--bw-green); border-radius: 999px; padding: 7px 16px; }
.site-head nav a.nav-pill:hover { background: var(--bw-green-dark); }
#navToggle span { background: var(--bw-green-dark); }
.brand { color: var(--ink); }
.brand img { height: 46px; width: auto; display: block; }

/* ---------- home: full-bleed hero, header floats over the image ---------- */
body.home { background: var(--cream); }
body.home .site-head {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(20, 26, 14, 0.55) 0%, rgba(20, 26, 14, 0.18) 55%, rgba(20, 26, 14, 0) 100%);
  border-bottom: 0;
  z-index: 30;
}
body.home .site-head nav a { color: #f6f1e6; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
body.home .site-head nav a:hover,
body.home .site-head nav a.on { color: #fff; background: rgba(255, 255, 255, 0.14); }
body.home .site-head nav a.nav-pill { background: var(--bw-green); text-shadow: none; color: #fff; }
body.home .site-head nav a.nav-pill:hover { background: var(--bw-green-dark); }
body.home .site-head.scrolled {
  background: rgba(250, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
}
body.home .site-head.scrolled nav a { color: #3f3a30; text-shadow: none; }
body.home .site-head.scrolled nav a:hover,
body.home .site-head.scrolled nav a.on { color: var(--bw-green-dark); background: var(--bw-green-soft); }
body.home .site-head.scrolled nav a.nav-pill { background: var(--bw-green); color: #fff; }
body.home .brand { color: #fff; }
body.home .site-head.scrolled .brand { color: var(--ink); }
body.home .brand .brand-logo-chip {
  background: rgba(250, 247, 240, 0.95);
  border-radius: 14px;
  padding: 6px 12px 6px 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
body.home .brand .brand-logo-chip img { height: 44px; }
body.home .site-head.scrolled .brand .brand-logo-chip { box-shadow: none; }

/* hero to the very top edge */
.home-hero {
  position: relative;
  min-height: min(100svh, 1040px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.home-hero .hh-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero .hh-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 26, 14, 0.45) 0%, rgba(20, 26, 14, 0.05) 40%, rgba(20, 26, 14, 0) 52%),
    linear-gradient(0deg, rgba(20, 26, 14, 0.62) 0%, rgba(20, 26, 14, 0.08) 46%, rgba(20, 26, 14, 0) 62%);
  pointer-events: none;
}
/* width:100% + max-width matching .wrap's border box (1100 content + 2×24 gutter)
   keeps the hero copy on the SAME left/right grid as every other section;
   box-sizing:border-box keeps the gutter inside on narrow screens.
   (Was `padding: 40px 0 ...` — the shorthand zeroed .wrap's 24px side padding,
   so on mobile the headline/buttons ran flush to the screen edges.) */
.home-hero .hh-inner {
  position: relative;
  width: 100%;
  max-width: 1148px;
  box-sizing: border-box;
  padding: 40px 24px clamp(34px, 6vh, 72px);
}
.home-hero .kicker { color: #f4c65c; }
.home-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 54px);
  max-width: 15em;
  margin: 4px 0 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.home-hero h1 .hh-em { color: #f4c65c; }
.home-hero .lead { color: #f4efe2; max-width: 560px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); margin-bottom: 24px; }
.home-hero .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero .btn { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24); }
.home-hero .btn.ghost { border-color: rgba(255, 255, 255, 0.9); }

/* ---------- page content tweaks ---------- */
/* design.css sets .block{padding:64px 24px}; .wrap inside every .block already
   carries the 24px gutter, so the two stacked = 48px dead margin each side.
   On a 390px phone that leaves only 294px of content — restore shell.css intent. */
.block { padding: 64px 0; }
body { background: var(--cream); }
.block.alt { background: #f4ecdc; }
.lead { font-size: 18px; color: #4c463c; max-width: 720px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.wrap h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.block h2 .em, .home-hero h1 .hh-em { font-style: normal; }
.points { list-style: none; padding: 0; margin: 18px 0 0; max-width: 640px; }
.points li { padding: 7px 0 7px 30px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--gold);
}
.flyer-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.flyer-row img { border-radius: 10px; box-shadow: 0 12px 30px rgba(29, 29, 29, 0.14); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
a.btn { text-decoration: none; }

/* footer (child shell is dark — keep, tint green) */
.site-foot { background: #24301f; color: #d9d2bf; }
.foot-in a { color: #ecd9a8; }

/* ---------- functional pages: auth, panels, tables, forms ---------- */
.page-main { padding: 48px 0 64px; }
.panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; box-shadow: 0 4px 14px rgba(29, 29, 29, 0.05);
}
.panel-card h2 { margin-top: 0; }
.panel-card h3 { margin-top: 0; font-size: 20px; }
.auth-box { max-width: 420px; margin: 40px auto; text-align: center; }
.auth-box h1 { font-size: 30px; margin-bottom: 6px; }
.auth-box p { color: #6b6455; margin-bottom: 20px; }
.auth-box .brand-logo { height: 64px; width: auto; border-radius: 14px; margin-bottom: 12px; }
.auth-box input[type="text"],
.auth-box input[type="password"] {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 1rem;
  background: #fff; font-family: inherit;
}
.auth-box input:focus { outline: 2px solid var(--bw-green); }
.auth-error { color: #a33; font-size: 0.9rem; min-height: 1.2em; margin-bottom: 8px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 34px 0 8px; }
.dash-head h2 { margin: 0; }
.dash-sub { color: #6b6455; margin-bottom: 22px; }
.data-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(29, 29, 29, 0.04);
}
.data-card h3 { font-size: 18px; margin: 0 0 4px; }
.data-card .meta { font-size: 0.82rem; color: #8a8478; margin-bottom: 10px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 22px; font-size: 0.93rem; }
.data-grid b { color: var(--bw-green-dark); }
.empty { color: #8a8478; text-align: center; padding: 40px 0; }
.notice {
  padding: 14px 16px; border-left: 4px solid var(--gold);
  background: #fdf6e8; border-radius: 0 8px 8px 0; margin-bottom: 12px;
}
.notice h4 { color: var(--bw-green-dark); font-size: 1.02rem; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.notice .date { font-size: 0.8rem; color: #8a8478; }
.hidden { display: none !important; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.table-wrap { overflow-x: auto; }
table.curriculum { width: 100%; border-collapse: collapse; }
.curriculum th, .curriculum td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.curriculum th { color: var(--bw-green-dark); background: #f7f2e6; }

/* ---------- enroll form (child-theme form styles extended) ---------- */
.enroll-wrap { max-width: 680px; margin: 0 auto; }
.enroll-wrap .lead { color: #4c463c; margin-bottom: 26px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.form-card h2 { font-size: 22px; margin: 0 0 14px; }
.child-block { background: #faf5ea; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.child-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.child-head h3 { font-size: 1.05rem; margin: 0; }
.remove-child { background: none; border: 1.5px solid #a33; color: #a33; border-radius: 8px; padding: 4px 12px; font-size: 0.85rem; cursor: pointer; }
.remove-child:hover { background: #fbe9e7; }
.field { margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--bw-green-dark); margin-bottom: 6px; }
.field label .req { color: #a33; }
form select,
form input[type="date"],
form input[type="number"],
form input[type="tel"],
form input[type="email"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font: inherit; color: var(--ink);
}
form .field input:focus, form .field select:focus, form .field textarea:focus { outline: 2px solid var(--bw-green); }
.field .hint { font-size: 0.82rem; color: #8a8478; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.add-child {
  background: none; border: 2px dashed var(--bw-green); color: var(--bw-green);
  border-radius: 10px; padding: 12px; width: 100%; font-size: 0.98rem;
  font-weight: 600; cursor: pointer; margin-bottom: 8px; font-family: inherit;
}
.add-child:hover { background: #eef4ec; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; }
.check label { font-weight: 400; color: var(--ink); font-size: 0.92rem; }
.form-msg { display: none; padding: 13px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem; }
.form-msg.ok { background: #e8f2e5; color: var(--bw-green-dark); border: 1px solid #b9d4b0; display: block; }
.form-msg.err { background: #fbe9e7; color: #a33; border: 1px solid #f0c4bd; display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 24px; }
.notfound .brand-logo { height: 96px; width: auto; margin-bottom: 18px; border-radius: 18px; }
.notfound h1 { font-size: clamp(30px, 4.5vw, 44px); }
.notfound p { color: #6b6455; max-width: 460px; margin: 6px auto 26px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .home-hero { min-height: min(100svh, 980px); }
  .home-hero h1 { font-size: clamp(26px, 8vw, 38px); }
  .home-hero .btn-row { flex-direction: column; align-items: stretch; }
  .home-hero .btn { text-align: center; }
  .flyer-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-head { background: rgba(250, 247, 240, 0.98); }
  /* mobile dropdown stays dark for contrast, links light */
  .site-head nav { background: #24301f; }
  .site-head nav a { color: #f6f1e6; }
  .site-head nav a:hover, .site-head nav a.on { color: #fff; background: rgba(255, 255, 255, 0.12); }
  .site-head nav a.nav-pill { background: var(--bw-green); color: #fff; }
  body.home .site-head { background: rgba(20, 26, 14, 0.35); }
  body.home .site-head nav { background: rgba(36, 48, 31, 0.98); }
  body.home .site-head nav a { color: #f6f1e6; text-shadow: none; }
  body.home .site-head.scrolled { background: rgba(250, 247, 240, 0.98); }
}
