/* =====================================================================
   Vignana Vardhini High School — MOBILE-FIRST stylesheet
   Base styles target mobile (~360px+). Larger screens are progressive
   enhancements via min-width. Mobile is the reference experience.
   Breakpoints:  sm 480 · md 768 · lg 1024 · xl 1280
   ===================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------- */
:root {
  --paper:      #f7f3ea;
  --paper-2:    #efe8db;
  --paper-3:    #e8e0d1;
  --ink:        #1b201c;
  --ink-soft:   #4c534c;
  --ink-mute:   #7a7f76;

  --forest:     #123a2c;
  --forest-700: #0d2c21;
  --forest-300: #2e6b53;
  --brass:      #a9772a;
  --brass-soft: #cca35b;

  --line:       rgba(27, 32, 28, .12);
  --line-soft:  rgba(27, 32, 28, .07);
  --white:      #ffffff;

  --serif:  "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --telugu: "Noto Sans Telugu", var(--sans);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,30,24,.06), 0 2px 8px rgba(20,30,24,.05);
  --shadow-md: 0 10px 30px rgba(20,30,24,.10);
  --shadow-lg: 0 24px 60px rgba(20,30,24,.16);

  /* Fluid rhythm — compact so sections read tight, not empty */
  --section-y: clamp(30px, 5.5vw, 54px);
  --container: min(1280px, 100% - 36px);
  --gap: clamp(12px, 3.5vw, 24px);
  --tap: 48px; /* minimum comfortable touch target */

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. RESET & BASE ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
/* No grey/black tap flash on any control on mobile — we supply our own :active feedback. */
a, button, [role="button"], summary, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--sans);
  font-size: 16px;               /* readable on mobile without zoom */
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

/* 3. TYPOGRAPHY (mobile-first sizes) ---------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif); color: var(--ink); font-weight: 500;
  line-height: 1.12; letter-spacing: -.01em; font-optical-sizing: auto;
}
.telugu { font-family: var(--telugu); }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brass); opacity: .7; }
.eyebrow--center::before { display: none; }

.section-title { font-size: clamp(1.65rem, 7vw, 3.3rem); margin: .3em 0 .5em; }
.lead { font-size: clamp(1rem, 4vw, 1.28rem); color: var(--ink-soft); }

/* 4. LAYOUT ----------------------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section-head { max-width: none; margin-bottom: clamp(16px, 3.4vw, 38px); }
.section-head--center { margin-inline: auto; text-align: center; max-width: 680px; }

/* 5. BUTTONS (touch-friendly) ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--tap); font-family: var(--sans); font-weight: 600;
  font-size: 1rem; letter-spacing: .01em; padding: .8em 1.5em; border-radius: var(--r-sm);
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--brass); color: #fff; }
.btn-gold:hover { background: #96671f; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ondark { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ondark:hover { background: #fff; color: var(--forest); border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: .9em 1.7em; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 600; color: var(--forest-300); transition: gap .3s var(--ease), color .3s; }
.link-arrow svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--forest); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. HEADER / NAV — mobile base (logo + name + burger) ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
  padding-block: 12px;
}
.site-header.is-solid { background: var(--paper); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* brand MUST shrink so the call + menu on the right are never pushed off-screen
   (e.g. a phone with an enlarged system font). Actions stay flex:none, always visible. */
.brand { display: flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.brand__logo { width: 44px; aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; min-width: 0; overflow: hidden; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: clamp(.92rem, 4.4vw, 1.1rem); letter-spacing: .005em; color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }
.brand__est { font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brass); line-height: 1; }
.brand__tag { display: none; } /* Telugu tagline hidden on mobile header to keep it uncluttered */
.site-header:not(.is-solid) .brand__name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.site-header:not(.is-solid) .brand__est { color: var(--brass-soft); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.site-header:not(.is-solid) .brand__logo { box-shadow: 0 2px 14px rgba(0,0,0,.35); }

/* Compact mobile menu — a small dropdown popup anchored under the toggle, over a
   light page scrim. NOT a full-screen colour wash. It scrolls inside itself on
   tiny phones, so it fits every screen size. */
.nav__scrim {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(10, 18, 13, .48);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
body.menu-open { overflow: hidden; }
body.menu-open .nav__scrim { opacity: 1; visibility: visible; }
body.menu-open .site-header { z-index: 190; } /* lift the header + its popup above the scrim */

.nav__menu {
  position: fixed; z-index: 200;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  right: clamp(10px, 3.5vw, 18px);
  width: min(76vw, 292px);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px;
  transform-origin: top right; transform: scale(.9) translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .24s var(--ease), visibility .24s;
}
body.menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; }

.nav__link {
  color: var(--ink); font-family: var(--sans); font-weight: 500;
  font-size: 1.02rem; line-height: 1.2; letter-spacing: 0;
  padding: 12px 14px; min-height: 46px; border-radius: var(--r-sm);
  display: flex; align-items: center; position: relative;
  transition: background .2s var(--ease), color .2s;
}
.nav__link:hover, .nav__link:active { background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--brass); font-weight: 600; background: rgba(169,119,42,.09); }
.nav__menu > .btn { margin-top: 6px; width: 100%; }

