/**
 * Herbelyn Responsive Media Queries Stylesheet
 * Breakpoints: 1200px, 992px, 768px, 480px
 */

/* Large Laptops & Small Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 960px;
  }

  .hero-title {
    font-size: 30px;
  }

  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 24px;
  }
}

/* Medium Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  :root {
    --container-max-width: 720px;
  }

  .header-inner {
    height: 72px;
  }

  .main-navigation {
    display: none; /* Switch to Mobile Navigation Drawer */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    padding: 50px 0;
    overflow: hidden !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-content {
    margin: 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-actions {
    justify-content: center;
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 20px !important;
  }

  .hero-media-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .hero-image-frame {
    transform: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-image-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: var(--radius-md) !important;
    max-height: 380px !important;
    transform: none !important;
    padding: 10px !important;
    max-width: 100% !important;
  }

  .hero-image-frame img {
    height: auto !important;
    max-height: 360px !important;
    width: 100% !important;
    object-fit: contain !important;
    border-radius: var(--radius-sm) !important;
    display: block !important;
  }

  /* Completely hide disturbing hero badge overlay on mobile/tablet (992px down to 320px) */
  .hero-badge-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .products-grid:not(.home-products-slider) {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Portrait Tablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-max-width: 100%;
    --container-padding: 16px;
    --font-size-4xl: 24px;
    --font-size-3xl: 20px;
  }

  .announcement-bar p {
    font-size: 11px !important;
    flex-wrap: wrap !important;
    text-align: center;
    line-height: 1.4;
  }

  .hero-section {
    padding: 30px 0 40px 0 !important;
  }

  .hero-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .hero-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-pill-tag {
    margin-bottom: 12px !important;
  }

  .pill-badge {
    font-size: 10px !important;
    padding: 5px 10px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .products-grid:not(.home-products-slider),
  ul.products.herbelyn-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cta-banner-box {
    padding: 40px 20px;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding: 24px 0 32px 0 !important;
  }

  .hero-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .hero-description {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
  }

  .hero-image-frame img {
    height: auto !important;
    max-height: 260px !important;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .story-features {
    grid-template-columns: 1fr;
  }

  .header-cart-link span.cart-text {
    display: none;
  }

  .site-logo-link {
    font-size: 18px !important;
  }
}
