/* =========================================================================
   Alchemy School — live theme
   Adapted from the demo. Header/footer lightened from near-black to teal;
   hero is now a photo banner with light text.
   ========================================================================= */

:root {
  /* Multi-bright palette */
  --c-yellow:  #FFC93C;
  --c-yellow-d:#F0AE00;
  --c-teal:    #2EC4B6;
  --c-teal-d:  #1B9C85;
  --c-coral:   #FF6B6B;
  --c-coral-d: #E8484F;
  --c-lilac:   #B983FF;
  --c-lilac-d: #9D6BFF;

  /* Brand anchor used for header & footer (was dark ink before) */
  --c-brand:   #1B9C85;
  --c-brand-d: #14806E;

  --c-ink:     #2B2B43;   /* headings / dark body text (on light bg) */
  --c-body:    #5b5b73;   /* body copy */
  --c-cream:   #FFF8EE;   /* page background */
  --c-white:   #ffffff;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 34px;
  --shadow:    0 18px 40px rgba(43, 43, 67, .10);
  --shadow-sm: 0 10px 24px rgba(43, 43, 67, .08);

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, sans-serif;

  --maxw: 1180px;
}

/* ----------------------------- Base ----------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--c-coral); color: #fff; box-shadow: 0 12px 22px rgba(255, 107, 107, .35); }
.btn--primary:hover { background: var(--c-coral-d); transform: translateY(-2px); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--ghost { background: #fff; color: var(--c-ink); border-color: #ffe3c2; }
.btn--ghost:hover { border-color: var(--c-yellow); transform: translateY(-2px); }
/* Light ghost button for use over the dark photo banner */
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(3px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
/* WhatsApp button */
.btn--wa { background: #25D366; color: #fff; justify-content: center; box-shadow: 0 12px 22px rgba(37,211,102,.30); }
.btn--wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn--wa svg { flex: 0 0 auto; }

/* ----------------------------- Shared bits ----------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: 13px; color: var(--c-teal-d); margin-bottom: 16px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--onbanner { color: #fff; }
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 0 4px rgba(255, 201, 60, .25); }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-sub { margin-top: 12px; font-size: 17px; }

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 0; pointer-events: none; will-change: transform; animation: blob-float 16s ease-in-out infinite alternate; }
.blob--lilac  { width: 240px; height: 240px; background: var(--c-lilac); top: -50px; left: -60px; opacity: .22; animation-duration: 20s; }
@keyframes blob-float { 0%{transform:translate(0,0) scale(1);} 50%{transform:translate(22px,-26px) scale(1.06);} 100%{transform:translate(-18px,16px) scale(0.97);} }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ============================== HEADER (lightened) ============================== */
.topbar { background: var(--c-brand); color: rgba(255,255,255,.9); font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; flex-wrap: wrap; }
.topbar__contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__contacts .ico { margin-right: 4px; }
.topbar__social { display: flex; gap: 8px; }
.topbar__social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 13px; transition: background .2s; }
.topbar__social a:hover { background: var(--c-yellow); color: var(--c-ink); }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 54px; height: 54px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--c-ink); }
.brand__tag  { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-teal-d); font-weight: 600; }

