/* Brooklyn Global Prep: draft site. Phone first. */
:root {
  --ink: #383838;        /* original dark gray: headlines, text */
  --soft-ink: #747474;
  --orange: #FFB84D;     /* golden orange Danielle picked (number 7). Original was #F6921E */
  --orange-dark: #F6921E; /* the original orange, used on hover */
  --blue: #29AAE1;       /* original blue: header, labels, tour section */
  --blue-text: #29AAE1;
  --cream: #ECECEC;      /* light gray, a little darker than the original #F3F3F3 (Danielle, Nov 22) */
  --line: #E6E6E6;
  --white: #fff;
  --font: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.02em;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 60px; /* room for the bottom bar on phones */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(35px, 4.6vw, 59px); }
h2 { font-size: clamp(28.5px, 3.4vw, 43.5px); }
p { margin: 0; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--blue-text);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 22px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 14px; font-size: 11px; }
.btn-big { padding: 11px 26px; font-size: 11px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: var(--blue);
}
.logo img { height: 40px; width: auto; }

/* Hero */
.hero-photo { width: 100%; height: 46vh; min-height: 260px; object-fit: cover; }
.hero-text { text-align: center; padding: 34px 22px 46px; }
.hero-langs {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--soft-ink);
  margin: 16px 0 26px;
}

/* Sections */
.section { padding: 62px 22px; text-align: center; }
.cream { background: var(--cream); }
.one-line { margin-top: 18px; font-size: 1rem; color: var(--soft-ink); }

/* Languages */
.lang-cards { display: grid; gap: 12px; margin-top: 30px; }
.lang-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 16px 22px;
  background: var(--white);
}
.hello { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.lang-card:nth-child(1) .hello { color: var(--blue); }
.lang-card:nth-child(2) .hello { color: var(--orange); }
.lang-card:nth-child(3) .hello { color: var(--ink); }
.lang-name { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--soft-ink); }

/* Why */
.why-list { list-style: none; padding: 0; margin: 30px auto 0; max-width: 560px; text-align: left; }
.why-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--soft-ink); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list strong { display: block; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* Space photos: swipe sideways on phones */
.photo-row {
  display: flex; gap: 12px;
  margin: 30px -22px 0; padding: 0 22px 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.photo-row img {
  flex: 0 0 82%;
  height: 260px; object-fit: cover;
  border-radius: 20px;
  scroll-snap-align: center;
}

/* Ages */
.age-list { list-style: none; padding: 0; margin: 30px auto 0; max-width: 560px; text-align: left; }
.age-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.age-list li:last-child { border-bottom: 1px solid var(--line); }
.age-list strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.age-list span { color: var(--soft-ink); white-space: nowrap; }

/* Quotes */
.quote-row { display: grid; gap: 14px; margin-top: 8px; }
blockquote { margin: 0; padding: 26px 22px; border-radius: 20px; background: var(--cream); text-align: left; }
blockquote::before { content: "\201C"; display: block; height: 34px; font-family: Georgia, serif; font-size: 52px; font-weight: 700; line-height: 1; color: var(--orange); }
blockquote p { font-size: 1.05rem; line-height: 1.45; letter-spacing: -.01em; }
blockquote footer { margin-top: 10px; font-size: .8rem; color: var(--soft-ink); }

/* Tour */
.tour { background: var(--blue); color: var(--white); }
.tour .one-line { color: var(--white); margin: 16px 0 28px; }
.contact { margin-top: 30px; color: var(--white); font-weight: 500; line-height: 1.7; }
.contact a { color: var(--white); font-weight: 700; text-decoration: none; font-size: 1.05rem; }

.site-footer { padding: 22px; text-align: center; font-size: .8rem; color: var(--soft-ink); }

/* Outline button: second choice next to the orange one */
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 9px 20px; margin-top: 28px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* How it works page */
.page-top h1 { max-width: 720px; margin: 0 auto; }
.fact-list { list-style: none; counter-reset: fact; padding: 0; margin: 0 auto; max-width: 640px; text-align: left; }
.fact-list li { counter-increment: fact; padding: 28px 0; border-top: 1px solid var(--line); }
.fact-list li:first-child { border-top: 0; padding-top: 0; }
.fact-list li::before { content: counter(fact); display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--orange); margin-bottom: 8px; }
.fact-list h2 { font-size: 20px; letter-spacing: -.04em; line-height: 1.2; }
.fact-list p { margin-top: 8px; color: var(--soft-ink); }
.source { display: inline-block; margin-top: 8px; font-size: .78rem; color: var(--blue); }
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* Bottom bar on phones: always one tap from a tour */
.tour-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
}
.tour-bar a {
  flex: 1; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 13px; letter-spacing: .045em; text-transform: uppercase;
  padding: 9px 10px; border-radius: 999px;
}
.bar-call { flex: 0 0 30% !important; border: 1.5px solid var(--ink); color: var(--ink); }
.bar-tour { background: var(--orange); color: var(--ink); }

