/* =============================================================
   ZENITH ACADEMY — STYLESHEET
   Design tokens live in :root for easy re-theming.
============================================================= */

:root {
  /* Color palette — Deep Navy + Vibrant Orange/Gold */
  --navy-950: #08152B;
  --navy-900: #0B1F3A;
  --navy-800: #13294B;
  --navy-700: #1D3A63;
  --gold: #E8A33D;
  --gold-light: #F4C778;
  --orange: #E85D2D;
  --orange-dark: #C74A1F;
  --green: #2ECC71;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --ink: #17223B;
  --muted: #5B6884;
  --border: #E7E5DE;

  /* Typography */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.16);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 76px;
}

/* =============================================================
   RESET & BASE
============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  overflow: hidden;
}
.container--narrow { max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* =============================================================
   SCROLL REVEAL ANIMATION (paired with IntersectionObserver in JS)
============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 93, 45, 0.35);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 28px rgba(232, 93, 45, 0.45); }

.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); transform: translateY(-3px); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--full { width: 100%; }

/* =============================================================
   NAVBAR
============================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}
.navbar.is-scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo { display: flex; align-items: center; gap: 10px; }
.navbar__logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.navbar__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.navbar__logo-text em { color: var(--gold-light); font-style: normal; }

.navbar__nav { display: flex; gap: 32px; }
.navbar__link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-block: 4px;
}
.navbar__link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.navbar__link:hover { color: var(--white); }
.navbar__link:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 16px; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
}
.navbar__toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid { position: absolute; inset: 0; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.hero__blob--1 { width: 420px; height: 420px; background: var(--orange); top: -120px; right: -100px; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--gold); bottom: -100px; left: -80px; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(232, 163, 61, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(232, 163, 61, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero__eyebrow--dark { background: rgba(11,31,58,0.08); color: var(--orange-dark); border-color: rgba(11,31,58,0.15); }

.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}
.text-gold { color: var(--gold-light); }

.hero__subheadline {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .btn--outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn--outline:hover { background: var(--white); color: var(--navy-900); }

.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__avatars { display: flex; }
.hero__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--navy-950);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
  margin-left: -10px;
}
.hero__avatar:first-child { margin-left: 0; }
.hero__trust p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

.hero__graphic { position: relative; }
.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero__card--main { display: flex; flex-direction: column; gap: 12px; }
.hero__card-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.pct { color: var(--green); }
.hero__progress { height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.hero__progress-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 999px; }

.hero__card--float {
  position: absolute;
  bottom: -24px;
  right: -18px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.8rem;
  padding: 16px 20px;
  max-width: 220px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge--gold { background: rgba(232, 163, 61, 0.15); color: var(--orange-dark); }

/* =============================================================
   STATS BAR
============================================================= */
.stats-bar { background: var(--navy-900); padding: 40px 0; }
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-bar__item p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 4px; }
.stats-bar__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
}
.stats-bar__suffix { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold-light); }

/* =============================================================
   LEAD MAGNET
============================================================= */
.lead-magnet { background: var(--cream); padding: 80px 0; }
.lead-magnet__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.lead-magnet__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.lead-magnet__copy p { color: var(--muted); margin-bottom: 20px; }
.lead-magnet__points li { color: var(--navy-800); font-weight: 500; margin-bottom: 8px; }

.lead-magnet__form { padding: 32px; }
.lead-magnet__form h3 { margin-bottom: 20px; font-size: 1.2rem; }

/* =============================================================
   CARDS (shared)
============================================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* =============================================================
   SECTION LAYOUT
============================================================= */
.section { padding: 90px 0; }
.section--tinted { background: var(--cream); }

