/* ==================================================
   RAIZ — Mobile App UGC Creative Studio
   Responsive Stylesheet & Accessibility Overrides
   ================================================== */

/* Touch Target Minimum (44px) */
button, 
.btn, 
.filter-btn, 
.radio-pill-label, 
.nav-link,
.mobile-link,
.modal-close-btn {
  min-height: 44px;
}

/* Prevent Horizontal Overflow Globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Large Screens (1440px+) */
@media (min-width: 1440px) {
  :root {
    --space-2xl: 7.5rem;
  }
  .container {
    max-width: 1360px;
  }
}

/* Desktop & Laptop (1024px to 1439px) */
@media (max-width: 1200px) {
  .hero-creators-trio {
    max-width: 500px;
    gap: 0.75rem;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-tagline {
    justify-content: center;
  }
  
  .hero-tagline::before {
    display: none;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-visual-canvas {
    min-height: auto;
    margin-top: 2rem;
  }

  .hero-creators-trio {
    max-width: 480px;
  }

  .editorial-lead {
    border-left: none;
    border-top: 2px solid var(--raiz-accent);
    padding-left: 0;
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
}

/* Small Tablets & Mobile Devices (under 768px) */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-creators-trio {
    gap: 0.5rem;
  }

  .hero-creator-card:nth-child(2) {
    transform: translateY(-8px);
  }

  .hero-creator-meta {
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
  }

  .hero-creator-name {
    font-size: 0.8rem;
  }

  .hero-creator-location {
    font-size: 0.65rem;
  }

  .formula-factor {
    min-width: 100px;
    padding: 0.75rem 1rem;
  }

  .formula-num {
    font-size: 1.75rem;
  }

  .formula-op {
    font-size: 1.25rem;
  }

  .formula-result {
    width: 100%;
    margin-top: 0.5rem;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .filter-bar::-webkit-scrollbar {
    height: 4px;
  }

  .filter-bar::-webkit-scrollbar-thumb {
    background: var(--raiz-border-strong);
    border-radius: 4px;
  }

  .modal-video-pane {
    max-height: 52vh;
  }

  .video-modal-container {
    max-height: 92vh;
  }

  .modal-info-pane {
    padding: 1.5rem;
  }

  .story-timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.5rem;
    width: 12px;
    height: 12px;
  }
}

/* Very Small Mobile (< 420px) */
@media (max-width: 419px) {
  .hero-creator-tag {
    display: none;
  }

  .btn {
    width: 100%;
  }

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

/* Accessibility: Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--raiz-accent);
  outline-offset: 3px;
}

/* Accessibility: High Contrast / 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;
  }

  .hero-creator-card,
  .hero-creator-card:nth-child(2),
  .hero-creator-card:hover,
  .video-card:hover,
  .creator-profile-card:hover,
  .service-card:hover {
    transform: none !important;
  }
}
