/**
 * WF Tickets - Responsive Styles
 * Mobile-first responsive design system
 */

/* ==========================================================================
   Mobile Styles (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Typography scaling */
  :root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 0.9375rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.5rem;
  }

  /* Container */
  .container {
    padding: 0 var(--space-4);
  }

  /* Navigation */
  .navbar {
    min-height: 60px;
  }

  .navbar-container {
    height: 60px;
    padding: 0 var(--space-4);
  }

  .navbar-logo {
    height: 36px;
    width: auto;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-actions {
    display: none;
  }

  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
  }

  /* Hero/Page Headers */
  .hero,
  .hero-section,
  .page-header {
    min-height: calc(100vh - 60px);
    padding: var(--space-12) 0;
  }

  .hero h1,
  .hero-section h1,
  .page-header h1 {
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }

  .hero .lead,
  .hero-section .lead,
  .page-header .lead {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions,
  .page-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .page-header-actions .btn {
    width: 100%;
  }

  /* Sections */
  section {
    padding: var(--space-12) 0;
  }

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

  /* Cards & Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .mission-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  /* Feature blocks */
  .feature-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feature-block.reverse {
    direction: ltr;
  }

  .feature-image {
    order: -1;
  }

  /* Pricing cards */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Tables */
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table table {
    min-width: 600px;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .footer-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .footer-badges img {
    height: 50px;
    width: auto;
  }

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

  /* CTA Sections */
  .cta-buttons {
    flex-direction: column;
  }

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

/* ==========================================================================
   Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Even smaller typography */
  :root {
    --text-3xl: 1.75rem;
    --text-4xl: 2rem;
    --text-5xl: 2.25rem;
  }

  /* Hero adjustments */
  .hero,
  .hero-section,
  .page-header {
    min-height: calc(80vh - 60px);
    padding: var(--space-8) 0;
  }

  .hero h1,
  .hero-section h1,
  .page-header h1 {
    font-size: calc(var(--text-3xl) * 0.9);
  }

  /* Stats grid */
  .stat-grid,
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-stats {
    flex-direction: column;
  }

  /* Buttons */
  .btn {
    min-height: 44px; /* iOS touch target */
    padding: var(--space-3) var(--space-4);
  }

  /* Footer badges in single column on very small screens */
  .footer-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Tablet (768px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }

  .hero-content {
    gap: var(--space-8);
  }

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

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

/* ==========================================================================
   Desktop (min-width: 1025px)
   ========================================================================== */

@media (min-width: 1025px) {
  /* Hide mobile menu button on desktop */
  .mobile-menu-toggle {
    display: none;
  }

  /* Ensure desktop menu is visible */
  .navbar-menu {
    display: flex !important;
  }

  .navbar-actions {
    display: flex !important;
  }
}

/* ==========================================================================
   Large Desktop (min-width: 1440px)
   ========================================================================== */

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  :root {
    --text-base: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3rem;
    --text-5xl: 3.5rem;
  }
}