/* ============================================================
   THE LEARNING TREE CENTER — design preview · rev. 5
   "Uniform colors": the school's own red polo / navy pants /
   yellow crest on warm cream. Young Serif + Instrument Sans.
   ============================================================ */

:root {
  --cream:  #fdf6e9;
  --paper:  #fffdf7;
  --navy:   #1f2a44;
  --navy-2: #2a3a5c;
  --red:    #b5342a;
  --red-2:  #a02c23;
  --yellow: #f2c230;
  --sky:    #e8eef7;
  --muted:  #5d6470;
  --line:   #e7dcc4;
  --serif: "Young Serif", Georgia, serif;
  --sans:  "Instrument Sans", Helvetica, sans-serif;
  --r: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is REQUIRED here. Every image carries width/height attributes to
   reserve space and stop layout shift; without height:auto the browser honours
   the literal height attribute once max-width shrinks the element, and the image
   stretches. On /safety a 1125x1500 photo was rendering 319x1500 on a phone.
   Rules that set a deliberate height (.photo-strip img, .crest img) are more
   specific and still win. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }

/* ---------- preview ribbon ---------- */
.preview-ribbon {
  background: var(--navy); color: #fff;
  font-size: 18px; letter-spacing: .02em;
  text-align: center; padding: 9px 16px; font-weight: 500;
}
.preview-ribbon strong { color: var(--yellow); font-weight: 700; }

/* ---------- header ---------- */
header.site {
  background: var(--cream);
  border-top: 6px solid var(--red);
  border-bottom: 2px solid var(--navy);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1220px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
}
.crest { display: flex; align-items: center; gap: 13px; }
.crest img {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--navy); background: #fff;
}
.crest .wordmark { line-height: 1.08; }
.crest .wordmark .name {
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  color: var(--navy); display: block;
}
.crest .wordmark .est {
  font-size: 18px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
nav.main { margin-left: auto; display: flex; align-items: center; gap: 17px; white-space: nowrap; }
nav.main a {
  font-size: 18px; font-weight: 600; color: var(--navy);
  padding-bottom: 3px; border-bottom: 2.5px solid transparent;
  transition: border-color .15s;
}
nav.main a:hover, nav.main a.active { border-color: var(--red); }
.lang { white-space: nowrap; font-size: 18px; font-weight: 700; color: var(--muted); }
.lang a { color: var(--muted); }
.lang a.on { color: var(--red); }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 18px; font-weight: 700; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 6px;
  transition: all .15s; cursor: pointer;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  box-shadow: none;
}
.btn:hover { box-shadow: none; }
.btn-gold {
  background: var(--red); color: #fff; border-color: var(--navy);
}
.btn-ivory { background: var(--yellow); color: var(--navy); border-color: var(--navy); }
.btn-outline { background: var(--paper); }

/* ---------- hero (split: text | photo) ---------- */
.hero { background: var(--cream); border-bottom: 2px solid var(--navy); }
.hero-inner {
  max-width: 1220px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 0; padding: 0 28px;
}
.hero-inner > div { padding: 76px 48px 76px 0; }
.hero .hero-bg { display: none; }
.hero .photo-col { padding: 0; align-self: stretch; }
.hero .photo-col img {
  width: 100%; height: 100%; min-height: 480px; object-fit: cover;
  border-left: 2px solid var(--navy);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 62px); line-height: 1.06;
  color: var(--navy); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .sub {
  font-size: 19px; color: var(--muted); max-width: 44ch; margin-bottom: 32px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: 18px; font-weight: 600; color: var(--muted); margin-top: 18px; }

/* ---------- stats: big inline numerals ---------- */
.trust { background: var(--navy); color: var(--cream); }
.trust-inner {
  max-width: 1220px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 28px;
}
.trust-inner > div { padding: 6px 22px; border-left: 2px solid rgba(253,246,233,.2); }
.trust-inner > div:first-child { border-left: 0; padding-left: 0; }
.trust .t-num {
  font-family: var(--serif); font-size: 42px; color: var(--yellow); line-height: 1.05;
}
.trust .t-lbl { font-size: 18px; font-weight: 600; color: rgba(253,246,233,.85); margin-top: 4px; }