/* Hamburger morphs into an × while the popup is open */
.nav-toggle span { transition: transform .3s var(--ease), opacity .2s var(--ease); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The old full-screen × close button is unused by the compact popup */
.nav-close { display: none; }

.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__actions > .btn { display: none; } /* header CTA appears on larger screens */
/* quick-call icon button in the mobile header for effortless contact */
.nav__actions > .nav__call { display: inline-flex; width: 44px; min-width: 44px; height: 44px; padding: 0; }
.nav__call svg { width: 20px; height: 20px; }
.site-header:not(.is-solid) .nav__call { color: #fff; }
@media (min-width: 1024px) { .nav__actions > .nav__call { display: none; } }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 46px; height: 46px; position: relative; z-index: 120; flex: none; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.site-header:not(.is-solid) .nav-toggle { color: #fff; filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
.site-header:not(.is-solid) .nav__call { filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }

/* 7. HERO — MOBILE: photo on top + solid content panel (text never over
   the busy image, so every word is perfectly readable) ---------------- */
.hero {
  position: relative; width: 100%;
  min-height: 100vh; min-height: 100svh;      /* exactly one screen (svh = mobile-chrome safe) */
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 26%;
  transform: scale(1.05);
  animation: kenburns 36s linear infinite alternate;
  will-change: transform; transform-origin: 55% 34%;
}
@keyframes kenburns {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1%,-1%,0); }
}
.hero__media::after { display: none; }
/* One overlay, two jobs: a soft dark cap up top so the logo + menu stay legible
   over the photo, and a deep forest wash from the middle down so the headline
   and trust strip sit on near-solid colour — perfectly readable, still a photo. */
.hero__scrim {
  display: block; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom,
    rgba(8,20,14,.58) 0%,
    rgba(8,20,14,.10) 14%,
    rgba(18,58,44,0) 26%,
    rgba(18,58,44,.60) 44%,
    rgba(18,58,44,.95) 60%,
    var(--forest) 78%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  background: none; border-radius: 0;
  padding-top: 0;
  padding-inline: clamp(18px, 5vw, 28px);
  padding-bottom: calc(clamp(16px, 4vw, 22px) + 74px);   /* clears the fixed mobile bar */
  display: flex; flex-direction: column; gap: clamp(13px,3.4vw,17px);
}
.hero__content { max-width: 40ch; display: flex; flex-direction: column; gap: clamp(11px,3vw,15px); }
.hero__eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: clamp(.62rem,2.9vw,.72rem); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .5em .95em .5em .8em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero__eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .75em; flex: none;
  border-radius: 50%; background: var(--brass-soft); box-shadow: 0 0 0 3px rgba(204,163,91,.26);
}
.hero h1 {
  color: #fff; font-weight: 500; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(2.05rem, 8.6vw, 2.7rem); max-width: 16ch; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brass-soft); }
.hero__desc {
  max-width: 40ch; font-size: clamp(.95rem, 3.8vw, 1.05rem); line-height: 1.5;
  color: rgba(255,255,255,.86); text-shadow: 0 1px 16px rgba(0,0,0,.30);
}
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.hero__cta .btn-gold { width: 100%; }
.hero__link { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 42px; color: #fff; font-weight: 600; opacity: .92; }
.hero__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hero__link:hover { opacity: 1; } .hero__link:hover svg { transform: translateX(4px); }

/* Trust strip — the credibility band, now a proper three-stat row that is
   always in view (never below the fold). Dividers via ::before, so the markup
   stays clean (no separator spans). */
.hero__trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2px,1.5vw,8px); padding-top: clamp(14px,3.6vw,18px);
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; padding: 0 6px; }
.hero__trust-item + .hero__trust-item::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: rgba(255,255,255,.18);
}
.hero__trust-num { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 6.4vw, 1.75rem); color: #fff; line-height: 1; }
.hero__trust-label { font-size: clamp(.58rem, 2.7vw, .7rem); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.74); line-height: 1.2; }
.hero__trust-sep { display: none; }   /* dividers now drawn by the grid */

