/* Environmental & Sustainability Website Template - Responsive CSS */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.56rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  /* Navigation */
  .navbar-collapse {
    background: rgba(0,0,0,0.9);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 2.61rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Sections */
  .section {
    padding: 60px 0;
  }
  
  /* Service Cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price Cards */
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  /* Team Cards */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.81rem; }
  h3 { font-size: 1.33rem; }
  
  /* Hero Section */
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.56rem;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Feature Cards */
  .feature-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.51rem;
  }
  
  /* Service Cards */
  .service-content {
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.57rem;
  }
  
  /* Price Cards */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2.52rem;
  }
  
  /* Team Cards */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Process Steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.39rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Container padding */
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography */
  h1 { font-size: 1.79rem; }
  h2 { font-size: 1.54rem; }
  h3 { font-size: 1.19rem; }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.30rem !important;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 1.77rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-shapes {
    display: none;
  }
  
  /* Sections */
  .section {
    padding: 30px 0;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .case-card,
  .info-card {
    margin-bottom: 1.64rem;
  }
  
  .feature-card,
  .case-card,
  .info-card {
    padding: 1rem;
  }
  
  .service-content,
  .contact-form {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  /* Service Price */
  .service-price {
    font-size: 1.28rem;
  }
  
  /* Price Amount */
  .price-amount {
    font-size: 2rem;
  }
  
  /* Team Photo */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Form Elements */
  .form-control {
    padding: 0.75rem;
  }
  
  .btn-submit {
    padding: 0.75rem 2rem;
    width: 100%;
  }
  
  /* Process Number */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* FAQ Cards */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Timeline Items */
  .timeline-item {
    padding: 1rem;
  }
  
  /* Career Cards */
  .career-card {
    padding: 1rem;
  }
  
  /* Review Cards */
  .review-card {
    padding: 1rem;
  }
  
  /* Blog Content */
  .blog-content {
    padding: 1rem;
  }
}

/* Landscape orientation specific */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item,
  .service-image,
  .blog-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-section,
  .footer {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #c4bdbd;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
  
  .text-gradient {
    -webkit-text-fill-color: initial;
    color: var(--dark-green);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-submit:hover,
  .btn-gradient:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #359037;
    --primary-blue: #0947b0;
    --primary-yellow: #e58600;
    --primary-orange: #cf5e0e;
    --primary-teal: #08716d;
  }
  
  .hero-section::before {
    opacity: 0.1;
  }
  
  .navbar {
    background: var(--dark-gray) !important;
  }
}

/* Focus styles for accessibility */
.navbar-nav .nav-link:focus,
.form-control:focus,
.btn:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Utility classes for responsive design */
@media (max-width: 767.98px) {
  .mobile-center {
    text-align: center !important;
  }
  
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
}

@media (min-width: 768px) {
  .desktop-only {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .desktop-only {
    display: none !important;
  }
} 