/* ============================================================
   Bright Future School — styles.css
   Palette: deep navy · clean white · sky blue · warm yellow
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0a1f33;
  --navy-800: #0f2642;
  --navy-700: #153a63;
  --navy-600: #1d4b7d;
  --sky-650: #2563eb;
  --sky-600: #2f80ed;
  --sky-500: #3b82f6;
  --sky-200: #cfe3fb;
  --sky-100: #e8f1fd;
  --sky-50: #f3f8ff;
  --yellow: #f5b70f;
  --yellow-600: #dda100;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --muted-2: #78889e;
  --line: #e3ebf4;
  --white: #ffffff;
  --bg: #f6f9fd;

  --font-head: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-xs: 0 1px 2px rgba(15, 38, 66, .06);
  --shadow-sm: 0 6px 18px rgba(15, 38, 66, .07);
  --shadow: 0 16px 40px rgba(15, 38, 66, .10);
  --shadow-lg: 0 30px 70px rgba(15, 38, 66, .16);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Guard: any element with the [hidden] attribute stays hidden, even if a
   class rule (e.g. .lightbox { display:grid }) would otherwise show it.
   This is what keeps the gallery lightbox off-screen until it is opened. */
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--sky-650); text-decoration: none; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

::selection { background: var(--sky-200); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .section-sub { margin-inline: auto; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky-650);
  background: var(--sky-100); padding: .45rem .85rem; border-radius: 999px; margin: 0 0 1rem;
}
.eyebrow.center { display: flex; justify-content: center; width: fit-content; margin-inline: auto; }
.eyebrow.light { color: var(--navy-800); background: var(--sky-200); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(245,183,15,.25); }
.text-accent { color: var(--sky-600); }

.fine-print { font-size: .82rem; color: var(--muted-2); text-align: center; margin-top: 22px; }
.fine-print.light { color: rgba(255,255,255,.72); text-align: left; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sky-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  line-height: 1; padding: .85rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1.02rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sky-600); color: #fff; box-shadow: 0 10px 24px rgba(47,128,237,.32); }
.btn-primary:hover { background: var(--sky-650); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47,128,237,.42); }
.btn-yellow { background: var(--yellow); color: var(--navy-900); box-shadow: 0 10px 24px rgba(245,183,15,.35); }
.btn-yellow:hover { background: var(--yellow-600); color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245,183,15,.5); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--sky-650); border-color: var(--sky-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-text { background: none; color: var(--sky-650); padding: .2rem 0; border: 0; font-weight: 700; }
.btn-text span { transition: transform .18s var(--ease); }
.btn-text:hover { color: var(--navy-700); }
.btn-text:hover span { transform: translateX(4px); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255,255,255,.95); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 8px 18px rgba(15,38,66,.28);
}
.brand-mark svg { width: 30px; height: 30px; fill: #fff; stroke: var(--yellow); stroke-width: 2; }
.brand-mark svg path:nth-child(1) { fill: var(--yellow); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy-800); letter-spacing: -.01em; }
.brand-text span { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sky-650); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: .15rem; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--navy-700);
  padding: .6rem .78rem; border-radius: 999px; position: relative; transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link:hover { color: var(--sky-650); background: var(--sky-50); }
.nav-link.is-active { color: var(--sky-650); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--yellow);
}
.nav-cta { display: none; }
.header-cta { padding: .78rem 1.25rem; font-size: .9rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 13px;
  background: #fff; cursor: pointer; position: relative; flex: none; box-shadow: var(--shadow-xs);
}
.nav-toggle-bar { position: absolute; left: 50%; width: 20px; height: 2.4px; border-radius: 3px; background: var(--navy-800); transform: translateX(-50%); transition: transform .28s var(--ease), opacity .2s var(--ease), top .28s var(--ease); }
.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 22px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }
.nav-open .nav-toggle-bar:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(10,31,51,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0 clamp(60px, 7vw, 96px);
  background: radial-gradient(120% 120% at 85% 0%, var(--sky-50) 0%, #fff 55%); }
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.hero-blob--one { width: 460px; height: 460px; right: -140px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(47,128,237,.18), rgba(47,128,237,0)); }
.hero-blob--two { width: 320px; height: 320px; left: -160px; bottom: -140px; background: radial-gradient(circle at 60% 40%, rgba(245,183,15,.16), rgba(245,183,15,0)); }
.hero-inner { position: relative; z-index: 1; }

.hero-copy .lead { font-size: 1.14rem; color: var(--muted); max-width: 540px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.7rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy-700);
  background: #fff; border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; box-shadow: var(--shadow-xs);
}
.hero-badges li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: .5rem; vertical-align: middle; }

