/* ===== RESPONSIVE STYLES FOR SUSTAINABLE WALLPAPER TEMPLATE ===== */

/* MOBILE FIRST APPROACH */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* DISABLE ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.3rem;
    --section-padding: 40px 0;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Sections */
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards spacing */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Process steps */
  .process-step {
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* DISABLE ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.6rem;
    --section-padding: 50px 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 80vh;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  /* Card improvements */
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 60px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  /* Grid adjustments for tablets */
  .service-card,
  .feature-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Team photos */
  .team-photo {
    height: 200px;
    font-size: 4rem;
  }
  
  /* Gallery items */
  .gallery-item {
    height: 200px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  :root {
    --section-padding: 70px 0;
  }
  
  /* Hero section optimizations */
  #hero {
    min-height: 95vh;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  /* Enhanced hover effects */
  .service-card:hover,
  .price-card:hover,
  .team-card:hover {
    transform: translateY(-8px);
  }
  
  /* Better spacing for cards */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card {
    margin-bottom: 1.5rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum section padding */
  :root {
    --section-padding: 80px 0;
  }
  
  /* Full hero height */
  #hero {
    min-height: 100vh;
  }
  
  /* Full decorative elements */
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
  
  /* Enhanced animations for large screens */
  .service-card:hover,
  .price-card:hover,
  .team-card:hover {
    transform: translateY(-10px);
  }
  
  /* Optimal spacing */
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Better gallery layout */
  .gallery-item {
    height: 300px;
  }
  
  /* Enhanced team photos */
  .team-photo {
    height: 280px;
    font-size: 6rem;
  }
}

/* UTILITY RESPONSIVE CLASSES */

/* Text alignment helpers */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .text-left-mobile {
    text-align: left !important;
  }
}

/* Spacing helpers for mobile */
@media (max-width: 575.98px) {
  .mb-mobile-2 {
    margin-bottom: 1rem !important;
  }
  
  .mb-mobile-3 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-mobile-4 {
    margin-bottom: 2rem !important;
  }
  
  .px-mobile-2 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* LANDSCAPE ORIENTATION ADJUSTMENTS */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  section {
    padding: 30px 0;
  }
}

/* HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows for retina displays */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .contact-form {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }
  
  .form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(123, 143, 161, 0.25);
  }
}

/* PRINT STYLES */
@media print {
  /* Hide navigation and decorative elements */
  #header,
  #footer,
  .hero-decorative,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  /* Remove shadows and effects */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card {
    box-shadow: none;
    border: 1pt solid #ccc;
  }
}

/* REDUCED MOTION OVERRIDE */
@media (prefers-reduced-motion: reduce) {
  /* Ensure all animations are disabled */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* DARK MODE SUPPORT (if browser supports) */

.hero-content {
    padding-top: 200px;
}