/* Responsive Styles for 3D-Printed Home Office Furniture */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Cards mobile spacing */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .case-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process steps mobile */
  .step-number {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  /* Price cards mobile */
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero {
    min-height: 90vh;
  }
  
  /* Card grid adjustments */
  .col-sm-6 .service-card,
  .col-sm-6 .feature-card {
    height: auto;
    min-height: 250px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Navigation */
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
  
  /* Hero section tablet */
  #hero {
    min-height: 95vh;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:before {
    width: 100px;
    height: 100px;
  }
  
  /* Cards tablet sizing */
  .service-card,
  .feature-card {
    min-height: 280px;
  }
  
  .team-card {
    min-height: 300px;
  }
  
  .review-card {
    min-height: 200px;
  }
  
  /* Gallery tablet */
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero section desktop */
  .hero-decorative {
    width: 180px;
    height: 180px;
  }
  
  .hero-decorative:before {
    width: 130px;
    height: 130px;
  }
  
  /* Card heights for consistency */
  .service-card {
    min-height: 320px;
  }
  
  .feature-card {
    min-height: 280px;
  }
  
  .team-card {
    min-height: 320px;
  }
  
  .review-card {
    min-height: 220px;
  }
  
  .case-card {
    min-height: 250px;
  }
  
  /* Gallery desktop */
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full hero decoratives */
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .hero-decorative:before {
    width: 150px;
    height: 150px;
  }
  
  /* Optimal card heights */
  .service-card {
    min-height: 350px;
  }
  
  .feature-card {
    min-height: 300px;
  }
  
  .team-card {
    min-height: 340px;
  }
  
  .review-card {
    min-height: 240px;
  }
  
  .case-card {
    min-height: 270px;
  }
  
  /* Gallery full size */
  .gallery-item img {
    height: 250px;
  }
}

/* Specific mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 2px solid var(--primary-blue);
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2870, 130, 180, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--primary-mint);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-decorative,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .review-card {
    break-inside: avoid;
    border: 1px solid #000;
    margin-bottom: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0066CC;
    --primary-mint: #006666;
    --primary-peach: #CC6600;
    --primary-lavender: #6600CC;
    --primary-cream: #996633;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .case-card,
  .price-card,
  .faq-card {
    border: 2px solid #000;
  }
}

/* Focus indicators for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
  }
} 