/* Responsive Styles for Bamboo-Fiber Home Textiles */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Sections spacing */
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Cards stacking */
  .feature-card, .service-card, .price-card, .team-card, .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Gallery adjustments */
  .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Disable animations on mobile */
  .feature-card, .service-card, .price-card, .team-card {
    transition: none;
  }
  
  .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn-bamboo:hover, .btn-outline-bamboo:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 75vh;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Disable animations on mobile landscape */
  .feature-card, .service-card, .price-card, .team-card {
    transition: none;
  }
  
  .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Two column layout for services */
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Two column layout for features */
  .features-grid .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  /* Larger containers for better spacing */
  .container {
    max-width: 1140px;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .navbar,
  .footer,
  .btn-bamboo,
  .btn-outline-bamboo {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .feature-card, .service-card, .price-card, .team-card, .review-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --bamboo-sage: #2d5a3d;
    --bamboo-cream: #ffffff;
    --bamboo-earth: #8b7355;
    --bamboo-forest: #1a2e1f;
    --bamboo-sand: #f0f0f0;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
  }
  
  .feature-card, .service-card, .price-card, .team-card, .review-card, .contact-form {
    border: 2px solid #000000;
  }
}

/* Focus styles for keyboard navigation */
.navbar-nav .nav-link:focus,
.btn-bamboo:focus,
.btn-outline-bamboo:focus,
.form-control:focus {
  outline: 2px solid var(--bamboo-forest);
  outline-offset: 2px;
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 767.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn-bamboo, .btn-outline-bamboo {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .form-control {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .feature-card, .service-card, .price-card, .team-card, .review-card {
    transition: none;
  }
  
  .btn-bamboo, .btn-outline-bamboo {
    transition: none;
  }
  
  .form-control {
    transition: none;
  }
  
  .navbar-nav .nav-link {
    transition: none;
  }
} 

.hero-content {
    padding-top: 225px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
