/* DIY Pottery Kits - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 0.9rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1.11rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.65rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .feature-item {
    margin-bottom: 1.65rem;
    padding: 1.5rem 1rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  footer .row > div {
    margin-bottom: 2.23rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-member img {
    width: 160px;
    height: 160px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .service-card {
    height: auto;
    min-height: 450px;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    overflow: hidden;
  }
  
  .swiper-slide {
    transition: none;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .service-card {
    min-height: 500px;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .team-member img {
    width: 200px;
    height: 200px;
  }
  
  .gallery-item img {
    height: 260px;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .service-card {
    min-height: 520px;
  }
  
  .service-card img {
    height: 240px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Disable animations on mobile for performance */
@media (max-width: 767.98px) {
  .service-card:hover,
  .feature-item:hover,
  .blog-card:hover,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  /* Disable Swiper autoplay and effects */
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .swiper-pagination,
  .contact-form {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  section {
    break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-item,
  .price-card {
    break-inside: avoid;
    border: 1px solid #d9d9d9;
    margin-bottom: 1.11rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-item,
  .price-card,
  .contact-form {
    border: 2px solid currentColor;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem 0.5rem;
  }
  
  .service-card,
  .feature-item,
  .blog-card {
    transition: none;
  }
  
  .service-card:hover,
  .feature-item:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Accessibility improvements for small screens */
@media (max-width: 575.98px) {
  .form-control,
  .btn {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .accordion-button {
    font-size: 16px;
    padding: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Hero section responsive background */
@media (max-width: 767.98px) {
  #hero::before {
    opacity: 0.2;
  }
}

@media (min-width: 768px) {
  #hero::before {
    opacity: 0.3;
  }
}

/* Footer responsive layout */
@media (max-width: 575.98px) {
  footer .col-md-3,
  footer .col-md-4 {
    text-align: center;
    margin-bottom: 2.23rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  footer .col-md-3,
  footer .col-md-4 {
    text-align: center;
    margin-bottom: 1.65rem;
  }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(138, 81, 6, 0.95);
    margin-top: 1.05rem;
    padding: 1rem;
    border-radius: 10px;
  }
}

/* Swiper responsive settings */
@media (max-width: 767.98px) {
  .swiper {
    padding-bottom: 2.10rem;
  }
  
  .swiper-pagination {
    bottom: 0;
  }
} 