/* Responsive Breakpoints */
/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  /* Section Spacing */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .review-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .team-photo {
    height: 200px;
    font-size: 2rem;
  }
  
  /* Contact Form */
  .contact-form,
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    font-size: 1.5rem;
  }
  
  /* Price Cards */
  .price-value {
    font-size: 2rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  /* Blog */
  .blog-image {
    height: 150px;
    font-size: 1.5rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team photos */
  .team-photo {
    height: 220px;
  }
  
  /* Contact form spacing */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Service cards in rows */
  .services-row-1,
  .services-row-2 {
    margin-bottom: 2rem;
  }
  
  .services-row-2 {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .hero-section .container {
    max-width: 1140px;
  }
  
  /* Gallery for larger screens */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Larger decorative shapes */
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }
}

/* Extra extra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text and icons on high-density displays */
  .service-icon,
  .feature-icon,
  .contact-info-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .hero-decorative,
  .hero-shape-1,
  .hero-shape-2,
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .faq-card,
  .blog-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  a[href^="#"]:after {
    content: "";
  }
}

/* Dark mode support (for future implementation) */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .service-card,
  .team-card,
  .blog-card,
  .price-card {
    transition: none;
  }
}

/* Focus improvements for keyboard navigation */
@media (min-width: 768px) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 0.75rem;
  }
} 

.hero-content {
    padding-top: 275px;
}