.hero-frame { position: relative; border-radius: var(--radius-lg); }
.hero-frame img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.hero-frame::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 65%; height: 70%;
  background: linear-gradient(160deg, rgba(47,128,237,.20), rgba(47,128,237,0)); border-radius: var(--radius-lg); z-index: -1;
}
.hero-float { position: absolute; left: -14px; bottom: 26px; background: #fff; border-radius: 16px; padding: .7rem .95rem; display: flex; align-items: center; gap: .7rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-float-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sky-100); display: grid; place-items: center; flex: none; }
.hero-float-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--sky-650); stroke-width: 1.9; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy-800); }
.hero-float small { color: var(--muted); font-size: .78rem; }

/* ---------- Highlights ---------- */
.highlights { padding-top: clamp(10px, 2vw, 24px); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlight-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.highlight-card h3 { margin-bottom: .35rem; }
.highlight-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sky-100), #fff); border: 1px solid var(--sky-200);
}
.icon-badge svg { width: 27px; height: 27px; fill: none; stroke: var(--sky-650); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-card {
  position: absolute; right: -14px; bottom: -18px; background: #fff; border-radius: 16px; padding: .8rem 1.05rem;
  display: flex; align-items: center; gap: .7rem; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-card-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(245,183,15,.16); display: grid; place-items: center; flex: none; }
.about-card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--yellow-600); stroke-width: 1.9; }
.about-card strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy-800); }
.about-card small { color: var(--muted); font-size: .78rem; }
.about-copy p { color: var(--muted); }

.values { display: grid; gap: 12px; margin: 22px 0 26px; }
.value-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.value-card h4 { margin: 0 0 .1rem; }
.value-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.value-dot { width: 12px; height: 12px; border-radius: 4px; margin-top: 6px; flex: none; }
.value-dot--curiosity { background: var(--sky-500); }
.value-dot--character { background: var(--yellow); }
.value-dot--excellence { background: var(--navy-700); }

/* ---------- Card grids (programs / facilities / teachers) ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card-media { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.card-tag {
  position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--navy-800);
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-xs);
}

.program-card, .facility-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
  display: flex; flex-direction: column;
}
.program-card:hover, .facility-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.program-card:hover .card-media img, .facility-card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card-body .btn-text { margin-top: auto; align-self: flex-start; }

/* ---------- Facilities (navy band) ---------- */
.facilities { background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); }
.facilities h2, .facilities .eyebrow.light { color: #fff; }
.facilities .eyebrow.light { background: rgba(255,255,255,.12); }
.facilities .section-sub { color: rgba(255,255,255,.72); }
.facility-card { border-color: transparent; background: #fff; }

/* ---------- Teachers ---------- */
.teachers { background: var(--bg); }
.teacher-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs); transition: transform .24s var(--ease), box-shadow .24s var(--ease);
  display: flex; flex-direction: column;
}
.teacher-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.teacher-photo { overflow: hidden; }
.teacher-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.teacher-card:hover .teacher-photo img { transform: scale(1.05); }
.teacher-body { padding: 20px 24px 26px; text-align: center; }
.teacher-body h3 { margin-bottom: .15rem; }
.teacher-role { font-family: var(--font-head); font-weight: 600; color: var(--sky-650); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .55rem; }
.teacher-body p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,51,.72) 0%, rgba(10,31,51,.05) 45%, rgba(10,31,51,0) 70%); transition: opacity .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: .92; }
.gallery-caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.gallery-item:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; }

