/* ==========================================================================
   Adarsh Rajasthan P.G. College — premium stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,600;1,700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #22060a;
  --navy-900: #3b0d15;
  --navy-800: #59141f;
  --navy-700: #7a1f2c;
  --maroon: #6b1220;
  --gold: #b8873a;
  --gold-bright: #cfa25c;
  --gold-deep: #8f6526;
  --gold-tint: #f0e2c8;
  --paper: #faf6ef;
  --cream: #f3e8d6;
  --cream-deep: #ecdcc0;
  --ink: #241614;
  --stone-700: #4a3934;
  --stone-500: #7c6b60;
  --stone-300: #ab9c8d;
  --line: #e6d8c0;
  --line-soft: #efe4cf;
  --white: #ffffff;
  --shadow-sm: 0 2px 14px rgba(34, 6, 10, 0.08);
  --shadow-md: 0 16px 40px rgba(34, 6, 10, 0.14);
  --shadow-lg: 0 30px 80px rgba(34, 6, 10, 0.24);
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--stone-700);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; color: var(--maroon); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--maroon); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--stone-500); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 880px; }

.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--navy { background: var(--navy-950); color: #b9c2d6; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #9aa4bd; }
.section--cream { background: var(--cream); }

/* Hairline rule with ornament, used between sections */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rule::before, .rule::after { content: ''; height: 1px; width: 120px; background: var(--line); }
.rule .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.section--navy .rule::before, .section--navy .rule::after { background: rgba(255,255,255,0.14); }

.kicker {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.section--navy .kicker { color: var(--gold-bright); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow { color: var(--gold-bright); }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-bright); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-dark { background: var(--navy-950); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--navy-950); color: var(--navy-950); }
.btn-ghost:hover { background: var(--navy-950); color: var(--white); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--navy-950); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: gap .25s ease, color .25s ease; }
.text-link:hover { gap: 13px; color: var(--gold-deep); }
.text-link svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
[id] { scroll-margin-top: 100px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-crest { width: 46px; height: 46px; flex-shrink: 0; }
.brand-crest img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .name-hi { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.08rem; color: var(--navy-950); }
.brand-text .name-lo { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--stone-700);
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--navy-950); color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); font-size: 0.88rem; }
.nav-phone svg { width: 17px; height: 17px; color: var(--gold-deep); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--navy-950); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group .item {
  white-space: nowrap; font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.marquee-group .sep { color: var(--gold-deep); font-size: 0.7rem; margin: 0 30px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: kenburns 22s ease-out forwards; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,6,10,0.85) 0%, rgba(26,6,10,0.28) 55%, rgba(26,6,10,0.5) 100%);
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-content { position: relative; z-index: 1; padding: 160px 0 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600;
  font-size: 1.2rem; color: var(--gold-bright);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: var(--white); max-width: 900px; margin-bottom: 26px; }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero-sub { font-size: 1.15rem; max-width: 600px; color: #cdd4e4; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 36px;
}
.hero-stats > * { min-width: 0; }
.hero-stat { text-align: left; border-left: 1px solid rgba(255,255,255,0.12); padding-left: 22px; }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 800; color: var(--gold-bright); }
.hero-stat .label { font-size: 0.78rem; color: #a7b0c7; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }

/* Inner page header */
.page-header {
  position: relative;
  color: var(--white);
  padding: 168px 0 90px;
  overflow: hidden;
}
.page-header-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-header-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-out forwards; }
.page-header-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,6,10,0.8) 15%, rgba(40,10,16,0.4) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: #a7b0c7; margin-bottom: 22px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.page-header .kicker { color: var(--gold-bright); }
.page-header h1 { color: var(--white); margin-bottom: 18px; }
.page-header p { color: #c2c9dc; max-width: 620px; font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Editorial index rows (feature list) ---------- */
.index-row { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line); }
.index-row > * { min-width: 0; }
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row .num { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 600; color: var(--gold); line-height: 1; }
.index-row h3 { margin-bottom: 8px; }
.index-row p { margin-bottom: 0; font-size: 0.98rem; max-width: 560px; }
.section--navy .index-row { border-color: rgba(255,255,255,0.12); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature-card { padding: 40px 32px; }
.feature-card .num-tag { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); font-weight: 600; margin-bottom: 18px; display: block; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Photo treatment (consistent grade across casual photos) ---------- */
.photo-grade { filter: grayscale(18%) saturate(0.88) contrast(1.04) brightness(0.99); transition: filter 0.5s ease, transform 0.6s ease; }
.photo-grade:hover { filter: grayscale(0%) saturate(1.02) contrast(1) brightness(1); }
.photo-frame { position: relative; }
.photo-frame::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(184,135,58,0.5);
  outline: 1px solid rgba(255,255,255,0.4);
  outline-offset: -8px;
  pointer-events: none;
  z-index: 2;
}

