/* ========================================
   VALHALLA GYM - Responsive Styles
   Mobile-First Approach
   ======================================== */

/* ---------- Mobile First (< 480px) ---------- */
/* Base styles are mobile-first */

/* ---------- Small Phones (480px+) ---------- */
@media (min-width: 480px) {
  :root {
    --section-padding: 80px 24px;
  }
}

/* ---------- Tablets (768px+) ---------- */
@media (min-width: 768px) {
  :root {
    --section-padding: 100px 40px;
    --navbar-height: 80px;
  }

  .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  :root {
    --section-padding: 120px 60px;
  }

  .container {
    padding: 0 40px;
  }
}

/* ---------- Large Desktop (1200px+) ---------- */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

/* ---------- Navbar Responsive ---------- */
@media (max-width: 767px) {
  .navbar {
    padding: 0 16px;
  }

  .navbar-brand img {
    height: 40px;
    width: auto;
    margin-top: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-login {
    margin-top: 20px;
  }
}

/* ---------- Hero Responsive ---------- */
@media (max-width: 767px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-content .subtitle {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

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

/* ---------- Schedule Responsive ---------- */
@media (max-width: 767px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .schedule-card {
    padding: 24px 16px;
  }

  .schedule-times {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Coaches Responsive ---------- */
@media (max-width: 767px) {
  .coaches-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .coaches-title-wrapper {
    padding: 0 16px;
  }

  .coaches-info {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .coaches-bg-wrapper {
    width: 85% !important;
    margin: 0 auto !important;
    position: relative !important;
  }

  .coaches-bg-wrapper .coaches-bg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .coaches-bg-wrapper .coach-overlay {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    margin-left: 0 !important;
  }

  .coach-info {
    padding: 20px 16px;
  }
}

/* ---------- Pricing Responsive ---------- */
@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-card {
    padding: 30px 20px;
  }
}

/* ---------- Gallery Responsive ---------- */
@media (max-width: 767px) {
  .gallery-container {
    padding: 0 10px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow.prev {
    left: 5px;
  }

  .gallery-arrow.next {
    right: 5px;
  }

  .gallery-track {
    gap: 10px;
  }

  .gallery-item {
    min-width: 85vw;
  }
}

/* ---------- Footer Responsive ---------- */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact p {
    font-size: 0.9rem;
  }
}

/* ---------- About Responsive ---------- */
@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-card {
    padding: 24px 16px;
  }
}

/* ---------- Touch Improvements ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-toggle {
    min-height: 48px;
    min-width: 48px;
  }

  .gallery-arrow {
    min-height: 48px;
    min-width: 48px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Dark Mode Support ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .navbar, .hero-buttons, .gallery-arrows, .footer-social {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    color: black;
  }
}