/* 8. STATS — mobile 2-col hairline grid ------------------------------- */
.stats__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--white); text-align: center; padding: clamp(22px, 6vw, 52px) clamp(12px, 3vw, 26px); }
.stat__num { font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 3.2rem); color: var(--forest); line-height: 1; letter-spacing: -.02em; }
.stat__num sup { font-size: .48em; color: var(--brass); top: -.75em; }
.stat__label { margin-top: 10px; font-size: clamp(.66rem, 2.6vw, .8rem); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.stats__inner .stat:nth-child(5) { grid-column: 1 / -1; }

/* 9. LEGACY / ABOUT — mobile: image then floating panel --------------- */
.about { padding-bottom: clamp(30px, 6vw, 66px); }
.about__feature { position: relative; }
.about__image { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; display: block; }
.about__panel {
  position: relative; z-index: 2; width: min(94%, 860px);
  margin: clamp(-34px, -8vw, -52px) auto 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 6vw, 60px);
}
.about__panel .lead { margin: .3em 0 1em; }
.about p + p { margin-top: 1em; }
.about__tagline { font-family: var(--telugu); color: var(--forest); font-weight: 600; font-size: 1.02rem; margin-top: 1.1em; }
.about__highlights { display: grid; gap: 16px; margin: clamp(24px,6vw,38px) 0 clamp(22px,5vw,34px); padding-top: clamp(22px,5vw,34px); border-top: 1px solid var(--line); }
.about__hl { display: flex; align-items: baseline; gap: 12px; }
.about__hl b { font-family: var(--serif); font-size: clamp(1.4rem, 6vw, 2rem); color: var(--forest); line-height: 1; white-space: nowrap; }
.about__hl span { font-size: .88rem; color: var(--ink-mute); letter-spacing: .02em; }

/* 10. ACADEMIC EXCELLENCE — mobile: photo clear, then proof stacked --- */
.results { position: relative; overflow: hidden; padding-block: clamp(34px, 7vw, 80px);
  background:
    radial-gradient(90% 60% at 85% 4%, rgba(169,119,42,.07), transparent 60%),
    radial-gradient(80% 60% at 6% 100%, rgba(46,107,83,.08), transparent 62%),
    linear-gradient(176deg, var(--paper-2) 0%, var(--paper) 46%, var(--paper-2) 100%);
}
.results__head { max-width: none; margin-bottom: clamp(28px, 7vw, 54px); }
.results__grid { display: grid; gap: clamp(26px, 7vw, 64px); align-items: center; }
.results__photo { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.results__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: #fff; }
.results__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 16px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: linear-gradient(0deg, rgba(6,16,11,.82), transparent); font-size: .84rem; color: rgba(255,255,255,.85); }
.results__pct { font-family: var(--serif); font-size: clamp(3.2rem, 18vw, 5.6rem); line-height: .86; color: var(--forest); }
.results__pct span { color: var(--brass); }
.results__lede { font-size: clamp(1rem, 4vw, 1.2rem); color: var(--ink-soft); margin: 8px 0 16px; }
.results__tag { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--brass); letter-spacing: .03em; margin-bottom: clamp(22px, 5vw, 30px); }
.results__tag svg { width: 20px; height: 20px; }
.toppers { display: grid; gap: 10px; }
.topper { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.topper__rank { font-family: var(--serif); font-size: 1.3rem; color: var(--brass); width: 26px; flex: none; }
.topper__name { color: var(--ink); font-weight: 600; font-size: 1rem; }
.topper__meta { font-size: .8rem; color: var(--ink-mute); }
.topper__score { margin-left: auto; text-align: right; white-space: nowrap; }
.topper__score b { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); }
.topper__score span { font-size: .72rem; color: var(--ink-mute); letter-spacing: .06em; }

/* 11. WHY CHOOSE — dense 2-up visual grid on mobile ------------------- */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 3vw, 22px); }
.feature { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.05); }
.feature__body { padding: clamp(12px, 3.4vw, 26px); }
.feature__body h3 { font-size: clamp(.98rem, 3.6vw, 1.24rem); margin-bottom: .28em; line-height: 1.15; }
.feature__body p { font-size: clamp(.8rem, 3vw, .95rem); line-height: 1.45; color: var(--ink-mute); }

/* 12. HEAD OF INSTITUTION — mobile: portrait then message ------------- */
.head__grid { display: grid; gap: clamp(28px, 8vw, 80px); align-items: center; }
.head__media { max-width: 360px; margin-inline: auto; width: 100%; }
.head__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.head__quote-mark { font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--brass); opacity: .35; }
.head blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 6vw, 1.85rem); line-height: 1.38; color: var(--ink); font-weight: 400; margin: 8px 0 22px; }
.head__sign-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-style: italic; }
.head__sign-role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 4px; }
.head__sign { margin-top: 24px; }

/* 13. FACILITIES — mobile: large single-column stacked ---------------- */
.fac__grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.fac-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.fac-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.fac-card:not(.is-reserved)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,14,.86) 0%, rgba(8,20,14,.2) 52%, rgba(8,20,14,0) 100%); }
.fac-card:not(.is-reserved):hover img { transform: scale(1.05); }
/* Facility cards are links to the facilities page — give them a clickable lift */
.fac-card { transition: transform .35s var(--ease), box-shadow .35s; }
.fac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fac-card:active { transform: translateY(-1px); }
.fac-card__body { position: relative; z-index: 2; padding: clamp(20px, 5vw, 40px); color: #fff; }
.fac-card__body h3 { color: #fff; font-size: clamp(1.25rem, 5.5vw, 1.7rem); }
.fac-card__body p { font-size: clamp(.82rem, 2.8vw, .92rem); color: rgba(255,255,255,.82); margin-top: 5px; }

/* 14. OUR CAMPUS — mobile: dominant then supporting stacked ----------- */
.campus__grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.campus-item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; }
.campus-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.campus-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,14,.6), rgba(8,20,14,0) 52%); opacity: 0; transition: opacity .4s; }
.campus-item:hover::after { opacity: 1; }
.campus-item:hover img { transform: scale(1.05); }
.campus-item__cap { position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .5em; opacity: 1; }
.campus-item__cap svg { width: 15px; height: 15px; }

