/* ======================================================
   The Shri Ram Wonder Years — Sector 79
   Unified palette — warm cream base, navy anchor,
   orange as the single CTA/accent colour, yellow for
   highlights, magenta reserved ONLY for Namaste.
   ====================================================== */

:root {
  /* Brand */
  --orange:       #F58220;   /* primary CTA / accent */
  --orange-dark:  #D86A0F;
  --orange-soft:  #FFE7CC;
  --yellow:       #FFC93C;
  --yellow-soft:  #FFF1C2;
  --navy:         #1E2B6E;   /* text & dark sections */
  --navy-soft:    #2B3A8C;
  --magenta:      #9C1F8C;   /* used once, Namaste only */

  /* Neutrals */
  --cream:        #FFF8EE;   /* main background */
  --cream-warm:   #FFEFD5;   /* warm accent background */
  --white:        #FFFFFF;
  --line:         #EEE6D4;
  --ink:          #1E2233;
  --ink-muted:    #60657A;

  /* Rhythm */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 3px rgba(30,43,110,.06);
  --shadow:    0 10px 30px rgba(30,43,110,.08);
  --shadow-lg: 0 20px 50px rgba(30,43,110,.12);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg, iframe, video { max-width: 100%; display: block; }
a  { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .4em; }
h3 { font-size: 1.2rem; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); }

p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }
em { color: var(--orange); font-style: italic; }

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: #fff; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--link    { background: transparent; color: var(--orange); border-color: transparent; padding: .85em .6em; }
.btn--link:hover { background: transparent; color: var(--orange-dark); box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.btn--block   { width: 100%; }
.btn--sm      { padding: .55em 1em; font-size: .9rem; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  padding: .35em .8em;
  background: var(--orange-soft);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--on-dark { background: rgba(255,255,255,.15); color: var(--yellow); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,238,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; gap: 1rem;
}
.brand  { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__logo   { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.brand__text   { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name   { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand__sub    { font-size: .75rem; color: var(--ink-muted); letter-spacing: .05em; }

.nav__links    { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a  { font-weight: 600; color: var(--ink); font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--orange); }
.nav__links a.btn { color: #fff; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav__toggle span {
  display: block; height: 3px; width: 24px;
  background: var(--navy); border-radius: 3px;
}

/* ============================================
   SECTION RHYTHM
   ============================================ */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section__head { max-width: 720px; margin-bottom: 2rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.big       { font-size: 1.12rem; }
.big-muted { color: var(--ink-muted); font-size: 1.05rem; }

/* Alternating backgrounds */
.section--values,
.section--facilities,
.section--reviews,
.section--map         { background: var(--cream); }
.section--about,
.section--programs,
.section--activities,
.section--admissions,
.section--campus,
.section--insta       { background: var(--white); }
.section--diff,
.section--namaste     { background: var(--cream-warm); }
.section--legacy      { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,201,60,.35) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(245,130,32,.18) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream-warm), var(--cream));
  overflow: hidden;
}
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 360px; height: 360px; background: var(--yellow); top: -120px; left: -80px; }
.blob--2 { width: 300px; height: 300px; background: var(--orange); bottom: -120px; right: -80px; opacity: .35; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.hero__text .lede { font-size: 1.12rem; color: var(--ink-muted); max-width: 54ch; }
.accent { color: var(--magenta); font-style: italic; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.hero__badges {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
  max-width: 520px;
}
.hero__badges li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; line-height: 1.2;
}
.hero__badges strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }
.hero__badges span   { font-size: .78rem; color: var(--ink-muted); }

/* Award badge (hero) */
.award {
  margin: 1.4rem 0 0;
  display: flex; align-items: center; gap: .9rem;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem .9rem .6rem .7rem;
  box-shadow: var(--shadow-sm);
}
.award img {
  width: 62px; height: 62px; flex: 0 0 62px;
  object-fit: contain;
  border-radius: 8px;
}
.award figcaption {
  font-size: .85rem; line-height: 1.35;
  color: var(--navy); font-weight: 700;
}
.award--below {
  margin: 0 auto;
  max-width: 460px;
  justify-content: center;
  background: var(--cream-warm);
  border-color: var(--orange-soft);
}
.award--below img,
.award--below .award__ico {
  width: 54px; height: 54px; flex: 0 0 54px;
  border-radius: 8px;
}
.award--below figcaption { font-size: .82rem; }

/* Stack of multiple awards below the hero video */
.awards-stack {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

/* Video frame */
.hero__video { position: relative; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
  transform: rotate(-1deg);
}
.video-frame video,
.video-frame iframe { width: 100%; height: 100%; object-fit: cover; background: var(--navy); }

.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; text-align: center;
  background: linear-gradient(180deg, rgba(30,43,110,.25), rgba(30,43,110,.7));
  color: #fff;
  pointer-events: none;
}
.video-placeholder__label { margin: 0; font-weight: 600; }
.video-placeholder code { background: rgba(255,255,255,.18); padding: 0 .35em; border-radius: 4px; font-size: .9em; }
.play-btn { filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }

/* ============================================
   INSTAGRAM (now at top)
   ============================================ */
.insta-embed { max-width: 1080px; margin: 0 auto; }
.insta-embed iframe { width: 100%; border: 0; border-radius: var(--radius); }
.insta-fallback { display: grid; gap: 1.5rem; }
.insta-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem;
}
.insta-tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--cream-warm);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.insta-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30,43,110,.35));
}
.insta-tile:hover { transform: translateY(-3px) scale(1.02); }
.insta-cta { text-align: center; }
.insta-cta p { color: var(--ink-muted); }

