/* ============================================================
   MISKA International Public School — Design System
   Modern, premium, accessible. Vanilla CSS with design tokens.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — grounded in the school crest & wordmark */
  --brand:        #8a1f3d;   /* deep maroon (wordmark) */
  --brand-700:    #6d162e;   /* darker maroon */
  --brand-600:    #7c1b37;
  --brand-tint:   #f7ebef;   /* pale maroon wash */
  --gold:         #b8860b;   /* motto "brighter future" sun */
  --gold-soft:    #f4ead0;
  --green:        #1f7a4d;   /* crest hills */
  --green-tint:   #e7f2ec;
  --sky:          #2f7fb5;   /* crest sky */

  /* Neutrals (warm) */
  --ink:          #1c1719;
  --ink-2:        #514a4d;
  --ink-3:        #7c7377;
  --paper:        #ffffff;
  --bg:           #faf7f5;
  --bg-2:         #f3ece8;
  --line:         rgba(28,23,25,.10);
  --line-strong:  rgba(28,23,25,.16);

  /* Effects */
  --radius:       14px;
  --radius-lg:    22px;
  --radius-sm:    9px;
  --shadow-sm:    0 1px 2px rgba(28,23,25,.06), 0 1px 3px rgba(28,23,25,.05);
  --shadow:       0 6px 20px -8px rgba(28,23,25,.18), 0 2px 6px rgba(28,23,25,.06);
  --shadow-lg:    0 24px 60px -22px rgba(28,23,25,.35);
  --ring:         0 0 0 3px rgba(138,31,61,.28);

  /* Typography */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;

  /* Layout */
  --container: 1200px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 118px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: middle; } /* fallback size; context rules override */

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.18rem; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); line-height: 1.7; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.container-wide { width: min(1360px, 94%); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-2); }
.section--brand { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: var(--gap); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section--brand .eyebrow, .section--brand .eyebrow { color: var(--gold-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand); --_fg: #fff; --_bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--_bd);
  background: var(--_bg); color: var(--_fg); font-weight: 600; font-size: .98rem;
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn--gold { --_bg: var(--gold); --_bd: var(--gold); --_fg: #241a02; }
.btn--ghost { --_bg: transparent; --_fg: var(--brand); --_bd: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { --_bd: var(--brand); background: var(--brand-tint); }
.btn--light { --_bg: #fff; --_bd: #fff; --_fg: var(--brand); }
.btn--on-brand-ghost { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.5); box-shadow: none; }
.btn--on-brand-ghost:hover { background: rgba(255,255,255,.12); --_bd: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.topbar { background: var(--brand-700); color: #fff; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar__contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .92; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { opacity: 1; text-decoration: none; }
.topbar .ic { width: 15px; height: 15px; color: var(--gold-soft); }
.topbar__social { display: flex; gap: .5rem; }
.topbar__social a {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.12); transition: background .18s ease;
}
.topbar__social a:hover { background: var(--gold); }
.topbar__social .ic { width: 15px; height: 15px; color: #fff; }
@media (max-width: 760px) { .topbar__contact .tb-hide { display: none; } }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-stuck { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 52px; width: 52px; object-fit: cover; object-position: left center; border-radius: 11px; box-shadow: var(--shadow-sm); background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--brand); letter-spacing: -.01em; white-space: nowrap; }
.brand__motto { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 420px) { .brand__name { font-size: .95rem; } }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: inline-flex; align-items: center; gap: .28rem; padding: .58rem .66rem;
  color: var(--ink); font-weight: 500; font-size: .93rem; border-radius: 9px;
  transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.primary-nav > li > a:hover { color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.primary-nav > li[aria-current] > a, .primary-nav > li.is-active > a { color: var(--brand); }
.primary-nav .caret { width: 12px; height: 12px; transition: transform .2s ease; opacity: .6; }
.has-menu:hover .caret, .has-menu:focus-within .caret { transform: rotate(180deg); }

/* Dropdown */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 244px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .submenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 8px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.submenu a:hover { background: var(--brand-tint); color: var(--brand); text-decoration: none; }
.submenu .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.nav__cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav__cta .btn-text { display: none; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; padding: 1.2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg); z-index: 80; padding-top: 1.5rem;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav > li { border-bottom: 1px solid var(--line); }
  .primary-nav > li > a { padding: .95rem .4rem; font-size: 1.02rem; justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--brand-tint); border-radius: 0; margin: 0 0 .5rem .4rem;
    padding: 0 0 0 .6rem; max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .submenu.is-open { max-height: 480px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(20,16,18,.45); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 75; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(60,10,24,.9) 0%, rgba(80,16,34,.78) 42%, rgba(40,8,18,.55) 100%); }
.hero__inner { padding-block: clamp(3.5rem, 9vw, 7rem); max-width: 760px; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.3rem; backdrop-filter: blur(4px); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-top: 1.2rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero__fact b { display: block; font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.hero__fact span { font-size: .86rem; color: rgba(255,255,255,.8); }

/* ============================================================
   Quick access
   ============================================================ */
.quick { position: relative; z-index: 2; margin-top: -3.5rem; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; color: var(--ink);
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: var(--brand-tint); }
.quick-card__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.quick-card__ic .ic { width: 24px; height: 24px; }
.quick-card h3 { font-size: 1.12rem; }
.quick-card p { font-size: .9rem; margin: 0; }
.quick-card__more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; }
.quick-card:hover .quick-card__more .ic { transform: translateX(3px); }
.quick-card__more .ic { width: 15px; height: 15px; transition: transform .2s ease; }

/* ============================================================
   About / split feature
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
.figure-stack { position: relative; }
.figure-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.figure-badge {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1rem 1.3rem; display: flex; align-items: center; gap: .9rem; border: 1px solid var(--line);
}
.figure-badge .n { font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1; }
.figure-badge .t { font-size: .82rem; color: var(--ink-2); max-width: 12ch; }
.value-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.value-list li { display: flex; gap: .85rem; align-items: flex-start; }
.value-list .ic-wrap { width: 34px; height: 34px; border-radius: 9px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.value-list .ic { width: 18px; height: 18px; }
.value-list b { display: block; }
.value-list p { margin: 0; font-size: .94rem; }

/* ============================================================
   Stats band
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1rem; }
.stat b { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; display: block; }
.section--brand .stat span { color: rgba(255,255,255,.82); font-weight: 500; font-size: .96rem; }
.stat .plus { color: var(--gold-soft); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }
@media (max-width: 720px) { .stat + .stat { border-left: none; } }

/* ============================================================
   Cards: news / events / facilities / faculty
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cols-3.tight { gap: 1rem; }

.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); padding: .3rem .7rem; border-radius: 999px; }
.news-card h3 { font-size: 1.22rem; }
.news-card p { font-size: .94rem; margin: 0; }
.news-card__meta { margin-top: auto; padding-top: .4rem; font-size: .84rem; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }

/* Events list */
.event-row { display: flex; gap: 1.1rem; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.event-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.event-date { flex-shrink: 0; width: 74px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--brand), var(--brand-700)); color: #fff; display: grid; place-content: center; text-align: center; padding: .5rem; }
.event-date .d { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.event-date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.event-row__body { display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.event-row__body h4 { font-size: 1.1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--ink-2); }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-meta .ic { width: 14px; height: 14px; color: var(--brand); }

/* Facilities */
.facility { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.facility img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.facility::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,8,14,.85), rgba(20,8,14,.05) 65%); }
.facility:hover img { transform: scale(1.07); }
.facility__body { padding: 1.3rem; }
.facility__body h3 { color: #fff; font-size: 1.2rem; }
.facility__body p { color: rgba(255,255,255,.85); font-size: .88rem; margin-top: .25rem; }
.facility--plain { background: #fff; border: 1px solid var(--line); color: var(--ink); align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: .7rem; padding: 1.5rem; min-height: 0; box-shadow: var(--shadow-sm); }
.facility--plain .facility__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.facility--plain .facility__ic .ic { width: 24px; height: 24px; }
.facility--plain h3 { color: var(--ink); }
.facility--plain p { color: var(--ink-2); }

/* Faculty */
.faculty-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: center; transition: transform .18s ease, box-shadow .18s ease; }
.faculty-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.faculty-card__avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(150deg, var(--brand-tint), var(--gold-soft)); color: var(--brand); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; flex-shrink: 0; }
.faculty-card h4 { font-size: 1.05rem; margin-bottom: .1rem; }
.faculty-card .role { font-size: .85rem; color: var(--brand); font-weight: 600; }
.faculty-card .exp { font-size: .82rem; color: var(--ink-3); }

/* ============================================================
   Tables (responsive)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; }
table.data caption { text-align: left; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); background: var(--bg-2); font-family: var(--serif); font-size: 1.1rem; }
table.data th, table.data td { padding: .85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--brand); color: #fff; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--bg); }
table.data tbody tr:hover { background: var(--brand-tint); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.fee-amt { font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ============================================================
   Documents / downloads
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.doc-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; color: var(--ink); }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-tint); text-decoration: none; }
.doc-card__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.doc-card__ic .ic { width: 24px; height: 24px; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__body h4 { font-size: 1.02rem; margin-bottom: .15rem; }
.doc-card__body .meta { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.doc-card__dl { color: var(--brand); flex-shrink: 0; }
.doc-card__dl .ic { width: 22px; height: 22px; }

/* ============================================================
   Accordion / steps / tabs
   ============================================================ */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; background: none; border: 0; text-align: left; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.accordion__btn:hover { color: var(--brand); }
.accordion__btn .pm { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; transition: transform .25s ease, background .2s; font-size: 1.1rem; }
.accordion__btn[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--brand); color: #fff; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__panel > div { padding: 0 1.3rem 1.3rem; color: var(--ink-2); }

.steps { display: grid; gap: 1.1rem; counter-reset: step; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.step__n { counter-increment: step; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff; font-family: var(--serif); font-size: 1.25rem; display: grid; place-items: center; }
.step__n::before { content: counter(step); }
.step h4 { margin-bottom: .3rem; }
.step p { margin: 0; font-size: .94rem; }

/* ============================================================
   Academic calendar
   ============================================================ */
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2rem; font-size: .9rem; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cal-legend .sw { width: 14px; height: 14px; border-radius: 5px; }
.cal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.cal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cal-card h3 { font-size: 1.15rem; color: var(--brand); margin-bottom: .7rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; }
.cal-card h3 .ic { width: 18px; height: 18px; color: var(--gold); }
.cal-item { display: flex; gap: .7rem; padding: .5rem 0; align-items: baseline; border-bottom: 1px dashed var(--line); }
.cal-item:last-child { border-bottom: 0; }
.cal-date { flex-shrink: 0; min-width: 58px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); font-size: .88rem; }
.cal-item.holiday .cal-date { color: var(--brand); }
.cal-name { font-size: .92rem; color: var(--ink-2); flex: 1; }
.cal-badge { flex-shrink: 0; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .12rem .45rem; border-radius: 6px; align-self: center; }
.cal-badge.h { background: var(--brand-tint); color: var(--brand); }
.cal-badge.e { background: var(--gold-soft); color: #5a4406; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.gallery-filters button { padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: all .18s ease; }
.gallery-filters button:hover { border-color: var(--brand); color: var(--brand); }
.gallery-filters button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.masonry img { width: 100%; display: block; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.06); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .8rem; color: #fff; font-size: .88rem; font-weight: 500; background: linear-gradient(to top, rgba(20,8,14,.8), transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.masonry figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,8,12,.92); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transition: background .18s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 3vh; right: 3vw; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav .ic, .lightbox__close .ic { width: 24px; height: 24px; }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }

/* ============================================================
   Page hero (inner) + breadcrumb
   ============================================================ */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(60,10,24,.94), rgba(80,16,34,.7)); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); margin-top: .6rem; max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .86rem; margin-bottom: 1rem; color: rgba(255,255,255,.8); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--gold-soft); font-weight: 600; }

/* Prose */
.prose { max-width: 74ch; }
.prose p { margin-bottom: 1.15rem; font-size: 1.06rem; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: .8rem; }
.prose ul { display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.pull-quote { border-left: 4px solid var(--gold); background: var(--brand-tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--brand-700); margin: 1.5rem 0; }

/* Signature block for messages */
.signature { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.signature .avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(150deg, var(--brand-tint), var(--gold-soft)); color: var(--brand); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; }
.signature b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.signature span { font-size: .9rem; color: var(--brand); font-weight: 600; }

/* Message layout with sticky aside */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.msg-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.msg-portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(150deg, var(--brand), var(--brand-700)); aspect-ratio: 3/4; display: grid; place-items: center; color: #fff; text-align: center; padding: 2rem; }
.msg-portrait .initials { font-family: var(--serif); font-size: 3.5rem; }
.msg-portrait .who { margin-top: 1rem; }
.msg-portrait .who b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.msg-portrait .who span { color: var(--gold-soft); font-size: .9rem; }

/* ============================================================
   Forms
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--ink-3); margin-top: .8rem; }

/* Info list (contact) */
.info-list { display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ic { width: 21px; height: 21px; }
.info-list b { display: block; margin-bottom: .15rem; }
.info-list a, .info-list p { color: var(--ink-2); font-size: .96rem; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* CTA band */
.cta-band { background: linear-gradient(130deg, var(--brand-700), var(--brand)); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 4rem); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(184,134,11,.35), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 1rem auto 0; position: relative; }
.cta-band .hero__actions { justify-content: center; position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #1c1013; color: rgba(255,255,255,.75); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer .f-brand img { height: 40px; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 1rem; }
.site-footer .f-brand p { font-size: .92rem; color: rgba(255,255,255,.66); }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-links a:hover { color: var(--gold-soft); text-decoration: none; }
.f-contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; font-size: .93rem; }
.f-contact .ic { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.f-contact a { color: rgba(255,255,255,.75); }
.f-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .18s ease; }
.f-social a:hover { background: var(--gold); }
.f-social .ic { width: 17px; height: 17px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .86rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Back to top */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 50; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); }
.to-top .ic { width: 20px; height: 20px; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .quick-card:hover, .news-card:hover, .facility:hover img { transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

.notice-bar { background: var(--gold-soft); color: #5a4406; font-size: .9rem; }
.notice-bar__inner { display: flex; align-items: center; gap: .7rem; padding-block: .6rem; justify-content: center; text-align: center; flex-wrap: wrap; }
.notice-bar b { color: #4a3705; }
.notice-bar .ic { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .card-grid, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-aside { position: static; max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .quick { margin-top: -2rem; }
  .quick__grid { grid-template-columns: 1fr; }
  .card-grid, .cols-3 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .figure-badge { left: 12px; bottom: -18px; }
  .hero__facts { gap: 1.4rem; }
}