.section__header { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section__header p { color: var(--muted); margin-top: 10px; }
.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =============================================================
   COURSE CARDS
============================================================= */
.course-card { padding: 28px; position: relative; }
.course-card__tag {
  position: absolute; top: -12px; left: 24px;
  background: var(--navy-900); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.course-card__tag--gold { background: var(--gold); color: var(--navy-950); }
.course-card__tag--green { background: var(--green); color: var(--navy-950); }
.course-card h3 { font-size: 1.3rem; margin: 12px 0 6px; }
.course-card__audience { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.course-card__meta { margin-bottom: 22px; }
.course-card__meta li { font-size: 0.88rem; color: var(--navy-800); margin-bottom: 6px; }
.course-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px dashed var(--border);
}
.price { font-family: var(--font-display); font-weight: 800; color: var(--navy-900); font-size: 1.15rem; }
.price span { font-size: 0.75rem; font-weight: 500; color: var(--muted); }

/* =============================================================
   FACULTY CARDS
============================================================= */
.faculty-card { padding: 28px 20px; text-align: center; }
.faculty-card__photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: grid; place-items: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}
.faculty-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.faculty-card__subject { color: var(--orange-dark); font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.faculty-card__exp { color: var(--muted); font-size: 0.82rem; }

/* =============================================================
   RANK / HALL OF FAME CARDS
============================================================= */
.rank-card { padding: 28px 20px; text-align: center; }
.rank-card__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  font-size: 2rem;
  margin: 0 auto 14px;
  border: 3px solid var(--gold);
}
.rank-card .badge { margin-bottom: 10px; }
.rank-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.rank-card p { color: var(--muted); font-size: 0.85rem; }

/* =============================================================
   TESTIMONIAL CAROUSEL
============================================================= */
.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel__slide { flex: 0 0 100%; padding: 4px; }
.testimonial-card { padding: 40px; text-align: center; }
.testimonial-card__quote {
  font-size: 1.1rem;
  color: var(--navy-900);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
}
.testimonial-card__person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-card__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
}
.testimonial-card__person div { text-align: left; font-size: 0.85rem; }
.testimonial-card__person strong { display: block; color: var(--navy-900); }
.testimonial-card__person span { color: var(--muted); }

.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 1.4rem;
  color: var(--navy-900);
  display: grid; place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.carousel__btn:hover { background: var(--navy-900); color: var(--white); }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s ease, width 0.25s ease;
}
.carousel__dot.is-active { background: var(--orange); width: 22px; border-radius: 999px; }

/* =============================================================
   FAQ ACCORDION
============================================================= */
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white);
  transition: background 0.25s ease;
}
.accordion__trigger:hover { background: var(--cream); }
.accordion__icon {
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--white);
  padding: 0 24px;
}
.accordion__panel p { color: var(--muted); padding-bottom: 20px; font-size: 0.92rem; }

/* =============================================================
   CONTACT SECTION
============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info__card { padding: 22px 24px; }
.contact-info__card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-info__card p { color: var(--muted); font-size: 0.92rem; }
.contact-info__card a:hover { color: var(--orange); }

.map-embed {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-form { padding: 32px; }
.contact-form h3 { margin-bottom: 20px; font-size: 1.2rem; }

/* =============================================================
   FORMS (shared)
============================================================= */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.15);
  outline: none;
}
.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--green);
  font-weight: 600;
}
.form-note.is-error { color: var(--orange-dark); }

/* =============================================================
   WHATSAPP FLOATING BUTTON
============================================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.25s ease;
  animation: pulse 2.4s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.85), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* =============================================================
   FOOTER
============================================================= */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { margin: 16px 0 20px; font-size: 0.88rem; max-width: 280px; }
.navbar__logo--footer .navbar__logo-text { color: var(--white); }

.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer__socials a:hover { background: var(--gold); color: var(--navy-950); transform: translateY(-3px); }

.footer__links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer__links a { display: block; font-size: 0.88rem; margin-bottom: 10px; transition: color 0.25s ease; }
.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================================
   RESPONSIVE — TABLET
============================================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__graphic { max-width: 420px; margin: 0 auto; }
  .lead-magnet__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   RESPONSIVE — MOBILE
============================================================= */
@media (max-width: 768px) {
  .navbar__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .navbar__nav.is-open { max-height: 400px; }
  .navbar__link { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .navbar__toggle { display: flex; }
  .navbar__actions .btn--primary { display: none; }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .carousel__btn--prev { left: 0; }
  .carousel__btn--next { right: 0; }
  .testimonial-card { padding: 28px 20px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2rem; }
  .hero__cta-group { flex-direction: column; }
  .hero__cta-group .btn { width: 100%; }
}
