/* ============================================================
   BloomMind — Blooming Minds Autism Center LLC
   Sensory room at twilight. Dark calm dusk-denim palette.
   Main stylesheet.  (only class selectors for structure)
   ============================================================ */

/* Palette
   body bg      #232A33  dusk denim
   text         #F2EAD8  lantern sand
   accent       #8E5A74  thistle plum (fiber-optic spray lamp)
   secondary    #7E8C5A  grow moss (therapy green)
   cushion      #33414F  cushion-blue floor mats
   rug-bark     #2C332B  woven rug bands
   glow-sand    #E8DCC0  warm lamp accents
   night-calm   #1A2028  darkest bands / footer
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: #F2EAD8;
  background-color: #232A33;
  overflow-x: hidden;
}

a { color: #E8DCC0; text-decoration: none; }
a:hover { color: #8E5A74; }

/* ============================================================
   NOSCRIPT SAFETY: reveal default visible
   ============================================================ */
.sr-el { opacity: 1; transform: none; }
noscript .sr-hidden, .sr-el.sr-hidden { opacity: 1; transform: none; }

/* JS-driven reveal state */
.sr-el.sr-hide { opacity: 1; transform: none; transition: none; }
.js .sr-el.sr-hide { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js .sr-el.sr-hide.sr-in { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION — LANTERN-SHELF NAV (.lanternshelf)
   ============================================================ */
.lanternshelf-wrap { position: sticky; top: 0; z-index: 90; }

.fiberspray {
  height: 20px;
  background-color: #1A2028;
  position: relative;
  overflow: hidden;
}
.fiber-filament {
  position: absolute;
  width: 2px;
  bottom: 0;
  height: 18px;
  border-radius: 2px 2px 0 0;
  background-color: #8E5A74;
  transform-origin: bottom center;
}
.fiber-filament::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E8DCC0;
}
.lanternshelf {
  background-color: #33414F;
  border-bottom: 4px solid #2C332B;
}
.lanternshelf-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brandlock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.lantern-glyph {
  width: 30px;
  height: 40px;
  position: relative;
  background-color: #8E5A74;
  border-radius: 6px 6px 8px 8px;
  box-shadow: 0 0 0 3px #8E5A74;
}
.lantern-glyph::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 2px;
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background-color: #1A2028;
}
.lantern-glyph::after {
  content: "";
  position: absolute;
  inset: 8px 7px 8px 7px;
  background-color: #1A2028;
  border-radius: 3px;
  box-shadow: 0 0 10px 2px #E8DCC0;
}
.brandword { line-height: 1.1; }
.brandname {
  display: block;
  color: #F2EAD8;
  font-size: 24px;
  letter-spacing: 4px;
  font-weight: bold;
}
.brandsub {
  display: block;
  color: #7E8C5A;
  font-size: 11px;
  letter-spacing: 3px;
}
.navtabs { display: flex; align-items: center; gap: 10px; }
.cushion-tab {
  position: relative;
  padding: 10px 16px;
  background-color: #2C332B;
  border: 1px solid #33414F;
  border-radius: 8px;
  color: #E8DCC0;
  font-size: 15px;
  white-space: nowrap;
}
.cushion-tab:hover { background-color: #33414F; color: #F2EAD8; }
.cushion-tab .sprout {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background: #7E8C5A;
  border-radius: 50%;
}
.programs-chip { background-color: #7E8C5A; color: #1A2028; font-weight: bold; }
.navtoggle {
  display: none;
  background-color: #8E5A74;
  border: none;
  color: #1A2028;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================================================
   HERO — TWILIGHT-ROOM HERO (.twilightroom)
   ============================================================ */
.twilightroom {
  background-color: #232A33;
  text-align: center;
  position: relative;
}
.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.eyebrow {
  display: inline-block;
  color: #7E8C5A;
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  color: #F2EAD8;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title .plumword { color: #8E5A74; }
.hero-lead {
  color: #E8DCC0;
  font-size: 19px;
  max-width: 720px;
  margin: 0 auto 34px;
}
.sensory-floor {
  height: 150px;
  border-top: 3px solid #2C332B;
  position: relative;
  overflow: hidden;
  background-color: #1A2028;
}
/* floor cushions left-center */
.floor-cushion {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 5px solid #7E8C5A;
  box-shadow: 0 6px 0 #151a20;
}
.floor-cushion.a { left: 12%; top: 34px; background-color: #33414F; }
.floor-cushion.b { left: 25%; top: 20px; background-color: #33414F; }
/* woven rug band center */
.woven-rug {
  position: absolute;
  left: 40%;
  top: 64px;
  width: 26%;
  height: 58px;
  background-color: #2C332B;
  border-top: 4px solid #232A33;
  border-bottom: 4px solid #232A33;
}
.woven-rug::after {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(90deg,#33414F 14px,transparent 14px) 0 0/28px 100%,
    linear-gradient(90deg,#7E8C5A 0 6px,transparent 6px) 0 0/100% 8px;
}
/* fiber-optic spray lamp left */
.fiber-lamp {
  position: absolute;
  left: 3%;
  bottom: 34px;
  width: 34px;
  height: 110px;
}
.fiber-lamp-base { position: absolute; bottom: 0; left: 0; width: 34px; height: 14px; border-radius: 6px; background-color: #33414F; }
.fiber-lamp-stem { position: absolute; bottom: 12px; left: 15px; width: 4px; height: 84px; background-color: #33414F; }
.fiber-spray {
  position: absolute;
  left: 12px;
  bottom: 74px;
  width: 12px;
  height: 40px;
  border-radius: 50%;
  background-color: #8E5A74;
  box-shadow: 0 0 14px 4px #8E5A74;
}
.fiber-spray::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: 18px;
  width: 100px;
  height: 60px;
  border: 2px solid #8E5A74;
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  transform: rotate(-12deg);
}
/* shelf + lanterns right */
.calmshelf {
  position: absolute;
  right: 4%;
  bottom: 30px;
  width: 22%;
}
.shelf-top { height: 14px; background-color: #33414F; border-radius: 4px; box-shadow: 0 4px 0 #1A2028; }
.shelf-stand { width: 8px; height: 62px; background-color: #33414F; position: absolute; bottom: -58px; }
.shelf-stand.l { left: 12px; }
.shelf-stand.r { right: 12px; }
.shelf-lantern { position: absolute; bottom: 22px; width: 26px; height: 30px; border-radius: 6px; }
.shelf-lantern.s1 { left: 8px; background-color: #8E5A74; }
.shelf-lantern.s2 { right: 8px; background-color: #2C332B; }
.shelf-lantern.s1::after, .shelf-lantern.s2::after {
  content: "";
  position: absolute;
  inset: 6px;
  background-color: #1A2028;
  border-radius: 3px;
  box-shadow: 0 0 8px 1px #E8DCC0;
}
/* growth chart panel */
.growth-panel {
  position: absolute;
  right: 30%;
  bottom: 30px;
  width: 9%;
  min-width: 90px;
  height: 96px;
  background-color: #3a4754;
  border-left: 3px solid #7E8C5A;
}
.growth-panel .grow-m{
  position: absolute;
  left: 8px;
  right: 6px;
  border-top: 2px dotted #7E8C5A;
}
.grow1 { top: 22px; }
.grow2 { top: 40px; }
.grow3 { top: 58px; }
.grow4 { top: 76px; }
.growth-mark { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background-color: #7E8C5A; }
.hero-statband {
  background-color: #1A2028;
  padding: 22px 0;
  border-top: 3px solid #33414F;
}
.hero-stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.hero-stat {
  color: #F2EAD8;
  font-size: 18px;
  padding: 0 34px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 30px;
  background-color: #8E5A74;
}
.stat-num { display: block; font-size: 28px; font-weight: bold; color: #E8DCC0; }

/* ============================================================
   SECTIONS — GROWTH-CHART ROWS + SESSION-PATH (.growthchart)
   ============================================================ */
.program-ledger { max-width: 1050px; margin: 0 auto; padding: 70px 24px 20px; }
.ledger-head { text-align: center; margin-bottom: 46px; }
.sec-kicker { color: #7E8C5A; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: bold; }
.sec-title { color: #F2EAD8; font-size: 38px; margin-top: 8px; }
.sec-sub { color: #E8DCC0; font-size: 17px; max-width: 640px; margin: 14px auto 0; }

.prog-row {
  display: flex;
  gap: 0;
  background-color: #33414F;
  border-radius: 12px;
  margin: 26px 0;
  overflow: hidden;
  box-shadow: 0 8px 0 #28303b;
}
.prog-row.indent {
  margin-left: 44px;
  margin-right: 44px;
}
.grow-col {
  flex: 0 0 130px;
  background-color: #2C332B;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px 20px;
  gap: 14px;
}
.prog-code { font-family: "Courier New", monospace; font-weight: bold; color: #E8DCC0; letter-spacing: 1px; font-size: 15px; }
.chip {
  display: inline-block;
  background-color: #8E5A74;
  color: #1A2028;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.prog-copy {
  flex: 1;
  padding: 30px 34px;
  color: #E8DCC0;
  position: relative;
}
.prog-copy h3 { color: #F2EAD8; font-size: 24px; margin-bottom: 8px; }
.prog-copy p { margin-bottom: 12px; }
.prog-copy .det-link {
  color: #7E8C5A;
  font-weight: bold;
  font-size: 15px;
}
.sproutmark {
  position: absolute;
  top: -14px;
  font-size: 30px;
  color: #7E8C5A;
  line-height: 0;
}
.ledot { position: absolute; bottom: 8px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background-color: #E8DCC0; }

/* Alternating growth column side */
.prog-row.alt .grow-col { order: 2; border-left: 3px solid #7E8C5A; }
.prog-row:not(.alt) .grow-col { border-right: 3px solid #7E8C5A; }

/* Statement band */
.pledge-band {
  background-color: #8E5A74;
  padding: 54px 24px;
  text-align: center;
  margin: 30px 0;
}
.pledge-band .big-num {
  font-size: 74px;
  font-weight: bold;
  color: #F2EAD8;
  margin-bottom: 8px;
}
.pledge-band p { color: #1A2028; font-weight: bold; font-size: 20px; max-width: 760px; margin: 0 auto; }

/* SESSION PATH FLOW */
.sessionpath { max-width: 1080px; margin: 0 auto; padding: 46px 24px 80px; text-align: center; }
.path-lane { position: relative; max-width: 1000px; margin: 50px auto 20px; height: 70px; }
.lane-base { position: absolute; left: 0; right: 0; top: 44px; height: 4px; background-color: #2C332B; border-radius: 2px; }
.lane-dash { position: absolute; left: 4%; right: 4%; top: 44px; height: 3px; background-image: repeating-linear-gradient(90deg,#8E5A74 0 16px,transparent 16px 30px); }
.station-row { display: flex; justify-content: space-between; position: relative; }
.stop-plate {
  position: relative;
  flex: 1;
  max-width: 180px;
}
.stop-disc {
  background-color: #8E5A74;
  color: #1A2028;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 4px solid #1A2028;
}
.stop-capt { margin-top: 16px; color: #E8DCC0; font-size: 15px; padding: 0 6px; }
.moving-lantern { position: absolute; top: 34px; left: 0; width: 16px; height: 20px; border-radius: 5px; background-color: #E8DCC0; transition: left 1.2s ease; }
.moving-lantern::after { content: ""; position: absolute; inset: 4px; background-color: #1A2028; border-radius: 3px; box-shadow: 0 0 8px 1px #8E5A74; }
.return-lane { margin-top: 34px; color: #7E8C5A; font-weight: bold; letter-spacing: 2px; font-size: 15px; }
.return-lane::before { content: "\2190"; margin-right: 8px; }

/* ============================================================
   ACCENT STRIP — WELCOME band (.welcomeband)
   ============================================================ */
.welcomeband { background-color: #7E8C5A; padding: 46px 24px; }
.welcome-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.w-stamp {
  background-color: #1A2028;
  color: #E8DCC0;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: 6px;
  transform: rotate(-3deg);
  font-size: 17px;
}
.w-message { color: #1A2028; font-weight: bold; font-size: 19px; max-width: 560px; flex: 1; }
.w-btn {
  display: inline-block;
  background-color: #1A2028;
  color: #F2EAD8;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: bold;
}
.w-btn:hover { background-color: #232A33; color: #E8DCC0; }

/* ============================================================
   FOOTER — CALM-CORNER FOOTER (.calmcorner)
   ============================================================ */
.calmcorner { background-color: #1A2028; margin-top: 0; }
.blanket-rail {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px 22px;
  border-bottom: 1px solid #2C332B;
}
.blanket-patch {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #1A2028;
}
.blanket-patch.clue { background-color: #33414F; }
.blanket-patch.bark { background-color: #2C332B; }
.blanket-stitch { margin-top: 4px; width: 100%; height: 3px; background: repeating-linear-gradient(90deg,#7E8C5A 0 5px,#1A2028 5px 9px); }
.fcol-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 30px;
}
.ficol {
  background-color: #2C332B;
  border-radius: 10px;
  padding: 24px 28px;
  min-width: 220px;
  flex: 1;
}
.ficol + .ficol { margin-left: 20px; }
.ficol h4 { color: #7E8C5A; font-size: 18px; margin-bottom: 14px; }
.ficol li { list-style: none; margin: 8px 0; }
.ficol a { color: #E8DCC0; }
.ficol a:hover { color: #8E5A74; }
.base-rail {
  background-color: #8E5A74;
  color: #1A2028;
  padding: 26px 24px 18px;
  text-align: center;
}
.base-rail .firm { font-weight: bold; font-size: 20px; color: #1A2028; }
.base-rail .faddr { font-size: 15px; margin-top: 6px; font-weight: bold; }
.base-rail .fline { margin-top: 4px; font-weight: bold; }
.base-rail a { color: #1A2028; text-decoration: underline; }
.copyright { text-align: center; color: #E8DCC0; padding: 18px 24px; background-color: #1A2028; font-size: 14px; }

/* ============================================================
   SHARED PAGE PATTERNS (services, contact)
   ============================================================ */
.page-hero { background-color: #1A2028; text-align: center; padding: 66px 24px 56px; border-top: 4px solid #33414F; }
.page-hero h1 { color: #F2EAD8; font-size: 44px; }
.page-hero p { color: #E8DCC0; max-width: 720px; margin: 16px auto 0; }
.pagebody { max-width: 1060px; margin: 0 auto; padding: 50px 24px 10px; }

.svc-panel {
  background-color: #33414F;
  border-radius: 12px;
  padding: 40px 44px;
  margin: 30px 0;
  position: relative;
  box-shadow: 0 8px 0 #28303b;
}
.svc-panel .snum { position: absolute; top: 24px; right: 30px; color: #8E5A74; font-weight: bold; font-size: 26px; font-family: "Courier New", monospace; }
.svc-panel h2 { color: #F2EAD8; font-size: 26px; margin-bottom: 10px; }
.svc-panel p { color: #E8DCC0; margin-bottom: 12px; }

.process-band { background-color: #2C332B; border-radius: 12px; padding: 40px; margin: 40px 0; }
.process-band h2 { color: #F2EAD8; font-size: 28px; text-align: center; margin-bottom: 26px; }
.pstep-row { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.pstep { flex: 1; min-width: 150px; text-align: center; }
.psnum { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background-color: #8E5A74; color: #1A2028; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.pstep h3 { color: #E8DCC0; font-size: 17px; margin-bottom: 6px; }
.pstep p { color: #E8DCC0; font-size: 14px; }

.cta-band { background-color: #8E5A74; padding: 46px 24px; text-align: center; margin-top: 30px; }
.cta-band h2 { color: #1A2028; font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #1A2028; font-weight: bold; margin-bottom: 18px; }
.cta-btn { display: inline-block; background-color: #1A2028; color: #F2EAD8; padding: 14px 28px; border-radius: 8px; font-weight: bold; }
.cta-btn:hover { background-color: #232A33; }

/* CONTACT */
.contact-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.contact-main { flex: 1.4; min-width: 300px; }
.contact-side { flex: 1; min-width: 260px; }
.contact-form { background-color: #33414F; border-radius: 12px; padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: #E8DCC0; font-weight: bold; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  background-color: #232A33;
  border: 1px solid #2C332B;
  color: #F2EAD8;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.submit-btn {
  background-color: #8E5A74;
  color: #1A2028;
  border: none;
  font-weight: bold;
  font-size: 17px;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
}
.submit-btn:hover { background-color: #7E8C5A; color: #1A2028; }
.form-note { font-size: 14px; color: #E8DCC0; }

.info-panel { background-color: #1A2028; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.info-panel h3 { color: #7E8C5A; margin-bottom: 10px; }
.info-panel p, .info-panel li { color: #E8DCC0; }
.info-panel ul { list-style: none; }
.info-panel li { margin: 6px 0; }
.info-panel a { color: #E8DCC0; text-decoration: underline; }
.faq-item { background-color: #232A33; border-radius: 8px; padding: 16px 18px; margin: 12px 0; }
.faq-item summary { color: #F2EAD8; font-weight: bold; cursor: pointer; }
.faq-item p { color: #E8DCC0; margin-top: 8px; }
.step-note { text-align: center; margin-top: 22px; color: #E8DCC0; max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-block { margin: 44px 0 34px; }
.faq-lead { color: #E8DCC0; font-size: 17px; max-width: 760px; margin: 0 auto 8px; text-align: center; }
.faq-block .faq-item summary { color: #F2EAD8; }
.faq-block .faq-item p { color: #E8DCC0; }

/* REVEAL helper offsets for lane lights are keyed on .getactive in js */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .navtoggle { display: block; }
  .navtabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 18px;
    border-top: 2px solid #2C332B;
    background-color: #33414F;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
  }
  .navtabs.open { display: flex; }
  .cushion-tab { text-align: center; }
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 10px; }
  .stat-num { font-size: 22px; }
  .prog-row, .prog-row.indent { flex-direction: column; margin-left: 0; margin-right: 0; }
  .grow-col { flex-direction: row; align-items: center; gap: 12px; padding: 14px 20px; }
  .prog-row.alt .grow-col { order: 0; }
  .station-row { flex-direction: column; gap: 34px; }
  .stop-plate { max-width: none; }
  .ficol + .ficol { margin-left: 0; margin-top: 14px; }
  .fcol-wrap { gap: 14px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 30px; }
  .big-num { font-size: 52px; }
  .stat-num { font-size: 18px; }
}
