/* ============================================================
   Shine Preschools — styles.css
   Design system mirrored from mystemschool.com (Allstars STEM):
     sage header, cream body, deep forest footer & pill buttons,
     editorial type (Poppins), steel-blue accents.
   ============================================================ */

:root {
  --sage: #ACBFAC;
  --cream: #F2F1E4;
  --cream-2: #E9E6D2;
  --paper: #FAF9F1;
  --forest: #232D20;
  --pine: #33582E;
  --blue: #4C93C1;
  --amber: #B06A12;
  --ink: #26301F;
  --rule: rgba(35, 45, 32, 0.16);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { color: var(--pine); font-weight: 600; line-height: 1.2; }

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

.muted { opacity: .75; font-size: .95rem; }

/* ============ Announcement bar ============ */
.announce {
  background: var(--cream-2); text-align: center; padding: 9px 16px;
  font-size: .88rem; letter-spacing: .01em;
}
.announce a { font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; font-family: var(--font); font-weight: 500;
  padding: 15px 34px; border-radius: 999px; text-decoration: none;
  font-size: .98rem; letter-spacing: .01em; transition: all .16s ease;
  line-height: 1.3;
}
.btn-solid { background: var(--forest); color: var(--cream); border: 1.5px solid var(--forest); }
.btn-solid:hover { background: #3a4a35; color: var(--cream); }
.btn-line { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--cream); }
.btn-tour { background: var(--cream-2); color: var(--forest); border: 1.5px solid var(--forest); }
.btn-tour:hover { background: var(--cream); color: var(--forest); }
.btn-sm { padding: 11px 24px; font-size: .92rem; }

/* ============ Header ============ */
.header {
  background: rgba(172, 191, 172, .92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(35, 45, 32, .12);
}
.header-in {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--cream); border: 2.5px solid var(--forest);
  display: flex; align-items: center; justify-content: center; color: #E8842B;
}
.brand-badge .ic {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round;
}
.brand-name {
  font-weight: 700; font-size: 1.18rem; color: var(--forest);
  line-height: 1.1; white-space: nowrap;
}
.brand-name span { font-weight: 500; }
.nav-links-wrap { margin-left: auto; }
.nav-links {
  list-style: none; display: flex; flex-wrap: nowrap; gap: 4px; align-items: center;
}
.nav-links a {
  display: inline-block; text-decoration: none; color: var(--forest);
  font-weight: 500; font-size: .93rem; white-space: nowrap;
  padding: 8px 13px; border-radius: 999px; transition: background .15s ease;
}
.nav-links a:hover { background: rgba(250, 249, 241, .75); color: var(--forest); }
.header .btn-tour { flex: 0 0 auto; padding: 11px 22px; font-size: .92rem; }
.nav-toggle-box { display: none; }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span {
  width: 24px; height: 2.5px; border-radius: 3px; background: var(--forest);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-box:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle-box:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-box:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start;
}
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts { padding-top: 8px; }
.fact-lead { font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.fact-blue { color: var(--blue); font-weight: 500; font-size: 1.12rem; margin: 14px 0 6px; }
.fact-list { list-style: none; }
.fact-list li {
  color: var(--blue); font-size: 1.05rem; padding-left: 20px; position: relative; margin-bottom: 5px;
}
.fact-list li::before { content: "\2022"; position: absolute; left: 4px; }
.hero-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px;
}
.hero-photos img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px;
}

/* ============ Sections ============ */
.section { padding: 78px 0; }
.section-tint { background: var(--paper); }
.sec-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; margin-bottom: 18px;
}
.sec-title.left { text-align: left; }
.sec-lead { max-width: 46em; margin: 0 auto 40px; text-align: center; font-size: 1.06rem; }
.sec-lead.left { margin: 0 0 22px; text-align: left; }

/* ============ Why ============ */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 12px;
}
.why-item h3 { font-size: 1.08rem; margin-bottom: 10px; }
.why-item p { font-size: .93rem; }
.reviews-line {
  text-align: center; margin-top: 46px; font-size: 1.15rem; font-weight: 500; color: var(--pine);
}

/* ============ Our Schools ============ */
.schools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.school-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 34px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.card-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.tag-green { color: var(--pine); }
.tag-amber { color: var(--amber); }
.school-card h3 { font-size: 1.35rem; }
.card-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }

/* ============ Programs ============ */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 14px; }
.program h3 { font-size: 1.25rem; margin-bottom: 4px; }
.program .muted { margin-bottom: 12px; }
.program p:last-child { font-size: .95rem; }

/* ============ Pricing ============ */
.price-h { text-align: center; margin: 34px 0 18px; font-size: 1.15rem; }
.table-wrap { overflow-x: auto; max-width: 860px; margin: 0 auto; }
.price-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  font-size: .97rem;
}
.price-table th, .price-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--rule); }
.price-table th { background: var(--forest); color: var(--cream); font-weight: 500; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.price-note { text-align: center; margin-top: 26px; font-size: .95rem; opacity: .85; }

/* ============ Register ============ */
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reg-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 34px 30px;
  display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center;
}
.reg-card h3 { font-size: 1.18rem; }
.reg-price { color: var(--blue); font-weight: 600; }
.reg-card p:not(.reg-price) { font-size: .93rem; }
.reg-card .btn { margin-top: auto; }