/* 15. STUDENT LIFE — filled photo grid (no ragged white space) -------- */
.life__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 2.5vw, 16px); }
.life-item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; }
.life-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
/* Caption + scrim are ALWAYS visible (not only on hover) */
.life-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,14,.80) 0%, rgba(8,20,14,.30) 34%, rgba(8,20,14,0) 62%); opacity: 1; }
.life-item:hover img { transform: scale(1.06); }
.life-item__cap { position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 2; color: #fff; font-weight: 600; font-size: .88rem; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0,0,0,.5); opacity: 1; transform: none; }
/* "View the full gallery" link under the homepage Student Life grid */
.life__more { text-align: center; margin-top: clamp(20px, 5vw, 34px); }
/* Gallery page groups (Our Campus / Student Life) */
.gallery-group + .gallery-group { margin-top: clamp(36px, 8vw, 68px); }
.gallery-group__title { margin-bottom: clamp(14px, 3.5vw, 22px); }

/* 16. RESERVED MEDIA — elegant empty state (awaiting real photo) ------ */
.media-reserved {
  position: relative; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(18,58,44,.03) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--paper-3), var(--paper-2));
  color: var(--forest-300);
}
.media-reserved::before {
  content: ""; width: clamp(38px, 9vw, 56px); aspect-ratio: 1;
  background: currentColor; opacity: .5;
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.5' viewBox='0 0 24 24'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='8.5' cy='9.5' r='1.6'/><path d='M21 16l-5-5L5 20'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='1.5' viewBox='0 0 24 24'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='8.5' cy='9.5' r='1.6'/><path d='M21 16l-5-5L5 20'/></svg>");
}
/* Reserved facility card: light panel, dark text, title stays legible */
.fac-card.is-reserved { background: linear-gradient(160deg, var(--paper-3), var(--paper-2)); }
.fac-card.is-reserved .media-reserved { position: absolute; inset: 0; }
.fac-card.is-reserved .fac-card__body { color: var(--ink); }
.fac-card.is-reserved .fac-card__body h3 { color: var(--ink); }
.fac-card.is-reserved .fac-card__body p { color: var(--ink-mute); }
/* Reserved Why-card image area keeps the card's own aspect */
.feature__img.media-reserved { aspect-ratio: 4 / 3; }

/* Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,12,.94); display: flex; align-items: center; justify-content: center; padding: clamp(14px, 5vw, 64px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { margin: auto; max-width: 100%; max-height: 84vh; width: auto; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); transition: opacity .22s var(--ease); will-change: opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(0); }
.lightbox.is-switching img { opacity: 0; }
.lightbox__btn { position: absolute; width: 50px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; z-index: 2; -webkit-user-select: none; user-select: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s var(--ease), transform .18s var(--ease); }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(14px, 4vw, 28px); right: clamp(14px, 4vw, 28px); font-size: 1.6rem; }
.lightbox__close:active { transform: scale(.9); background: rgba(255,255,255,.3); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
/* Press feedback on tap — a gentle squeeze, not a black flash */
.lightbox__nav:active { transform: translateY(-50%) scale(.9); background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: clamp(10px, 3vw, 34px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 34px); }
.lightbox__counter { position: absolute; bottom: clamp(16px, 4vw, 30px); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .1em; z-index: 2; }

/* 17. FACULTY — mobile: controlled photo then text -------------------- */
.faculty__photo { max-width: 620px; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.faculty__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 38%; display: block; }
.faculty__text { text-align: center; max-width: 680px; margin: clamp(26px, 7vw, 44px) auto 0; }
.faculty__text .section-title { margin: .3em 0 .5em; }
.faculty__count { display: inline-flex; align-items: baseline; gap: .4em; margin-bottom: 1em; color: var(--ink); }
.faculty__count b { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.6rem); color: var(--forest); line-height: 1; }
.faculty__count span { font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); }

