/* ==========================================================================
   Nadabrahma Academy of Fine Arts & Orchestra — global styles
   Layout breakpoints live in responsive.css; print rules in print.css.
   ========================================================================== */

:root {
  --maroon: #8E2029;
  --burgundy: #681820;
  --burgundy-deep: #3f0e13;
  --ivory: #FAF7F0;
  --ivory-2: #F3ECDF;
  --gold: #B89A60;
  --gold-dark: #8a6f3e;   /* gold for text on ivory (AA contrast) */
  --gold-light: #dcc48f;
  --charcoal: #292525;
  --muted: #5d5552;
  --white: #FFFFFF;
  --line: #e4d9c4;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(41, 37, 37, .06), 0 2px 8px rgba(41, 37, 37, .05);
  --shadow-md: 0 10px 30px rgba(41, 37, 37, .10);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-variant-numeric: lining-nums; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class], .breadcrumb ol, .primary-nav ul, .site-footer ul, .contact-card ul) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--burgundy); margin: 0 0 var(--space-4); letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
::selection { background: var(--maroon); color: var(--ivory); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--maroon); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.text-center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--space-9); position: relative; }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--ivory-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--burgundy-deep); color: #f1e7d6; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--maroon { background: var(--maroon); color: var(--ivory); }
.section--maroon h2, .section--maroon h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section--dark .section-head p, .section--maroon .section-head p { color: #e9dcc6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-head:not(.section-head--left) .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .section--maroon .eyebrow, .on-dark .eyebrow { color: var(--gold-light); }

/* Ornamental divider: a small lotus-like rosette between two rules */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold); margin: var(--space-4) auto var(--space-5);
}
.ornament::before, .ornament::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 22px; height: 22px; }
.section-head--left .ornament { justify-content: flex-start; }
.section-head--left .ornament::before { display: none; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.75; }
.serif-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--burgundy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.btn--primary:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--charcoal); }
.btn--outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(250, 247, 240, .7); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--burgundy); border-color: var(--ivory); }
.btn--whatsapp { background: #1f7a4d; color: var(--white); border-color: #1f7a4d; }
.btn--whatsapp:hover { background: #17603c; border-color: #17603c; color: var(--white); }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .78rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.link-arrow::after { content: '\2192'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, .96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(250, 247, 240, .98); border-color: var(--line); box-shadow: 0 6px 24px rgba(41, 37, 37, .08); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(250, 247, 240, .9); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 56px; width: auto; }

.primary-nav ul { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.primary-nav li > a {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .92rem; font-weight: 500; letter-spacing: .04em; color: var(--charcoal); text-decoration: none;
}
.primary-nav li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav li > a:hover { color: var(--maroon); }
.primary-nav li > a:hover::after, .primary-nav li > a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav li > a[aria-current="page"] { color: var(--maroon); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--burgundy); position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--burgundy-deep); color: var(--ivory); overflow: hidden; }
.hero__viewport { position: relative; height: clamp(560px, 86vh, 820px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 7, 10, .88) 0%, rgba(30, 7, 10, .62) 45%, rgba(30, 7, 10, .15) 100%),
              linear-gradient(0deg, rgba(30, 7, 10, .55) 0%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero__text { max-width: 640px; padding-block: var(--space-8); }
.hero__text .eyebrow { color: var(--gold-light); }
.hero__title { font-size: clamp(2.3rem, 5.5vw, 4.25rem); color: var(--white); font-weight: 500; margin-bottom: var(--space-4); }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__desc { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #eadfcb; max-width: 520px; margin-bottom: var(--space-6); }
.hero__slide .hero__text > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__text > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__text > *:nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__text > *:nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__text > *:nth-child(4) { transition-delay: .36s; }

.hero__controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(1.25rem, 4vh, 2.5rem);
}
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.hero__dots { display: flex; gap: .5rem; align-items: center; }
.hero__dot {
  width: 44px; height: 44px; padding: 0; background: transparent; border: 0; position: relative;
}
.hero__dot::before {
  content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(250, 247, 240, .35); transition: background-color .3s;
}
.hero__dot[aria-current="true"]::before { background: var(--gold-light); }
.hero__arrows { display: flex; gap: .5rem; }
.hero__arrow, .hero__pause {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30, 7, 10, .35); color: var(--ivory); border: 1px solid rgba(250, 247, 240, .45); border-radius: 50%;
  transition: background-color .25s, border-color .25s;
}
.hero__arrow:hover, .hero__pause:hover { background: var(--ivory); color: var(--burgundy); border-color: var(--ivory); }
.hero__arrow svg, .hero__pause svg { width: 18px; height: 18px; }
.hero__counter { font-family: var(--font-serif); font-size: 1.1rem; color: #eadfcb; min-width: 3.5rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; background: var(--burgundy-deep); color: var(--ivory);
  padding-block: clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ''; position: absolute; z-index: -1; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url('../assets/images/pattern-mandala.svg') center / contain no-repeat; opacity: .5;
}
.page-hero h1 { color: var(--white); font-weight: 500; margin-bottom: var(--space-3); }
.page-hero p { color: #e6dac4; max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: var(--gold); }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb [aria-current] { color: #e6dac4; }

/* ---------- Split / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.figure-frame { position: relative; margin: 0; }
.figure-frame img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.figure-frame--wide img { aspect-ratio: 4 / 3; }
.figure-frame::before {
  content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.figure-frame figcaption { margin-top: var(--space-3); font-size: .85rem; color: var(--muted); font-style: italic; }
.figure-badge {
  position: absolute; right: -18px; bottom: 32px; background: var(--maroon); color: var(--ivory);
  padding: 1.25rem 1.5rem; text-align: center; box-shadow: var(--shadow-md); border-radius: var(--radius);
}
.figure-badge strong { display: block; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--white); }
.figure-badge span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-6); margin: var(--space-6) 0; }
.fact { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--line); padding-top: var(--space-4); }
.fact dd { margin: 0; }
.fact__value { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--maroon); line-height: 1.1; font-weight: 600; }
.fact__label { display: block; font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.course-grid--catalogue { grid-template-columns: repeat(3, 1fr); }
.course-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--ivory);
  background: var(--burgundy-deep); aspect-ratio: 4 / 5;
}
.course-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .9; }
.course-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 7, 10, .88) 0%, rgba(30, 7, 10, .1) 60%); }
.course-tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: var(--space-5); }
.course-tile__cat, .course-tile__name { display: block; }
.course-tile__cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.course-tile__name { font-family: var(--font-serif); font-size: 1.6rem; color: var(--white); line-height: 1.15; margin: .2rem 0 0; }
.course-tile:hover img, .course-tile:focus-visible img { transform: scale(1.06); opacity: 1; }
.course-tile:hover, .course-tile:focus-visible { color: var(--ivory); }

.course-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.course-card.is-highlighted { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 154, 96, .45), var(--shadow-md); }
.course-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.course-card__cat {
  position: absolute; left: var(--space-4); top: var(--space-4); background: rgba(250, 247, 240, .95); color: var(--burgundy);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .65rem; border-radius: 2px;
}
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.course-card__title { font-size: 1.65rem; margin-bottom: var(--space-2); }
.course-card__batches { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: var(--space-3); }
.course-card__desc { color: var(--muted); font-size: .95rem; margin-bottom: var(--space-4); }
.course-card__modes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.course-card__modes li {
  font-size: .75rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 2px; color: var(--charcoal); background: var(--ivory);
}
.course-card__modes li.is-confirm { color: var(--muted); border-style: dashed; background: transparent; }
.course-card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* ---------- Catalogue toolbar ---------- */
.catalogue-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 42px; padding: .5rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--charcoal); transition: all .2s;
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.search-field { position: relative; flex: 0 1 300px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 46px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.search-field input:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(142, 32, 41, .15); }
.results-status { font-size: .9rem; color: var(--muted); margin-bottom: var(--space-4); }
.empty-state { text-align: center; padding: var(--space-8) var(--space-4); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Notice / info ---------- */
.notice {
  display: flex; gap: var(--space-4); align-items: flex-start; background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: .95rem; color: var(--muted);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold-dark); margin-top: .15rem; }
.notice p:last-child { margin: 0; }

/* ---------- Timetable ---------- */
.timetable-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.timetable-wrap:focus-visible { outline-offset: 2px; }
.timetable { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
.timetable caption { text-align: left; padding: var(--space-4) var(--space-5); font-family: var(--font-serif); font-size: 1.3rem; color: var(--burgundy); }
.timetable th, .timetable td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.timetable thead th { background: var(--burgundy); color: var(--ivory); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; position: sticky; top: 0; }
.timetable tbody th { font-weight: 600; color: var(--burgundy); white-space: nowrap; background: var(--ivory); position: sticky; left: 0; }
.timetable td { white-space: nowrap; }
.timetable td.is-empty { color: #b8aea2; }
.timetable .is-holiday { background: repeating-linear-gradient(135deg, var(--ivory-2), var(--ivory-2) 6px, var(--ivory) 6px, var(--ivory) 12px); color: var(--muted); text-align: center; font-style: italic; }
.timetable tbody tr:hover td, .timetable tbody tr:hover th { background: #fbf3e6; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30, 10, 12, .62); animation: fadeIn .25s var(--ease); }
.modal__dialog {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem);
  display: flex; flex-direction: column; background: var(--ivory); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: rise .3s var(--ease);
}
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); background: var(--white); }
.modal__header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.modal__kicker { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: .25rem; }
.modal__close {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--ivory); border-radius: 50%; color: var(--burgundy);
}
.modal__close:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: var(--space-5) var(--space-6); overflow-y: auto; overscroll-behavior: contain; }
.modal__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); background: var(--white); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }

