/* ==========================================================
   Indian Public School — ips.css
   Palette: Deep Navy + Warm Cream + Academic Gold
   Fonts: Lora (display) + Inter Tight (body) + JetBrains Mono
   ========================================================== */

:root {
  /* Brand tokens */
  --navy:        #0D2B4E;
  --navy-2:      #081E38;
  --navy-3:      #060F1C;
  --cream:       #F7F3EA;
  --cream-2:     #EDE7D8;
  --cream-soft:  #FCFAF5;
  --gold:        #C5962E;
  --gold-2:      #DEBA52;
  --gold-soft:   #EDD89A;
  --spot:        #2B5C9A;

  /* Base aliases */
  --paper:       var(--cream);
  --paper-2:     var(--cream-2);
  --paper-soft:  var(--cream-soft);
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --accent:      var(--gold);
  --accent-2:    var(--gold-2);
  --accent-soft: var(--gold-soft);
  --muted:       #3A4D5C;
  --muted-2:     #5E7080;
  --line:        rgba(13,43,78,.12);
  --line-2:      rgba(13,43,78,.06);

  --f-display: "Lora", Georgia, serif;
  --f-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--navy); color: var(--cream); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  width: 100%; max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section, header, footer, nav { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--navy); }

/* ---- FILM GRAIN ---- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--muted); line-height: 1.75; }
em, .italic { font-style: italic; font-family: var(--f-display); }

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); margin-right: 14px; vertical-align: middle;
}
.label-mono {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2);
}
.serif { font-family: var(--f-display); font-weight: 600; }

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section--paper2 { background: var(--cream-2); }
.section--navy {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: var(--cream);
}
.section--navy h2 { color: var(--cream); }
.section--navy p { color: rgba(247,243,234,.78); }

/* ---- REVEALS ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- IMG FALLBACK ---- */
.img-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--cream-2); border: 1px solid var(--line); min-height: 260px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); padding: 24px; text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 32px; border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--cream);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--navy); opacity: 1; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); opacity: 1; }
.btn--ghost-light { background: transparent; border-color: rgba(247,243,234,.4); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(247,243,234,.1); border-color: var(--cream); opacity: 1; }

/* ---- ANNOUNCE ---- */
.announce {
  background: var(--navy-2); text-align: center; padding: 11px 20px;
  font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  color: rgba(247,243,234,.7); font-weight: 400;
}
.announce span { color: var(--gold-2); }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 24px; padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; color: var(--navy);
  text-transform: uppercase;
}
.nav-badge {
  background: var(--navy); color: var(--gold);
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; justify-content: center;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-cta { white-space: nowrap; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--navy); transition: .3s var(--ease); }

/* ---- HERO (dark navy school) ---- */
.hero-school {
  background: linear-gradient(150deg, #0D2B4E 0%, #081E38 55%, #060F1C 100%);
  color: var(--cream);
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-school::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 72% 38%, rgba(197,150,46,.13) 0%, transparent 52%),
    radial-gradient(ellipse at 15% 80%, rgba(197,150,46,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-school::after { display: none; }
.hero-crest {
  position: absolute; right: -1vw; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(180px, 22vw, 320px);
  color: rgba(197,150,46,.07);
  line-height: 1; pointer-events: none; user-select: none;
  letter-spacing: -.02em;
}
.hero-school .container { position: relative; z-index: 1; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: rgba(247,243,234,.55); margin-bottom: 28px;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-school h1 { color: var(--cream); line-height: 1.08; margin-bottom: 22px; }
.hero-school h1 em { color: var(--gold); font-style: italic; }
.hero-tag { color: rgba(247,243,234,.72); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---- MARQUEE ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; background: var(--cream-2); }
.marquee-track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); animation: marq 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(even) { color: var(--gold); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- TRUST BAR ---- */
.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.trust-stat {
  padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 36px);
  border-right: 1px solid var(--line); text-align: center;
}
.trust-stat:last-child { border-right: none; }
.trust-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); line-height: 1;
}
.trust-lbl {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 10px; display: block;
}

/* ---- ABOUT SPLIT ---- */
.split-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.split-img img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  box-shadow: var(--shadow-lift);
}
.vision-block {
  background: var(--cream-2); padding: 28px 32px;
  border-left: 3px solid var(--gold); margin-top: 32px;
}
.vision-quote {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--navy); line-height: 1.65; margin-top: 12px;
}

/* ---- ADMISSIONS BAND ---- */
.admissions-band {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.eyebrow--light { color: var(--gold-2); }
.eyebrow--light::before { background: var(--gold); }
.admissions-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.info-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(197,150,46,.25);
  padding: 28px 32px;
}
.info-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px; gap: 16px;
}
.info-item:last-child { border-bottom: none; }
.info-item .label-mono { color: var(--gold-2); flex-shrink: 0; }
.info-item .info-val { color: var(--cream); font-weight: 500; text-align: right; }
.info-item a { color: var(--gold-2); }