/* 18. ADMISSIONS CTA -------------------------------------------------- */
.cta { position: relative; color: #fff; isolation: isolate; text-align: center; overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,29,21,.84), rgba(11,29,21,.93)); }
.cta__inner { padding-block: clamp(72px, 16vw, 156px); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 8vw, 3.8rem); max-width: 18ch; margin: .3em auto .4em; }
.cta__eyebrow { color: var(--brass-soft); }
.cta__eyebrow::before { display: none; }
.cta p { max-width: 46ch; margin: 0 auto; color: rgba(255,255,255,.85); font-size: clamp(1rem, 4vw, 1.12rem); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.cta__actions .btn { flex: 1 1 auto; }

/* 19. FOOTER ---------------------------------------------------------- */
.footer { background: var(--forest-700); color: rgba(255,255,255,.72); padding-top: clamp(30px, 7vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 5vw, 34px); padding-bottom: clamp(22px, 5vw, 44px); }
/* MOBILE footer = essentials only (brand + contact + copyright). The Explore
   menu (already in the nav), the Google map, and the blurb are desktop-only. */
.footer__col--links, .footer__col--map, .footer__desc { display: none; }
.footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer__brand img { width: 50px; aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 3px; }
.footer__brand b { font-family: var(--serif); color: #fff; font-size: 1.14rem; font-weight: 600; }
.footer__tagline { font-family: var(--telugu); color: var(--brass-soft); font-size: 1rem; margin-bottom: 10px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer a { display: inline-flex; align-items: center; min-height: 32px; }
.footer a:hover { color: #fff; }
.footer__links li { margin-bottom: 8px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--brass-soft); flex: none; margin-top: 8px; }
.footer__map { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-md); filter: grayscale(.3) contrast(1.05); }
.footer__socials { display: flex; gap: 12px; margin-top: 18px; }
.footer__socials a { width: 44px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.footer__socials a:hover { background: var(--brass); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* 20. MOTION / REVEAL ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .05s; }
.reveal.d2 { transition-delay: .1s; }
.reveal.d3 { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; }
  .fac-card img, .life-item img, .campus-item img, .feature__img img { transition: none; }
}

/* =====================================================================
   PROGRESSIVE ENHANCEMENT — larger screens build on the mobile base
   ===================================================================== */

/* --- sm: large phones ------------------------------------------------ */
@media (min-width: 480px) {
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .stats__inner .stat:nth-child(5) { grid-column: auto; }
  .life__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn, .cta__actions .btn { flex: 0 1 auto; }
  .brand__tag { display: block; font-family: var(--telugu); font-size: .58rem; letter-spacing: .02em; color: var(--ink-mute); }
  .site-header:not(.is-solid) .brand__tag { color: rgba(255,255,255,.78); }
}

/* --- md: tablet ------------------------------------------------------ */
@media (min-width: 768px) {
  :root { --section-y: clamp(40px, 4.5vw, 64px); }
  body { font-size: 16.5px; }
  .hero__inner { padding-bottom: clamp(28px, 5vh, 54px); } /* mobile bar hidden here */
  .hero__cta { flex-direction: row; align-items: center; gap: 18px; }
  .hero__cta .btn-gold { width: auto; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .fac__grid { grid-template-columns: repeat(2, 1fr); }
  .life__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .footer__col--links, .footer__col--map, .footer__desc { display: block; } /* full footer returns on tablet+ */
  .footer__col--map { grid-column: 1 / -1; }
  .about__image { max-width: min(100%, 1120px); margin-inline: auto; }
  .about__image img { aspect-ratio: 21 / 9; }
  .about__highlights { grid-template-columns: repeat(3, 1fr); }
  .about__hl { display: block; }
  .about__hl b { display: block; }
  .about__hl span { display: block; margin-top: 8px; }
  .results__grid { grid-template-columns: .82fr 1.18fr; }
  .results__photo { margin-inline: 0; }
  .head__grid { grid-template-columns: .8fr 1.2fr; }
  .campus__grid { grid-template-columns: repeat(3, 1fr); }
  .campus-item--lg { grid-column: 1 / -1; aspect-ratio: 24 / 6; }
  .brand__est { font-size: .56rem; }
}

/* --- lg: laptop — full desktop navigation & multi-column ------------- */
@media (min-width: 1024px) {
  .site-header { padding-block: clamp(12px, 1.6vw, 20px); }
  .nav-toggle { display: none; }
  .nav__menu {
    position: static; inset: auto; top: auto; right: auto; transform: none; visibility: visible;
    clip-path: none; overflow: visible; opacity: 1;
    width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none;
    flex-direction: row; justify-content: flex-end; align-items: center;
    gap: clamp(18px, 1.8vw, 32px); background: none; padding: 0; z-index: auto;
  }
  .nav__link:hover, .nav__link:active { background: none; }  /* no popup row-highlight on desktop */
  .nav__link[aria-current="page"] { background: none; }
  .nav__link { color: var(--ink-soft); font-family: var(--sans); font-size: .97rem; font-weight: 500; padding: 4px 0; min-height: 0; position: relative; opacity: 1; transform: none; transition: color .25s; }
  .nav__link::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--brass); transition: width .3s var(--ease); }
  .nav__link:hover::after { width: 100%; }
  .site-header:not(.is-solid) .nav__link { color: rgba(255,255,255,.9); }
  /* Active page — persistent highlight so you always know where you are */
  .nav__link[aria-current="page"] { color: var(--brass); font-weight: 600; }
  .nav__link[aria-current="page"]::after { width: 100%; }
  .site-header:not(.is-solid) .nav__link[aria-current="page"] { color: var(--brass-soft); }
  .site-header:not(.is-solid) .nav__link[aria-current="page"]::after { background: var(--brass-soft); }
  .nav__menu > .btn { display: none; }
  .nav-close { display: none !important; }
  .nav__actions > .btn:not(.nav__call) { display: inline-flex; } /* nav__call stays hidden on desktop */
  .brand__logo { width: clamp(48px, 4vw, 58px); }
  .brand__name { font-size: clamp(1.05rem, 1.15vw, 1.2rem); }

  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .life__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; }
  .footer__col--map { grid-column: auto; } /* map back to its own column on desktop */
  .stats__inner { grid-template-columns: repeat(5, 1fr); }
  .head__media { max-width: none; }
  .fac-card { aspect-ratio: 16 / 10; }

  /* DESKTOP HERO — full-screen image overlay (fills the screen) */
  .hero { min-height: 100vh; flex-direction: row; justify-content: center; overflow: hidden; }
  .hero__media { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; max-height: none; z-index: -2; }
  .hero__media img { object-position: center 46%; filter: brightness(.82) saturate(1.03) contrast(1.02); }
  .hero__media::after { display: none; }
  .hero__scrim {
    display: block; z-index: -1;
    background: linear-gradient(to top, rgba(8,20,14,.74) 0%, rgba(8,20,14,.30) 34%, rgba(8,20,14,0) 66%),
                linear-gradient(to right, rgba(8,20,14,.45) 0%, rgba(8,20,14,0) 55%);
  }
  .hero__inner {
    position: relative; z-index: 2; width: var(--container); margin: 0 auto;
    background: none; border-radius: 0; justify-content: flex-end;
    padding: clamp(110px, 16vh, 152px) 0 clamp(48px, 9vh, 80px); gap: clamp(20px, 3vh, 34px);
  }
  .hero__content { text-shadow: 0 1px 22px rgba(0,0,0,.45); }
  .hero__eyebrow { background: rgba(8,20,14,.42); margin-bottom: 1em; }
  .hero h1 { font-weight: 400; line-height: 1.08; font-size: clamp(2.6rem, 4.4vw, 3.9rem); max-width: 15ch; }
  .hero__desc { color: rgba(255,255,255,.92); }
  .hero__cta { flex-direction: row; align-items: center; margin-top: clamp(20px, 3vh, 30px); }
  .hero__cta .btn-gold { width: auto; }
  .hero__trust { border-top-color: rgba(255,255,255,.24); }
  .hero__trust-num { font-size: 1.55rem; }
  .hero__trust-label { color: rgba(255,255,255,.78); }
}

