/* Responsive Design - Mobile First */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2.04rem;
  }
  
  .hero-content p {
    font-size: 1.01rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  h1 {
    font-size: 1.92rem;
  }
  
  h2 {
    font-size: 1.54rem;
  }
  
  .service-card,
  .price-card {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .decorative-shape {
    display: none;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-theme-color: var(--primary-coral);
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.60rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-nav .nav-link {
    margin: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 3.09rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Enable Swiper autoplay and effects on desktop */
  .swiper {
    --swiper-navigation-color: var(--primary-coral);
    --swiper-pagination-color: var(--primary-coral);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.51rem;
  }
  
  .hero-content p {
    font-size: 1.36rem;
  }
  
  .service-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: translateY(-10px);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 4.04rem;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .hero-content h1 {
    font-size: 4.55rem;
  }
  
  .section {
    padding: 120px 0;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 480px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.04rem;
    margin-bottom: 1.10rem;
  }
  
  .hero-content p {
    font-size: 1.01rem;
    margin-bottom: 1.66rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape {
    display: none;
  }
  
  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .service-card,
  .feature-card,
  .blog-card,
  .price-card {
    transition: none;
  }
  
  .hero-content h1,
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero::before {
    background: rgba(0,0,0,0.7);
  }
  
  .service-card,
  .feature-card,
  .blog-card,
  .price-card {
    border: 2px solid var(--primary-navy);
  }
  
  .btn-custom {
    border: 2px solid white;
  }
}


/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-coral);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-navy);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 