/* ==========================================================================
   Mission99 — Responsive rules
   Reference breakpoint from tokens: --breakpoint-mobile: 375px
   Tablet/desktop breakpoints are conventional (768 / 1024) layered on top.
   ========================================================================== */

/* ---- Desktop (>768px) ---- */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .mobile-nav-panel,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ---- Tablet and below (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-grid,
  .why-free-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-lg);
  }

  .map-wrapper {
    min-height: 300px;
  }
}

/* ---- Mobile nav takes over (≤768px) ---- */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }

  .header-actions .header-cta {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;

  }

  .hamburger {
    display: flex;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .exam-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-process-bar {
    font-size: 0.8rem;
    gap: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    min-height: 260px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .fab {
    width: 44px;
    height: 44px;
  }
}

/* ---- Small phones & standard mobile (375px / 360px) ---- */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  .site-header .container {
    padding: 0 12px;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .hero-sub {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .hero-brand-pill {
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
    white-space: normal !important;
    line-height: 1.35;
  }

  .hero-process-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
  }

  .hero-process-arrow {
    display: none;
  }

  .hero-countdown {
    padding: 14px;
    width: 100%;
    margin-top: 16px;
  }

  .countdown-timer {
    gap: 8px;
    justify-content: space-around;
  }

  .countdown-unit {
    min-width: 60px;
    padding: 8px 4px;
  }

  .countdown-unit span {
    font-size: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .sponsor-marquee-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .floating-actions {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .fab {
    width: 42px;
    height: 42px;
  }

  .fab::before {
    display: none; /* Hide hover tooltips on touch screens */
  }

  .steps {
    grid-template-columns: 1fr !important;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- Extra Small phones (≤375px) ---- */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.65rem !important;
  }

  .countdown-unit {
    min-width: 52px;
  }

  .countdown-unit span {
    font-size: 1.2rem;
  }

  .mobile-nav-panel {
    width: 100%;
    max-width: 300px;
    padding: 14px;
  }

  .fab {
    width: 40px;
    height: 40px;
  }
}