/* --- xl --------------------------------------------------------------- */
@media (min-width: 1280px) {
  .why__grid { gap: clamp(20px, 2vw, 26px); }
}

/* =====================================================================
   SUBPAGES + SHARED COMPONENTS (mobile-first, reuse homepage system)
   ===================================================================== */

/* Desktop hero: add a left-side darkening so bottom-left text stays crisp */
@media (min-width: 768px) {
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(6,17,12,.6) 0%, rgba(6,17,12,.15) 46%, transparent 72%),
      linear-gradient(180deg, rgba(8,20,14,.45) 0%, rgba(8,20,14,.1) 26%, rgba(6,17,12,.45) 60%, rgba(6,17,12,.85) 100%);
  }
}

/* --- Page header (subpages) — solid header sits above, so clear it ---- */
.page-header { position: relative; overflow: hidden; background: var(--paper-2);
  padding-top: clamp(92px, 23vw, 148px); padding-bottom: clamp(26px, 6vw, 60px);
  background-image:
    radial-gradient(70% 60% at 88% 0%, rgba(169,119,42,.08), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(46,107,83,.08), transparent 62%);
}
.page-header h1 { font-size: clamp(2rem, 9vw, 3.8rem); margin: .28em 0 .38em; }
.page-header .lead { max-width: 56ch; }
/* Approved: intro paragraphs run the FULL width (single line on desktop) instead of
   wrapping into a narrow column with empty space on the right. Applied to every
   subpage (About, Academics, Facilities, Gallery, Admissions, Contact); the homepage
   keeps its own capped section-heads. */
.subpage .page-header .lead { max-width: none; }
.subpage .section-head { max-width: none; }
.page-header__tag { font-family: var(--telugu); color: var(--forest); font-weight: 600; font-size: 1rem; margin-top: 1em; }
.breadcrumb { display: flex; gap: .5em; font-size: .82rem; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--forest); }