/* ---------- sections ---------- */
section.band { padding: 90px 28px; }
.band-inner { max-width: 1220px; margin: 0 auto; }
.band.ivory, .band.cream { background: var(--paper); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.band.forest { background: var(--red); color: var(--cream); }

h2.section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12;
  color: var(--navy); margin-bottom: 14px; max-width: 26ch;
}
.band.forest h2.section { color: #fff; }
.section-lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.band.forest .section-lede { color: rgba(253,246,233,.85); }
/* The decorative accent bar was removed — it carried no information
   and reading as a stock template flourish. Kept as a no-op so any
   stray markup collapses instead of leaving a gap. */
.rule { display: none; }

/* ---------- program ledger rows (replaces card grids on home) ---------- */
.ledger { border-top: 2px solid var(--navy); }
.ledger-row {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto;
  gap: 22px; align-items: center;
  padding: 26px 6px; border-bottom: 2px solid var(--navy);
  transition: background .15s; border-radius: 2px;
}
.ledger-row:hover { background: var(--paper); }
.ledger-row .no {
  font-family: var(--serif); font-size: 30px; color: var(--red);
}
.ledger-row h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--navy); }
.ledger-row .desc { font-size: 18px; color: var(--muted); }
.ledger-row .go {
  font-size: 22px; font-weight: 700; color: var(--navy);
  width: 46px; height: 46px; border: 2px solid var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); box-shadow: none;
  transition: all .15s;
}
.ledger-row:hover .go { box-shadow: none; }
.ledger-row .tag {
  display: inline-block; font-size: 18px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); background: var(--navy);
  border-radius: 2px; padding: 4px 9px; margin-top: 6px;
}

/* cards (subpages keep grids, restyled) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r);
  padding: 30px 28px 26px; box-shadow: none;
  transition: all .15s;
}
.card:hover { box-shadow: none; }
.card.tint-terra, .card.tint-sun { background: #fdf1cf; }
.card.tint-leaf, .card.tint-green { background: var(--sky); }
.card .c-kicker {
  font-size: 16.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--navy); margin-bottom: 10px; line-height: 1.2; }
.card p { font-size: 18px; color: var(--muted); }
.card .c-link {
  display: inline-block; margin-top: 16px; font-size: 18px; font-weight: 800;
  color: var(--red); border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}
.card img.portrait {
  width: 100%; height: 270px; object-fit: cover; object-position: top;
  border-radius: 2px; border: 2px solid var(--navy); margin-bottom: 16px;
}

/* photo + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo { padding: 0; }
.split .photo img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: var(--r); border: 2px solid var(--navy);
  box-shadow: none;
}
.split .photo figcaption { font-size: 18px; font-weight: 600; color: var(--muted); padding-top: 12px; }
.checklist { list-style: none; margin: 22px 0; }
.checklist li { padding: 10px 0 10px 36px; position: relative; font-size: 18px; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px;
  color: #fff; background: var(--red); border-radius: 50%;
  width: 22px; height: 22px; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote {
  background: var(--paper); border: 2px solid var(--navy);
  border-radius: var(--r); padding: 36px 34px; box-shadow: none;
}
.quote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--navy); margin-bottom: 18px; }
.quote .who { font-size: 18px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* faq */
.faq-list { max-width: 800px; }
.faq-item {
  background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r);
  padding: 24px 28px; margin-bottom: 14px; box-shadow: none;
}
.faq-item h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 18px; }

/* tuition table */
.tuition-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--paper); border: 2px solid var(--navy);
  border-radius: var(--r); overflow: hidden; box-shadow: none;
}
.tuition-table th {
  background: var(--navy); color: var(--cream); font-size: 18px;
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: 15px 20px; font-weight: 800;
}
.tuition-table td { padding: 18px 20px; border-bottom: 2px solid var(--line); font-size: 18px; }
.tuition-table tr:last-child td { border-bottom: 0; }
.tuition-table td.amount { font-family: var(--serif); font-size: 21px; color: var(--red); }
.tbc { font-size: 18px; font-weight: 700; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px);
  color: #fff; margin-bottom: 12px;
}
.cta-band p { color: rgba(253,246,233,.9); margin-bottom: 28px; font-size: 18px; }

