/* ============================================================
   Xavier High School — Main Stylesheet
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --blue-dark:   #1B3A6B;
  --blue-mid:    #2D5AA0;
  --blue-light:  #4A78C4;
  --gold:        #F4A900;
  --gold-dark:   #D4920A;
  --white:       #FFFFFF;
  --off-white:   #F5F6FA;
  --light-gray:  #EDEDF1;
  --mid-gray:    #9BA3AF;
  --dark-gray:   #374151;
  --text:        #1F2937;
  --text-light:  #6B7280;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);

  --transition:  0.25s ease;
  --max-w:       1280px;
  --header-h:    72px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.bg-light { background: var(--off-white); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 620px;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-subtitle { margin: 0 auto; }

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: #6B7280;
  color: var(--white);
  border-color: #6B7280;
}
.btn-primary:hover { background: #4B5563; border-color: #4B5563; color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--blue-dark); }
.btn-outline-blue {
  background: transparent;
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}
.btn-outline-blue:hover { background: var(--blue-mid); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-links { display: flex; gap: 24px; }
.topbar-links a { color: rgba(255,255,255,0.8); }
.topbar-links a:hover { color: var(--gold); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon svg { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
}
.logo-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  text-transform: uppercase;
}

/* Navigation */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--blue-mid); background: var(--off-white); }
.nav-item.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}
.nav-item.has-dropdown:hover > a::after { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--light-gray);
  z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--dark-gray);
  transition: all var(--transition);
}
.dropdown li a:hover {
  background: var(--off-white);
  color: var(--blue-mid);
  padding-left: 26px;
}

/* Header CTA */
.header-cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 580px;
  max-height: 860px;
  overflow: hidden;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-dark);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 30, 60, 0.82) 0%,
    rgba(27, 58, 107, 0.60) 55%,
    rgba(27, 58, 107, 0.20) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  max-width: 820px;
}
.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.8s, transform 0.7s ease 0.8s;
}
.hero-slide.active .hero-tagline,
.hero-slide.active .hero-title,
.hero-slide.active .hero-desc,
.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slide controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}
.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev:hover,
.hero-next:hover {
  background: rgba(244,169,0,0.8);
  border-color: var(--gold);
}
.hero-prev svg,
.hero-next svg { width: 20px; height: 20px; }
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* ---------- QUICK LINKS ---------- */
.quick-links {
  background: var(--blue-dark);
  padding: 0;
  border-bottom: 3px solid var(--gold);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.quick-link-item:last-child { border-right: none; }
.quick-link-item:hover { background: rgba(255,255,255,0.08); }
.ql-icon {
  width: 40px;
  height: 40px;
  background: rgba(244, 169, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.ql-icon svg { width: 20px; height: 20px; }
.quick-link-item div { display: flex; flex-direction: column; gap: 2px; }
.quick-link-item strong { font-size: 14px; font-weight: 600; }
.quick-link-item span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ---------- STATS ---------- */
.stats-section { padding: 64px 0; background: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--off-white); }
.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

/* ---------- WHY SECTION ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon--blue { background: rgba(27, 58, 107, 0.08); color: var(--blue-mid); }
.feature-icon--gold { background: rgba(244, 169, 0, 0.12); color: var(--gold-dark); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- PROGRAMS ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.programs-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.program-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.program-card--featured {
  border-color: var(--blue-mid);
  background: var(--blue-dark);
  color: var(--white);
  transform: scale(1.03);
}
.program-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.program-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.program-grade {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.program-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  color: inherit;
}
.program-card--featured .program-title { color: var(--white); }
.program-card--featured .program-desc { color: rgba(255,255,255,0.8); }
.program-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.program-highlights {
  margin-bottom: 28px;
}
.program-highlights li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-gray);
}
.program-card--featured .program-highlights li {
  border-bottom-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}
.program-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 20px;
  opacity: 0.6;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark-gray);
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
}
.testimonial-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* ---------- NEWS ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-image {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.news-card--featured .news-card-image { height: 220px; }
.news-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.news-card-body { padding: 24px; }
.news-card-body time {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 10px;
}
.news-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--blue-dark);
}
.news-card-body h3 a:hover { color: var(--blue-mid); }
.news-card-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-mid);
}
.read-more:hover { color: var(--blue-dark); }

/* ---------- CTA BANNER ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(244, 169, 0, 0.08);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.80);
  max-width: 500px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding-top: 72px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-icon svg { width: 36px; height: 36px; }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 240px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.social-links a svg { width: 16px; height: 16px; }
.social-links a:hover { background: var(--gold); color: var(--blue-dark); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--light-gray); }
  .programs-grid,
  .programs-grid--4 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .program-card--featured { transform: none; }
  .program-card--featured:hover { transform: translateY(-4px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text p { margin: 0 auto; }
  .section-header-flex { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .nav-list { flex-direction: column; padding: 16px; gap: 0; align-items: stretch; }
  .nav-item > a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    margin: 4px 0 8px;
    display: none;
    padding: 4px 0;
  }
  .nav-item.has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .topbar-links { display: none; }
}

@media (max-width: 600px) {
  .section-pad { padding: 56px 0; }
  .hero { max-height: 620px; }
  .hero-content { padding: 0 6%; }
  .quick-links-grid { grid-template-columns: 1fr; }
  .quick-link-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .quick-link-item:last-child { border-bottom: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
