/* ========================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   Modular Pop-up Retail Booth Manufacturer
   ======================================== */

/* Prefers Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {

  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {

  
  /* Removed custom grid styles to preserve Bootstrap 5 grid system */
  
}

/* Medium Screens (992px and up) */
@media (min-width: 992px) {

  .hero-content h1 {
    font-size: 3rem;
  }
  
  /* Removed custom grid styles to preserve Bootstrap 5 grid system */
  
}

/* Small Screens (768px and up) */
@media (min-width: 768px) {

  
  .hero {
    text-align: left;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .footer {
    text-align: left;
  }

  
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

/* Extra Small Screens (576px and up) */
@media (min-width: 576px) {

  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Removed custom grid styles to preserve Bootstrap 5 grid system */
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
}

/* Mobile Screens (575px and below) */
@media (max-width: 575px) {

  
  /* Typography Adjustments */
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  /* Section Padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Header */
  .header {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 200px;
}
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Cards and Items */
  .service-item,
  .team-member,
  .priceplan-item,
  .blog-item,
  .feature-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-item img,
  .team-member img {
    width: 60px;
    height: 60px;
  }
  
  .service-price,
  .priceplan-price {
    font-size: 2rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.5rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Removed container override to preserve Bootstrap grid */
  
  .footer h5 {
    margin-top: 2rem;
  }
  
  .footer h5:first-child {
    margin-top: 0;
  }
  
  .footer-policies {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .footer-policies a {
    display: block;
    margin: 0.5rem 0;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Reviews */
  .review-item {
    padding: 1.5rem;
  }
  
  .review-item::before {
    font-size: 3rem;
  }
  
  /* Contact Info */
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-info-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Blog */
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-item img {
    height: 150px;
  }
  
  /* Removed spacing utilities that conflict with Bootstrap 5 */
}

/* Ultra Small Screens (360px and below) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 1.25rem;
  }
  
  .service-item,
  .team-member,
  .priceplan-item,
  .blog-item,
  .feature-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .service-price,
  .priceplan-price {
    font-size: 1.5rem;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-item img,
  .team-member img,
  .gallery-item img,
  .blog-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (respects system preferences) */

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .navbar,
  .contact-form {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    margin: 0;
    padding: 1rem 0;
  }
  
  .hero {
    min-height: auto;
    background: none;
  }
  
  .hero::before {
    display: none;
  }
  
  .service-item,
  .team-member,
  .priceplan-item,
  .blog-item,
  .feature-item {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .gallery-item {
    break-inside: avoid;
  }
  
  .contact-info {
    display: block;
  }
  
  .contact-info-item {
    margin-bottom: 0.5rem;
  }
  
  .footer-policies {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: no-preference) {
  .animate-fade-in {
    animation: fadeIn 0.8s ease-out;
  }
  
  .service-item:hover,
  .team-member:hover,
  .priceplan-item:hover,
  .blog-item:hover,
  .feature-item:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
  }
  
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Container Queries Support (Future Enhancement) */
@supports (container-type: inline-size) {
  .services-grid,
  .team-grid,
  .priceplan-grid,
  .blog-grid,
  .gallery-grid,
  .about-features {
    container-type: inline-size;
  }
}

/* Viewport Height Fixes for Mobile Browsers */
@supports (-webkit-appearance: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
} 