/* =========================================================================
   Bright Haven — classroom (age-group) pages
   Loaded AFTER home.css, only on /infant-care /toddler-care /pre-k /after-school-care
   Adds per-age theming + richer components without touching the rest of the site.
   ========================================================================= */

/* ---- per-age signature accent ---- */
body.age-infant  { --ac:#1C6E64; --ac-soft:#E9F5F1; --ac-glow:rgba(134,200,194,.55); }
body.age-toddler { --ac:#B84A1B; --ac-soft:#FBEBE1; --ac-glow:rgba(244,140,96,.45); }
body.age-prek    { --ac:#7C570F; --ac-soft:#FBF1DB; --ac-glow:rgba(252,195,89,.55); }
body.age-after   { --ac:#184A43; --ac-soft:#E3EEEB; --ac-glow:rgba(28,110,100,.42); }

/* a thin signature bar under the header so each age reads differently at a glance */
.age-rule{height:5px;background:var(--ac)}

/* ---- photo hero (split) ---- */
.chero{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--ac-soft),#FDFCFA 82%)}
.chero .wrap{position:relative;display:grid;grid-template-columns:1.02fr .98fr;gap:54px;align-items:center;
  padding-top:56px;padding-bottom:60px;z-index:1}
.chero-glow{position:absolute;top:-170px;right:-130px;width:540px;height:540px;border-radius:50%;
  background:radial-gradient(circle,var(--ac-glow),transparent 70%);pointer-events:none;z-index:0}
.cmeta{display:inline-block;font-weight:700;font-size:1rem;color:var(--ac);letter-spacing:.01em}
.chero h1{font-size:clamp(2.15rem,4.7vw,3.35rem);line-height:1.04;letter-spacing:-.02em;margin:20px 0 0}
.chero .sub{margin-top:18px;max-width:none}
.chero .acts{margin-top:26px;display:flex;flex-wrap:wrap;gap:14px}
.chero-photo{position:relative;aspect-ratio:4/5;border-radius:30px;overflow:hidden;border:7px solid #fff;
  box-shadow:var(--shadow-lg)}
.chero-photo img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:860px){
  .chero .wrap{grid-template-columns:1fr;gap:24px;padding-top:30px;padding-bottom:38px}
  .chero .wrap > div{min-width:0}           /* let the text column shrink, no page overflow */
  .chero-photo{aspect-ratio:4/5;order:-1;max-height:66vh;margin:0 auto;width:100%}
  .chero h1{font-size:clamp(1.9rem,7vw,2.4rem)}
  .chero .acts{flex-wrap:wrap;gap:12px}
  .chero .acts .btn{flex:1 1 100%;justify-content:center}   /* stack full-width buttons */
}
/* hard stop against any stray horizontal scroll on these pages */
body[class*="age-"]{overflow-x:hidden}

/* ---- per-age tinted band (replaces fixed mint on these pages) ---- */
.band-age{background:var(--ac-soft)}

/* ---- accent the learn-section lead + icon rings faintly per age ---- */
.age-tag{display:inline-block;font-weight:800;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ac);margin-bottom:10px}

/* ---- photo gallery: uniform 4:5 tiles (tidy, face-safe crops baked in) ---- */
.gal{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gal figure{margin:0;overflow:hidden;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);
  aspect-ratio:4/5;background:#eee}
.gal img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.gal figure:hover img{transform:scale(1.05)}
@media(max-width:820px){ .gal{grid-template-columns:1fr 1fr;gap:12px} }

/* ---- editorial "what your child will learn": split + hairline rows ---- */
.learn-ed{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:start}
.learn-ed .le-head h2{margin:0}
.learn-ed .le-head p{margin-top:16px;color:var(--ink-soft);font-size:1.05rem;line-height:1.6}
.le-note{margin-top:20px;display:block;font-size:.92rem;font-weight:700;color:var(--ac)}
.le-list{display:flex;flex-direction:column}
.le-row{display:flex;gap:22px;align-items:flex-start;padding:24px 0;border-top:1px solid var(--line)}
.le-row:first-child{border-top:0;padding-top:2px}
.le-ic{flex:none;width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  background:var(--ac-soft);color:var(--ac)}
.le-ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.le-row h3{font-size:1.25rem;margin:0 0 4px;color:var(--ink)}
.le-row p{margin:0;color:var(--ink-soft);font-size:1.02rem;line-height:1.55}
@media(max-width:860px){ .learn-ed{grid-template-columns:1fr;gap:28px} .le-row{padding:20px 0} }

/* ---- "everything included": hairline trust strip (no floating cards) ---- */
.incl-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:22px;
  overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.incl-item{padding:34px 30px;border-left:1px solid var(--line)}
.incl-item:first-child{border-left:0}
.incl-item .ii-ic{width:40px;height:40px;color:var(--ac);margin-bottom:14px}
.incl-item .ii-ic svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.incl-item h3{font-size:1.18rem;margin:0 0 7px}
.incl-item p{margin:0;color:var(--ink-soft);font-size:1rem;line-height:1.55}
@media(max-width:760px){
  .incl-strip{grid-template-columns:1fr}
  .incl-item{border-left:0;border-top:1px solid var(--line);padding:26px 24px}
  .incl-item:first-child{border-top:0}
}

/* ---- keep faces safe in any cover-cropped frame on these pages ---- */
.chero-photo img{object-position:center 22%}
body[class*="age-"] .day-photo img{object-position:center 22%}
body[class*="age-"] .portrait img{object-position:center 20%}

/* ---- quote / promise band ---- */
.qband{position:relative;background:var(--ac);color:#fff;border-radius:28px;padding:54px 46px;text-align:center;overflow:hidden}
.qband .qglow{position:absolute;top:-120px;left:-80px;width:360px;height:360px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%)}
.qband .qmark{position:relative;font-size:3.4rem;line-height:.4;font-weight:800;opacity:.4}
.qband p{position:relative;font-size:clamp(1.3rem,2.5vw,1.72rem);font-weight:700;line-height:1.42;
  max-width:780px;margin:16px auto 0}
.qband cite{position:relative;display:block;margin-top:20px;font-style:normal;font-weight:600;
  color:rgba(255,255,255,.86);font-size:1rem}
