/* AR Interior Décor Catalog - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.6rem;
    --font-size-h2: 1.4rem;
    --font-size-h3: 1.2rem;
    --font-size-brand: 1.2rem;
    --section-padding: 2rem 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section Mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }

  /* Cards Mobile */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }

  .service-card,
  .case-card,
  .blog-card {
    margin-bottom: 2rem;
  }

  /* Service Images Mobile */
  .service-image,
  .case-image,
  .blog-image {
    height: 180px;
  }

  /* Team Photos Mobile */
  .team-photo {
    height: 200px;
  }

  /* Price Cards Mobile */
  .price-amount {
    font-size: 2.2rem;
  }

  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }

  /* Gallery Mobile */
  .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }

  /* Process Steps Mobile */
  .process-step {
    padding: 1.5rem 0.5rem;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* FAQ Mobile */
  .faq-card {
    padding: 1.25rem;
  }

  /* Footer Mobile */
  #footer {
    text-align: center;
  }

  #footer .col-md-3,
  #footer .col-md-4 {
    margin-bottom: 2rem;
  }

  /* No animations on mobile for reduced motion */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --section-padding: 3rem 0;
  }

  /* Hero Section Small */
  #hero {
    min-height: 85vh;
  }

  /* Service Images Small */
  .service-image,
  .case-image,
  .blog-image {
    height: 190px;
  }

  /* Team Photos Small */
  .team-photo {
    height: 220px;
  }

  /* Gallery Small */
  .gallery-item {
    height: 220px;
  }

  /* Contact Form Small */
  .contact-form {
    padding: 2.25rem 2rem;
  }

  /* Reduced animations on small screens */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }

  .price-card:hover {
    transform: translateY(-5px);
  }

  .gallery-item:hover {
    transform: scale(1.02);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  /* Hero Section Medium */
  #hero {
    min-height: 90vh;
  }

  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }

  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }

  /* Cards Medium */
  .service-image,
  .case-image,
  .blog-image {
    height: 200px;
  }

  .team-photo {
    height: 240px;
  }

  .gallery-item {
    height: 240px;
  }

  /* Contact Form Medium */
  .contact-form {
    padding: 2.5rem;
  }

  /* Price Cards Medium */
  .price-card.featured {
    transform: scale(1.03);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section Large */
  #hero {
    min-height: 95vh;
  }

  .hero-shape-1 {
    width: 280px;
    height: 280px;
  }

  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }

  /* Service Cards Large */
  .service-image,
  .case-image,
  .blog-image {
    height: 200px;
  }

  .team-photo {
    height: 250px;
  }

  .gallery-item {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full size as defined in main.css */
  #hero {
    min-height: 100vh;
  }

  .hero-shape-1 {
    width: 300px;
    height: 300px;
  }

  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-shape-1 {
    width: 350px;
    height: 350px;
  }

  .hero-shape-2 {
    width: 250px;
    height: 250px;
  }

  .service-image,
  .case-image,
  .blog-image {
    height: 220px;
  }

  .team-photo {
    height: 260px;
  }

  .gallery-item {
    height: 260px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1rem 0;
    padding-top: 250px;
}

  :root {
    --section-padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-icon,
  .process-number {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .hero-shape-1,
  .hero-shape-2,
  .navbar,
  #footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    overflow-x: hidden;
}

  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card,
  .contact-form {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #5a7a4d;
    --primary-blush: #d4a394;
    --primary-lavender: #9966cc;
    --primary-dusty: #a67c52;
    --sage-dark: #4a6a3d;
    --cream-light: #ffffff;
  }

  #header {
    background: #000066 !important;
  }

  #header::before {
    display: none;
  }

  .navbar-brand, .navbar-nav .nav-link {
    color: #ffffff !important;
    text-shadow: 0 0 2px #000000;
  }

  .navbar-nav .nav-link:hover {
    color: #99ccff !important;
    text-decoration: underline;
  }

  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card,
  .contact-form {
    border: 2px solid #000000 !important;
  }
  
  .contact-form {
    background: #ffffff !important;
  }
  
  .contact-form h3 {
    color: #000000 !important;
  }
  
  .form-control {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
  }
  
  .form-check-label {
    color: #000000 !important;
    font-weight: bold !important;
  }
  
  .form-check-input {
    border: 2px solid #000000 !important;
  }
  
  .form-check-input:checked {
    background-color: #000066 !important;
  }
  
  ::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
  }
  
  .btn-primary {
    background: #000066 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
  }
  
  .contact-info {
    background: #000066 !important;
    border: 2px solid #ffffff !important;
  }
}

/* Dark mode support (if preferred) */