/* ============================================
   VEXOBRAVELMORA — RESPONSIVE STYLES
   Mobile-first breakpoints
   ============================================ */

/* ---- XL: 1280px+ (default styles handle this) ---- */

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

  .disciplines-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .pricing-grid {
    gap: var(--space-md);
  }

  .auth-layout {
    grid-template-columns: 1fr 460px;
  }

  .auth-brand-panel {
    padding: var(--space-xl) var(--space-2xl);
  }
}

/* ---- MD: max 900px ---- */
@media (max-width: 900px) {
  :root {
    --space-4xl: 80px;
    --space-3xl: 64px;
  }

  /* Header */
  .main-nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    max-width: 100%;
    padding-top: var(--space-2xl);
  }

  /* Steps */
  .steps-track {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }

  .step-connector {
    width: 1px;
    height: 40px;
    margin-top: 0;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  }

  .step-item {
    max-width: 400px;
  }

  /* Split layout */
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-nav-groups {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Auth */
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* Legal */
  .legal-container {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  /* Tournament row */
  .tournament-row {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .tournament-info {
    width: 100%;
  }

  /* Pricing */
  .pricing-card-featured {
    transform: scale(1);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---- SM: max 640px ---- */
@media (max-width: 640px) {
  :root {
    --space-4xl: 60px;
    --space-3xl: 48px;
    --space-2xl: 40px;
  }

  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  /* Hero */
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat-divider {
    display: none;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Disciplines (home) */
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Disciplines (services) */
  .disciplines-full-grid {
    grid-template-columns: 1fr;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Trust logos */
  .trust-logos {
    gap: var(--space-xl);
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* CTA */
  .cta-inner {
    padding: var(--space-2xl) var(--space-xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer nav */
  .footer-nav-groups {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Leaderboard */
  .lb-header,
  .lb-row {
    grid-template-columns: 60px 1fr 80px;
    font-size: 0.8rem;
  }

  .lb-discipline,
  .lb-wl {
    display: none;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    padding-left: 0;
  }

  /* Pricing toggle */
  .pricing-toggle {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-lg);
    max-width: 260px;
  }

  .toggle-btn {
    width: 100%;
    justify-content: center;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  /* Tournament meta */
  .tournament-meta {
    gap: var(--space-lg);
  }
}

/* ---- XS: max 400px ---- */
@media (max-width: 400px) {
  .disciplines-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .footer-nav-groups {
    grid-template-columns: 1fr;
  }

  .auth-form-card {
    padding: var(--space-xl);
  }
}

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

  .fade-up,
  .fade-left,
  .fade-right,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- PRINT ---- */
@media print {
  .site-header,
  .hamburger,
  .mobile-menu,
  .hero-particles,
  .hero-gradient-orb,
  .cta-orb {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass-card {
    border: 1px solid #ddd;
    backdrop-filter: none;
  }
}