/* ---------- Admissions ---------- */
.admissions { background: var(--sky-50); }
.admissions-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.admissions-copy p { color: var(--muted); }
.admissions-list { display: grid; gap: 10px; margin: 18px 0 26px; }
.admissions-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy-700); font-weight: 500; }
.admissions-list li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-600); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.admissions-panel { display: grid; gap: 16px; }
.admission-badge {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs);
}
.admission-badge-num {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff;
  background: linear-gradient(150deg, var(--sky-500), var(--navy-700));
}
.admission-badge strong { display: block; font-family: var(--font-head); color: var(--navy-800); }
.admission-badge small { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 24px; box-shadow: var(--shadow-xs); margin: 0; }
.quote-mark { font-family: Georgia, "Times New Roman", serif; font-size: 3.4rem; line-height: .6; color: var(--sky-200); display: block; margin-bottom: 6px; }
.quote-card blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--navy-700); font-weight: 500; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); background: var(--sky-100); }
.quote-card figcaption strong { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: .95rem; }
.quote-card figcaption small { color: var(--muted-2); font-size: .78rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(30px, 5vw, 58px); align-items: start; }
.contact-copy > p { color: var(--muted); }
.contact-list { display: grid; gap: 16px; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--sky-100); }
.contact-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--sky-650); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: .95rem; }
.contact-list small { color: var(--muted); font-size: .9rem; }
.contact-note { background: #fff; border: 1px dashed var(--sky-200); border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--muted); font-size: .9rem; }
.contact-note strong { color: var(--navy-800); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-title { margin-bottom: 1.1rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy-800); margin-bottom: .4rem; }
.req { color: var(--yellow-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  background: var(--sky-50); border: 1.6px solid var(--line); border-radius: 12px; padding: .8rem .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(59,130,246,.16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e0483e; background: #fff5f4; }
.field-error { color: #c0362c; font-size: .82rem; margin: .4rem 0 0; font-weight: 500; }
.form-status { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.form-status.success { background: #e9f8ef; color: #17653a; border: 1px solid #bdead0; }
.form-status.error { background: #fdecea; color: #a3261d; border: 1px solid #f5c6c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: clamp(50px, 6vw, 76px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text span { color: var(--sky-200); }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .18s var(--ease), transform .18s var(--ease); }
.socials a:hover { background: var(--sky-600); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg path[d^="M13"] { fill: #fff; stroke: none; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-contact li { color: rgba(255,255,255,.72); font-size: .92rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 22px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,17,30,.9); backdrop-filter: blur(3px); }
.lightbox-content { position: relative; z-index: 2; width: min(1000px, 100%); display: grid; place-items: center; }
.lightbox-figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 100%; }
.lightbox-figure img { width: 100%; max-height: 74vh; object-fit: contain; background: var(--navy-900); }
.lightbox-figure figcaption { padding: 14px 20px; font-family: var(--font-head); font-weight: 600; color: var(--navy-800); background: #fff; text-align: center; }
.lightbox-btn {
  position: absolute; z-index: 3; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; transition: background .18s var(--ease), transform .18s var(--ease);
}
.lightbox-btn:hover { background: var(--sky-600); transform: scale(1.06); }
.lightbox-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: -6px; right: -6px; }
.lightbox-prev { left: -6px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -6px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-counter { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: var(--font-head); font-size: .85rem; }

/* ---------- Modal (admission application) ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,17,30,.86); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; z-index: 2; width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3.4vw, 38px);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--sky-50); color: var(--navy-800); cursor: pointer;
  display: grid; place-items: center; transition: background .18s var(--ease), transform .22s var(--ease);
}
.modal-close:hover { background: var(--sky-100); transform: rotate(90deg); }
.modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.modal-header { margin-bottom: 20px; padding-right: 48px; }
.modal-header h2 { margin-bottom: .35rem; }
.modal-header p { color: var(--muted); margin: 0; font-size: .96rem; }
.modal-form .form-status { margin-top: 14px; }
.modal-form .fine-print { margin-top: 14px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 1024px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--header-h) + 18px) 22px 34px; gap: 8px; z-index: 60;
    transform: translateX(102%); transition: transform .34s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: .85rem 1rem; border-radius: 12px; font-size: 1rem; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--sky-50); }
  .nav-cta { display: inline-flex; width: 100%; margin-top: 14px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-frame img { aspect-ratio: 16 / 10; }
  .about-inner, .admissions-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
}

@media (max-width: 720px) {
  .highlights-grid, .card-grid--3, .gallery-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-frame img { aspect-ratio: 4 / 3; }
  .hero-float { left: 8px; bottom: 12px; }
  .about-card { right: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -46px; right: 0; }
}

@media (max-width: 460px) {
  .brand-text strong { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn-text { width: auto; }
  .nav-cta, .header-cta { width: 100%; }
}

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