/* ===== Tablet (768px - 991px) ===== */
@media (max-width: 991px) {
  .hero-title {
    letter-spacing: 0.15em;
  }

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

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

  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .category-card:nth-child(even) {
    margin-top: 40px;
  }

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

  .knowledge-head p {
    max-width: 32em;
  }

  .knowledge-row {
    grid-template-columns: 40px minmax(140px, 5fr) 8fr 24px;
    gap: 20px;
  }
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  /* Hero keeps the full-bleed poster composition; the vertical crop
     of the photo favours the shelf-and-counter zone. */
  .hero {
    min-height: 560px;
  }

  .hero-frame {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 40px;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 58px);
    letter-spacing: 0.14em;
  }

  .hero-tagline {
    font-size: 13px;
    letter-spacing: 0.32em;
    padding-inline-start: 14px;
  }

  .hero-media img {
    object-position: 44% 50%;
  }

  /* The photo's lower zone is pale floor at this crop — deepen the
     bottom scrim so the support copy keeps its contrast. The paper veil
     for the transparent navbar stays on top. */
  .hero-media::after {
    background:
      linear-gradient(to bottom, var(--hero-veil) 0%, var(--hero-veil-soft) var(--nav-height), transparent calc(var(--nav-height) * 2 + 40px)),
      linear-gradient(to top, rgba(20, 39, 28, 0.92) 0%, rgba(20, 39, 28, 0.62) 34%, transparent 66%),
      linear-gradient(to right, var(--hero-scrim-left) 0%, var(--hero-scrim-mid) 34%, transparent 62%);
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 26px;
  }

  .hero-actions {
    gap: 20px;
  }

  /* Section rhythm tightens on mobile */
  .knowledge {
    padding: 72px 0 56px;
  }

  .categories {
    padding: 64px 0 96px;
  }

  .featured {
    padding: 56px 0 80px;
  }

  /* Knowledge index: numeral + title + arrow on one line, description below */
  .knowledge-grid {
    gap: 32px;
  }

  .knowledge-row {
    grid-template-columns: 32px 1fr 24px;
    gap: 8px 14px;
    padding: 26px 2px;
  }

  .knowledge-row h3 {
    font-size: 22px;
    grid-column: 2;
  }

  .knowledge-row i {
    grid-column: 3;
    grid-row: 1;
  }

  .knowledge-row p {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .categories-grid,
  .products-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .category-card:nth-child(even) {
    margin-top: 26px;
  }

  .story-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Prevention stacks: photo stays full-bleed on top, text below */
  .prevention-grid {
    grid-template-columns: 1fr;
  }

  .prevention-img {
    min-height: 0;
    height: 300px;
  }

  .prevention-text {
    max-width: none;
    padding: 52px var(--container-pad) 64px;
  }

  .story-img {
    order: -1;
  }

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

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

  .page-hero {
    padding: 56px 0 40px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 26px;
  }
}

/* ===== Small Mobile (< 480px) ===== */
@media (max-width: 479px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .category-card h3,
  .product-info h3 {
    font-size: 15px;
  }

  .price-current {
    font-size: 16px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .brand {
    font-size: 19px;
  }

  .coming-soon {
    padding: 88px 0;
  }

  .coming-soon h1 {
    font-size: 26px;
  }
}