/* page hero (subpages) */
.page-hero {
  background: var(--navy); color: var(--cream);
  padding: 78px 28px 64px;
}
.page-hero .band-inner { max-width: 1220px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; max-width: 24ch;
}
.page-hero .sub { color: rgba(253,246,233,.85); font-size: 18px; margin-top: 14px; max-width: 58ch; }
.page-hero .kicker { background: none; color: var(--red); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 780px; }
.form-grid label { display: block; font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: 18px;
  border: 2px solid var(--navy); background: var(--paper); color: var(--navy);
  border-radius: 6px;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: 3px solid var(--yellow); outline-offset: 0;
}
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 16.5px; color: var(--muted); margin-top: 14px; max-width: 62ch; }

/* footer */
footer.site {
  background: var(--navy); color: rgba(253,246,233,.8);
  border-top: 6px solid var(--red);
  padding: 60px 28px 30px; font-size: 18px;
}
.footer-inner { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer .f-name { font-family: var(--serif); font-size: 22px; color: var(--cream); margin-bottom: 12px; }
footer h4 { font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 13px; font-weight: 800; }
footer a { color: rgba(253,246,233,.8); display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1220px; margin: 42px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(253,246,233,.2);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 18px; color: rgba(253,246,233,.55);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .28s; } .reveal.d4 { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > div { padding: 52px 0 40px; }
  .hero .photo-col img { border-left: 0; border-top: 2px solid var(--navy); min-height: 320px; }
  .split, .quotes, .form-grid { grid-template-columns: 1fr; }
  .cards, .cards.four { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .trust-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .ledger-row .desc { display: none; }
}
@media (max-width: 640px) {
  .cards, .cards.four { grid-template-columns: 1fr; }
}


/* kicker-big: Established 1979 */
.kicker-big { font-size: 14.5px; padding: 0; letter-spacing: .2em; }

/* mission band */
.mission { background: var(--navy); padding: 74px 28px; }
.mission-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.mission .m-kicker {
  font-size: 18px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 18px;
}
.mission p {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3; color: var(--cream);
}
.mission p em { font-style: normal; color: var(--yellow); }


/* photo strip */
.photo-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.photo-strip img {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: var(--r); border: 2px solid var(--navy);
}
.photo-strip img:first-child { box-shadow: none; }
@media (max-width: 960px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 220px; }
}

/* ---------- sticky contact (all pages) ---------- */
.sticky-contact {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.sticky-contact a {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 700; padding: 12px 18px;
  border-radius: 6px; border: 2px solid var(--navy);
  box-shadow: none; transition: all .15s;
}
.sticky-contact a:hover { box-shadow: none; }
.sticky-contact .sc-wa { background: #25d366; color: #0a3d1f; }
.sticky-contact .sc-call { background: var(--yellow); color: var(--navy); }
.sticky-contact .sc-ico { font-size: 18px; }
@media (max-width: 600px) {
  .sticky-contact { right: 12px; bottom: 12px; }
  .sticky-contact a span.lbl { display: none; }
  .sticky-contact a { padding: 14px; }
}

/* ---------- why families choose us ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.why .why-item {
  padding: 30px 24px 26px; border-left: 2px solid var(--navy);
}
.why .why-item:first-child { border-left: 0; padding-left: 0; }
.why .why-item .wn {
  font-family: var(--serif); font-size: 30px; color: var(--red); line-height: 1;
  margin-bottom: 12px;
}
.why .why-item h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.why .why-item p { font-size: 18px; color: var(--muted); }
@media (max-width: 780px) {
  .why { grid-template-columns: 1fr 1fr; }
  .why .why-item { border-left: 0; padding-left: 0; border-top: 2px solid var(--line); padding-top: 22px; }
  .why .why-item:first-child, .why .why-item:nth-child(2) { border-top: 0; }
}
@media (max-width: 480px) { .why { grid-template-columns: 1fr; } }

/* ---------- admissions steps ---------- */
.steps { border-top: 2px solid var(--navy); margin-top: 6px; }
.step {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  padding: 28px 4px; border-bottom: 2px solid var(--navy); align-items: start;
}
.step .sn {
  font-family: var(--serif); font-size: 40px; color: var(--red); line-height: 1;
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 18px; color: var(--muted); max-width: 62ch; }
.step .step-note { font-size: 18px; color: var(--navy); font-weight: 600; margin-top: 8px; }
@media (max-width: 600px) { .step { grid-template-columns: 46px 1fr; gap: 16px; } .step .sn { font-size: 30px; } }

/* ---------- palm valley welcome band ---------- */
.pv-band { background: var(--yellow); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.pv-inner {
  max-width: 1220px; margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pv-inner .pv-text { flex: 1; min-width: 260px; }
.pv-inner .pv-text strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); }
.pv-inner .pv-text span { color: var(--navy); font-weight: 600; }
.pv-inner .btn { background: var(--navy); color: var(--cream); border-color: var(--navy); box-shadow: none; }
.pv-inner .btn:hover { box-shadow: none; }

/* ---------- icons ---------- */
.ic { width: 46px; height: 46px; display: block; margin-bottom: 16px; }
.why .why-item .wn { margin-bottom: 4px; }
.why .why-item .wn .ic { margin-bottom: 10px; }
.card .c-ic { width: 42px; height: 42px; display: block; margin-bottom: 16px; }

/* ---------- palm valley pulsing alert dot ---------- */
.pv-inner { align-items: center; }
.pv-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
  flex: none; position: relative; margin-right: 2px;
}
.pv-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--red); animation: pv-pulse 1.8s ease-out infinite;
}
@keyframes pv-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv-dot::after { animation: none; } }