/* Bigger screens */
@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 17px; }
  .tour-bar { display: none; }
  .site-header { padding: 14px 40px; }
  .logo img { height: 52px; }
  .btn-small { padding: 9px 18px; font-size: 13px; }
  .btn, .btn-big { font-size: 13px; }
  .eyebrow { font-size: 17px; }
  .hero { position: relative; }
  .hero-photo { height: 78vh; }
  .hero-text {
    position: absolute; left: 40px; bottom: 40px;
    max-width: 640px; text-align: left;
    background: rgba(255,255,255,.95);
    border-radius: 24px; padding: 38px 40px 40px;
  }
  .section { padding: 96px 40px; }
  .lang-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin-left: auto; margin-right: auto; }
  .hello { font-size: 2.5rem; }
  .photo-row { margin: 40px auto 0; padding: 0; max-width: 1200px; overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); }
  .photo-row img { height: 300px; }
  .quote-row { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 8px auto 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Closing tagline at the very end of each page */

.tagline { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); margin-bottom: 18px; }
@media (min-width: 760px) { .tagline { font-size: 1.7rem; } }

/* Infants page and links inside the ages list */
.age-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.section > .one-line { max-width: 620px; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .quote-row.two { grid-template-columns: repeat(2, 1fr); max-width: 800px; } }

/* Languages page */
.lang-cards.first { margin-top: 0; }
.site-footer p:first-child { line-height: 2; }

