/* Responsive Design - Mobile First Approach */
/* NO animations when scrolling in mobile resolution */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Disable all scroll animations on mobile */
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .eco-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decoration.shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-decoration.shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Specific mobile optimizations */
@media (max-width: 768px) {
  /* Stack hero content on mobile */
  .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: 2rem;
  }
  
  /* Services grid - 1 column on mobile */
  .services-grid .col-lg-4,
  .services-grid .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Team members - 1 column on mobile */
  .team-grid .col-lg-3,
  .team-grid .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Price plans - stack on mobile */
  .price-plans .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* FAQ - single column */
  .faq-grid .col-lg-6 {
    margin-bottom: 1rem;
  }
  
  /* Gallery - 2 columns on mobile */
  .gallery-grid .col-lg-3,
  .gallery-grid .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Blog - single column */
  .blog-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Contact section adjustments */
  .contact-section .row {
    flex-direction: column-reverse;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Services - 2 columns on tablet */
  .services-grid .col-lg-4:nth-child(3n) {
    margin-bottom: 2rem;
  }
  
  /* Team - 2 columns on tablet */
  .team-grid .col-lg-3:nth-child(3n),
  .team-grid .col-lg-3:nth-child(4n) {
    margin-bottom: 2rem;
  }
  
  /* Gallery - 3 columns on tablet */
  .gallery-grid .col-lg-3:nth-child(4n) {
    margin-bottom: 1rem;
  }
}

/* Landscape phone adjustments */
@media (max-width: 575.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 1.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look crisp on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decoration {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better spacing for readability */
  p {
    line-height: 1.7;
  }
  
  /* Form elements */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Reduced motion preferences - enhanced mobile support */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .eco-card:hover {
    transform: none;
  }
  
  .blog-card:hover {
    transform: none;
  }
  
  .price-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
} 

body {
    overflow-x: hidden;
}

.hero-content {
    padding-top: 175px;
}