/* ---------- scroll motion (only active when body has .anim) ---------- */
.anim .reveal-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.anim .reveal-up.in { opacity: 1; transform: none; }
/* gentle stagger inside grids */
.anim .cards .card:nth-child(2), .anim .why .why-item:nth-child(2) { transition-delay: .06s; }
.anim .cards .card:nth-child(3), .anim .why .why-item:nth-child(3) { transition-delay: .12s; }
.anim .cards .card:nth-child(4), .anim .why .why-item:nth-child(4) { transition-delay: .18s; }
/* parallax image container */
[data-parallax] { overflow: hidden; }
.anim [data-parallax] img { transform: scale(1.14); will-change: transform; }

/* ---------- kill single-word orphan lines ---------- */
h1, h2, h3, .hero h1, h2.section, .page-hero h1, .card h3, .why-item h3,
.faq-item h3, .cta-band h2, .mission p, .pv-text strong, .step h3 {
  text-wrap: balance;
}
p, .sub, .section-lede, .card p, .why-item p, .ledger-row .desc,
.hero .sub, .pv-text span, .quote p, .faq-item p, .form-note, .step p {
  text-wrap: pretty;
}

/* ---------- sticky contact: real logos, bigger ---------- */
.sticky-contact .sc-svg { width: 22px; height: 22px; flex: none; display: block; }
.sticky-contact .sc-svg.wa { width: 27px; height: 27px; }

/* ---------- hero: slow ken-burns zoom (visible, always-on) ---------- */
.hero .photo-col { overflow: hidden; }
.anim .hero .photo-col img { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) { .anim .hero .photo-col img { animation: none; } }

/* ---------- content photos: parallax-ready (shadow moves to figure) ---------- */
.split .photo { border: 2px solid var(--navy); border-radius: var(--r); box-shadow: none; overflow: hidden; }
.split .photo img { border: 0; border-radius: 0; box-shadow: none; }
.anim [data-parallax] img { transform: scale(1.18); will-change: transform; }

/* ---------- mobile nav toggle + drawer ---------- */
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }
@media (max-width: 960px) {
  .crest { margin-right: auto; }
  .nav-toggle { display: block; order: 3; }
  .lang { white-space: nowrap; display: none; }
  nav.main {
    display: none; order: 4;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--navy); padding: 4px 28px 16px; z-index: 60;
    box-shadow: 0 12px 20px -12px rgba(31,42,68,.3);
  }
  header.site.nav-open nav.main { display: flex; }
  nav.main a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  nav.main a:last-child { border-bottom: 0; }
  nav.main a::after { content: ""; }
}