/* Programs page */
.program-list { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; text-align: left; }
.program { display: block; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; background: var(--white); text-decoration: none; color: var(--ink); }
.program strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-top: 2px; }
.program-age { display: block; font-size: 14px; font-weight: 700; color: var(--blue-text); }
.program-line { display: block; margin-top: 8px; color: var(--soft-ink); }
.program-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 760px) { .program-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Programs page: two-card row and section heading gap */
.program-list.two { margin-top: 28px; max-width: 660px; }
@media (min-width: 760px) { .program-list.two { grid-template-columns: repeat(2, 1fr); } }

/* Programs page: age buttons (like Noah's Ark) */
.glance { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.glance a { position: relative; display: block; height: 100%; background: var(--white); border-radius: 12px; padding: 14px 26px 14px 12px; text-decoration: none; color: var(--soft-ink); font-size: 14px; line-height: 1.35; }
.glance strong { display: block; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.glance i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; font-size: 20px; color: var(--orange); }
.glance a:hover { outline: 2px solid var(--orange); }

/* Programs page: one panel per age group */
.panels { padding: 34px 22px 10px; }
.panel { max-width: 1000px; margin: 0 auto 46px; text-align: center; scroll-margin-top: 74px; }
.page-top { scroll-margin-top: 70px; }
.panel-photo { width: 100%; height: 230px; object-fit: cover; border-radius: 20px; }
.panel-text { padding: 22px 6px 0; }
.panel-ages { margin-top: 6px; font-weight: 700; color: var(--blue-text); }
.panel-text p { margin-top: 10px; color: var(--soft-ink); }
.panel-hook { display: block; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.panel-link a, .panel-back a { color: var(--ink); font-weight: 700; text-decoration: none; }
.panel-link a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.panel-back { font-size: 14px; }
@media (min-width: 760px) {
  .glance { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .panels { padding: 70px 40px 20px; }
  .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; text-align: left; margin-bottom: 70px; }
  .panel:nth-child(even) .panel-photo { order: 2; }
  .panel-photo { height: 340px; }
  .panel-text { padding: 0; }
}

/* Book a tour page */
.tour-page { padding-bottom: 0; }
.booking { padding-top: 34px; }
.calendar-box { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.calendar-box iframe { display: block; width: 100%; height: 720px; border: 0; }
.booking .btn-outline { margin-top: 14px; }
.site-footer p:first-child { max-width: 420px; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .site-footer p:first-child { max-width: none; } }

/* ---- Nov 21: top menu ---- */
.site-header { justify-content: flex-start; }
.site-header .btn-small { margin-left: auto; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; margin-left: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--white); }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); padding: 6px 18px 16px; border-top: 1px solid rgba(255,255,255,.35); }
.main-nav a { display: block; padding: 13px 4px; color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.main-nav a:last-child { border-bottom: 0; }
.nav-label { display: block; padding: 13px 4px; color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -.02em; border-bottom: 1px solid rgba(255,255,255,.25); cursor: pointer; }
.menu-toggle:checked ~ .main-nav { display: block; }
.menu-toggle:focus-visible ~ .menu-btn { outline: 2px solid var(--white); outline-offset: 3px; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .main-nav { display: flex; position: static; background: none; padding: 0; border: 0; gap: 26px; margin-left: 40px; }
  .main-nav a { padding: 0; border: 0; font-size: 15px; }
  .nav-label { padding: 0; border: 0; font-size: 15px; cursor: default; }
  .main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
}

/* ---- Nov 21: fuller footer ---- */
.site-footer { padding: 34px 22px 26px; font-size: 15px; color: var(--ink); }
.site-footer p { margin-top: 10px; }
.site-footer p:first-child { margin-top: 0; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 2; }
.site-footer .foot-small { font-size: 13px; color: var(--soft-ink); }
.site-footer .foot-small a { font-weight: 500; text-decoration: underline; }
@media (min-width: 760px) { .site-footer p:first-child { max-width: none; } }

/* ---- Nov 21: blog articles ---- */
.article { max-width: 680px; margin: 0 auto; padding: 52px 22px 60px; }
.article .eyebrow a { color: inherit; text-decoration: none; }
.article h1 { margin-bottom: 20px; }
.article h2 { font-size: 22px; letter-spacing: -.03em; line-height: 1.2; margin: 32px 0 8px; }
.article p, .article li { color: var(--soft-ink); font-size: 17px; line-height: 1.65; }
.article p { margin-top: 12px; }
.article .lead { color: var(--ink); font-size: 19px; }
.article ul, .article ol { padding-left: 22px; margin: 12px 0 0; }
.article li { margin-top: 10px; }
.article li strong { color: var(--ink); }
.article .sources { font-size: 14px; margin-top: 30px; }
.article .sources a { color: var(--blue-text); }
.article .back { margin-top: 34px; }
.article .back a { color: var(--ink); font-weight: 700; text-decoration: none; }
a.program:hover { outline: 2px solid var(--orange); }

/* Nov 21: teacher to child line on program panels */
.panel-text .panel-ratio { margin-top: 2px; font-size: 15px; color: var(--soft-ink); }

/* keep phone numbers on one line */
a[href^="tel"] { white-space: nowrap; }

/* Nov 21: photos of children. Keep faces in view when a tall photo is cropped. */
.pos-top { object-position: center 28%; }
.pos-mid { object-position: center 45%; }
.wide-photo { display: block; width: 100%; max-width: 900px; height: 280px; object-fit: cover; border-radius: 20px; margin: 22px auto 0; }
.section:not(.space) > .photo-row { margin-top: 28px; }
@media (min-width: 760px) { .wide-photo { height: 420px; } }

/* tall photos fill their column in the photo rows on wide screens */
@media (min-width: 760px) { .photo-row img { width: 100%; } }

/* Nov 21: on wide screens the top is split: words on the left, photo on the right, so nothing covers a face */
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: 1fr 1.2fr; align-items: stretch; min-height: 74vh; }
  .hero-photo { order: 2; width: 100%; height: 100%; min-height: 74vh; }
  .hero-text { position: static; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: none; background: var(--white); border-radius: 0; padding: 48px 48px 48px 40px; text-align: left; }
}

/* Nov 21 (later): Danielle prefers a full-bleed photo at the top, like Noah's Ark. Photo edge to edge, words centered under it. Replaces the split layout above. */
@media (min-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { order: 0; width: 100%; height: 72vh; min-height: 420px; }
  .hero-text { display: block; position: static; max-width: 860px; margin: 0 auto; background: none; border-radius: 0; padding: 54px 40px 64px; text-align: center; }
}

/* Nov 21: short lists are centered like the rest of each page (blog articles stay left for easy reading) */
.why-list, .fact-list { text-align: center; }
.fact-list .source { display: block; }