/* Program accordion (editorial) */
.program-list { border-top: 1px solid var(--line); }
.program-item { border-bottom: 1px solid var(--line); }
.program-head {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 30px 4px;
  text-align: left;
}
.program-head > * { min-width: 0; }
.program-head .num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--gold); font-weight: 600; }
.program-head .name h3 { margin-bottom: 4px; }
.program-head .name span { font-size: 0.85rem; color: var(--stone-500); }
.program-head .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-tint); padding: 6px 14px; border-radius: 2px;
  white-space: nowrap;
}
.program-head .chevron { width: 18px; height: 18px; color: var(--gold-deep); transition: transform .3s ease; flex-shrink: 0; }
.program-item.open .program-head .chevron { transform: rotate(45deg); }
.program-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.program-panel-inner { padding: 4px 4px 34px 82px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.program-panel-inner > * { min-width: 0; }
.program-panel-inner p { font-size: 0.95rem; margin-bottom: 18px; }
.list-label { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-900); margin-bottom: 14px; display: block; }
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--stone-700); }
.check-list li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--gold-deep); }

/* Leadership triptych */
.letter-card { padding: 44px 38px; background: var(--white); border: 1px solid var(--line); position: relative; }
.letter-card .mark { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--gold-tint); line-height: 1; margin-bottom: -6px; }
.letter-card blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.28rem; line-height: 1.55; color: var(--navy-950); margin: 0 0 24px; }
.letter-card .who { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.letter-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1rem;
  overflow: hidden;
}
.letter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.letter-card .name { font-weight: 700; color: var(--navy-950); font-size: 0.92rem; }
.letter-card .role { font-size: 0.76rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Stat rail (editorial, on navy) */
.stat-rail { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-rail > div { min-width: 0; }
.stat-rail div { text-align: center; padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.14); }
.stat-rail div:first-child { border-left: none; }
.stat-rail .num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.1rem, 3.5vw, 3rem); color: var(--gold-bright); }
.stat-rail .label { font-size: 0.78rem; color: #a7b0c7; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

/* Timeline */
.timeline { position: relative; padding-left: 36px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -41px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.timeline-item .year { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-style: italic; color: var(--gold-deep); font-size: 1.3rem; margin-bottom: 6px; }

/* Gallery */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 11px 22px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-700);
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-btn.active { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; grid-auto-flow: dense; grid-auto-rows: 280px; }
.gallery-grid > * { min-width: 0; }
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--navy-900);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,6,10,0.85) 0%, rgba(26,6,10,0) 45%);
  display: flex; align-items: flex-end; padding: 18px;
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: var(--white); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18,4,7,0.96);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--navy-950); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #a7b0c7; font-size: 0.88rem; }
.lightbox svg { width: 20px; height: 20px; }

/* CTA banner */
.cta-banner {
  position: relative;
  background: var(--navy-950);
  padding: 76px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(184,135,58,0.25);
}
.cta-banner::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,135,58,0.18), transparent 70%);
}
.cta-banner .kicker { color: var(--gold-bright); }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: #a7b0c7; margin-bottom: 0; max-width: 480px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row > * { min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.form-group label { font-weight: 700; font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy-900); }
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--stone-500); margin-top: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps > * { min-width: 0; }
.step-card { position: relative; padding: 38px 30px; background: var(--white); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; margin-bottom: 0; }