/* ---- ACADEMICS GRID ---- */
.academics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(40px, 5vw, 64px);
}
.acad-card {
  background: var(--cream-soft); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.acad-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.acad-icon { color: var(--gold); margin-bottom: 16px; }
.acad-badge {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-soft);
  display: inline-block; padding: 4px 12px; margin-bottom: 12px; font-weight: 600;
}
.acad-card h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.2; }
.acad-card p { font-size: 14px; }

/* ---- FACILITIES GALLERY ---- */
.facilities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px; gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
}
.fac-card { position: relative; overflow: hidden; background: var(--navy-2); }
.fac-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fac-card:hover img { transform: scale(1.04); }
.fac-card--wide { grid-column: span 2; }
.fac-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(6,15,28,.88), transparent);
  color: var(--cream); padding: 32px 20px 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}

/* ---- RESULTS SECTION ---- */
.results-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px, 7vw, 96px); align-items: start;
}
.topper-list { display: flex; flex-direction: column; margin-top: 28px; }
.topper-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.topper-item:first-child { border-top: 1px solid var(--line); }
.topper-subject {
  font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  color: var(--navy); margin-bottom: 5px;
}
.topper-detail { font-size: 13px; color: var(--muted-2); }

/* ---- CONTACT / FORM ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 7vw, 96px); align-items: start;
}
.contact-detail { margin-top: 24px; }
.contact-detail .label-mono { display: block; margin-bottom: 6px; }
.contact-detail p, .contact-detail a { font-size: 15px; color: var(--navy); line-height: 1.8; }
.contact-detail a { color: var(--gold); }
.contact-detail a:hover { color: var(--navy); opacity: 1; }
.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--cream-soft);
  font-family: var(--f-body); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; }

/* ---- FOOTER ---- */
.footer { background: var(--navy-2); color: var(--cream); padding: clamp(56px, 8vw, 96px) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: clamp(32px, 5vw, 56px);
}
.footer-logo-badge {
  background: var(--gold); color: var(--navy);
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.footer-brand-name { font-family: var(--f-display); font-size: 1.2rem; color: var(--cream); }
.footer .footer-brand p { color: rgba(247,243,234,.65); font-size: 14px; margin-top: 10px; }
.footer-col .label-mono { color: var(--gold-2); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.footer-links a { font-size: 14px; color: rgba(247,243,234,.65); }
.footer-links a:hover { color: var(--gold-2); opacity: 1; }
.footer-col p, .footer-col address { font-size: 14px; color: rgba(247,243,234,.65); line-height: 1.85; font-style: normal; margin-top: 12px; }
.footer-col a { color: rgba(247,243,234,.65); }
.footer-col a:hover { color: var(--gold-2); opacity: 1; }
.footer-bottom {
  margin-top: 48px; padding: 24px 0;
  border-top: 1px solid rgba(247,243,234,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  color: rgba(247,243,234,.45);
}
.footer-bottom a { color: rgba(247,243,234,.45); }
.footer-bottom a:hover { color: var(--gold-2); opacity: 1; }

/* ---- CBSE DISCLOSURE PAGE ---- */
.disclosure-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream); padding: clamp(60px, 10vw, 100px) 0 clamp(40px, 6vw, 64px);
}
.disclosure-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.disclosure-hero p { color: rgba(247,243,234,.7); margin-top: 12px; max-width: 60ch; }
.disc-section { padding: clamp(36px, 6vw, 64px) 0; border-bottom: 1px solid var(--line-2); }
.disc-section:last-of-type { border-bottom: none; }
.disc-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.disc-table th {
  background: var(--navy); color: var(--cream);
  padding: 12px 16px; text-align: left;
  font-family: var(--f-body); font-weight: 600; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.disc-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  color: var(--muted); vertical-align: top;
}
.disc-table tr:nth-child(even) td { background: var(--cream-2); }
.disc-table td:first-child { color: var(--navy); font-weight: 500; min-width: 220px; }
.disc-note {
  background: rgba(197,150,46,.08); border: 1px solid rgba(197,150,46,.28);
  padding: 16px 20px; font-size: 13px; color: var(--muted); margin-top: 20px;
}
.disc-note strong { color: var(--navy); }
.disc-pending { color: var(--muted-2); font-style: italic; font-size: 13px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .academics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open {
    display: flex; position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; background: var(--cream);
    padding: 32px var(--gutter); gap: 20px;
    border-bottom: 1px solid var(--line); z-index: 99;
  }
  .hero-crest { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .admissions-band { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-stat { border-right: none !important; border-bottom: 1px solid var(--line); }
  .trust-stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .trust-stat:nth-child(3), .trust-stat:nth-child(4) { border-bottom: none; }
  .results-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .academics-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
  .fac-card--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .admissions-actions { flex-direction: column; }
  .admissions-actions .btn { width: 100%; justify-content: center; }
  .disc-table td:first-child { min-width: 140px; }
}