/* Nov 21: one warm paragraph block (Reggio page) */
.message { padding-bottom: 20px; }
.message p { max-width: 620px; margin: 0 auto 18px; font-size: 19px; line-height: 1.6; color: var(--ink); }
.message p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .message p { font-size: 21px; max-width: 680px; } }

/* Nov 21: label a bit bigger, section headline a bit smaller, so they sit together better */
.eyebrow { font-size: 16px; margin-bottom: 12px; }
h2 { font-size: clamp(25px, 2.6vw, 36px); }
.fact-list h2, .article h2 { font-size: 20px; }
.article h2 { font-size: 22px; }
@media (min-width: 760px) { .eyebrow { font-size: 20px; margin-bottom: 14px; } }

/* Nov 21: one short silent clip (homepage, How we teach) */
.clip { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; margin: 26px auto 0; background: var(--cream); }
@media (min-width: 760px) { .clip { max-width: 340px; margin-top: 34px; } }

/* Nov 21: language boxes that open a page for each language */
a.lang-card { display: block; text-decoration: none; color: inherit; }
a.lang-card:hover, a.lang-card:focus-visible { border-color: var(--blue); }
.lang-more { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--blue-text); }
.one-line.also { margin-top: 26px; font-size: 15px; }
.one-line.also a { color: var(--blue-text); font-weight: 700; }

/* Nov 21: footer matched to Noah's Ark (name, address, phone, hours, social) */
.site-footer p:first-child { line-height: 1.3; max-width: none; }
.site-footer .foot-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.site-footer .foot-small { margin-top: 18px; }

/* Nov 22: less empty space between the top words and the next part when both are white */
.hero + .section:not(.cream) { padding-top: 34px; }
@media (min-width: 760px) {
  .hero-text { padding-bottom: 28px; }
  .hero + .section:not(.cream) { padding-top: 52px; }
}

/* Nov 22 (2): tighter still under the top button, and the button sits a little lower so it is centered in its space */
@media (min-width: 760px) {
  .hero-text { padding-bottom: 14px; }
  .hero-text .btn { margin-top: 12px; }
  .hero + .section:not(.cream) { padding-top: 36px; }
}

