/* ===== RESPONSIVE CSS FOR SELF-STORAGE TEMPLATE ===== */

/* ===== EXTRA SMALL DEVICES (Portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-slide {
    padding: 2rem 1.5rem;
  }
}

/* ===== SMALL DEVICES (Landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .price-plans {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ===== MEDIUM DEVICES (Tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .price-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LARGE DEVICES (Desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .price-plans {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== EXTRA LARGE DEVICES (Large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .price-plans {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== MOBILE-FIRST UTILITIES ===== */
@media (max-width: 767.98px) {
  .swiper {
    --swiper-navigation-size: 25px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
  
  /* Disable autoplay and effects on mobile as per requirements */
  .swiper[data-autoplay] {
    --swiper-autoplay-delay: 0;
  }
  
  .navbar-collapse {
    background: var(--primary-navy);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .swiper-slide {
    transition: none;
  }
  
  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .team-member,
  .testimonial-slide,
  .faq-item {
    border: 2px solid var(--dark-slate);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-navy);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
    color: var(--black);
  }
  
  .hero-section::before {
    display: none;
  }
} 