/* Local design preview: calm photographic surfaces, soft teal and restrained motion. */
:root {
  --ink: #20454c;
  --paper: #f8fbf9;
  --orange: #69c2c2;
  --secondary: #357f83;
  --line: #d9e8e5;
  --deep-teal: #174d54;
  --soft-mint: #e9f5f2;
  --card-shadow: 0 20px 55px rgb(22 79 80 / 8%);
  --enrollment-banner-height: 108px;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); }
body, main { overflow-x: clip; }
main > section { scroll-margin-top: 90px; }
main > section:not(.hero) { position: relative; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #247c85; outline-offset: 4px; }

/* Clear, lighter navigation. */
.site-header {
  height: 76px;
  border: 0;
  border-bottom: 1px solid rgb(32 69 76 / 7%);
  background: rgb(255 255 255 / 91%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 28px rgb(16 71 70 / 4%);
  z-index: 40;
}
.brand { letter-spacing: -2.2px; }
.site-header nav { gap: clamp(14px, 2vw, 32px); }
.site-header nav a, .header-cta { transition: color .2s ease; }
.site-header nav a:hover, .header-cta:hover { color: var(--secondary); }
.header-actions { gap: clamp(10px, 1.5vw, 22px); }
.header-cta { border-bottom-color: var(--orange); text-decoration: none; white-space: nowrap; }

/* Photo-led first impression without changing the site's message. */
.hero.hero-single {
  grid-template-columns: 1.03fr .97fr;
  gap: clamp(22px, 4vw, 64px);
  align-items: stretch;
  min-height: 600px;
  padding: 34px 5.5vw 48px;
  border: 0;
  background: radial-gradient(circle at 8% 16%, #e4f5f1 0, transparent 36%), linear-gradient(115deg, #f5faf8, #fff 70%);
}
.hero.hero-single .hero-copy { align-self: center; padding: 60px 0 70px; }
.hero.hero-single h1 {
  font-size: clamp(50px, 5.1vw, 82px);
  line-height: 1.12;
  margin: 26px 0 24px;
  max-width: 10em;
}
.hero h1 em { color: var(--secondary); }
.hero .eyebrow, .section .eyebrow, .about .eyebrow { color: var(--secondary); }
.hero .intro { max-width: 27em; color: #45666a; font-size: clamp(16px, 1.35vw, 20px); }
.hero-slideshow {
  min-height: 570px;
  border-radius: 32px;
  box-shadow: 0 30px 64px rgb(11 58 60 / 17%);
  isolation: isolate;
}
.hero-slide { margin: 0; }
.hero-slide::after { background: linear-gradient(0deg, rgb(5 48 54 / 75%), transparent 65%); }
.slide-caption { padding: clamp(28px, 4vw, 64px); }
.slide-caption p { color: #aee5e0; letter-spacing: .1em; }
.slide-caption h2 { line-height: 1.23; }
.slide-caption span { font-family: var(--sans); font-size: 12px; }

.button, .notice-popup__link {
  border-radius: 999px;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; }
.button span { margin-left: 0; }
.button-dark { background: var(--deep-teal); }
.button-dark:hover, .notice-popup__link:hover { background: #276f75; color: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px rgb(24 90 92 / 18%); }
.button-line { background: #fff; border-color: #b9d1cd; }
.button-line:hover { background: var(--soft-mint); transform: translateY(-3px); }
.text-link { border-color: var(--orange); transition: color .2s ease; }
.text-link:hover { color: var(--secondary); }

/* Editorial rhythm and softer content cards. */
.statement { margin: 0 5.5vw; padding: 66px 2vw; border-color: var(--line); }
.statement strong { color: var(--secondary); }
.stats div { border-color: var(--line); }
.stats b { color: var(--secondary); }
.section { padding-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(80px, 9vw, 130px); }
.section-heading { max-width: 720px; }
.section-heading > p:last-child, .content-heading > p:last-child { color: #527074; line-height: 1.8; }
.classes { background: #fff; }
.class-grid { gap: 22px; }
.class-card {
  min-height: 480px;
  padding: clamp(30px, 3.2vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f8fcfa;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.class-card:hover, .content-card:hover, .place-grid article:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgb(22 79 80 / 13%); }
.class-card.featured { border-color: transparent; background: linear-gradient(150deg, #398b8d, #1b5f68 95%); }
.class-card h3 { font-size: clamp(28px, 2.8vw, 38px); }
.class-card li { border-color: rgb(32 69 76 / 15%); }
.class-card.featured li { border-color: rgb(255 255 255 / 26%); }
.class-card a span { float: none; padding-left: 12px; }

.curriculum { background: linear-gradient(125deg, #348b8f 0%, #1b636b 100%); }
.curriculum li { border-color: rgb(255 255 255 / 28%); }
.curriculum li:last-child { border-color: rgb(255 255 255 / 28%); }
.curriculum li b { color: #b7eddf; }
.curriculum li h3 { font-size: clamp(19px, 2vw, 25px); }

/* Real student reviews, with a calm mint stage and a centered carousel. */
.student-reviews { padding: clamp(78px, 8vw, 112px) 0 82px; background: #def6f4; text-align: center; }
.reviews-heading { margin: 0 auto 44px; padding: 0 22px; max-width: 1000px; }
.reviews-heading h2 { margin: 0; line-height: 1.35; letter-spacing: -.055em; }
.reviews-heading h2 span { display: block; font-size: clamp(22px, 3.1vw, 38px); font-weight: 650; }
.reviews-heading h2 em { display: block; margin-top: 12px; color: #14868a; font-style: normal; font-size: clamp(28px, 4vw, 49px); font-weight: 800; }
.reviews-heading > p { margin: 20px 0 0; color: #537879; font-size: 16px; }
.review-carousel { max-width: 1320px; margin: 0 auto; }
.review-viewport { overflow-x: auto; padding: 12px 0 30px; }
.review-track { display: flex; gap: 22px; padding: 0 24px; text-align: left; align-items: stretch; }
.review-carousel.is-ready .review-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.review-carousel.is-ready .review-track { padding: 0; transition: transform .65s cubic-bezier(.22,.7,.25,1); }
.review-track.is-resetting { transition: none !important; }
.review-card { flex: 0 0 clamp(300px, 31vw, 390px); box-sizing: border-box; padding: 32px; border: 1px solid rgb(24 134 138 / 6%); border-radius: 22px; background: #fff; box-shadow: 0 14px 35px rgb(29 101 99 / 6%); display: flex; flex-direction: column; }
.review-card__tag { margin: 0 0 16px; color: #13898c; font-size: 14px; font-weight: 750; }
.review-card h3 { min-height: 2.75em; margin: 0 0 14px; color: #294c50; font-size: clamp(21px, 2vw, 25px); line-height: 1.4; letter-spacing: -.045em; word-break: keep-all; }
.review-card__author { margin: 0 0 20px; color: #789090; font-size: 14px; }
.review-card__body { margin: 0; padding-top: 22px; border-top: 1px solid #e1eceb; color: #586d70; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.review-card__body p { margin: 0 0 12px; font: inherit; }
.review-carousel.is-ready .review-card__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.review-card__footer { margin-top: auto; padding-top: 27px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.review-card__footer > span { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #e2f7f4; color: #287a7d; font-size: 13px; font-weight: 700; }
.review-read { border: 0; padding: 2px 0; background: none; color: #4c7276; font: 600 13px var(--sans); cursor: pointer; text-align: left; }
.review-read:hover { color: #107d84; }
.review-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 5px 0 29px; }
.review-controls[hidden], .review-read[hidden] { display: none; }
.review-controls button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #92d3d1; border-radius: 50%; color: #208b90; background: transparent; cursor: pointer; font: 30px/1 var(--sans); transition: background .2s; }
.review-controls button:hover { background: #fff; }
.review-count { color: #548082; font: 14px var(--mono); }
.review-controls .review-autoplay { width: 34px; height: 34px; margin-left: 2px; font-size: 16px; }
.reviews-more { display: inline-flex; gap: 15px; align-items: center; color: #13878b; text-decoration: none; font-size: 19px; font-weight: 750; }
.reviews-more span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #80ccca; border-radius: 50%; font-size: 19px; }
.reviews-more:hover { color: #17545b; }
.review-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.review-dialog { width: min(640px, calc(100% - 36px)); max-height: min(80vh, 800px); box-sizing: border-box; margin: auto; padding: 42px; border: 0; border-radius: 24px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 24px 80px rgb(11 60 63 / 22%); }
.review-dialog::backdrop { background: rgb(17 57 63 / 55%); backdrop-filter: blur(4px); }
.review-dialog__close { position: absolute; right: 16px; top: 12px; width: 40px; height: 40px; border: 0; background: none; color: #3a666a; font: 32px/1 var(--sans); cursor: pointer; }
.review-dialog__meta { margin: 0 0 20px; color: #24888a; font-size: 14px; }
.review-dialog h3 { margin: 0 0 26px; padding-right: 16px; font-size: 27px; line-height: 1.4; letter-spacing: -.035em; }
.review-dialog__body { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.review-dialog__body p { margin: 0 0 20px; }
@media (max-width: 760px) {
  .student-reviews { padding: 72px 0 66px; }
  .reviews-heading { margin-bottom: 30px; }
  .reviews-heading h2 span { font-size: clamp(20px, 5vw, 28px); }
  .reviews-heading h2 em { margin-top: 10px; font-size: clamp(27px, 6vw, 36px); word-break: keep-all; }
  .reviews-heading > p { font-size: 14px; margin-top: 17px; }
  .review-track { gap: 16px; }
  .review-card { flex-basis: min(360px, calc(100vw - 76px)); padding: 28px; border-radius: 20px; }
  .review-carousel.is-ready .review-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .review-card h3 { font-size: 22px; }
  .review-card__body { font-size: 15px; }
  .reviews-more { font-size: 17px; }
  .review-dialog { padding: 36px 26px 25px; }
  .review-dialog h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-carousel.is-ready .review-track { transition: none; }
}

.places { border: 0; background: #f4faf7; }
.place-grid { gap: 22px; }
.place-grid article,
.place-grid article + article {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.place-grid h3 { margin: 18px 0; }
.place-photo { border: 0; border-radius: 18px; margin: 16px 0 12px; }
.place-photo img { transition: transform .5s ease; }
.place-grid article:hover .place-photo img { transform: scale(1.035); }
.place-note { color: #607a7a; margin-top: 23px; }

.digital-package, .book-package { border: 0; gap: clamp(45px, 8vw, 120px); }
.digital-package { background: #fff; }
.digital-package .package-cover { border-radius: 32px; background: radial-gradient(circle, #edf8f5 0, #f5faf8 62%, transparent 80%); }
.package-copy li, .book-copy li { border-color: var(--line); padding: 11px 0; }
.book-package { background: linear-gradient(130deg, #2b797f, #18505a); }
.book-copy li { border-color: rgb(255 255 255 / 28%); }
.book-copy h2 em { color: #b6e7e0; }
.book-copy .button-line { color: #fff; }

.study { gap: clamp(36px, 7vw, 110px); background: linear-gradient(125deg, #e6f5f1, #c9e9e8); }
.study-copy > p:not(.eyebrow) { color: #45666a; line-height: 1.8; }
.quiz-panel { background: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 42px); box-shadow: var(--card-shadow); }
.quiz-top { border-color: var(--line); }
.quiz-top span:last-child { color: var(--secondary); }
.featured-question { border: 1px solid var(--line); border-radius: 18px; background: #f9fcfb; }
.featured-question li { border-color: var(--line); border-radius: 10px; background: #fff; }
.featured-question__meta { color: var(--secondary); }

.content-hub { border: 0; background: #fff; }
.content-grid { gap: 20px; border: 0; }
.content-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.content-card:hover { background: #f5fbf8; }
.content-card figure { border: 0; }
.content-card figure span { border-radius: 999px; background: var(--deep-teal); }
.content-card > div { min-height: 210px; }
.content-link { border-color: var(--orange); }

.about { background: #f2f8f5; gap: clamp(45px, 8vw, 120px); }
.about-mark { border-radius: 32px; background: #e6f3ed; }
.about-mark img { width: min(82%, 390px); max-width: 100%; }
.about li { border-color: var(--line); }
.socials a { text-decoration-color: var(--orange); }
.site-footer { background: #153f47; }
.footer-actions a:hover, .footer-brand a:hover { color: #a7e3db; }

/* The enrollment period is controlled by the existing data attribute. */
.enrollment-banner {
  inset: auto auto 18px 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: linear-gradient(110deg, #53b5b6, #2d848b);
  box-shadow: 0 18px 48px rgb(17 79 82 / 24%);
  color: #fff;
  overflow: hidden;
}
.enrollment-banner__inner { min-height: 72px; padding: 10px 14px 10px 28px; }
.enrollment-banner p { font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.04em; }
.enrollment-banner p strong { color: #ffeb3b; }
.enrollment-banner p .enrollment-banner__closed { display: inline-block; margin-inline-start: .5em; padding: 3px 8px; border-radius: 6px; color: #fff; background: #c62838; white-space: nowrap; }
.enrollment-banner a {
  min-height: 48px;
  border-radius: 999px;
  background: var(--deep-teal);
  box-shadow: 0 6px 18px rgb(11 60 63 / 17%);
  white-space: nowrap;
}
.enrollment-banner a:hover { background: #123f48; }
.floating-talk {
  right: max(24px, calc((100vw - 1210px) / 2));
  bottom: calc(var(--enrollment-banner-height) + 22px);
  width: 76px;
  height: 76px;
  background: #fee500;
  color: #3c1e1e;
  box-shadow: 0 12px 30px rgb(29 68 61 / 18%);
  transition: transform .22s ease, box-shadow .22s ease;
  z-index: 21;
}
.floating-talk:hover { background: #fee500; transform: translateY(-4px); box-shadow: 0 16px 32px rgb(29 68 61 / 23%); }
body[data-enrollment-banner="active"] .floating-talk { bottom: calc(var(--enrollment-banner-height) + 22px); }
body:not([data-enrollment-banner="active"]) .floating-talk { bottom: 24px; }
body[data-enrollment-banner="active"] { padding-bottom: calc(var(--enrollment-banner-height) + 34px); }

.notice-popup { background: rgb(13 48 53 / 55%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.notice-popup__panel { border: 0; border-radius: 26px; background: #fff; box-shadow: 0 30px 100px rgb(4 41 45 / 30%); }
.notice-popup__panel h2 em { color: var(--secondary); }
.notice-popup__link { background: var(--deep-teal); text-align: center; }

/* Reveals are progressive enhancement. The page stays visible when JS is absent. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal-target:not(.is-visible) { opacity: 0; transform: translateY(24px); }
  .motion-ready .reveal-target { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
}

@media (max-width: 1180px) {
  .site-header nav { display: none; }
  .hero.hero-single { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --enrollment-banner-height: 94px; }
  .site-header { height: auto; min-height: 72px; padding: 14px 22px; flex-wrap: wrap; gap: 13px; }
  .header-actions { margin-left: auto; gap: 12px; }
  .header-actions .header-cta { font-size: 11px; }
  .hero.hero-single { display: block; min-height: auto; padding: 0 22px 50px; }
  .hero.hero-single .hero-copy { padding: 72px 0 48px; }
  .hero.hero-single h1 { font-size: clamp(46px, 10vw, 68px); }
  .hero-slideshow { min-height: 430px; border-radius: 24px; }
  .slide-caption { padding: 26px; }
  .statement { margin: 0 22px; padding: 50px 0; }
  .section, .curriculum, .about { padding: 82px 22px; }
  .class-grid, .place-grid, .content-grid { gap: 16px; }
  .class-card { min-height: 0; }
  .place-grid article + article { border: 1px solid var(--line); }
  .digital-package, .book-package { padding: 80px 22px; }
  .study { gap: 38px; }
  .content-card > div { min-height: 170px; }
  .about-mark { min-height: 260px; }
  .enrollment-banner { width: calc(100% - 20px); bottom: 10px; border-radius: 24px; }
  .enrollment-banner__inner { min-height: 0; padding: 11px 13px 11px 17px; gap: 9px; flex-direction: row; align-items: center; }
  .enrollment-banner p { min-width: 0; font-size: 13px; line-height: 1.35; }
  .enrollment-banner a { width: auto; min-height: 40px; padding: 0 12px; font-size: 12px; }
  .enrollment-banner a span { font-size: 13px; }
  .floating-talk, body[data-enrollment-banner="active"] .floating-talk { right: 18px; bottom: calc(var(--enrollment-banner-height) + 20px); width: 68px; height: 68px; }
}
@media (max-width: 560px) {
  .site-header { display: grid; grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: space-between; margin: 0; }
  .header-actions .header-cta { font-size: 10px; }
  .hero.hero-single .hero-copy { padding-top: 60px; }
  .hero-slideshow { min-height: 380px; }
  .button-row { gap: 9px; }
  .button { padding: 13px 16px; font-size: 12px; }
  .stats { gap: 6px; }
  .stats b { font-size: 25px; }
  .quiz-panel { padding: 22px; }
  .notice-popup__panel { box-shadow: 0 24px 70px rgb(4 41 45 / 30%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-target { opacity: 1 !important; transform: none !important; }
}
