/*
===============================================
RENEWABLE ENERGY CONSULTANCY - RESPONSIVE CSS
===============================================
Mobile-First Approach | Reduced Motion Support
Bootstrap 5 Compliant | No Animation on Mobile
*/

/* ==================== MOBILE FIRST (Base Styles) ==================== */
/* Already optimized for mobile in main.css */

/* ==================== TABLET BREAKPOINT (576px+) ==================== */
@media (min-width: 576px) {
  /* Typography adjustments for tablet */
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.6rem;
    --section-padding: 3rem 0;
  }
  
  /* Hero section improvements */
  .hero {
    min-height: 80vh;
  }
  
  /* Card layouts */
  .service-card, .feature-card, .team-card, .review-card {
    margin-bottom: 2rem;
  }
  
  /* Navigation adjustments */
  .navbar-nav {
    flex-direction: row;
  }
  
  .nav-link {
    margin: 0 0.5rem;
  }
}

/* ==================== LANDSCAPE TABLET (768px+) ==================== */
@media (min-width: 768px) {
  /* Restore desktop typography */
  :root {
    --fs-h1: 2.2rem;
    --fs-h2: 1.8rem;
    --section-padding: 4rem 0;
    --card-padding: 2rem;
  }
  
  /* Hero section full desktop */
  .hero {
    min-height: 100vh;
    text-align: left;
  }
  
  .hero::before {
    display: block;
  }
  
  /* Grid improvements */
  .service-grid, .feature-grid {
    margin-bottom: 0;
  }
  
  /* Team member layout */
  .team-member {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Form layout improvements */
  .contact-form {
    padding: 2rem;
  }
  
  /* FAQ two-column layout */
  .faq-container {
    columns: 1;
  }
}

/* ==================== DESKTOP (992px+) ==================== */
@media (min-width: 992px) {
  /* Enhanced spacing */
  :root {
    --section-padding: 5rem 0;
  }
  
  /* Hero content spacing */
  .hero-content h1 {
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  /* Service cards three-column layout optimization */
  .service-card {
    margin-bottom: 3rem;
  }
  
  /* Team grid optimization */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* FAQ two-column layout */
  .faq-container {
    columns: 2;
    column-gap: 2rem;
  }
  
  .faq-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }
  
  /* Form enhancements */
  .contact-form {
    padding: 3rem;
    border-radius: 1rem;
  }
}

/* ==================== LARGE DESKTOP (1200px+) ==================== */
@media (min-width: 1200px) {
  /* Maximum width constraints */
  .hero-content {
    max-width: 90%;
    padding-top: 150px;
}
  
  /* Enhanced card spacing */
  .service-card, .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid optimization */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
}

/* ==================== EXTRA LARGE DESKTOP (1400px+) ==================== */
@media (min-width: 1400px) {
  /* Container max-width optimization */
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Hero content constraints */
  .hero-content h1 {
    max-width: 80%;
  }
  
  .hero-content p {
    max-width: 70%;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  /* Hide non-essential elements */
  .navbar, .footer, .gallery, .btn, button {
    display: none;
  }
  
  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }
  
  /* Ensure content spans full width */
  .container, .container-fluid {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  /* Card styles for print */
  .service-card, .feature-card, .team-card {
    border: 1px solid #b7b7b7;
    box-shadow: none;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
}

/* ==================== REDUCED MOTION OVERRIDES ==================== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all hover effects */
  .service-card:hover, 
  .feature-card:hover, 
  .team-card:hover, 
  .review-card:hover, 
  .case-card:hover, 
  .process-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  /* Disable gallery hover effects */
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Simplify button transitions */
  .btn-primary-custom, .btn-outline-custom {
    transition: none;
  }
  
  /* Remove hero decorative elements motion */
  .hero::before {
    animation: none;
  }
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
  /* Enhance contrast for accessibility */
  :root {
    --primary-green: #1e392a;
    --primary-blue: #0f1c28;
    --text-dark: #000;
    --text-light: #1a1a19;
  }
  
  /* Stronger borders */
  .service-card, .feature-card, .team-card, .review-card {
    border: 2px solid var(--primary-green);
  }
  
  /* Enhanced form field contrast */
  .form-control {
    border-width: 3px;
  }
  
  .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(36, 64, 51, 0.30);
  }
}

/* ==================== DARK MODE SUPPORT ==================== */

/* ==================== MOBILE SPECIFIC OPTIMIZATIONS ==================== */
@media (max-width: 767px) {
  /* Disable animations on mobile as per requirements */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Mobile-optimized spacing */
  .section {
    padding: 2rem 0;
  }
  
  /* Stack hero content vertically */
  .hero .row {
    text-align: center;
  }
  
  .hero .col-md-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Mobile card adjustments */
  .service-card, .feature-card, .team-card, .review-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Mobile form optimization */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* FAQ single column on mobile */
  .faq-container {
    columns: 1;
  }
  
  /* Team member mobile layout */
  .team-member {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery mobile optimization */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Button mobile sizing */
  .btn-primary-custom, .btn-outline-custom {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Price tags mobile adjustment */
  .price-tag {
    display: block;
    text-align: center;
    margin: 1rem auto 0;
    width: fit-content;
  }
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {
  /* Optimize for touch devices */
  .btn-primary-custom, .btn-outline-custom {
    min-height: 48px;
    padding: 0.875rem 2rem;
  }
  
  .nav-link {
    padding: 1rem 0.75rem;
  }
  
  /* Remove hover effects on touch devices */
  .service-card:hover, 
  .feature-card:hover, 
  .team-card:hover, 
  .review-card:hover, 
  .case-card:hover, 
  .process-card:hover,
  .gallery-item:hover img {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 767px) and (orientation: landscape) {
  /* Adjust hero height for landscape mobile */
  .hero {
    min-height: 60vh;
  }
  
  /* Compact section padding */
  .section {
    padding: 1.5rem 0;
  }
  
  /* Adjust navbar for landscape */
  .navbar {
    padding: 0.5rem 0;
  }
} 