/**
 * A R Perfumes Lab — Responsive Zero-Defect Stylesheet
 * Covers 320px (iPhone SE), 375px, 414px, 768px (iPad), 1024px, 1440px, 4K
 */

/* ==========================================================================
   Small Mobile Devices (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --container-padding: 1.125rem;
  }

  .navbar {
    height: 68px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-emblem {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .scent-finder-widget {
    margin-top: -1.5rem;
    padding: 1.25rem;
  }

  .finder-steps-indicator {
    gap: 0.75rem;
  }

  .step-label {
    display: none;
  }

  .store-destination-grid {
    grid-template-columns: 1fr;
  }

  .store-map-panel {
    min-height: 280px;
  }

  .trust-banner {
    padding: 1.5rem;
  }

  .big-rating-number {
    font-size: 3.25rem;
  }

  .mobile-action-bar {
    display: block;
  }

  /* Add padding to footer to ensure content is not hidden behind mobile action bar */
  .site-footer {
    padding-bottom: calc(var(--space-3xl) + 60px);
  }
}

/* ==========================================================================
   Tablets & Mobile (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .nav-menu,
  .nav-call-btn {
    display: none;
  }

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

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

  .hero-visual-wrapper {
    order: -1;
  }

  .hero-bottle-stage {
    max-width: 320px;
    margin: 0 auto;
  }

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

  .mobile-action-bar {
    display: block;
  }

  .site-footer {
    padding-bottom: calc(var(--space-3xl) + 65px);
  }

  .scene-card {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* ==========================================================================
   Medium Tablets to Small Laptops (769px to 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 1rem;
  }

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

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

  .hero-grid {
    gap: 2rem;
  }
}

/* ==========================================================================
   Large Desktop Screens (>= 1440px)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-bottle-stage {
    max-width: 480px;
  }
}

/* ==========================================================================
   Touch Optimization & Safe Margins
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .mobile-action-btn,
  .category-card,
  .finder-option-btn {
    -webkit-tap-highlight-color: transparent;
  }

  .btn {
    min-height: 48px;
  }
}
