/* Responsive Design - Mobile First Approach */

/* Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 24px;
    --font-size-h2: 20px;
    --font-size-h3: 18px;
    --brand-font-size: 22.00px;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 29.00px;
  }
  
  .service-card {
    margin-bottom: 1.58rem;
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Disable autoplay and effects on mobile */
  .swiper-autoplay {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    --swiper-effect: slide;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 26px;
    --font-size-h2: 22px;
    --brand-font-size: 21.00px;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.58rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 90vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container-xl {
    max-width: 1200px;
  }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    margin-top: 1.10rem;
    padding: 1rem;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section responsive layout */
@media (max-width: 767.98px) {
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-md-6:first-child {
    order: 2;
  }
  
  .hero-section .col-md-6:last-child {
    order: 1;
    margin-bottom: 2.18rem;
  }
}

/* Services grid responsive */
@media (max-width: 575.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 1.19rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 1.58rem;
  }
}

/* Team section responsive */
@media (max-width: 575.98px) {
  .team-grid .col-md-6 {
    margin-bottom: 1.58rem;
  }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
  .contact-section .row {
    text-align: center;
  }
  
  .contact-info {
    margin-top: 2.25rem;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer .row > div {
    margin-bottom: 2.18rem;
    text-align: center;
  }
  
  .footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Blog section responsive */
@media (max-width: 767.98px) {
  .blog-grid .col-md-4 {
    margin-bottom: 1.58rem;
  }
}

/* FAQ responsive */
@media (max-width: 575.98px) {
  .accordion-button {
    font-size: 18.00px;
    padding: 1rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
}

/* Utility responsive classes */
@media (max-width: 575.98px) {
  .d-none-mobile {
    display: none !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-3-mobile {
    margin-bottom: 1.19rem !important;
  }
}

@media (min-width: 576px) {
  .d-none-desktop {
    display: none !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .decorative-blob {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #166327;
    --secondary-orange: #cc4517;
    --neutral-charcoal: #000000;
  }
  
  .service-card,
  .blog-card,
  .review-item {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    border: 2px solid #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .decorative-blob {
    animation: none;
  }
  
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .swiper {
    --swiper-transition-duration: 0ms;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container responsive adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Swiper responsive settings */
@media (max-width: 767.98px) {
  .swiper {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
} 