/* ============ Book ============ */
.book-grid {
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center;
}
.book-cover { border-radius: 12px; box-shadow: 0 18px 44px rgba(35,45,32,.22); max-width: 330px; }
.book-cover-link { display: flex; justify-content: center; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-name { font-size: 1.3rem; margin-bottom: 10px; }
.contact-grid p { margin-bottom: 14px; }
.contact-grid .btn { margin-top: 18px; }
.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ============ Footer ============ */
.footer { margin-top: 20px; }
.footer-curve { display: block; width: 100%; height: 74px; }
.footer-body { background: var(--forest); color: var(--cream); padding: 30px 0 42px; }
.footer-linkbar { text-align: center; padding-bottom: 26px; font-size: .95rem; }
.footer-linkbar a { color: var(--cream); font-weight: 500; }
.footer-linkbar a:hover { color: #cfe0c4; }
.footer-linkbar span { margin: 0 14px; opacity: .5; }
.footer-rule { border: 0; border-top: 1px solid rgba(242,241,228,.25); margin-bottom: 36px; }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 36px; align-items: start;
}
.footer-cols h4 { color: var(--cream); font-size: 1.2rem; margin-bottom: 12px; font-weight: 600; }
.footer-cols p { font-size: .95rem; opacity: .92; }
.footer-cols a { color: var(--cream); }
.footer-cols a:hover { color: #cfe0c4; }
.footer-cta { align-self: center; }
.footer-copy { margin-top: 40px; font-size: .8rem; opacity: .65; }

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  .nav-toggle { display: flex; margin-left: 4px; }
  .header .btn-tour { margin-left: auto; }
  .nav-links-wrap {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sage); border-bottom: 1px solid rgba(35, 45, 32, .15);
    box-shadow: 0 16px 30px rgba(35, 45, 32, .14); margin-left: 0;
  }
  .nav-toggle-box:checked ~ .nav-links-wrap { display: block; }
  .nav-links {
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 28px 20px; max-width: 1140px; margin: 0 auto;
  }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .schools-grid, .contact-grid { grid-template-columns: 1fr; }
  .programs-grid, .reg-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-photos { grid-template-columns: 1fr; }
  .header .btn-tour { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero-ctas .btn { padding: 13px 24px; }
}

/* ============ SHINE 30 book pages (/SHINE30/) ============ */
.bk-page .bk-nav { margin-left: auto; }
.bk-hero { padding-bottom: 40px; }
.bk-prompt { text-align: center; font-weight: 600; color: var(--pine); margin: 0 0 22px; font-size: 1.08rem; }
.bk-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 860px; margin: 0 auto; }
.bk-choice { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer;
  font-family: var(--font); color: var(--ink); background: var(--paper); border: 2px solid var(--rule); border-radius: 18px;
  padding: 26px 22px 24px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bk-choice:hover { border-color: var(--pine); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(35,45,32,.14); }
.bk-choice[aria-pressed="true"] { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(51,88,46,.18), 0 14px 34px rgba(35,45,32,.14); }
.bk-choice img { width: 200px; border-radius: 10px; box-shadow: 0 12px 30px rgba(35,45,32,.22); margin-bottom: 8px; }
.bk-choice-t { font-weight: 600; font-size: 1.15rem; color: var(--pine); line-height: 1.25; }
.bk-choice-s { font-size: .9rem; opacity: .75; }
.bk-choice-b { margin-top: 8px; }
.bk-choice[aria-pressed="true"] .bk-choice-b { background: var(--pine); border-color: var(--pine); }
.bk-details { padding: 60px 0 78px; background: var(--paper); border-top: 1px solid var(--rule); }
.bk-details-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.bk-details .book-cover { max-width: 300px; }
.bk-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--amber); margin-bottom: 8px; }
.bk-sub { font-size: 1.12rem; font-weight: 500; color: var(--pine); margin: 6px 0 16px; }
.bk-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 10px; }
.bk-facts b { font-size: 1.35rem; color: var(--pine); margin-right: 4px; }
.bk-h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.bk-who { margin: 0 0 16px 20px; }
.bk-print { max-width: 820px; }
.bk-links { list-style: none; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.bk-links a { font-weight: 600; }
.bk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.footer-copy { margin-top: 16px; opacity: .7; font-size: .85rem; }
.book-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 30px; }
.book-two article { display: flex; gap: 20px; align-items: flex-start; background: var(--cream); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.book-two img { width: 150px; border-radius: 8px; box-shadow: 0 12px 28px rgba(35,45,32,.2); flex: 0 0 auto; }
.book-two h3 { font-size: 1.12rem; margin-bottom: 6px; }
.book-two p { font-size: .95rem; margin-bottom: 12px; }
@media (max-width: 760px) {
  .bk-choices, .bk-details-grid, .bk-cols, .book-two { grid-template-columns: 1fr; }
  .bk-details .book-cover { max-width: 240px; }
  .book-two article { flex-direction: column; }
}

.bk-center { text-align: center; }
.bk-center-row { justify-content: center; margin-top: 8px; }
.bk-tagline { text-align: center; font-size: 1.25rem; font-weight: 600; color: var(--amber); margin: -18px 0 22px; }
.bk-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 10px 0 26px; }
.bk-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.bk-steps li > b { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--pine); color: var(--cream); display: grid; place-items: center; font-size: 1.05rem; }
.bk-steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.bk-steps p { font-size: .93rem; line-height: 1.5; }
.bk-rule { max-width: 52em; margin: 0 auto; text-align: center; font-size: 1.02rem; }
.bk-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bk-group { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; }
.bk-group h3 { font-size: 1rem; margin-bottom: 8px; color: var(--pine); }
.bk-group ol { margin-left: 22px; font-size: .92rem; line-height: 1.5; }
.bk-group li { padding: 2px 0; }
.bk-printgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 8px 0 14px; }
@media (max-width: 900px) { .bk-steps, .bk-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bk-steps, .bk-groups, .bk-printgrid { grid-template-columns: 1fr; } }