/* ---------- mobile header tidy + Book-a-Tour inside the menu ---------- */
.menu-tour { display: none; }
.menu-only { display: none; }
@media (max-width: 960px) {
  .header-inner { padding: 12px 20px; gap: 12px; }
  .crest img { width: 48px; height: 48px; }
  .crest .wordmark .name { font-size: 18px; line-height: 1.06; }
  .crest .wordmark .est { display: none; }
  .header-inner > a.btn-gold { display: none; }   /* header CTA hidden; it lives in the menu */
  nav.main .menu-only { display: block; }
  nav.main .menu-tour {
    display: block; margin-top: 12px; background: var(--red); color: #fff;
    text-align: center; border: 2px solid var(--navy); border-radius: 6px;
    padding: 14px; box-shadow: none; font-weight: 700;
  }
  nav.main .menu-tour::after { content: ""; }
  /* Pay Tuition sits first in the mobile menu, as a button */
  nav.main a.menu-pay {
    order: -1; display: block; margin: 10px 0 6px; background: var(--yellow);
    color: var(--navy); text-align: center; border: 2px solid var(--navy);
    border-radius: 6px; padding: 14px; box-shadow: none;
    font-weight: 800; font-size: 18px; border-bottom: 2px solid var(--navy);
  }
  nav.main a.menu-pay::after { content: ""; }
}

