/* ============================================================
   ScholarBeam – Upgraded Public Site Stylesheet
   Aesthetic: Luxury Academic / Editorial Dark-Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── TOKENS ── */
:root {
  --navy:   #0a1628;
  --navy2:  #0f2040;
  --gold:   #c9a84c;
  --gold2:  #e8c96a;
  --gold3:  #f5e4a8;
  --cream:  #fdf8ef;
  --white:  #ffffff;
  --ink:    #0d1926;
  --muted:  #7a8fa6;
  --light:  #eaf0f8;
  --border: rgba(201,168,76,.18);
  --glow:   rgba(201,168,76,.22);
  --glass:  rgba(255,255,255,.06);

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 5vw;
  height: 72px;
  background: rgba(10,22,40,.88);
  backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: rgba(10,22,40,.97);
  box-shadow: 0 4px 40px rgba(0,0,0,.35);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 700; font-size: 17px;
  color: var(--white);
  line-height: 1.1;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 12px; object-fit: contain;
  background: white;
  box-shadow: 0 0 0 1px var(--border), 0 4px 16px rgba(0,0,0,.3);
}
.brand b { color: var(--gold2); font-weight: 900; }

nav {
  display: flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 500;
}
nav > a {
  color: rgba(255,255,255,.72);
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
nav > a:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ── BUTTONS ── */
.btn, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-weight: 600; font-size: 14px;
  border-radius: 999px; padding: 13px 26px;
  transition: transform .25s var(--ease-spring), box-shadow .25s, opacity .2s;
  cursor: pointer; border: none;
}
.btn.primary, .nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--navy);
  box-shadow: 0 8px 28px var(--glow), 0 2px 0 rgba(255,255,255,.15) inset;
}
.btn.primary:hover, .nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 48px var(--glow);
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.28);
  color: var(--white);
}
.btn.ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 60px;
  padding: 100px 5vw 80px;
  background:
    radial-gradient(ellipse 80% 60% at 5% 20%, rgba(201,168,76,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(16,80,160,.25) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 60%, #112035 100%);
  overflow: hidden;
}

/* Decorative arc lines */
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.12);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; top: -60px; right: -20px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.08);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: 11px; font-weight: 600;
  color: var(--gold2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 28px; height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900; line-height: 1.0;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 30%, var(--gold3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .hero-copy > p {
  color: rgba(255,255,255,.62);
  font-size: 17px; line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.stats {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  width: fit-content;
}
.stats span {
  padding: 18px 28px;
  color: var(--white);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stats span:last-child { border-right: none; }
.stats b { display: block; font-size: 22px; color: var(--gold2); font-family: var(--f-display); font-weight: 700; }
.stats small { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }

/* Hero Visual */
.hero-card {
  position: relative; z-index: 1;
}
.hero-visual {
  position: relative;
}
.hero-visual-img {
  width: 100%; border-radius: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}

.floating-card {
  position: absolute; right: -20px; bottom: 40px;
  background: rgba(255,255,255,.95);
  border-radius: 20px; padding: 16px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  min-width: 190px;
  animation: float 4s ease-in-out infinite;
}
.floating-card b { display: block; color: var(--navy); font-size: 14px; }
.floating-card small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.floating-card-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%;
  margin-right: 6px;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,.0); }
}

/* ── SECTION BASE ── */
.section {
  padding: 90px 5vw;
  position: relative;
}
.section.alt {
  background: linear-gradient(180deg, #edf4fc 0%, var(--cream) 100%);
}
.section.dark {
  background: linear-gradient(160deg, var(--navy) 0%, #0e1e35 100%);
  color: var(--white);
}

.section-head {
  text-align: center; max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em;
  margin: 10px 0 16px;
  color: var(--navy);
}
.section.dark .section-head h2 { color: var(--white); }
.section-head p {
  font-size: 17px; line-height: 1.7;
  color: var(--muted);
}
.section.dark .section-head p { color: rgba(255,255,255,.6); }

/* ── ADMISSION CARDS ── */
.cards.three {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 4px 24px rgba(15,23,42,.06);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.info-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  opacity: 0;
  transition: opacity .3s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.info-card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(10,22,40,.2);
}

.info-card h3 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.info-card p {
  font-size: 14.5px; line-height: 1.65; color: var(--muted);
  margin-bottom: 18px;
}
.info-card ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 24px;
}
.info-card ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #334155;
}
.info-card ul li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.info-card > a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  padding: 10px 18px;
  border: 1.5px solid rgba(10,22,40,.15);
  border-radius: 999px;
  transition: background .2s, border-color .2s, transform .2s;
}
.info-card > a:hover {
  background: var(--navy); color: var(--white);
  border-color: var(--navy);
  transform: scale(1.02);
}
.info-card > a::after { content: '→'; }