.batch { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); margin-bottom: var(--space-4); overflow: hidden; }
.batch__name { margin: 0; padding: .8rem 1.1rem; background: var(--ivory-2); font-family: var(--font-serif); font-size: 1.3rem; color: var(--burgundy); border-bottom: 1px solid var(--line); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); }
.week__day { padding: .7rem .5rem; text-align: center; border-right: 1px solid var(--line); font-size: .82rem; min-width: 0; }
.week__day:last-child { border-right: 0; }
.week__label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.week__time { display: block; font-weight: 600; color: var(--maroon); line-height: 1.35; }
.week__day.is-off .week__time { color: #b8aea2; font-weight: 400; }
.week__day.is-holiday { background: var(--ivory-2); }
.week__day.is-holiday .week__time { color: var(--muted); font-weight: 400; font-style: italic; }
.week__day.is-on { background: #fbf3e6; }
.modal__note { font-size: .88rem; color: var(--muted); margin: var(--space-4) 0 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Recognition (ABRSM) ---------- */
.recognition { position: relative; overflow: hidden; isolation: isolate; }
.recognition::before {
  content: ''; position: absolute; z-index: -1; left: -160px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%);
  background: url('../assets/images/pattern-mandala.svg') center / contain no-repeat; opacity: .35;
}
.recognition__card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  border: 1px solid rgba(220, 196, 143, .45); padding: clamp(1.75rem, 5vw, 3.5rem); border-radius: var(--radius);
  background: rgba(63, 14, 19, .55);
}
.seal {
  width: 168px; height: 168px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--gold-light); outline: 1px solid rgba(220, 196, 143, .5); outline-offset: 7px; color: var(--gold-light);
}
.seal strong { font-family: var(--font-serif); font-size: 2.2rem; color: var(--white); line-height: 1; font-weight: 600; }
.seal span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .4rem; padding-inline: 1.2rem; line-height: 1.5; }
.recognition__card h2 { margin-bottom: var(--space-3); }
.recognition__card p { color: #e9dcc6; }
.recognition__list { margin: var(--space-4) 0 var(--space-5); display: grid; gap: .5rem; }
.recognition__list li { position: relative; padding-left: 1.6rem; color: #f1e7d6; }
.recognition__list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border: 1px solid var(--gold-light); transform: rotate(45deg); }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.founders__photo { margin: 0; position: relative; }
.founders__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 10px solid var(--white); box-shadow: var(--shadow-md); }
.founders__photo figcaption { margin-top: var(--space-3); font-size: .85rem; color: var(--muted); font-style: italic; text-align: center; }
.founders__names { margin: var(--space-5) 0; display: grid; gap: var(--space-4); }
.founders__names li { padding-left: var(--space-5); border-left: 2px solid var(--gold); }
.founders__names .late { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.founders__names .name { display: block; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.2vw, 1.65rem); color: var(--burgundy); font-weight: 600; line-height: 1.25; }