/* ============================================
   NAMASTE
   ============================================ */
.namaste__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card--paper {
  background: #FCF5E5;
  border: 1px solid #E9DCB6;
  text-align: center;
}
.sanskrit {
  font-family: var(--font-head);
  font-size: 4.5rem;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: .4rem;
}
.hi-text { color: #3a2d1a; font-size: .98rem; }
.namaste-ico { font-size: 2.4rem; margin-bottom: .4rem; }
.namaste__title { color: var(--magenta); font-size: 2rem; margin-bottom: .4rem; }
.namaste__title .faint { color: #A87070; font-size: 1rem; font-style: italic; font-weight: 400; }
.card p { color: #3a2d1a; }

/* ============================================
   ABOUT
   ============================================ */
.two-col {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.motto {
  font-family: var(--font-head); font-style: italic;
  color: var(--magenta); font-size: 1.15rem;
  border-left: 4px solid var(--orange);
  padding-left: 1rem; margin-top: 1.2rem;
}
.quote-card {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}
.quote-card__mark {
  font-family: var(--font-head); font-size: 5rem; line-height: .5;
  color: var(--orange); position: absolute; top: 1.5rem; right: 1.5rem; opacity: .35;
}
.quote-card h3 { color: var(--navy); margin-bottom: .6rem; }
.signoff { font-family: var(--font-hand); font-size: 1.4rem; color: var(--magenta); margin-top: 1rem; }

/* ============================================
   LEGACY (dark navy section)
   ============================================ */
.section--legacy h2,
.section--legacy .section__head h2,
.section--legacy .section__head h3 { color: #fff; }
.section--legacy .big-muted { color: rgba(255,255,255,.82); }
.section--legacy .eyebrow--on-dark { color: var(--yellow); }

.legacy__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.legacy__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(8px);
}
.legacy__card h3 { color: var(--yellow); font-size: 1.15rem; }
.legacy__card .legacy__meta { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: .7rem; }
.legacy__card p { color: rgba(255,255,255,.92); font-size: .95rem; margin: 0; }
.legacy__card strong { color: #fff; font-weight: 800; }
.legacy__card--highlight {
  background: var(--orange);
  border-color: transparent;
}
.legacy__card--highlight h3 { color: #fff; }
.legacy__card--highlight .legacy__meta { color: rgba(255,255,255,.85); }
.legacy__card--highlight p { color: #fff; }
.legacy__card--highlight strong { color: #fff; font-weight: 800; }

/* ============================================
   CORE VALUES
   ============================================ */
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.value {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value__ico { font-size: 2rem; margin-bottom: .6rem; }
.value h3 { margin-bottom: .4rem; color: var(--navy); }
.value p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* ============================================
   PROGRAMS — unified warm palette
   ============================================ */
.kadam__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.kadam {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 260px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.kadam:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.kadam__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--orange); color: #fff;
  padding: .25em .7em; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.kadam h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: .2rem; margin-top: 2.2rem; }
.kadam h3 span {
  display: block; font-family: var(--font-head); font-weight: 500;
  font-size: .95rem; color: var(--magenta); font-style: italic;
}
.kadam__role {
  color: var(--ink-muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; font-weight: 700;
}
.kadam ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: .7rem; }
.kadam li { font-size: .9rem; padding: .15em 0; color: var(--ink); }
.kadam li::before { content: "★ "; color: var(--orange); }

/* ============================================
   PHOTO BANDS (full-width photo banners in sections)
   ============================================ */
.photo-band {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  max-height: 320px;
}
.photo-band img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 16 / 6;
}

/* Tilted decorative photo (used in Activities) */
.photo-tilt {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  transform: rotate(2deg);
  background: #fff;
  aspect-ratio: 1;
  max-width: 360px;
  justify-self: center;
}
.photo-tilt img { width: 100%; height: 100%; object-fit: cover; }

/* Intro photo (Admissions) */
.intro-photo {
  margin: 1.5rem 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
  aspect-ratio: 16 / 9;
  background: var(--cream-warm);
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   SHRI DIFFERENTIATORS
   ============================================ */
.diff__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.diff {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  border-left: 4px solid var(--orange);
}
.diff:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.diff h3 { color: var(--navy); margin-bottom: .4rem; }
.diff p  { color: var(--ink-muted); margin: 0; font-size: .95rem; }

/* ============================================
   ACTIVITIES
   ============================================ */
.activities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.activities {
  list-style: none; padding: 0; margin: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}
.activities li {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-weight: 600;
  color: var(--navy);
  display: flex; align-items: center; gap: .6rem;
  transition: background .15s ease, transform .15s ease;
}
.activities li:hover { background: var(--orange-soft); transform: translateY(-2px); }
.activities li span { font-size: 1.3rem; }

/* ============================================
   FACILITIES
   ============================================ */
.facilities__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
}
.fac {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: .8rem;
  line-height: 1.35;
  font-size: 1.4rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fac:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--orange); }
.fac strong { font-size: 1rem; color: var(--navy); grid-column: 2; grid-row: 1; }
.fac span   { font-size: .87rem; color: var(--ink-muted); grid-column: 2; grid-row: 2; }

/* ============================================
   ADMISSIONS — BOOK A TOUR
   ============================================ */
.admissions__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.admissions__intro p { color: var(--ink-muted); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list__ico {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); flex: 0 0 40px;
  font-size: 1.1rem;
}
.contact-list a { color: var(--navy); }
.contact-list a:hover { color: var(--orange); }

/* Forms (single form, no tabs) */
.form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
.form__title { margin: 0 0 .2rem; color: var(--navy); }
.form__sub   { margin: 0 0 .5rem; color: var(--ink-muted); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .85rem; font-weight: 700; color: var(--navy);
}
.form input, .form select, .form textarea {
  font: inherit;
  padding: .72em .9em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-weight: 500;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,130,32,.15);
}
.form input:invalid:not(:placeholder-shown) { border-color: #E84C6F; }
.form textarea { resize: vertical; min-height: 90px; }
.form .checkbox { display: flex; flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; color: var(--ink-muted); font-size: .9rem; }
.form .checkbox input { width: 18px; height: 18px; }
.form__status { min-height: 1.2em; margin: 0; font-size: .9rem; }
.form__status.is-success { color: #2E8F4D; font-weight: 700; }
.form__status.is-error   { color: #C23459; font-weight: 700; }

/* ============================================
   MAP
   ============================================ */
.map-frame {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: #E7E9F5;
  padding: 3rem 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.brand--footer { color: #fff; align-items: flex-start; }
.brand--footer strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.brand--footer small  { color: rgba(255,255,255,.7); letter-spacing: .05em; }
.footer p     { color: rgba(255,255,255,.85); }
.footer h4    { margin-bottom: .8rem; }
.footer a     { color: #fff; }
.footer a:hover { color: var(--yellow); }
.footer__legacy { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 1rem; }
.socials { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; }
.footer__bar__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer__bar small { color: rgba(255,255,255,.55); }
.footer__bar a     { color: rgba(255,255,255,.8); }

/* ============================================
   FLOATING WHATSAPP (pill with FOMO copy)
   ============================================ */
.wa-float {
  position: fixed; bottom: 20px; right: 20px;
  display: inline-flex; align-items: center;
  gap: .7rem;
  padding: 7px 18px 7px 7px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  z-index: 40;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
  background: #1FB859;
  color: #fff;
  box-shadow: 0 14px 36px rgba(37,211,102,.55);
}
.wa-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.wa-float__ico {
  position: relative;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
  display: inline-grid; place-items: center;
  flex: 0 0 44px;
}
.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  animation: wa-pulse 1.8s infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.wa-float__text {
  display: inline-flex; flex-direction: column;
  line-height: 1.1;
  padding-right: .1rem;
}
.wa-float__text strong {
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .01em;
}
.wa-float__text span {
  color: rgba(255,255,255,.92);
  font-size: .76rem;
  font-weight: 600;
}

/* ============================================
   FOMO MODAL (phone capture)
   ============================================ */
.modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal[hidden] { display: none; }
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 24, 64, .55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 80px rgba(16,24,64,.35);
  padding: 1.9rem 1.8rem 1.6rem;
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  border-top: 5px solid var(--orange);
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: .5rem; right: .7rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent;
  font-size: 1.8rem; line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--cream); color: var(--navy); }
.modal__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,130,32,.12);
  color: var(--orange-dark);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.modal__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(245,130,32,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,130,32,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(245,130,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,130,32,0); }
}
.modal__card h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--navy);
  line-height: 1.25;
}
.modal__card p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: .96rem;
  line-height: 1.5;
}
.modal__card p strong { color: var(--orange-dark); }

/* Compact form inside modal */
.form--compact { gap: .8rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
.form--compact .form__row { gap: .7rem; }
.form__field { display: flex; flex-direction: column; gap: .3rem; }
.form__field > span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}
.form__field em {
  color: var(--orange);
  font-style: normal;
  margin-left: .15rem;
}
.form__actions {
  display: flex; flex-direction: column; gap: .4rem;
  margin-top: .3rem;
}
.form__actions .btn { width: 100%; }
.form__hint {
  color: var(--ink-muted);
  font-size: .78rem;
  text-align: center;
}

/* ============================================
   CAMPUS CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  background: var(--navy);
}
.carousel__track {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  transition: transform .55s cubic-bezier(.25,.85,.35,1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  background: linear-gradient(180deg, transparent, rgba(30,43,110,.82));
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: #fff; color: var(--navy);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  z-index: 2;
}
.carousel__btn:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.carousel__btn--prev { left: .75rem; }
.carousel__btn--next { right: .75rem; }

.carousel__dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1rem;
}
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(30,43,110,.22);
  transition: background .15s ease, transform .15s ease;
}
.carousel__dot:hover { background: rgba(30,43,110,.5); }
.carousel__dot[aria-current="true"] {
  background: var(--orange);
  transform: scale(1.3);
}

/* ============================================
   TESTIMONIALS / REVIEWS
   ============================================ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.review {
  position: relative;
  margin: 0;
  padding: 1.6rem 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(30,43,110,.05);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30,43,110,.09);
}
.review::before {
  content: "\201C";
  position: absolute;
  top: -.3rem; right: 1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  opacity: .15;
  pointer-events: none;
}
.review__stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: .15em;
  line-height: 1;
}
.review blockquote {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.review figcaption strong {
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
}
.review figcaption span {
  color: var(--ink-muted);
  font-size: .82rem;
}
.reviews__cta {
  margin-top: 2rem;
  text-align: center;
}
.section--reviews .big-muted a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section--reviews .big-muted a:hover { color: var(--orange-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* --- tablet / small laptop --- */
@media (max-width: 960px) {
  .hero__grid,
  .two-col,
  .admissions__grid,
  .activities__grid { grid-template-columns: 1fr; }

  .legacy__grid,
  .diff__grid       { grid-template-columns: repeat(2, 1fr); }
  .values__grid     { grid-template-columns: repeat(2, 1fr); }
  .kadam__grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__grid     { grid-template-columns: 1fr 1fr; }
  .insta-grid       { grid-template-columns: repeat(3, 1fr); }
  .photo-tilt       { max-width: 300px; }
  .reviews__grid    { grid-template-columns: repeat(2, 1fr); }

  /* Carousel viewport shrinks nicely at this width */
  .carousel__btn    { width: 40px; height: 40px; }

  /* Hero video no longer rotates once stacked — looks better upright on narrow screens */
  .video-frame      { transform: none; }
  .hero__video      { max-width: 640px; margin-inline: auto; }

  /* Testimonial cards slightly tighter */
  .review           { padding: 1.4rem 1.2rem 1.2rem; }

  /* Section__head can run the full width now */
  .section__head    { max-width: 100%; }
}

/* --- enable hamburger earlier — 5 nav links + brand get cramped below ~860 --- */
@media (max-width: 860px) {
  .nav__inner { padding: .6rem 0; }
  .brand__logo { width: 40px; height: 40px; flex: 0 0 40px; }
  .brand__name { font-size: .95rem; }
  .brand__sub  { font-size: .7rem; }

  .nav__links {
    position: absolute; top: 100%; right: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none; flex-direction: column;
    align-items: stretch; gap: .8rem;
    min-width: 220px;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
}

/* --- phone --- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 1.5rem, 1180px); }

  .carousel__viewport { border-width: 5px; }
  .carousel__btn      { width: 36px; height: 36px; }
  .carousel__caption  { font-size: .82rem; padding: .6rem .8rem; }
  .brand__sub         { display: none; }

  /* Hero */
  .hero__cta          { gap: .6rem; }
  .hero__cta .btn     { flex: 1 1 160px; }
  .hero__badges       { grid-template-columns: 1fr; max-width: 100%; }
  .video-frame        { border-width: 6px; }

  /* Award badge below video */
  .award              { padding: .5rem .7rem; gap: .6rem; }
  .award img          { width: 48px; height: 48px; flex: 0 0 48px; }
  .award figcaption   { font-size: .78rem; }
  .award--below       { max-width: 92%; }

  /* Stack heavy grids to single column */
  .namaste__grid,
  .legacy__grid,
  .diff__grid,
  .values__grid,
  .kadam__grid,
  .footer__grid  { grid-template-columns: 1fr; }
  .form__row     { grid-template-columns: 1fr; }
  .insta-grid    { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .review        { padding: 1.3rem 1.1rem 1.2rem; }

  /* Modal */
  .modal__card   { padding: 1.5rem 1.2rem 1.2rem; border-top-width: 4px; }
  .modal__card h3 { font-size: 1.15rem; }
  .form--compact .form__row { grid-template-columns: 1fr; }
  .modal__badge   { font-size: .7rem; padding: .3rem .6rem; }

  /* Misc */
  .video-frame,
  .photo-tilt    { transform: none; }
  .map-frame     { aspect-ratio: 4 / 3; }
  .photo-band    { max-height: 220px; }
  .photo-band img { aspect-ratio: 16 / 9; }
  .sanskrit      { font-size: 3rem; }
  .card          { padding: 1.5rem 1.2rem; }
  .quote-card    { padding: 1.5rem 1.2rem; }
  .quote-card__mark { font-size: 3.5rem; top: 1rem; right: 1rem; }

  /* Facilities + activities stay readable */
  .facilities__grid { grid-template-columns: 1fr; }
  .activities       { grid-template-columns: 1fr 1fr; }

  /* Floating WhatsApp pill — tighter on phone */
  .wa-float            { bottom: 14px; right: 14px; gap: .5rem; padding: 5px 14px 5px 5px; }
  .wa-float__ico       { width: 38px; height: 38px; flex: 0 0 38px; }
  .wa-float__ico svg   { width: 22px; height: 22px; }
  .wa-float__text strong { font-size: .82rem; }
  .wa-float__text span   { font-size: .68rem; }

  /* Footer bar stacks */
  .footer__bar__inner { justify-content: center; text-align: center; }

  /* Section padding a bit tighter */
  .section       { padding: clamp(2.2rem, 8vw, 3.5rem) 0; }
}

/* --- very small phones --- */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .activities       { grid-template-columns: 1fr; }
  .insta-grid       { grid-template-columns: 1fr 1fr; gap: .5rem; }

  /* Collapse WhatsApp pill back to just the icon on very small phones */
  .wa-float         { padding: 6px; gap: 0; }
  .wa-float__text   { display: none; }
  .wa-float__ico    { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
