/* Furniture Assembly Service - Responsive CSS */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.26rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 1.84rem;
  }
  
  .hero-content h3 {
    font-size: 1.30rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.90rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  .price-value {
    font-size: 2.60rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2rem;
  }
  
  .hero-content h3 {
    font-size: 1.59rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-card img {
    width: 130px;
    height: 130px;
  }
  
  .price-value {
    font-size: 2.79rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.34rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2.28rem;
  }
  
  .service-card img {
    height: 190px;
  }
  
  .team-card img {
    width: 140px;
    height: 140px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title h2 {
    font-size: 2.58rem;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.57rem;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .service-card img {
    height: 220px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2rem;
  }
  
  .hero-content h3 {
    font-size: 1.31rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-card img,
  .team-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .faq-question:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Note: Not implementing dark mode as per requirements */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .section,
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .gallery-item,
  .btn,
  .navbar-nav .nav-link {
    transition: none;
    animation: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero,
  .section {
    background: white !important;
  }
  
  .hero-content,
  .section-title h2,
  .section-title h3,
  .section-title p {
    color: black !important;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-item,
  .contact-form {
    background: white !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  .service-card img,
  .team-card img,
  .gallery-item img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .faq-question {
    background: #f0f0f0 !important;
    color: black !important;
  }
  
  .contact-bg {
    background: white !important;
    color: black !important;
  }
  
  .contact-info {
    color: black !important;
  }
  
  .contact-info h4 {
    color: black !important;
  }
  
  .contact-info i {
    color: black !important;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* Specific fixes for Bootstrap components */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0,0,0,0.9);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Grid System Enhancements - Fixed for Bootstrap 5 compatibility */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Form Responsiveness */
@media (max-width: 767.98px) {
  .contact-form .form-control {
    margin-bottom: 1rem;
  }
  
  .contact-form .form-check {
    margin-bottom: 1rem;
  }
}

/* Image Optimization */
@media (max-width: 767.98px) {
  .hero-image {
    margin-top: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Typography Adjustments */
@media (max-width: 991.98px) {
  .feature-card h4,
  .service-card h4,
  .team-card h4 {
    font-size: 1.27rem;
  }
  
  .price-card h4 {
    font-size: 1.52rem;
  }
  
  .review-card p {
    font-size: 0.97rem;
  }
}

/* Spacing Adjustments */
@media (max-width: 767.98px) {
  .section-title {
    margin-bottom: 2rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    margin-top: 2rem;
  }
}

/* Animation Performance */
@media (max-width: 768px) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover {
    transform: translateY(-5px);
  }
}

/* Accessibility Improvements */
@media (forced-colors: active) {
  .btn-primary,
  .btn-secondary {
    border: 2px solid ButtonText;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    border: 1px solid ButtonText;
  }
} 