/* EcoDesign Studio - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  .display-4 {
    font-size: 2rem;
  }
  
  .h2 {
    font-size: 1.5rem;
  }
  
  .h3 {
    font-size: 1.25rem;
  }
  
  .h4 {
    font-size: 1.1rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-section .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  /* Hide decorative shapes on mobile */
  .hero-shapes {
    display: none;
  }
  
  /* Card adjustments */
  .service-card .card-img-top,
  .project-card .card-img-top,
  .residential-card .card-img-top,
  .commercial-card .card-img-top,
  .featured-article .card-img-top,
  .blog-post .card-img-top {
    height: 180px;
  }
  
  /* Team member images */
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Process steps */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Button adjustments */
  .btn-success,
  .btn-outline-success {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Footer adjustments */
  footer .col-lg-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2.25rem;
  }
  
  .hero-section {
    padding-top: 90px;
  }
  
  .service-card .card-img-top,
  .project-card .card-img-top,
  .residential-card .card-img-top,
  .commercial-card .card-img-top,
  .featured-article .card-img-top,
  .blog-post .card-img-top {
    height: 190px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding-top: 85px;
  }
  
  .service-card .card-img-top,
  .project-card .card-img-top,
  .residential-card .card-img-top,
  .commercial-card .card-img-top,
  .featured-article .card-img-top,
  .blog-post .card-img-top {
    height: 195px;
  }
  
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  /* Adjust team layout for tablets */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    padding-top: 80px;
  }
  
  /* Ensure proper spacing */
  .service-card,
  .project-card,
  .residential-card,
  .commercial-card {
    margin-bottom: 2rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding-top: 80px;
  }
  
  /* Enhance visual elements on large screens */
  .shape-blob-1 {
    width: 250px;
    height: 250px;
  }
  
  .shape-blob-2 {
    width: 200px;
    height: 200px;
  }
  
  /* Larger cards on big screens */
  .service-card .card-img-top,
  .project-card .card-img-top,
  .residential-card .card-img-top,
  .commercial-card .card-img-top,
  .featured-article .card-img-top,
  .blog-post .card-img-top {
    height: 220px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding-top: 60px;
    min-height: 90vh;
  }
  
  .hero-section .row {
    align-items: center;
  }
}

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

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .breadcrumb-nav,
  footer,
  .btn,
  .hero-shapes {
    display: none !important;
  }
  
  /* Adjust layout for print */
  .hero-section {
    padding-top: 0;
    background: white !important;
  }
  
  /* Ensure good contrast for print */
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  
  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000 !important;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }
  
  /* Avoid breaking cards across pages */
  .card {
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove floating animations */
  .shape-blob-1,
  .shape-blob-2 {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000 !important;
  }
  
  .btn {
    border: 2px solid !important;
  }
  
  .form-control {
    border: 2px solid #000 !important;
  }
}

/* Dark mode considerations (if needed in future) */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  /* Touch device specific styles */
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Specific adjustments for very small screens */
@media (max-width: 320px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .h2 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1rem;
  }
}

/* Adjustments for very wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Prevent content from becoming too spread out */
  .hero-section .container,
  section .container {
    max-width: 1200px;
  }
} 

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