/* Responsive CSS for Energy-Efficiency Audit Website */

/* Mobile First Approach */

/* Disable scroll animations on mobile devices (768px and below) */
@media (max-width: 768px) {
  /* Disable all scroll-triggered animations and transitions on mobile */
  .hero-content,
  .hero-image,
  .section-title,
  .section-subtitle,
  .service-card,
  .feature-item,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .process-item,
  .timeline-item,
  .career-card,
  .core-info-card,
  .faq-card,
  .gallery-item,
  .blog-card,
  .contact-form,
  .contact-info {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Ensure elements are visible and positioned normally */
  .hero-content,
  .hero-image,
  .section-title,
  .section-subtitle,
  .service-card,
  .feature-item,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .process-item,
  .timeline-item,
  .career-card,
  .core-info-card,
  .faq-card,
  .gallery-item,
  .blog-card,
  .contact-form,
  .contact-info {
    position: static;
    transform: translateX(0) translateY(0) !important;
  }
}

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.64rem;
  }
  
  h3 {
    font-size: 1.37rem;
  }
  
  .navbar-brand {
    font-size: 1.34rem;
  }
  
  /* Hero section */
  .hero {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Cards */
  .service-card,
  .review-card,
  .case-study-card,
  .price-card,
  .team-card,
  .career-card,
  .core-info-card {
    margin-bottom: 1.55rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero {
    min-height: 95vh;
  }
  
  /* Section padding */
  .section {
    padding: 3rem 0;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 250px;
  }
  
  /* Cards spacing */
  .service-card,
  .review-card,
  .case-study-card,
  .price-card,
  .team-card,
  .career-card,
  .core-info-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  .hero {
    min-height: 100vh;
  }
  
  /* Typography */
  h1 {
    font-size: 2.30rem;
  }
  
  h2 {
    font-size: 1.86rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 280px;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process numbers */
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.35rem;
  }
  
  /* Service icons */
  .service-icon,
  .feature-icon,
  .core-info-icon {
    font-size: 2.57rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full typography */
  h1 {
    font-size: 2.55rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 300px;
  }
  
  /* Hero shapes */
  .hero-shape:nth-child(1) {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape:nth-child(2) {
    width: 120px;
    height: 120px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full desktop experience */
  .hero {
    min-height: 100vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 350px;
  }
  
  /* Cards hover effects enhanced */
  .service-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .core-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Enhanced spacing */
  .section-title {
    margin-bottom: 4rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (min-resolution: 192dpi) {
  .gallery-item img,
  .blog-image,
  .team-photo {
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape {
    display: none;
  }
  
  .hero {
    min-height: auto;
    background: none;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .review-card,
  .case-study-card,
  .price-card,
  .team-card,
  .career-card,
  .core-info-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #e3e3e3;
    break-inside: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .gallery-item img,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
  
  .service-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .core-info-card:hover {
    transform: none;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .service-card:focus,
  .review-card:focus,
  .case-study-card:focus,
  .career-card:focus,
  .core-info-card:focus,
  .faq-card:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Navbar collapse improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

.hero-content {
    padding-top: 275px;
}