/* Nov 22: every row in the homepage ages list is a link */
.age-list li { padding: 0; display: block; }
.age-list li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; color: inherit; text-decoration: none; }
.age-list li a strong { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.age-list li a:hover span, .age-list li a:focus-visible span { color: var(--ink); }

/* Nov 22: ages live under "Programs". Phone: listed under Programs in the menu. Computer: a drop-down. */
.sub-nav a { padding-left: 22px; font-size: 16px; font-weight: 500; }
.sub-nav a:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
@media (min-width: 900px) {
  .nav-group { position: relative; }
  .nav-top::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: var(--white); border-bottom-width: 0; vertical-align: middle; }
  .sub-nav { display: none; position: absolute; left: -18px; top: 100%; padding-top: 16px; z-index: 30; }
  .nav-group:hover .sub-nav, .nav-group:focus-within .sub-nav { display: block; }
  .sub-box { background: var(--white); border-radius: 16px; padding: 8px; min-width: 190px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
  .main-nav .sub-box a { display: block; padding: 10px 14px; border: 0; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
  .main-nav .sub-box a:last-child { border-bottom: 0; }
  .main-nav .sub-box a:hover, .main-nav .sub-box a:focus-visible { background: var(--cream); text-decoration: none; }
}

/* Nov 22: on a computer the top links sit on the right, beside the Book a tour button */
@media (min-width: 900px) {
  .main-nav { margin-left: auto; }
  .site-header .btn-small { margin-left: 32px; }
}

/* Nov 22: language pages. Switch between the three languages at the top, and less white space. */
.lang-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lang-switch a { padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; background: var(--white); }
.lang-switch a.on { background: var(--ink); color: var(--white); }
.lang-switch a:hover, .lang-switch a:focus-visible { border-color: var(--blue); }
main .section:not(.tour) { padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 760px) {
  main .section:not(.tour) { padding-top: 60px; padding-bottom: 60px; }
}

/* Nov 22: the closer spacing above now applies to every page, so they all feel the same */

/* Nov 22: phone number under the Book a tour button, lighter so it matches the line above */
.tour .contact { margin-top: 22px; }
.tour .contact a { font-size: 1rem; font-weight: 500; }

/* Nov 22: age pages. Jump buttons at the top, and jumps land below the blue bar. */
.lang-switch.jump { margin-top: 0; margin-bottom: 30px; }
.lang-switch.jump a { border-width: 1.5px; font-size: 14px; padding: 7px 14px; }
main .section[id] { scroll-margin-top: 80px; }

/* Nov 22: homepage ages list. The orange line shows only when the mouse is on a row. */
.age-list li a strong { text-decoration-color: transparent; }
.age-list li a:hover strong, .age-list li a:focus-visible strong { text-decoration-color: var(--orange); }

/* Nov 22: a taller edge-to-edge top photo, so more of the picture shows (Infants) */
@media (min-width: 760px) {
  .hero-photo.hero-tall { height: 88vh; }
}

/* Nov 22: spacing polish. (a) When two parts of the same color sit back to back, the gap is not doubled. (b) The blue Book a tour band is a little shorter. */
main .section:not(.cream):not(.tour):not(.hero) + .section:not(.cream):not(.tour) { padding-top: 0; }
main .section.cream + .section.cream { padding-top: 0; }
main .section.tour { padding-top: 52px; padding-bottom: 52px; }
@media (min-width: 760px) {
  main .section.tour { padding-top: 72px; padding-bottom: 72px; }
}

/* Nov 22: the gray parts are a little darker, so the thin lines inside them are a little darker too */
.cream .why-list li, .cream .fact-list li, .cream .age-list li { border-color: rgba(0,0,0,.10); }

/* Nov 22: photo strip. A row of whole photos that slides sideways. Swipe on a phone, arrows on a computer. It never moves by itself. */
.strip-wrap { position: relative; margin: 22px -22px 0; }
.photo-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 0 22px 10px; scrollbar-width: thin; }
.photo-strip img { flex: 0 0 auto; height: 240px; width: auto; border-radius: 18px; scroll-snap-align: center; }
.strip-btn { display: none; }
@media (min-width: 760px) {
  .strip-wrap { margin: 28px auto 0; max-width: 1200px; padding: 0 56px; }
  .photo-strip { padding: 0 0 12px; }
  .photo-strip img { height: 340px; }
  .strip-btn { display: block; position: absolute; top: calc(50% - 28px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 28px; line-height: 40px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
  .strip-btn.prev { left: 0; }
  .strip-btn.next { right: 0; }
  .strip-btn:hover { background: var(--orange); }
}

/* Nov 22: strip arrows are orange so they are easy to spot, and each photo keeps its shape while it loads */
.photo-strip img { max-width: none; }
@media (min-width: 760px) {
  .strip-btn { background: var(--orange); width: 48px; height: 48px; top: calc(50% - 30px); font-size: 30px; line-height: 44px; }
  .strip-btn:hover { background: var(--orange-dark); color: var(--white); }
}

/* Nov 22: strip arrows show at every screen size, so the row can always be moved with a click */
.strip-btn { display: block; position: absolute; top: calc(50% - 27px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); font-size: 28px; line-height: 40px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.strip-btn.prev { left: 10px; }
.strip-btn.next { right: 10px; }
@media (min-width: 760px) {
  .strip-btn.prev { left: 0; }
  .strip-btn.next { right: 0; }
}

/* Nov 22: sliding photo row. Same look as the rows of four photos, but with arrows and more photos behind them. */
.photo-strip.tiles img { flex: 0 0 78%; width: 78%; height: 260px; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 760px) {
  .photo-strip.tiles { gap: 12px; }
  .photo-strip.tiles img { flex: 0 0 calc((100% - 36px) / 4); width: calc((100% - 36px) / 4); height: 300px; }
}

/* Nov 22: on phones the ages stay closed until the arrow beside Programs is tapped */
.nav-group { position: relative; }
.ages-toggle { position: absolute; opacity: 0; pointer-events: none; }
.ages-btn { position: absolute; right: 0; top: 0; width: 56px; height: 50px; cursor: pointer; }
.ages-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -8px 0 0 -6px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(45deg); transition: transform .15s; }
.ages-toggle:checked + .ages-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.ages-toggle:focus-visible + .ages-btn { outline: 2px solid var(--white); outline-offset: -4px; border-radius: 8px; }
.sub-nav { display: none; }
.ages-toggle:checked ~ .sub-nav { display: block; }
@media (min-width: 900px) {
  .ages-toggle, .ages-btn { display: none; }
  .ages-toggle:checked ~ .sub-nav { display: none; }
  .nav-group:hover .sub-nav, .nav-group:focus-within .sub-nav { display: block; }
}

/* Nov 22: blue header a bit bigger (her pick, size 1) */
.site-header { padding-top: 13px; padding-bottom: 13px; }
.logo img { height: 45px; }
.panel, .page-top, main .section[id] { scroll-margin-top: 84px; }
@media (min-width: 760px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .logo img { height: 58px; }
  .panel, .page-top, main .section[id] { scroll-margin-top: 104px; }
}
@media (min-width: 900px) {
  .main-nav > a, .nav-top { font-size: 16px; }
}

/* Nov 22: Tuition page cards */
.fee-grid { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; text-align: left; }
.fee-grid.two { max-width: 620px; margin-top: 26px; }
.fee-card { background: var(--white); border: 1.5px solid #E3E3E3; border-radius: 20px; padding: 22px 22px 10px; }
.fee-card h2 { font-size: 22px; margin: 0; color: var(--blue); }
.fee-age { margin: 4px 0 10px; color: #747474; font-size: 15px; }
.fee-card ul { list-style: none; margin: 0; padding: 0; }
.fee-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid #E9E9E9; font-size: 17px; }
.fee-card li b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.fee-card li small { display: block; font-size: 13px; color: #747474; margin-top: 2px; }
.fee-note { text-align: center; color: #747474; font-size: 15px; margin: 18px 0 0; }
@media (min-width: 620px) { .fee-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fee-grid:not(.two) { grid-template-columns: repeat(4, 1fr); } }
.tour .contact a[href="tuition.html"] { text-decoration: underline; text-underline-offset: 4px; }

/* Nov 22: phone menu fills the screen, with Book a tour at the bottom */
.nav-tour { display: none; }
@media (max-width: 899px) {
  .menu-toggle:checked ~ .main-nav { display: flex; flex-direction: column; height: calc(100vh - 71px); height: calc(100dvh - 71px); overflow-y: auto; padding: 10px 22px 26px; }
  .main-nav > a, .main-nav .nav-top { font-size: 22px; padding-top: 17px; padding-bottom: 17px; }
  .main-nav .ages-btn { height: 62px; }
  .main-nav .sub-nav a { font-size: 18px; padding-top: 13px; padding-bottom: 13px; }
  .main-nav > a.nav-tour { display: block; margin-top: auto; flex: 0 0 auto; padding: 17px 20px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .main-nav > a:nth-last-child(2) { border-bottom: 0; margin-bottom: 24px; }
  body:has(.menu-toggle:checked) { overflow: hidden; }
  body:has(.menu-toggle:checked) .tour-bar { display: none; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .menu-toggle:checked ~ .main-nav { height: calc(100vh - 94px); height: calc(100dvh - 94px); }
}
@media (max-width: 899px) {
  .main-nav > a.nav-tour { position: sticky; bottom: 0; box-shadow: 0 -14px 0 8px var(--blue), 0 30px 0 8px var(--blue); letter-spacing: .045em; font-weight: 700; }
}
@media (min-width: 900px) { .main-nav > a.nav-tour { display: none; } }

/* Nov 22: phone menu, second pass. White sheet, Book a tour right under the list, the three lines turn into an X. */
@media (max-width: 899px) {
  .menu-toggle:checked ~ .main-nav { background: var(--white); border-top: 0; padding: 14px 22px 30px; }
  .main-nav a, .main-nav .nav-top { color: var(--ink); border-bottom-color: #E3E3E3; }
  .main-nav .sub-nav a { color: var(--ink); }
  .main-nav .sub-nav a:last-child { border-bottom-color: #E3E3E3; }
  .main-nav .ages-btn::after { border-right-color: var(--blue); border-bottom-color: var(--blue); }
  .main-nav > a:nth-last-child(2) { border-bottom: 1px solid #E3E3E3; margin-bottom: 0; }
  .main-nav > a.nav-tour { position: static; box-shadow: none; margin: 30px auto 0; align-self: center; min-width: 230px; padding: 16px 34px; border-radius: 999px; }
  .menu-btn span { transition: transform .18s, opacity .18s; }
  .menu-toggle:checked ~ .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 899px) { .menu-toggle:checked ~ .btn-small { visibility: hidden; } }

/* Nov 22: Apply and Follow links under the phone menu button */
.main-nav > a.nav-extra { display: none; }
@media (max-width: 899px) {
  .main-nav > a.nav-extra { display: block; border: 0; margin: 0; padding: 11px 0; text-align: center; font-size: 16px; font-weight: 500; color: #747474; }
  .main-nav > a.nav-extra span { display: inline-block; width: 24px; height: 24px; line-height: 21px; margin-left: 8px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; text-align: center; vertical-align: middle; }
  .main-nav > a.nav-apply { margin-top: 18px; font-size: 19px; font-weight: 700; color: var(--blue); }
  .main-nav > a.nav-tour { margin-bottom: 0; }
}
/* Nov 22: menu arrows and Apply line in black (her pick) */
@media (max-width: 899px) {
  .main-nav .ages-btn::after { border-right-color: var(--ink); border-bottom-color: var(--ink); }
  .main-nav > a.nav-apply { color: var(--ink); }
}

/* Nov 22: class buttons on the language pages, so parents can go from a language to their child's age */
.class-lead { margin: 34px auto 0; font-weight: 700; }
.class-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 16px auto 0; }
.class-links a { display: block; padding: 13px 10px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; text-align: center; }
.class-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.class-links strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.class-links span { display: block; margin-top: 2px; font-size: 13px; color: var(--soft-ink); }
.class-links a:hover, .class-links a:focus-visible { background: var(--ink); color: var(--white); }
.class-links a:hover span, .class-links a:focus-visible span { color: var(--white); }
@media (min-width: 760px) { .class-links { grid-template-columns: repeat(5, 1fr); max-width: 980px; } .class-links a:last-child:nth-child(odd) { grid-column: auto; } }

/* Nov 22: "you are here". A small trail under the blue bar, and an orange underline on the current page in the menu. */
.trail { display: flex; align-items: center; gap: 8px; padding: 9px 20px; background: var(--white); font-size: 14px; color: var(--soft-ink); }
.trail a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.trail .here { font-weight: 600; }
@media (min-width: 760px) { .trail { padding: 11px 32px; font-size: 15px; } }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (min-width: 900px) { .nav-group:has(.sub-box [aria-current="page"]) .nav-top { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; } }

/* Nov 22: tuition page. Open hours, school day and longer days as three plain facts; full-day total on each card. */
.hours-facts { list-style: none; padding: 0; margin: 26px auto 0; max-width: 620px; text-align: left; background: var(--white); border-radius: 20px; padding: 6px 22px; }
.hours-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid #E9E9E9; font-size: 16px; }
.hours-facts li:first-child { border-top: 0; }
.hours-facts strong { font-weight: 800; white-space: nowrap; }
.hours-facts span { color: #5E5E5E; text-align: right; }
.fee-card { display: flex; flex-direction: column; }
.fee-label { margin: 6px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.fee-label span { font-weight: 600; letter-spacing: 0; text-transform: none; color: #747474; margin-left: 6px; }
.fee-full { margin: auto -22px -10px; padding: 16px 22px 18px; background: #FFF3DC; border-radius: 0 0 18px 18px; }
.fee-full .fee-label { margin-top: 0; }
.fee-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0; font-size: 17px; }
.fee-total b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.fee-total small { display: block; font-size: 13px; color: #747474; margin-top: 2px; }
.fee-card ul + .fee-full { margin-top: auto; }
.fee-card > ul { margin-bottom: 12px; }
.fee-grid.two .fee-card > ul { margin-bottom: 0; }

/* Nov 22 final check: the number 1 was touching the "Three simple steps." heading on Book a tour */
h2 + .fact-list { margin-top: 28px; }
/* Nov 22 final check: the trail line now starts exactly under the logo */
.trail { padding-left: 18px; }
@media (min-width: 760px) { .trail { padding-left: 40px; } }

/* Nov 22: headings break into even lines, so no word sits alone on the last line */
h1, h2, h3, .one-line { text-wrap: balance; }

/* Nov 22: phones, less empty space under the top text and button (gap to the next part was 80, now 54) */
@media (max-width: 759px) { .hero-text { padding-bottom: 20px; } }

/* Nov 23: bigger button lettering. On the very narrowest phones keep the header button clear of the logo. */
@media (max-width: 345px) { .site-header .btn-small { font-size: 10px; padding: 8px 11px; } .site-header .logo img { height: 40px; } }
