/* Responsive Styles - Ceramic Tile Art Template */

/* Mobile First Approach */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
  padding-top: 50px;
    padding: 4rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
  padding-top: 50px;
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item {
    padding: 1.5rem;
  }
  
  .decorative-blob {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --navbar-brand-size: 1.25rem;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 50vh;
    padding: 1.5rem 0;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.84rem;
  }
  
  .hero-content p {
    font-size: 1.02rem;
  }
  
  /* Single column layouts on mobile */
  .services-grid,
  .team-grid,
  .gallery-grid,
  .blog-grid,
  .element-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-item {
    padding: 1rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile optimization */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Navbar mobile */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  /* FAQ mobile */
  .faq-question {
    padding: 0.75rem;
    font-size: 1.02rem;
  }
  
  .faq-answer {
    padding: 0.75rem;
    font-size: 0.92rem;
  }
  
  /* Blog mobile */
  .blog-content {
    padding: 1rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 1.71rem;
  }
  
  /* Section padding mobile */
  .section {
    padding: 2rem 0;
  }
  
  /* Decorative elements hidden on mobile */
  .decorative-blob {
    display: none;
  }
  
  /* Testimonials mobile */
  .testimonials-slider {
    padding: 2rem 0;
  }
  
  .testimonial-item {
    padding: 1rem;
  }
  
  .testimonial-text {
    font-size: 1.11rem;
  }
}

/* Swiper 11 Mobile Optimizations - Disable autoplay and effects on mobile <768px */
@media (max-width: 767.98px) {
  /* These will be handled in JavaScript */
  .swiper-container {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* Container max-width adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Landscape phone specific */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .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 {
  padding-top: 50px;
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-item img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-terracotta);
    outline-offset: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-container {
    --swiper-transition-duration: 0ms;
  }
  
  .service-item:hover,
  .blog-item:hover,
  .gallery-item img:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}
