/* ============================================
   BAMBOO FIBER HOME TEXTILES - RESPONSIVE
   Mobile-First Responsive Design
   ============================================ */

/* Mobile First - Base Styles (320px+) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1, .h1 {
    font-size: 1.87rem;
  }
  
  h2, .h2 {
    font-size: 1.57rem;
  }
  
  h3, .h3 {
    font-size: 1.39rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    width: 100px;
    height: 100px;
  }
  
  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }
  
  /* Cards */
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 1.71rem;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.61rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service Grid - Override Bootstrap for smaller cards */
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services Grid - 2 columns on tablets */
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Features Grid - 2 columns on tablets */
  .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) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Bootstrap grid defaults work well for services and features at this size */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Hero Decorative */
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhanced shadows for retina displays */
  .service-card,
  .price-card,
  .team-card,
  .contact-form {
    box-shadow: 0 8px 12px rgba(0,0,0,0.12);
  }
}

/* Dark Mode Support */

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #d5d5d5;
    margin-bottom: 1rem;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .service-card:focus-within,
  .price-card:focus-within,
  .team-card:focus-within {
    transform: translateY(-2px);
  }
}

/* Container Adjustments for Better Mobile Experience */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navigation Improvements for Mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--bamboo-cream-light);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    font-size: 10px !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bamboo-mist);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}