/* ===== RESPONSIVE STYLES - ECO-DESIGN CONSULTANCY ===== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
    padding: 1rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on small screens */
  }
  
  /* Cards and components */
  .service-card,
  .price-card,
  .team-member,
  .case-study-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 200px;
  }
  
  /* Navigation animations disabled on mobile */
  .navbar-collapse {
    background-color: var(--light-cream);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Section spacing */
  section {
    padding: 2.5rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 95vh;
  }
  
  /* Cards grid adjustments */
  .service-card,
  .team-member {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section spacing */
  section {
    padding: 3rem 0;
  }
  
  /* Typography */
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.5rem; }
  
  /* Hero section */
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative.blob-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative.blob-2 {
    width: 120px;
    height: 120px;
  }
  
  /* Contact section */
  .contact-form {
    padding: 2.5rem;
  }
  
  .contact-info {
    padding: 2.5rem;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 240px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop styles from main.css apply */
  .hero-decorative.blob-1 {
    width: 180px;
    height: 180px;
  }
  
  .hero-decorative.blob-2 {
    width: 140px;
    height: 140px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Enhanced spacing for large screens */
  section {
    padding: 5rem 0;
  }
  
  .hero-decorative.blob-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative.blob-2 {
    width: 200px;
    height: 200px;
  }
  
  /* Larger containers for better content spacing */
  .contact-form {
    padding: 4rem;
  }
  
  .contact-info {
    padding: 4rem;
  }
}

/* Mobile Navigation Specific */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 2px solid var(--primary-sage);
    padding: 0.5rem 0.75rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(123, 139, 111, 0.25);
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-sage);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look crisp on high DPI displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  section {
    padding: 1.5rem 0;
  }
  
  .navbar-collapse {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Print Styles */
@media print {
  /* Remove non-essential elements for printing */
  #header,
  #footer,
  .hero-decorative,
  .btn,
  .navbar {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-decorative {
    animation: none !important;
  }
  
  .service-card:hover,
  .team-member:hover,
  .case-study-card:hover,
  .blog-card:hover,
  .gallery-item img:hover {
    transform: none !important;
  }
}

/* Dark Mode Support (for future implementation) */

/* Focus Styles for Keyboard Navigation */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .service-card:hover,
  .team-member:hover,
  .case-study-card:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Container Adjustments for Different Breakpoints */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* Specific Mobile Fixes */
@media (max-width: 575.98px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Better spacing for mobile cards */
  .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile-friendly form elements */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better button sizing */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
} 