/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 1rem;
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .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);
  }
  
  /* Disable autoplay and effects on mobile/tablet */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
  font-size: 12px !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
  font-size: 12px !important;
    border-bottom: none;
  }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-md-6 {
    margin-bottom: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Form Responsive */
@media (max-width: 768px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Cards Responsive */
@media (max-width: 768px) {
  .card-deck .card {
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Typography Responsive */
@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.2rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
}

/* Swiper Responsive Settings */
@media (max-width: 768px) {
  .swiper-container {
    --swiper-navigation-size: 20px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
}

/* Additional Page Responsive */
@media (max-width: 768px) {
  .page-section {
    padding: 2rem 0;
  }
  
  .page-section .row .col-md-6,
  .page-section .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer .row .col-md-3,
  .footer .row .col-md-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

/* Breadcrumb Responsive */
@media (max-width: 768px) {
  .breadcrumb-section {
    padding: 1rem 0;
    text-align: center;
  }
  
  .breadcrumb-img {
    max-height: 30px;
  }
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Team Photo Responsive */
@media (max-width: 576px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Gallery Responsive */
@media (max-width: 576px) {
  .gallery-item img {
    height: 200px;
  }
}

/* Review Card Responsive */
@media (max-width: 768px) {
  .review-card {
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
  
  .review-text {
    font-size: 0.9rem;
  }
}

/* Utility Responsive Classes */
@media (max-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .text-md-center { text-align: center !important; }
  .text-md-left { text-align: left !important; }
  .mb-md-3 { margin-bottom: 1rem !important; }
  .mt-md-3 { margin-top: 1rem !important; }
}

@media (min-width: 769px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
} 