/* ---------- independent callout, v37 ---------- */
.indie-band{background:var(--navy);color:#fff;padding:60px 0}
.indie-inner{max-width:1180px;margin:0 auto;padding:0 34px;display:grid;
  grid-template-columns:1.05fr 1fr;gap:52px;align-items:center}
@media(max-width:900px){.indie-inner{grid-template-columns:1fr;gap:34px;padding:0 22px}}
.indie-eyebrow{display:block;font-size: 16.5px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--yellow);margin-bottom:14px}
.indie-lead h2{font-family:var(--serif);font-weight:400;font-size:42px;line-height:1.1;
  color:#fff;margin:0 0 16px}
@media(max-width:640px){.indie-lead h2{font-size:32px}}
.indie-lead p{font-size:18px;line-height:1.6;color:#d7dbe6;margin:0}
.indie-facts{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:520px){.indie-facts{grid-template-columns:1fr}}
.indie-facts li{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);
  border-radius:2px;padding:18px 20px}
.indie-facts strong{display:block;font-family:var(--serif);font-weight:400;
  font-size:22px;color:var(--yellow);margin-bottom:6px}
.indie-facts span{display:block;font-size: 18px;line-height:1.5;color:#cfd5e3}

/* ---------- the creed, v36 ---------- */
.creed{list-style:none;margin:26px 0 0;padding:0;display:grid;
  grid-template-columns:repeat(4,1fr);gap:16px;max-width:1040px}
@media(max-width:900px){.creed{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.creed{grid-template-columns:1fr}}
.creed li{display:flex;align-items:center;gap:14px;background:#fff;
  border:2px solid var(--navy);border-radius:2px;padding:18px 20px;
  font-family:var(--serif);font-size:21px;color:var(--navy);line-height:1.2;
  box-shadow: none;}
.creed .cn{flex:0 0 auto;width:32px;height:32px;border-radius:50%;
  background:var(--red);color:#fff;font-family:var(--sans,inherit);
  font-size: 16.5px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* ---------- place chips, v35 ---------- */
.places{display:flex;flex-wrap:wrap;gap:10px;max-width:900px;margin-top:22px}
.places span{font-size: 18px;font-weight:700;color:var(--navy);background:#fff;
  border:2px solid var(--navy);border-radius:6px;padding:9px 18px;box-shadow: none;}

/* ---------- clickable cards, v31 ---------- */
a.card { display: block; text-decoration: none; color: inherit; }
a.card::after {
  content: "More \2192"; display: block; margin-top: 16px;
  font-size: 18px; font-weight: 800; color: var(--red);
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
  width: fit-content;
}
a.card[data-more]::after { content: attr(data-more) " \2192"; }
a.card:hover { border-color: var(--red); }
a.why-item { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
a.why-item:hover { transform: translateY(-3px); }
a.why-item h3 { border-bottom: 2px solid var(--yellow); display: inline-block; padding-bottom: 2px; }

/* hero now uses scroll-driven zoom+parallax (JS), not the auto ken-burns */
.anim .hero .photo-col img { animation: none; }
.anim [data-parallax] img { transform: scale(1.1); }

/* director portraits: cropped to faces, centered */
.card img.portrait { height: 300px; object-position: 50% 38%; }

/* Mobile: keep the tuition table inside the screen (v19) */
@media (max-width: 560px){
  .tuition-table{ table-layout: fixed; width: 100%; }
  .tuition-table th, .tuition-table td{ padding: 10px 8px; font-size: 18px; overflow-wrap: break-word; }
  .tuition-table td.amount{ font-size: 18px; }
  .tuition-table .tbc{ display: block; font-size: 18px; }
}

/* Hero with a panel beside it (tuition pay form) — v20 */
.page-hero .band-inner.hero-split{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
.page-hero .band-inner.hero-split h1{ margin-bottom:14px; }
@media (max-width: 900px){
  .page-hero .band-inner.hero-split{ grid-template-columns:1fr; gap:28px; }
}


/* Giant faint logo watermark, v27 */
.band.ivory { position: relative; overflow: hidden; }
.band.ivory::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  background: url("img/logo.png") no-repeat center / contain;
  filter: grayscale(1) brightness(0);
  opacity: .035;
  pointer-events: none;
  z-index: 0;
}
.band.ivory > .band-inner { position: relative; z-index: 1; }
/* alternate side on the plain bands so it does not feel repetitive */
.band:not(.ivory):not(.forest):not(.cta-band) { position: relative; overflow: hidden; }
.band:not(.ivory):not(.forest):not(.cta-band)::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -120px;
  width: 560px; height: 560px;
  background: url("img/logo.png") no-repeat center / contain;
  filter: grayscale(1) brightness(0);
  opacity: .028;
  pointer-events: none;
  z-index: 0;
}
.band:not(.ivory):not(.forest):not(.cta-band) > .band-inner { position: relative; z-index: 1; }
@media (max-width: 700px){
  .band.ivory::before, .band:not(.ivory):not(.forest):not(.cta-band)::before { width: 360px; height: 360px; }
}

/* Pay Tuition header button, v30 */
/* header buttons + wordmark must never wrap, v32 */
.header-inner > .btn, .header-inner .crest, .header-inner .lang { flex-shrink: 0; }
.header-inner > .btn { white-space: nowrap; }
.crest .wordmark .name, .crest .wordmark .est { white-space: nowrap; }
.btn-pay { margin-right: 8px; padding: 11px 16px; font-size: 17px; }
@media (max-width: 1180px){ .header-inner { gap: 12px; } nav.main { gap: 14px; } }
@media (max-width: 1080px){ .btn-pay { display: none; } }

/* Visible to screen readers only. Used for section headings that keep the
   h1 -> h2 -> h3 outline intact without changing the visual design. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* ---------- long-form reading (privacy policy and any prose page) ---------- */
.band-inner.narrow { max-width: 720px; }
.band-inner.narrow p { font-size: 18px; line-height: 1.7; margin-bottom: 18px; max-width: 68ch; }
.band-inner.narrow h2.section { font-size: clamp(22px, 2.4vw, 28px); margin-top: 44px; margin-bottom: 12px; }
.band-inner.narrow h2.section:first-of-type { margin-top: 0; }
.band-inner.narrow .lede { font-size: 20px; line-height: 1.55; color: var(--navy); margin-bottom: 34px; }
.band-inner.narrow a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
ul.plain { margin: 0 0 18px; padding-left: 20px; max-width: 68ch; }
ul.plain li { font-size: 18px; line-height: 1.7; margin-bottom: 9px; }

/* ---------- card hierarchy (v41) ----------
   These cards carry a red label and a serif line. On a concept card the LABEL
   is the subject ("Class size" / "Twenty, maximum"), so it should lead. On a
   staff card the person's NAME must lead, so .card.person keeps the old order.
   Previously the label sat at 15px under a 25px value on every card, which
   inverted the hierarchy on the 150 concept cards.                           */
.card .c-kicker {
  font-size: 20px; font-weight: 800; letter-spacing: .06em;
  text-transform: none; color: var(--red); margin-bottom: 4px; line-height: 1.25;
}
.card h3 {
  font-family: var(--sans); font-weight: 600; font-size: 18px;
  color: var(--muted); letter-spacing: 0; margin-bottom: 10px; line-height: 1.35;
}
/* Staff cards: the name leads, the role stays a quiet label. */
.card.person .c-kicker {
  font-size: 14.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.card.person h3 {
  font-family: var(--serif); font-weight: 400; font-size: 25px;
  color: var(--navy); margin-bottom: 10px; line-height: 1.2;
}

/* ---------- one type scale, top to bottom (v43) ----------
   Order of importance, largest first:
     1. section title  — the red word ("Academics", "Our mission")
     2. section tagline — the serif line under it
     3. item heading   — a card, step, FAQ or ledger row
     4. body
   v42 shrank the tagline to 19px but left item headings at 21-25px, so the
   items were shouting over the section they sit inside. This settles all of
   them against one scale.                                                    */

/* 1. section titles */
.kicker, .kicker-big,
.mission .m-kicker,
.indie-lead .indie-eyebrow {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 6px; line-height: 1.08;
}
.kicker, .kicker-big { color: var(--red); }
.mission .m-kicker, .band.forest .kicker { color: var(--yellow); }
.indie-lead .indie-eyebrow { color: var(--yellow); }

/* 2. section taglines */
h2.section, .page-hero h1, .indie-lead h2 {
  font-size: clamp(21px, 2.3vw, 27px) !important;
  line-height: 1.3; font-weight: 400; max-width: 46ch;
}
@media (max-width: 640px) { .indie-lead h2 { font-size: 21px !important; } }

/* 3. item headings — below the tagline, above body */
.ledger-row h3, .why .why-item h3, .step h3, .faq-item h3, .card.person h3 {
  font-size: 20px !important; line-height: 1.3;
}

/* Bare <h2> taglines (CTA bands, the indie block) were outside the scale and
   still rendering at 30-46px, so they outshouted the red section title. */
.cta-band h2, .band-inner > h2:not(.section) {
  font-size: clamp(21px, 2.3vw, 27px) !important;
  line-height: 1.3; font-weight: 400; max-width: 46ch;
  margin-left: auto; margin-right: auto;
}

/* ---------- ask for a Google review, under the quotes ---------- */
.review-cta {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 26px; justify-content: space-between;
}
.review-cta p { font-size: 18px; color: var(--muted); margin: 0; max-width: 46ch; }
@media (max-width: 640px) { .review-cta { flex-direction: column; align-items: flex-start; } }


/* credential line — quiet, above the headline */
.hero-eyebrow {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--red);
  margin: 0 0 20px; line-height: 1.6; max-width: 40ch;
}

/* the headline leads */
.hero h1 {
  font-size: clamp(40px, 4.6vw, 62px) !important;
  line-height: 1.03; letter-spacing: -.015em;
  margin: 0 0 20px; max-width: 15ch; font-weight: 400;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 0 30px; }

/* one primary action */
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0; }
.btn-primary {
  background: var(--red); color: #fff; border: 2px solid var(--red);
  font-size: 18px; padding: 15px 32px; box-shadow: none;
}
.btn-primary:hover { background: #93291f; border-color: #93291f; color: #fff; }
.cta-second {
  font-size: 18px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.cta-second:hover { color: var(--red); border-color: var(--red); }

/* proof line, replacing the orphaned "Se habla espanol" */
.hero-proof {
  list-style: none; margin: 30px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px;
  max-width: 46ch;
}
.hero-proof li {
  font-size: 16.5px; color: var(--muted); line-height: 1.4;
  padding-left: 16px; position: relative;
}
.hero-proof li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; background: var(--yellow); border-radius: 50%;
}

/* photo: full-bleed, no hard rule against the text */
.hero .photo-col { padding: 0; align-self: stretch; }
.hero .photo-col img {
  width: 100%; height: 100%; min-height: 540px;
  object-fit: cover; object-position: 50% 42%;
  border: 0; border-left: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0; }
  .hero-inner > div:first-child { padding: 44px 26px 34px; }
  .hero h1 { font-size: clamp(34px, 8.4vw, 46px) !important; max-width: 18ch; }
  .hero-eyebrow { font-size: 14px; letter-spacing: .15em; margin-bottom: 16px; }
  .hero .sub { font-size: 18px; margin-bottom: 26px; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 26px; padding-top: 22px; }
  .hero .photo-col img { min-height: 320px; border-left: 0; border-top: 1px solid var(--line); }
  .cta-row { gap: 18px; }
  .btn-primary { text-align: center; min-width: 210px; }
  @media (max-width: 480px) { .btn-primary { width: 100%; } }
}

/* ================= HOMEPAGE HERO (v51) =================
   Full-bleed photograph, never tinted. The crest lockup sits top left, a
   translucent navy panel and the three buttons ride together at the bottom so
   the children stay clear above them.                                        */
.hx{position:relative;min-height:760px;overflow:hidden;
    border-bottom:2px solid var(--navy);display:flex}
.hx > img{position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;object-position:62% 34%}
.hx .hx-in{position:relative;z-index:2;width:100%;max-width:1260px;margin:0 auto;
    padding:34px 30px 40px;display:flex;flex-direction:column;justify-content:space-between}

.hx-lock{display:flex;align-items:center;gap:18px;text-decoration:none}
.hx-lock img{width:92px;height:92px;display:block}
.hx-lock .hx-wm{font-family:var(--serif);font-weight:400;color:#fff;font-size:44px;
    line-height:1;letter-spacing:-.015em;text-shadow:0 2px 16px rgba(15,20,35,.65)}

.hx-lower{max-width:640px}
.hx-box{background:rgba(31,42,68,.74);border:1px solid rgba(253,246,233,.28);
    padding:26px 32px 28px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.hx-box .hx-eye{font-family:var(--sans);font-size:13.5px;font-weight:700;
    letter-spacing:.15em;text-transform:uppercase;line-height:1.55;
    margin:0 0 12px;color:var(--yellow)}
.hx-box h1{font-family:var(--serif);font-weight:400;margin:0;color:#fff;
    font-size:clamp(34px,3.9vw,50px);line-height:1.06;letter-spacing:-.015em;max-width:15ch}
.hx-box h1 em{font-style:normal;color:var(--yellow)}
.hx-box .hx-sub{font-size:17.5px;line-height:1.6;margin:13px 0 0;max-width:46ch;
    color:rgba(253,246,233,.9)}

.hx-acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}
.hx-acts .btn{box-shadow:none;font-size:15.5px;padding:10px 20px}
.hx-acts .btn-outline{background:rgba(253,246,233,.94);border-color:var(--navy)}

@media(max-width:900px){
  .hx{min-height:0;display:block}
  .hx > img{position:relative;height:300px;object-position:50% 28%}
  .hx .hx-in{padding:0;display:block;max-width:none}
  .hx-lock{padding:16px 20px;background:var(--navy);gap:14px}
  .hx-lock img{width:58px;height:58px}
  .hx-lock .hx-wm{font-size:30px;text-shadow:none}
  .hx-lower{max-width:none}
  /* nothing sits behind the panel on a phone, so translucency reads as muddy
     grey there. Solid navy instead, which merges it with the lockup bar. */
  .hx-box{background:var(--navy);backdrop-filter:none;-webkit-backdrop-filter:none;
    border:0;border-bottom:2px solid var(--navy);padding:24px 20px 26px}
  .hx-box h1{font-size:clamp(30px,7.8vw,40px);max-width:17ch}
  .hx-acts{margin:0;padding:20px 20px 26px}
  .hx-acts .btn{flex:1 1 44%;text-align:center}
}
