/* Responsive Design for Indoor Climbing Gym Template */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .services-card .card-img-top {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .services-card .card-img-top {
    height: 160px;
  }
  
  .team-card img {
    height: 220px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .services-card {
    margin-bottom: 30px;
  }
  
  .services-card .card-img-top {
    height: 200px;
  }
  
  .team-card {
    margin-bottom: 30px;
  }
  
  .team-card img {
    height: 200px;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 20px 0;
  }
  
  .testimonial-card {
    margin: 0 10px;
    padding: 1.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .navbar-toggler {
    padding: 4px 8px;
    font-size: 1rem;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .section-title p {
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .services-card {
    padding: 1.5rem;
  }
  
  .services-card .card-img-top {
    height: 180px;
  }
  
  .team-card img {
    height: 180px;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 15px 0;
  }
  
  .form-control {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 10px 30px;
    font-size: 14px;
  }
  
  .testimonial-card {
    margin: 0 5px;
    padding: 1.2rem;
  }
  
  .footer {
    padding: 40px 0 15px;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 30px;
  }
  
  /* FAQ adjustments */
  .accordion-button {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .accordion-body {
  overflow-x: hidden;
    padding: 16px;
    font-size: 14px;
  }
  
  /* Price tags */
  .price-tag {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Mobile-first approach for Swiper */
@media (max-width: 768px) {
  .swiper-slide {
    width: 100% !important;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .swiper-pagination {
    bottom: 10px !important;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .swiper-slide {
    width: 50% !important;
  }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
  .swiper-slide {
    width: 33.333% !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-image: var(--gradient-hero), url('../SOU_images/hero-bg@2x.webp');
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px 0;
    background: none !important;
    color: black !important;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-charcoal: #f8f9fa;
    --light-gray: #2c3e50;
    --white: #1a252f;
  }
  
  body {
  overflow-x: hidden;
    background-color: var(--primary-charcoal-dark);
    color: var(--light-gray);
  }
  
  .navbar {
    background: rgba(26, 37, 47, 0.95) !important;
  }
  
  .card {
    background-color: var(--primary-charcoal-dark);
    color: var(--light-gray);
  }
} 