/* ==========================================================================
   ClearMedUk - Dedicated Responsive Stylesheet (7 Breakpoints)
   --------------------------------------------------------------------------
   1. Large Desktop (min-width: 1440px)
   2. Standard Desktop (min-width: 1200px) and (max-width: 1439px)
   3. Laptop / Compact Desktop (min-width: 1025px) and (max-width: 1199px)
   4. Tablet Landscape (min-width: 769px) and (max-width: 1024px)
   5. Tablet Portrait (min-width: 601px) and (max-width: 768px)
   6. Mobile Landscape (min-width: 481px) and (max-width: 600px), plus landscape phones
   7. Mobile Portrait (320px - 480px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Desktop (min-width: 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .hero-image-card img {
    height: 420px;
  }

  .product-grid,
  .team-grid,
  .reviews-grid {
    gap: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. Standard Desktop (min-width: 1200px) and (max-width: 1439px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container {
    max-width: 1180px;
  }

  .hero-grid {
    gap: 3rem;
  }

  .hero-image-card img {
    height: 380px;
  }
}

/* --------------------------------------------------------------------------
   3. Laptop / Compact Desktop (min-width: 1025px) and (max-width: 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .container {
    max-width: 1000px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .main-nav {
    gap: 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-image-card img {
    height: 340px;
  }

  .product-grid,
  .team-grid,
  .reviews-grid,
  .steps-grid {
    gap: 1.5rem;
  }

  .product-detail-grid {
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. Tablet Landscape (min-width: 769px) and (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-image-card img {
    height: 320px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-gallery-box {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   5. Tablet Portrait (min-width: 601px) and (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 601px) and (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-cta-btn { display: none; }
  .header-tools { margin-left: auto; }

  .header-inner {
    height: 5.25rem !important;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-image-card img {
    height: 320px;
  }

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

  .product-grid,
  .team-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .calc-grid,
  .product-detail-grid,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-governance {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. Mobile Landscape (min-width: 481px) and (max-width: 600px), plus landscape phones
   -------------------------------------------------------------------------- */
@media (min-width: 481px) and (max-width: 600px), (max-height: 520px) and (orientation: landscape) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-cta-btn { display: none; }
  .header-tools { margin-left: auto; }

  .header-inner {
    height: 5rem !important;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-image-card img {
    height: 250px;
  }

  .floating-pill {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }

  .steps-grid,
  .product-grid,
  .team-grid,
  .reviews-grid,
  .quick-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .calc-grid,
  .product-detail-grid,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-grid,
  .footer-governance {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .theme-customizer-drawer {
    width: 320px;
  }

  .theme-customizer-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   7. Mobile Portrait (320px - 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-cta-btn { display: none; }
  .header-tools { margin-left: auto; gap: 0.4rem; }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 5rem !important;
  }

  .brand-logo svg, .brand-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: min(210px, 54vw) !important;
  }

  .announcement-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0.4rem 0;
  }

  .announcement-phone {
    display: none;
  }

  .section-padding {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .hero-section {
    padding: 2.75rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.22;
  }

  .hero-desc {
    font-size: 0.875rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.25rem;
    text-align: center;
  }

  .trust-stat-item strong {
    font-size: 1.15rem;
  }

  .hero-visual {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-image-card {
    padding: 0.75rem;
  }

  .hero-image-card img {
    height: 220px;
  }

  .floating-pill {
    display: none;
  }

  /* Value strip — marquee handled in cards.css (mobile) */
  .value-strip-inner {
    /* keep legacy rule from stacking into 4 rows */
    flex-direction: row;
    align-items: center;
  }

  /* Cards & Grids */
  .steps-grid,
  .product-grid,
  .team-grid,
  .reviews-grid,
  .quick-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .step-card {
    padding: 1.5rem 1.25rem;
  }

  /* Calculator */
  .calc-container {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-xl);
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calc-inputs-card,
  .calc-results-card {
    padding: 1.25rem 1rem;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .calc-insights-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .bmi-value-large {
    font-size: 2.15rem;
  }

  /* Product Details */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .product-gallery-box {
    padding: 1.5rem 1rem;
  }

  .product-gallery-box img {
    max-height: 260px;
  }

  .quantity-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .quantity-row .btn {
    width: 100%;
  }

  /* Table wrapper */
  .table-wrapper {
    border-radius: var(--radius-lg);
  }

  .comparison-table th, .comparison-table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Contact page */
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.125rem;
  }

  /* Footer */
  .footer-top {
    padding: 2.75rem 0 2rem;
  }

  .footer-grid,
  .footer-governance {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Toast notification on mobile */
  .toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    width: 100%;
  }

  /* Theme Customizer on small mobile */
  .theme-customizer-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .theme-customizer-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }

  .preset-theme-grid {
    grid-template-columns: 1fr;
  }
}
