/* Mobile First Responsive Design */

/* Extra Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .header .container {
    flex-direction: column;
    gap: 20px;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .navigation {
    padding: 15px 20px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 16px;
    line-height: 24px;
  }

  .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 20px 15px;
  }

  .stat-label {
    font-size: 16px;
    line-height: 24px;
  }

  .stat-number {
    font-size: 32px;
    line-height: 40px;
  }

  .channels-images {
    flex-direction: column;
    align-items: center;
  }

  .channel-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-image {
    width: 45%;
    height: auto;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  .header .container {
    padding: 0 30px;
  }

  .navigation {
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

/* Ultra wide screens */
@media only screen and (min-width: 1920px) {
  .container {
    max-width: 1920px;
  }
}

/* Landscape orientation adjustments */
@media only screen and (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: auto;
    padding-top: 45px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 44px;
  }

  .hero-features {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .feature-card {
    font-size: 18px;
    line-height: 24px;
    padding: 10px 20px;
  }
}

/* High DPI displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi) {

  .logo img,
  .footer-logo,
  .social-icons img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {

  .header,
  .footer,
  .lets-talk-btn,
  .submit-btn,
  .product-page-btn {
    display: none;
  }

  .hero,
  .bestseller,
  .branches,
  .join-us,
  .contact {
    page-break-inside: avoid;
    margin: 20px 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  .products-slider,
  .branches-slider {
    animation: none;
  }

  .nav-link,
  .btn,
  .product-page-btn,
  .lets-talk-btn,
  .submit-btn,
  .social-icons img {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

  /* Keep original colors as the design is specifically branded */
  body {
    background-color: #F1DEC0;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.submit-btn:focus,
.lets-talk-btn:focus,
.product-page-btn:focus {
  outline: 2px solid #FF7A00;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .nav-link,
  .section-title,
  .hero-title,
  .contact-title {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  }

  .btn,
  .product-page-btn,
  .lets-talk-btn,
  .submit-btn {
    border: 2px solid currentColor;
  }
}