/* ===== RESPONSIVE OVERRIDES (Mobile-First) ===== */

/* ===== SMALL MOBILE (up to 375px) ===== */
@media (max-width: 375px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .stats-row {
    flex-direction: column;
    gap: var(--space-6);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }
}

/* ===== LARGE PHONE / PHABLET (480px+) ===== */
@media (min-width: 480px) {
  .stats-row {
    flex-direction: row;
  }

  .social-proof-cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  .section--lg {
    padding: var(--space-24) 0;
  }

  /* Page Hero */
  .page-hero {
    min-height: 300px;
  }

  .page-hero h1 {
    font-size: var(--text-4xl);
  }

  /* Testimonials */
  .testimonial-card {
    aspect-ratio: 3/4;
  }

  /* Social Proof Cards */
  .social-proof-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  /* Two-column sections */
  .about-snapshot .container,
  .textbook-section .container,
  .career-cta .container,
  .faq-section .container {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }

  /* Partner Carousel */
  .partner-carousel__track img {
    height: 55px;
  }
}

/* ===== SMALL LAPTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== LARGE DESKTOP (1440px+) ===== */
@media (min-width: 1440px) {
  .container {
    max-width: 1300px;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }
}

/* ===== COMMON PAGE HERO (shared across inner pages) ===== */
.page-hero {
  background: var(--gradient-hero);
  color: var(--navy);
  text-align: center;
  padding: calc(var(--space-24) + 80px) 0 var(--space-16);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  color: var(--navy);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero p {
  color: var(--gray);
  font-size: var(--text-md);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray);
  margin-top: var(--space-4);
  position: relative;
}

.breadcrumb a {
  color: var(--brand);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== PAGE HERO CTA VARIANT ===== */
.page-hero--cta {
  background: linear-gradient(135deg, var(--sky) 0%, #f0f7fa 50%, #ffffff 100%);
  min-height: 360px;
}
.page-hero--cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(33, 96, 181, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== HERO FILMSTRIP + WHY LEARN + CTA CARDS — Mobile overrides (< 768px) ===== */
@media (max-width: 767px) {
  /* Hero Filmstrip */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-filmstrip {
    order: 2;
    height: 350px;
  }
  .hero-content {
    order: 1;
  }
  .hero {
    min-height: auto;
    padding-bottom: var(--space-12);
  }

  .why-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .why-cards {
    grid-template-columns: 1fr;
  }
  .why-card:nth-child(2) {
    transform: none;
  }
  .why-card:nth-child(2):hover {
    transform: translateY(-6px);
  }
  .why-stats {
    gap: var(--space-6);
  }

  /* CTA Cards — single column, description always visible on touch */
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    min-height: 280px;
  }
  .cta-card__content p {
    max-height: none;
    opacity: 1;
    margin-bottom: 1rem;
  }
}

/* ===== Small phone overrides (< 480px) ===== */
@media (max-width: 480px) {
  .trust-strip {
    gap: var(--space-4);
    padding: 12px 18px;
  }
  .trust-number {
    font-size: 0.95rem;
  }
  .trust-label {
    font-size: 0.7rem;
  }

  .page-hero {
    padding: calc(var(--space-16) + 60px) 0 var(--space-10);
  }
}

/* ===== Ultra-small phone (< 375px) ===== */
@media (max-width: 375px) {
  .hero-filmstrip {
    height: 260px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-header,
  .urgency-bar,
  .whatsapp-float,
  .scroll-top,
  .mobile-menu,
  .mobile-menu-overlay,
  .video-modal,
  .cta-band,
  .footer-social,
  .newsletter-form {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    padding-top: 0;
  }

  .section {
    padding: 1rem 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .ab-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .partner-carousel__track {
    animation: none;
  }
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
