/* Responsive CSS - Energy Efficiency Audit Template */
/* Mobile-First Approach with Bootstrap 5 Grid System */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .services-card {
    margin-bottom: 0;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .process-step {
    padding: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-decorative {
    width: 350px;
    height: 350px;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Mobile Optimizations (below 768px) */
@media (max-width: 767.98px) {
  /* NO ANIMATIONS ON MOBILE */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography Adjustments */
  :root {
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --navbar-brand-size: 1.1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: var(--navbar-brand-size);
  }
  
  /* Standard Bootstrap 5 mobile menu - NO CUSTOMIZATION */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Services */
  .services-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .services-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .services-icon i {
    font-size: 1.2rem;
  }
  
  /* Team */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  /* Cards */
  .review-card,
  .faq-card,
  .price-card,
  .casestudy-card,
  .career-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  /* Process Steps */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-marker {
    width: 15px;
    height: 15px;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Button Adjustments */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Text Alignment */
  .text-center-mobile {
    text-align: center;
  }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --h1-size: 1.8rem;
    --h2-size: 1.6rem;
    --h3-size: 1.4rem;
    --navbar-brand-size: 1rem;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .services-card,
  .contact-form {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  /* Compact spacing for very small screens */
  .mb-3 { margin-bottom: 1rem !important; }
  .mb-4 { margin-bottom: 1.5rem !important; }
  .mb-5 { margin-bottom: 2rem !important; }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .services-card,
  .review-card,
  .faq-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .services-card,
  .review-card,
  .faq-card,
  .price-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-green);
  }
}

/* Focus Management for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Container max-width adjustments for better readability */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.hero-section h1 {
    padding-top: 225px;
}