/* Responsive Styles for Kobra Ionizers */

/* Base Responsive Variables */
:root {
  --container-max-width: 1200px;
  --container-padding: 20px;
  --grid-gap: 2rem;
  --mobile-nav-height: 70px;
}

/* General Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Extra Large Devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1320px;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
  :root {
    --container-max-width: 1140px;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 4rem;
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (tablets, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  :root {
    --container-max-width: 960px;
    --container-padding: 15px;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  /* Stats Section */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Technology Section */
  .tech-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tech-visual {
    order: -1;
  }
}

/* Small Devices (landscape phones, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --container-max-width: 720px;
    --container-padding: 15px;
    --grid-gap: 1.5rem;
  }

  /* Navigation */
  .nav-brand img {
    height: 35px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--mobile-nav-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: block;
  }

  /* Hero Section */
  .hero-content {
    padding: 0 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* Stats Section */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra Small Devices (phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  :root {
    --container-max-width: 540px;
    --container-padding: 15px;
    --grid-gap: 1rem;
  }

  /* Navigation */
  .nav-brand img {
    height: 30px;
  }

  .nav-cta {
    display: none;
  }

  /* Hero Section */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Stats Section */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Testimonials */
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Devices (phones, less than 576px) */
@media (max-width: 575px) {
  :root {
    --container-padding: 10px;
    --grid-gap: 1rem;
  }

  /* Navigation */
  .nav-brand img {
    height: 25px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-cta,
  .nav-phone {
    display: none;
  }

  /* Hero Section */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  /* Section Headers */
  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Stats Section */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  /* Product Section */
  .product-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Technology Section */
  .tech-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .tech-features li {
    justify-content: center;
  }

  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  /* CTA Section */
  .cta-content {
    padding: 2rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    padding: 0 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Landscape Mode Fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    /* max-height: 80vh; */
    /* overflow-y: auto; */
  }
}

/* Print Styles */
@media print {
  .header,
  .nav-cta,
  .hero-section,
  .cta-section,
  .footer {
    display: none;
  }

  .product-card,
  .benefit-card {
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }
}

/* High-DPI (Retina) Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section,
  .cta-section {
    background-image: url("../images/hero/hero-2x.jpg");
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ffffff;
    --background-color: #121212;
    --light-bg: #1e1e1e;
  }

  .header.scrolled {
    background-color: var(--bg-secondary);
  }

  .product-card,
  .benefit-card,
  .stat-item {
    background-color: #17a2b830;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .testimonial-slide {
    background-color: var(--border-color-light);
  }
}