/* Accordion (admissions FAQ) */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  font-family: 'Playfair Display', serif;
  color: var(--navy-950);
}
.accordion-trigger svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; transition: transform .25s ease; }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-panel-inner { padding: 0 4px 26px; color: var(--stone-500); font-size: 0.96rem; max-width: 660px; }

/* Infra strip (editorial, light) */
.infra-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.infra-strip > div { min-width: 0; }
.infra-strip div { padding: 34px 24px; text-align: center; border-left: 1px solid var(--line); }
.infra-strip div:first-child { border-left: none; }
.infra-strip .num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2.1rem; color: var(--maroon); }
.infra-strip .label { font-size: 0.78rem; color: var(--stone-500); font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Map */
.map-wrap { overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(30%) contrast(1.05); }

.contact-info-card { display: flex; gap: 18px; padding: 30px; align-items: flex-start; }
.contact-info-card > div { min-width: 0; }
.contact-info-card .icon {
  width: 46px; height: 46px; border-radius: 2px; flex-shrink: 0;
  background: var(--navy-950); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .icon svg { width: 20px; height: 20px; }
.contact-info-card h3 { font-size: 0.78rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--stone-500); }
.contact-info-card p { font-size: 1rem; margin-bottom: 0; color: var(--navy-950); font-weight: 600; }
.contact-info-card a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.footer-cta { background: var(--navy-950); padding: 90px 0 70px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-cta h2 { color: var(--white); max-width: 700px; margin: 0 auto 28px; }
.site-footer { background: var(--navy-950); color: #98a2ba; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-grid > * { min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand .name-hi { color: var(--white); font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.1rem; }
.footer-brand .name-lo { color: var(--gold-bright); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.site-footer p { color: #8892ac; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 0.92rem; color: #98a2ba; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-contact-item { display: flex; gap: 11px; font-size: 0.92rem; margin-bottom: 15px; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--gold-bright); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.8rem; color: #6b7488; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 27px; height: 27px; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 96px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-950); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-800); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .back-to-top { right: 28px; bottom: 92px; width: 44px; height: 44px; } }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--gold); color: var(--navy-950);
  padding: 12px 20px; border-radius: 3px;
  font-weight: 700; font-size: 0.85rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Footer app badges */
.app-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.app-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s ease, border-color .2s ease;
}
.app-badge:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }
.app-badge svg { width: 20px; height: 20px; color: var(--gold-bright); flex-shrink: 0; }
.app-badge .txt { display: flex; flex-direction: column; line-height: 1.2; }
.app-badge .txt span:first-child { font-size: 0.62rem; color: #98a2ba; text-transform: uppercase; letter-spacing: 0.04em; }
.app-badge .txt span:last-child { font-size: 0.82rem; font-weight: 700; color: var(--white); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat-rail { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat-rail div:nth-child(3) { border-left: none; }
  .infra-strip { grid-template-columns: repeat(2, 1fr); }
  .infra-strip div:nth-child(3) { border-left: none; }
  .infra-strip div:nth-child(3), .infra-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .program-panel-inner { grid-template-columns: 1fr; padding-left: 4px; }
  .program-head { grid-template-columns: 50px 1fr auto; }
  .program-head .tag { display: none; }
}

@media (max-width: 1100px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  .nav { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-crest { width: 38px; height: 38px; }
  .brand-text { min-width: 0; }
  .brand-text .name-hi { font-size: 0.9rem; white-space: nowrap; }
  .brand-text .name-lo { font-size: 0.58rem; white-space: nowrap; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-dark { padding: 10px 16px; font-size: 0.72rem; white-space: nowrap; }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-links a { width: 100%; padding: 13px 16px; color: var(--stone-700); }
  .site-header.menu-open .nav-links a:hover, .site-header.menu-open .nav-links a.active { background: var(--navy-950); color: var(--white); }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 30px; flex-direction: column; align-items: flex-start; }
  .rule::before, .rule::after { width: 60px; }
  .section { padding: 90px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item.tall, .gallery-item.wide { grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: none; }
  .stat-rail { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .infra-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 34px 24px; }
  .form-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .letter-card { padding: 32px 26px; }
  .program-head { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 22px 4px; }
  .program-panel-inner { padding: 4px 4px 26px; }
  .index-row { grid-template-columns: 46px 1fr; }
}
