/* ============================================
   RESPONSIVE OVERRIDES
   Breakpoints: 480 / 768 / 1024 / 1280 (mobile-first)
   ============================================ */

/* ---- Small phones and up (≥480px) ---- */
@media (min-width: 480px) {
  .quiz-field-row { grid-template-columns: 1fr 1fr; }

  .hero-person { flex-direction: row; align-items: center; gap: var(--space-2); }
  .hero-dot { display: inline; }
}

/* ---- Tablet (≥768px) ---- */
@media (min-width: 768px) {
  .hero-scroll-hint { display: flex; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }

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

  .footer-hero { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-6); }
  .footer-title { margin-bottom: 0; }
}

/* ---- Desktop nav breakpoint (≥900px) ---- */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .nav-actions .btn-cta { display: inline-flex; }
}
@media (max-width: 899.98px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* The top-bar CTA is redundant with the mobile menu's own CTA and
     crowds the collapsed nav on narrow phones — drop it, keep the
     hamburger reachable. */
  .nav-actions .btn-cta { display: none; }
}

/* ---- Desktop (≥1024px) ---- */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); }
  .hero-content { max-width: 640px; }
  .hero-photo-frame { max-width: 440px; justify-self: end; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(5, 1fr); }

  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); }
  .about-video { margin-inline: 0; }

  .quiz-card { padding: var(--space-6); }
  .quiz-question-text { font-size: var(--fs-h3); }
}

/* ---- Large desktop (≥1280px) ---- */
@media (min-width: 1280px) {
  .container { padding-inline: var(--space-8); }
}

/* ---- Landscape phones: keep hero comfortably tall, not min-height locked ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--space-8) + 40px); }
  .hero-scroll-hint { display: none; }
}