/* --- Reusable split (image + text) ----------------------------------- */
.split { display: grid; gap: clamp(22px, 6vw, 64px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.prose p + p { margin-top: 1em; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* --- Mission / Vision / value cards ---------------------------------- */
.mv-grid { display: grid; gap: var(--gap); }
.mv-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: clamp(26px, 7vw, 40px); box-shadow: var(--shadow-sm); }
.mv-card h3 { font-size: clamp(1.3rem, 5vw, 1.62rem); margin: .3em 0 .45em; }
.mv-card p { font-size: 1rem; }
@media (min-width: 768px) { .mv-grid--2 { grid-template-columns: 1fr 1fr; } .mv-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Admission steps -------------------------------------------------- */
.steps { display: grid; gap: var(--gap); }
.step { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: clamp(22px, 6vw, 32px); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--serif); font-size: 1.5rem; color: var(--brass); width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--paper-3); border-radius: 50%; }
.step h3 { font-size: 1.2rem; margin-bottom: .3em; }
.step p { font-size: .95rem; }
@media (min-width: 768px) { .steps--2 { grid-template-columns: 1fr 1fr; } }

/* --- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--gap); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; min-height: var(--tap); border-bottom: 1px solid var(--line-soft); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper-3); color: var(--forest); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; font-weight: 700; }
.contact-list a, .contact-list span { color: var(--ink-soft); font-size: 1.02rem; }
.contact-map iframe { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); filter: grayscale(.25) contrast(1.05); }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .contact-map iframe { aspect-ratio: 3 / 4; }
}

/* --- Persistent mobile call/enquire bar ------------------------------ */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(20,30,24,.08); }
.mobile-bar .btn { flex: 1; min-height: 46px; font-size: .96rem; }
.mobile-bar .btn svg { width: 17px; height: 17px; }
body { padding-bottom: 64px; } /* clear the fixed bar on mobile */
@media (min-width: 768px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Reserved media area used on subpages keeps a sensible height */
.split__media.media-reserved { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }

/* =====================================================================
   PHASE-3 ADDITIONS — enquiry form, richer facilities, photo cards
   ===================================================================== */

/* Enquiry form ------------------------------------------------------- */
.enquiry { display: grid; gap: clamp(24px, 5vw, 48px); align-items: start; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row--2 { display: grid; gap: 14px; }
@media (min-width: 480px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form label { font-size: .8rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  font: inherit; width: 100%; min-height: 50px; padding: .75em .9em;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a7f76' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.form__submit { margin-top: 4px; width: 100%; }
.form__note { font-size: .82rem; color: var(--ink-mute); display: flex; align-items: center; gap: .5em; }
.enquiry__aside { background: var(--forest); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 6vw, 36px); }
.enquiry__aside h3 { color: #fff; font-size: clamp(1.3rem, 5vw, 1.6rem); margin-bottom: .5em; }
.enquiry__aside p { color: rgba(255,255,255,.82); font-size: .96rem; margin-bottom: 1.2em; }
.enquiry__contact { display: grid; gap: 12px; }
.enquiry__contact a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: #fff; font-weight: 600; }
.enquiry__contact a svg { width: 20px; height: 20px; color: var(--brass-soft); flex: none; }
@media (min-width: 768px) { .enquiry { grid-template-columns: 1.3fr .9fr; } }

/* Rich facilities feature (facilities page) --------------------------- */
.facility { display: grid; gap: clamp(20px, 5vw, 56px); align-items: center; scroll-margin-top: clamp(80px, 12vw, 104px); }
.facility + .facility { margin-top: clamp(40px, 9vw, 96px); }
.facility__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; position: relative; }
.facility__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facility__media.media-reserved { box-shadow: none; }
.facility__body .eyebrow { margin-bottom: .8em; }
.facility__body h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: .5em; }
.facility__list { display: grid; gap: 10px; margin-top: 1.2em; }
.facility__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.facility__list svg { width: 18px; height: 18px; color: var(--forest-300); flex: none; margin-top: 3px; }
@media (min-width: 768px) {
  .facility { grid-template-columns: 1fr 1fr; }
  .facility:nth-child(even) .facility__media { order: 2; }
}

/* ============================================================
   WordPress additions (Phase 4): notices strip + form states
   ============================================================ */

/* Form feedback states (AJAX enquiry) */
.form__note svg { flex: none; width: 1.05em; height: 1.05em; }
.form__note.is-error { color: #b23b3b; font-weight: 500; }
.form__note.is-ok { color: var(--forest); font-weight: 600; }

/* Required-field marker + optional hint */
.form label .req { color: #b23b3b; font-weight: 700; margin-left: 1px; }
.form label .form-opt { color: var(--ink-mute); font-weight: 500; letter-spacing: 0; }

/* Per-field inline error — sits directly under its own input box */
.field-error { font-size: .78rem; line-height: 1.35; color: #b23b3b; font-weight: 500; margin-top: 1px; min-height: 0; }
.field-error:empty { display: none; }
.form-row.has-error label { color: #b23b3b; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea { border-color: #d06a6a; background: #fdf6f5; }
.form-row.has-error input:focus,
.form-row.has-error select:focus,
.form-row.has-error textarea:focus { outline-color: #b23b3b; border-color: #b23b3b; }

/* Notices strip — school announcements from wp-admin */
.notices { background: var(--forest); color: #fff; }
.notices__inner { display: flex; align-items: center; gap: clamp(12px, 3vw, 22px); padding: 12px 0; }
.notices__label { display: inline-flex; align-items: center; gap: .5em; flex: none; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); }
.notices__label svg { width: 1.1em; height: 1.1em; }
.notices__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 4vw, 34px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.notices__list::-webkit-scrollbar { display: none; }
.notices__item { flex: none; display: inline-flex; align-items: baseline; gap: .6em; font-size: .9rem; white-space: nowrap; }
.notices__item a { color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; gap: .6em; }
.notices__item a:hover .notices__text { text-decoration: underline; }
.notices__date { font-size: .72rem; font-weight: 700; color: var(--brass-soft); letter-spacing: .04em; text-transform: uppercase; }
.notices__item.is-pinned .notices__date::before { content: "★ "; }
.notices__text { color: rgba(255,255,255,.92); }

/* WordPress core alignment / caption helpers for editor content in .prose */
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignright { float: right; margin: 0 0 1em 1.5em; }
.prose .alignleft { float: left; margin: 0 1.5em 1em 0; }
.prose .wp-caption-text { font-size: .85rem; color: var(--ink-mute); margin-top: .4em; }

/* Footer credit link → EMPA Solutions */
.footer__credit { color: var(--brass-soft); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), color .25s; }
.footer__credit:hover { color: #fff; border-bottom-color: var(--brass-soft); }

/* ============================================================
   Gallery, labelled placeholders & photo strips (Phase 4b)
   ============================================================ */

/* Labelled placeholder — names the photo that belongs here */
.media-reserved--labeled::before { display: none; }
.media-reserved--labeled { padding: 14px; }
.media-reserved__tag { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--forest-300); text-align: center; }
.media-reserved__tag svg { width: clamp(26px, 6.5vw, 38px); height: auto; opacity: .5; }
.media-reserved__name { font-family: var(--sans); font-size: clamp(.64rem, 2.5vw, .76rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .9; line-height: 1.25; }
.media-reserved__soon { font-size: clamp(.55rem, 2.1vw, .64rem); letter-spacing: .04em; color: var(--ink-mute); opacity: .85; }

/* Photo / placeholder strip (About, Academics, Faculty, Achievements) */
.ph-grid { display: grid; gap: clamp(8px, 2.2vw, 14px); grid-template-columns: repeat(2, 1fr); }
.ph-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ph-tile { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; }
.ph-tile .media-reserved { position: absolute; inset: 0; }
.ph-tile__cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; font-weight: 600; font-size: .82rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (min-width: 768px) { .ph-grid { grid-template-columns: repeat(4, 1fr); } .ph-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Gallery = the Student-Life grid, with placeholder tiles mixed in */
.life-item.is-placeholder { cursor: default; }
.life-item.is-placeholder .media-reserved { position: absolute; inset: 0; }
.life-item.is-placeholder::after { display: none; }

/* Gallery intro / group headings */
.gallery-group { margin-top: clamp(30px, 6vw, 56px); }
.gallery-group:first-of-type { margin-top: 0; }
.gallery-group__title { font-size: clamp(1.15rem, 4.5vw, 1.5rem); margin-bottom: clamp(12px, 3vw, 20px); display: flex; align-items: center; gap: .6em; }
.gallery-group__title .eyebrow { margin: 0; }

/* When the WP admin bar is present (logged-in staff), drop the menu close
   button below it so it's never hidden. Visitors never see the admin bar. */
.admin-bar .nav-close { top: calc(env(safe-area-inset-top, 0px) + 58px); }

/* ============================================================
   Image focal points — keep the subject (faces / people) in
   frame when object-fit: cover crops the photo.
   ============================================================ */
img[src*="about-community"] { object-position: center 64%; }  /* kids sit low, building above */
img[src*="staff-01"]        { object-position: center 66%; }  /* teachers low, tent above */
img[src*="head-portrait"]   { object-position: 54% 30%; }     /* face upper-centre-right */
img[src*="why-01"]          { object-position: center 62%; }  /* the students, not the building */
img[src*="results-proof"]   { object-position: center 30%; }  /* the topper list up top */

/* Keep the hero "Learn more" link on one line */
.hero__link { white-space: nowrap; }

/* Focal points for the teacher/experiment shots (client feedback) */
img[src*="why-08"]     { object-position: center 22%; }  /* teacher + students at the table, not seated backs */
img[src*="fac-science"]{ object-position: center 58%; }  /* students doing the experiment */
img[src*="campus-highschool"] { object-position: center 42%; }

/* Focal points — new photos (computer lab, main building) */
img[src*="fac-computer"] { object-position: center 42%; }
img[src*="campus-main"]  { object-position: center 36%; }  /* building sits high, courtyard below */
img[src*="why-modern"]   { object-position: center 50%; }

/* Focal points — classroom/group photos (client feedback round 3) */
img[src*="learn-nursery"]    { object-position: center 55%; }
img[src*="learn-class"]      { object-position: center 46%; }
img[src*="about-foundation"] { object-position: center 50%; }

/* Dedicated Faculty (why-03): person sits left — bias the crop left so they're not cut */
img[src*="why-03"] { object-position: 28% center; }