/* ---------- Learning modes / feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.feature { padding: var(--space-6) var(--space-5); border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature__icon { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--maroon); margin-bottom: var(--space-4); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.45rem; margin-bottom: var(--space-2); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.discipline { background: var(--white); border: 1px solid var(--line); padding: var(--space-6); border-radius: var(--radius); }
.discipline h3 { font-size: 1.5rem; }
.discipline ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.discipline li { font-size: .82rem; padding: .3rem .65rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: var(--space-4); }
.gallery-item { break-inside: avoid; margin: 0 0 var(--space-4); }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--ivory-2); position: relative; overflow: hidden; border-radius: var(--radius);
}
.gallery-item img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.gallery-item button::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 7, 10, .55), transparent 50%); opacity: 0; transition: opacity .3s;
}
.gallery-item button:hover img, .gallery-item button:focus-visible img { transform: scale(1.04); }
.gallery-item button:hover::after, .gallery-item button:focus-visible::after { opacity: 1; }
.gallery-item figcaption { font-size: .85rem; color: var(--muted); padding: .5rem .1rem 0; }
.gallery-preview { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: var(--space-4); }
.gallery-preview .gallery-item { margin: 0; }
.gallery-preview .gallery-item:first-child { grid-row: span 2; }
.gallery-preview .gallery-item button { height: 100%; }
.gallery-preview .gallery-item img { height: 100%; object-fit: cover; }
.gallery-filters { justify-content: center; margin-bottom: var(--space-6); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(20, 8, 10, .95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 76vh; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: #e6dac4; text-align: center; margin-top: var(--space-4); font-size: .95rem; }
.lightbox__caption span { color: var(--gold-light); margin-left: .75rem; font-size: .85rem; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(250, 247, 240, .4); background: rgba(250, 247, 240, .06); color: var(--ivory);
}
.lightbox__btn:hover { background: var(--ivory); color: var(--burgundy); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-band::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%);
  background: url('../assets/images/pattern-mandala.svg') center / contain no-repeat; opacity: .28;
}
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 500; }
.cta-band p { max-width: 620px; margin-inline: auto; color: #f0e4cf; font-size: 1.1rem; }
.cta-band .btn-row { margin-top: var(--space-6); }

/* ---------- Leadership ---------- */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.leader__photo { margin: 0; }
.leader__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.leader__role { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.pending-note { font-size: .88rem; color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: var(--space-3); margin-top: var(--space-4); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 1px; background: var(--gold); }
.timeline__item { position: relative; padding-bottom: var(--space-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: calc(-2rem + 1px); top: .55rem; width: 13px; height: 13px; background: var(--ivory); border: 2px solid var(--maroon); transform: rotate(45deg); }
.timeline__date { font-family: var(--font-serif); font-size: 1.5rem; color: var(--maroon); font-weight: 600; display: block; }
.timeline__item p { color: var(--muted); margin: .25rem 0 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: var(--space-4); }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); background: var(--white); border: 1px solid var(--line); padding: var(--space-5); border-radius: var(--radius); }
.contact-card__icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ivory-2); color: var(--maroon); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.contact-card address { font-style: normal; color: var(--muted); }
.contact-card ul { display: grid; gap: .25rem; }
.contact-card a { font-weight: 500; }
.contact-card small { color: var(--muted); }
.map-frame { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ivory-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--maroon); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label, .form-field legend { font-size: .88rem; font-weight: 600; color: var(--charcoal); }
.form-field .req { color: var(--maroon); }
.form-field .opt { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #d5c8b0; background: var(--ivory); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(142, 32, 41, .15); background: var(--white); }
.form-field [aria-invalid="true"] { border-color: #b3261e; background: #fff7f6; }
.field-error { font-size: .82rem; color: #b3261e; min-height: 0; }
.field-hint { font-size: .8rem; color: var(--muted); }
fieldset.form-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #d5c8b0; border-radius: 999px; background: var(--ivory); font-size: .9rem; cursor: pointer; transition: all .2s; }
.radio-pill input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-status { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: .95rem; }
.form-status--error { background: #fff3f2; border: 1px solid #f0c3bf; color: #8a1f17; }
.form-status--success { background: #f3f8f2; border: 1px solid #c4dcc0; color: #22492a; }
.form-status h3 { font-size: 1.3rem; color: inherit; margin-bottom: .35rem; }
.form-status .btn-row { margin-top: var(--space-3); }
.form-foot { font-size: .85rem; color: var(--muted); margin-top: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { background: #1f0a0d; color: #d9ccb5; padding-top: var(--space-8); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.footer-brand img { height: 64px; width: auto; margin-bottom: var(--space-4); background: var(--ivory); padding: 6px 10px; border-radius: var(--radius); }
.footer-brand p { color: #c8b9a0; max-width: 340px; }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--space-4); }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a { color: #ecdfc8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .35rem; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(220, 196, 143, .18); padding-block: var(--space-5); font-size: .84rem; color: #a99a83; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

/* ---------- Floating controls ---------- */
.float-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: #1f7a4d; color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .25s var(--ease), background-color .25s;
}
.float-whatsapp svg { width: 28px; height: 28px; }
.float-whatsapp:hover { background: #17603c; color: var(--white); transform: translateY(-2px); }
.float-whatsapp__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--charcoal); color: var(--ivory); font-size: .8rem; white-space: nowrap; padding: .4rem .7rem; border-radius: var(--radius);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.float-whatsapp:hover .float-whatsapp__tip, .float-whatsapp:focus-visible .float-whatsapp__tip { opacity: 1; transform: translateY(-50%); }

.audio-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 300; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: .5rem 1rem .5rem .6rem; border-radius: 999px; border: 1px solid var(--gold);
  background: rgba(250, 247, 240, .96); color: var(--burgundy); font-size: .8rem; font-weight: 600; letter-spacing: .04em; box-shadow: var(--shadow-sm);
}
.audio-toggle__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--maroon); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.audio-toggle__icon svg { width: 15px; height: 15px; }
.audio-toggle .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.audio-toggle .eq i { width: 3px; background: var(--gold-dark); height: 4px; }
.audio-toggle.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.audio-toggle.is-playing .eq i:nth-child(2) { animation-delay: .2s; }
.audio-toggle.is-playing .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none !important; }
}