/* ── WHY DOCS SECTION ── */
.why-docs { background: var(--navy); }
.why-docs .section-head h2 { color: var(--white); }
.why-docs .eyebrow { color: var(--gold2); }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split-copy h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin: 10px 0 18px;
}
.split-copy p {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,.6);
}

.why-list { display: grid; gap: 16px; }
.why-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 16px; align-items: center;
  transition: background .3s, border-color .3s, transform .3s;
  backdrop-filter: blur(8px);
}
.why-item:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--border);
  transform: translateX(6px);
}
.why-item-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.why-item b { display: block; color: var(--white); font-size: 15px; margin-bottom: 3px; }
.why-item span { color: rgba(255,255,255,.55); font-size: 13.5px; }

/* ── SERVICES ── */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.service-item {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px; padding: 22px 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  transition: transform .28s var(--ease-out), box-shadow .28s, border-color .28s;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  border-color: var(--gold);
}
.service-check {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
}

/* ── PROGRAMS GRID ── */
.program-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.program-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,.07);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(15,23,42,.14); }
.program-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative; overflow: hidden;
}
.program-card-img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,.2) 0%, transparent 70%);
}
.program-card-img img {
  width: 100%; height: 100%;
  object-fit: contain; position: relative; z-index: 1;
  filter: brightness(1.15) drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
.program-card-body { padding: 26px; }
.program-card h3 {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.program-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.program-card a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: .02em;
  transition: gap .2s;
}
.program-card a::after { content: '→'; transition: transform .2s; }
.program-card a:hover { gap: 10px; }
.program-card a:hover::after { transform: translateX(3px); }

/* ── CTA SECTION ── */
.cta {
  margin: 0 5vw 80px;
  padding: 80px 60px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, #081426 50%, #0d2247 100%);
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 120px rgba(10,22,40,.3);
}
.cta::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.1);
  pointer-events: none;
}
.cta h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900; color: var(--white);
  margin-bottom: 14px; position: relative; z-index: 1;
}
.cta p {
  color: rgba(255,255,255,.6); font-size: 17px; line-height: 1.7;
  max-width: 520px; margin: 0 auto 36px;
  position: relative; z-index: 1;
}

/* ── FOOTER ── */
footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 28px 5vw;
  background: var(--navy);
  color: rgba(255,255,255,.4);
  font-size: 13px;
}
footer b { color: var(--gold2); }
footer span { text-align: right; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in-view {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .cards.three, .program-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; gap: 40px; }
  .hero-card { order: -1; }
  .floating-card { position: static; margin-top: 16px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .topbar nav > a:not(.nav-cta) { display: none; }
  .cards.three, .program-grid, .service-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .stats { flex-direction: column; width: 100%; border-radius: 16px; }
  .stats span { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stats span:last-child { border-bottom: none; }
  .cta { padding: 48px 24px; margin: 0 4vw 60px; }
  footer { flex-direction: column; text-align: center; }
  footer span { text-align: center; }
}
