/* Responsive Design */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: 3.62rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: 2.91rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: 2.35rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --container-padding: 0.5rem;
    --section-padding: 2.5rem 0;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero h1 {
  padding-top: 50px !important;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  .navbar-brand {
    font-size: 1.41rem !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 123px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .reviews-carousel {
    padding: 2rem 1rem;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card i {
    font-size: 2.55rem;
  }
  
  .price-card {
    padding: 2rem;
  }
  
  .price-amount {
    font-size: 2.61rem;
  }
  
  h1 { font-size: 1.93rem; }
  h2 { font-size: 1.64rem; }
  h3 { font-size: 1.39rem; }
  h4 { font-size: 1.16rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.96rem; }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../GIF_images/hero-bg@2x.webp');
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .hero h1 {
  padding-top: 50px !important;
    font-size: 1.93rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-shape,
  .contact-form,
  .footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: none !important;
  }
  
  .hero::before {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .faq-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #eee3e4;
  }
  
  a {
    text-decoration: underline;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 69, 33, 0.15);
  }
  
  .team-member:hover {
    transform: translateY(-5px);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
}

/* Touch devices */
@media (hover: none) {
  .service-card,
  .team-member,
  .feature-card,
  .price-card {
    transition: none;
  }
  
  .gallery-item img {
    transition: none;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 3px solid var(--eco-blue);
    outline-offset: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .service-card,
  .team-member,
  .feature-card,
  .price-card,
  .gallery-item img,
  .btn-eco,
  .contact-form .btn-primary {
    transition: none;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 