/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  .navbar-brand {
    font-size: 1.37rem !important;
  }
  
  .service-card {
    max-width: 350px;
    margin: 0 auto 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-wrapper {
    transform: none !important;
  }
  
  .hero-content {
  padding-top: 100px !important;
    text-align: left;
  }
  
  .feature-card {
    height: 100%;
  }
  
  .service-card {
    max-width: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  .hero-content h1 {
    font-size: 2.62rem;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 3.06rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .feature-card {
    padding: 2.5rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 3.63rem;
  }
  
  .section-title h2 {
    font-size: 2.62rem;
  }
}

/* Mobile devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.13rem !important;
  }
  
  .hero-content h1 {
    font-size: 1.63rem;
  }
  
  .hero-content h2 {
    font-size: 1.40rem;
  }
  
  .hero-content p {
    font-size: 14.00px;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2.20rem;
  }
  
  .section-title h2 {
    font-size: 1.63rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.64rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-amount {
    font-size: 2.04rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .btn-primary {
    width: 100%;
    margin-top: 1.24rem;
  }
  
  /* Stack columns on mobile */
  .row > [class*="col-"] {
    margin-bottom: 1.15rem;
  }
  
  /* Gallery responsive */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-image {
    height: 150px;
  }
  
  /* FAQ mobile optimization */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Footer responsive */
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-links {
    text-align: center;
    margin-bottom: 1.15rem;
  }
  
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* Tablet portrait (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.35rem;
  }
  
  .service-card {
    max-width: 300px;
    margin: 0 auto 2rem;
  }
  
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  .price-card {
    max-width: 350px;
    margin: 0 auto 2rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-image,
  .team-photo,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .breadcrumb,
  footer,
  .btn,
  .swiper-pagination {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-card,
  .price-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e8e8e8;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-slide {
    transition: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .feature-card:hover {
    transform: none !important;
  }
  
  .hero-content,
  .hero-image {
    animation: none !important;
  }
}


/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
  }
}

/* Container responsive adjustments */
@media (min-width: 1400px) {
  .hero-content {
  padding-top: 100px !important;
    padding-right: 3rem;
  }
}

/* Special mobile layout for services grid */
@media (max-width: 575.98px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar-nav {
    margin-left: auto;
  }
  
  .service-price {
    font-size: 1.40rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.40rem;
  }
} 