.mainnav { margin-left: auto; }
.mainnav ul { display: flex; gap: 30px; }
.mainnav a { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--c-ink); padding: 6px 0; position: relative; }
.mainnav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: var(--c-coral); transition: width .2s ease; }
.mainnav a:hover::after, .mainnav a.is-active::after { width: 100%; }
.mainnav a.is-active { color: var(--c-coral); }
.mainnav .has-sub { position: relative; }
.caret { font-size: 11px; }
.submenu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 210px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60; }
.submenu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mainnav .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu li a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.submenu li a::after { display: none; }
.submenu li a:hover { background: #fff3da; color: var(--c-coral); }
.navbar__cta { padding: 12px 24px; }
.navbar__burger { display: none; background: none; border: 0; font-size: 26px; color: var(--c-ink); cursor: pointer; }

/* ============================== HERO / BANNER ============================== */
.hero { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; padding: 90px 0; }
.hero__bg { position: absolute; inset: 0; background: url("../../img/banner.jpg") center / cover no-repeat; transform: scale(1.02); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(20,128,110,.86) 0%, rgba(27,43,67,.62) 55%, rgba(43,43,67,.35) 100%); }
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 640px; color: #fff; }
.hero__title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hl--banner { color: var(--c-yellow); }
.hero__lead { font-size: 19px; max-width: 560px; margin-bottom: 30px; color: rgba(255,255,255,.95); text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================== FEATURES ============================== */
.features { padding: 70px 0 80px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-card { position: relative; background: #fff; border-radius: var(--radius); padding: 36px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; border-bottom: 5px solid transparent; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature-card__icon { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; margin-bottom: 20px; }
.feature-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15.5px; }
.feature-card--yellow { border-bottom-color: var(--c-yellow); } .feature-card--yellow .feature-card__icon { background: #fff3d2; }
.feature-card--teal   { border-bottom-color: var(--c-teal); }   .feature-card--teal   .feature-card__icon { background: #d6f5f1; }
.feature-card--coral  { border-bottom-color: var(--c-coral); }  .feature-card--coral  .feature-card__icon { background: #ffe0e0; }
.feature-card--lilac  { border-bottom-color: var(--c-lilac); }  .feature-card--lilac  .feature-card__icon { background: #efe2ff; }

/* ============================== ABOUT / PRINCIPAL / M&V ============================== */
.about { position: relative; overflow: hidden; padding: 40px 0 90px; }
.about__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.about__media { position: relative; padding: 10px 30px 30px 10px; }
.about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.about__photo--main { width: 100%; aspect-ratio: 4/3.6; }
.about__photo--small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4/3.4; border: 8px solid #fff; }
.about__badge { position: absolute; top: 18px; left: -10px; background: var(--c-teal); color: #fff; border-radius: 20px; padding: 14px 20px; text-align: center; box-shadow: var(--shadow); z-index: 2; }
.about__badge strong { font-family: var(--font-head); font-size: 24px; display: block; line-height: 1; }
.about__badge span { font-size: 13px; font-weight: 600; }
.about__text { margin: 16px 0 20px; }
.about__principal { display: flex; flex-direction: column; line-height: 1.2; margin-bottom: 26px; }
.about__principal-name { font-family: var(--font-head); font-weight: 700; color: var(--c-ink); font-size: 18px; }
.about__principal-role { font-size: 14px; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv__card { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); border-top: 4px solid transparent; }
.mv__card--teal  { border-top-color: var(--c-teal); }
.mv__card--coral { border-top-color: var(--c-coral); }
.mv__icon { font-size: 28px; display: block; margin-bottom: 10px; }
.mv__card h3 { font-size: 19px; margin-bottom: 8px; }
.mv__card p { font-size: 15px; }

/* ============================== REGISTRATION / RECOGNITION ============================== */
.creds { padding: 0 0 80px; }
.creds__card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px 34px; }
.creds__item { display: flex; gap: 14px; align-items: flex-start; }
.creds__item + .creds__item { border-left: 1px solid #f1ece2; padding-left: 24px; }
.creds__ico { font-size: 26px; line-height: 1; }
.creds__item strong { display: block; font-family: var(--font-head); color: var(--c-ink); font-size: 16px; }
.creds__item span { font-size: 14px; color: var(--c-body); }

/* ============================== ADMISSIONS ============================== */
.admissions { padding: 20px 0 90px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 40px 26px 30px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease; }
.step:hover { transform: translateY(-6px); }
.step__num { position: absolute; top: 10px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 46px; color: rgba(43,43,67,.06); }
.step__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; } .step p { font-size: 15px; }
.step--yellow .step__icon { background: #fff3d2; } .step--teal .step__icon { background: #d6f5f1; }
.step--coral .step__icon { background: #ffe0e0; } .step--lilac .step__icon { background: #efe2ff; }

/* ============================== TABS (syllabus) ============================== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tab { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--c-ink); background: #fff; border: 2px solid #f0e8da; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: all .18s ease; }
.tab:hover { border-color: var(--c-teal); }
.tab.is-active { background: var(--c-teal-d); border-color: var(--c-teal-d); color: #fff; }

.syll-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.book-table { width: 100%; border-collapse: collapse; }
.book-table th, .book-table td { padding: 16px 24px; text-align: left; }
.book-table thead { background: var(--c-teal-d); color: #fff; }
.book-table thead th { font-family: var(--font-head); font-weight: 600; }
.book-table tbody tr { border-bottom: 1px solid #f4efe6; }
.book-table tbody tr:last-child { border-bottom: 0; }
.book-table tbody tr:hover { background: #fffaf0; }
.book-table td:first-child { font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.subject-pill { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #d6f5f1; color: var(--c-teal-d); }
.syll__note, .fees__note { text-align: center; margin-top: 24px; font-size: 14.5px; color: var(--c-body); }

/* ============================== FEE TABLE ============================== */
.fees { padding: 30px 0 90px; }
.tt-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fee-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; }
.fee-table thead { background: var(--c-teal-d); color: #fff; }
.fee-table thead th { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.fee-table tbody tr { border-bottom: 1px solid #f4efe6; }
.fee-table tbody tr:last-child { border-bottom: 0; }
.fee-table tbody tr:hover { background: #fffaf0; }
.fee-table td:first-child, .fee-table th:first-child { font-weight: 700; color: var(--c-ink); white-space: nowrap; position: sticky; left: 0; background: #fff; }
.fee-table thead th:first-child { background: var(--c-teal-d); color: #fff; }
.fee-table td { color: var(--c-body); }
.fee-table td.amount { font-family: var(--font-head); color: var(--c-ink); }

/* ============================== EVENTS ============================== */
.events { padding: 30px 0 80px; }
.events__group { margin-bottom: 46px; }
.events__group:last-child { margin-bottom: 0; }
.events__heading { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 22px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--teal { background: var(--c-teal); } .dot--yellow { background: var(--c-yellow); } .dot--coral { background: var(--c-coral); }
.events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.events__empty { grid-column: 1 / -1; color: var(--c-body); font-size: 15px; background: #fff; border: 2px dashed #f0e8da; border-radius: var(--radius); padding: 24px; text-align: center; }
.event { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.event:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event__media { position: relative; aspect-ratio: 16/10; background: #ffe9cf; }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event__date { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 14px; padding: 8px 12px; text-align: center; font-family: var(--font-head); line-height: 1; box-shadow: var(--shadow-sm); color: var(--c-coral); }
.event__date strong { display: block; font-size: 22px; color: var(--c-ink); }
.event__body { padding: 22px 24px 26px; }
.event__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-teal-d); background: #d6f5f1; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.event__body h3 { font-size: 20px; margin-bottom: 8px; }
.event__body p { font-size: 15px; }
.event__when { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c-body); }

/* ============================== GALLERY ============================== */
.gallery { padding: 30px 0 90px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.gitem { overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gitem:hover img { transform: scale(1.08); }
.gitem--tall { grid-row: span 2; }
.gitem--wide { grid-column: span 2; }

/* ---- Gallery carousel ---- */
.carousel { position: relative; max-width: 940px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #1a1a24; cursor: grab; touch-action: pan-y; }
.carousel__viewport:active { cursor: grabbing; }
.carousel__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .45s ease; will-change: transform; }
.carousel__track.no-anim { transition: none; }
.carousel__slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 10; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-select: none; user-select: none; }
.carousel__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 22px 16px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--c-ink); font-family: var(--font-head); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2; transition: background .2s, transform .15s; }
.carousel__btn:hover { background: #fff; }
.carousel__btn:active { transform: translateY(-50%) scale(.94); }
.carousel__btn--prev { left: 14px; padding-right: 3px; }
.carousel__btn--next { right: 14px; padding-left: 3px; }
.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.carousel__dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #e2d8c8; cursor: pointer; transition: background .2s, transform .2s; }
.carousel__dot:hover { background: #c9bda6; }
.carousel__dot.is-active { background: var(--c-teal-d); transform: scale(1.25); }
@media (max-width: 560px) {
  .carousel__slide { aspect-ratio: 4 / 3; }
  .carousel__btn { width: 38px; height: 38px; font-size: 22px; }
  .carousel__btn--prev { left: 8px; } .carousel__btn--next { right: 8px; }
  .carousel__caption { font-size: 13.5px; padding: 24px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }

/* ============================== CONTACT ============================== */
.contact { padding: 40px 0 100px; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cform { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; display: grid; gap: 18px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label, .cform__full { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--c-ink); }
.cform input, .cform select, .cform textarea { font-family: var(--font-body); font-size: 15px; color: var(--c-ink); padding: 13px 16px; border: 2px solid #f0e8da; border-radius: 14px; background: #fffdf8; transition: border-color .2s; width: 100%; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--c-teal); }
.cform textarea { resize: vertical; }
.cform .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__status { font-family: var(--font-body); font-weight: 600; font-size: 14px; text-align: center; min-height: 20px; }
.cform__status.is-ok { color: var(--c-teal-d); }
.cform__status.is-err { color: var(--c-coral-d); }

.contact__info { display: grid; gap: 18px; }
.infocard { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.infocard__icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: #fff3da; }
.infocard strong { font-family: var(--font-head); color: var(--c-ink); display: block; margin-bottom: 4px; }
.infocard p { font-size: 15px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================== FOOTER (lightened) ============================== */
.site-footer { background: var(--c-brand-d); color: rgba(255,255,255,.85); margin-top: 20px; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 70px 24px 50px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: var(--c-yellow); }
.footcol__about { margin: 18px 0; font-size: 15px; max-width: 300px; }
.footcol__social { display: flex; gap: 10px; }
.footcol__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); transition: background .2s, color .2s; }
.footcol__social a:hover { background: var(--c-yellow); color: var(--c-ink); }
.footcol h4 { color: #fff; font-size: 19px; margin-bottom: 20px; }
.footlinks li, .footcontact li { margin-bottom: 12px; }
.footlinks a { transition: color .2s, padding .2s; }
.footlinks a:hover { color: var(--c-yellow); padding-left: 6px; }
.footcontact li { display: flex; gap: 10px; font-size: 15px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 960px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: 2; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .creds__card { grid-template-columns: 1fr; gap: 18px; }
  .creds__item + .creds__item { border-left: 0; padding-left: 0; border-top: 1px solid #f1ece2; padding-top: 18px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .navbar__cta { display: none; }
  /* top burger removed on mobile — the bottom action bar's Menu button is the trigger */
  /* Mobile menu = bottom sheet (slides up from the bottom bar; Menu toggles it) */
  /* Disable the navbar's backdrop blur on mobile: a backdrop-filter ancestor would
     make the fixed sheet/scrim anchor to the navbar instead of the viewport. */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .navbar.is-open { z-index: 90; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(18,26,36,.5); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; z-index: 10; }
  .navbar.is-open .nav-scrim { opacity: 1; visibility: visible; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; z-index: 20;
    background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -14px 34px rgba(43,43,67,.22);
    max-height: 74vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 18px 20px 90px;
    transform: translateY(110%); visibility: hidden;
    transition: transform .34s cubic-bezier(.4,0,.2,1), visibility .34s ease;
  }
  .mainnav::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: #e6ddcd; margin: 0 auto 12px; }
  .navbar.is-open .mainnav { transform: translateY(0); visibility: visible; }
  .mainnav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .mainnav > ul > li { border-bottom: 1px solid #f4efe6; }
  .mainnav > ul > li:last-child { border-bottom: 0; }
  .mainnav a { display: block; padding: 14px 6px; }
  .mainnav a::after { display: none; }
  /* Submenus are always shown (expanded) in the mobile panel — parent acts as a heading */
  .mainnav .has-sub > a { color: var(--c-teal-d); }
  .caret { display: none; }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; min-width: 0; padding: 2px 0 8px 16px; }
  .submenu li a { padding: 10px 8px; font-size: 15px; color: var(--c-ink); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr; }
  .events__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .agecard { grid-template-columns: 1fr; text-align: center; }
  .agecard__title { max-width: none; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gitem--wide, .gitem--tall { grid-column: auto; grid-row: auto; }
  .hero { min-height: 460px; padding: 70px 0; }
  .agecard { grid-template-columns: 1fr; text-align: center; }
}

/* ============================== MOBILE: action bar, accordions, view switches ============================== */
.only-mobile { display: none; }        /* desktop shows tables; mobile shows accordions */
.mobilebar { display: none; }          /* bottom bar hidden on desktop */

/* Accordion (syllabus & fees on mobile) */
.acc { max-width: 640px; margin: 0 auto; }
.acc__item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px; }
.acc__head { width: 100%; text-align: left; background: none; border: 0; padding: 15px 18px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--c-ink); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.acc__chev { color: var(--c-teal-d); transition: transform .2s ease; }
.acc__item.is-open .acc__chev { transform: rotate(180deg); }
.acc__body { display: none; padding: 0 18px 14px; }
.acc__item.is-open .acc__body { display: block; }
.bookcard { padding: 12px 0; border-top: 1px solid #f1ece2; }
.bookcard:first-child { border-top: 0; }
.bookcard__name { font-weight: 600; color: var(--c-ink); margin-top: 6px; }
.bookcard__meta { font-size: 13.5px; color: var(--c-body); margin-top: 2px; }
.feerow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid #f1ece2; }
.feerow:first-child { border-top: 0; }
.feerow__label { color: var(--c-body); font-size: 14.5px; }
.feerow__val { font-family: var(--font-head); color: var(--c-ink); font-weight: 600; white-space: nowrap; }

@media (max-width: 960px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }

  /* Slim green topbar → phone + email only, centered on one row */
  .topbar { font-size: 13px; }
  .topbar__inner { min-height: 38px; justify-content: center; }
  .topbar__loc, .topbar__social { display: none; }
  .topbar__contacts { gap: 18px; justify-content: center; width: 100%; }

  /* Floating bottom action bar */
  .mobilebar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff; border-top: 1px solid #f0e8da; box-shadow: 0 -6px 20px rgba(43,43,67,.12);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  body.nav-open { overflow: hidden; }
  .mobilebar__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; cursor: pointer; padding: 6px 2px;
    font-family: var(--font-head); font-weight: 600; font-size: 11px; color: var(--c-ink); text-decoration: none;
  }
  .mobilebar__ico { font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; height: 22px; }
  .mobilebar__ico svg { display: block; }
  .mobilebar__label { white-space: nowrap; }
  .mobilebar__item:active { transform: scale(.95); }

  /* Admissions "classes offered" table -> stacked cards on mobile (no h-scroll) */
  .agecard { padding: 24px 20px; }
  .agetable thead { display: none; }
  .agetable, .agetable tbody, .agetable tr, .agetable td { display: block; width: 100%; }
  .agetable tr { border: 1px solid #f1ece2; border-radius: 12px; padding: 2px 14px; margin-bottom: 12px; text-align: left; }
  .agetable td { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f4efe6; }
  .agetable tr td:last-child { border-bottom: 0; }
  .agetable td::before { content: attr(data-label); font-family: var(--font-head); font-weight: 700; color: var(--c-ink); }

  /* keep page content clear of the fixed bar */
  body { padding-bottom: 66px; }
}

/* ============================== INTERIOR PAGES (added for 11ty multi-page) ============================== */
.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; }

/* Page header band used on interior pages */
.page-head { text-align: center; padding: 56px 0 10px; }
.page-head .section-title { margin-top: 2px; }
.about--page { padding-top: 30px; }

/* Syllabus: multiple pre-rendered panels, one shown at a time (JS toggles) */
.syll-panels { position: relative; }
.syll-panel { display: none; }
.syll-panel.is-active { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.book-table { min-width: 560px; }

/* Admissions: classes-offered card + table (carried from the original theme) */
.agecard { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.agecard__title { font-size: 22px; max-width: 220px; }
.agetable { width: 100%; border-collapse: collapse; }
.agetable th, .agetable td { text-align: left; padding: 12px 16px; }
.agetable thead th { font-family: var(--font-head); color: var(--c-ink); border-bottom: 2px solid #ffe3c2; }
.agetable tbody tr { border-bottom: 1px solid #f1ece2; }
.agetable td:first-child { font-weight: 700; color: var(--c-ink); }
.agetable td:last-child { color: var(--c-teal-d); font-weight: 700; }
