/* Phone-first refinements. Same design, tuned for thumbs, small screens and speed.
   Loaded last so it wins over the section styles. */

/* respect the iPhone home bar / notch */
.quick-contact { margin-bottom: env(safe-area-inset-bottom); }

/* "Show all packs" button under the product grid (phones) */
.grid-more { grid-column: 1 / -1; display: grid; place-items: center; padding: 8px 0 4px; list-style: none; }
.grid-more .btn { width: 100%; max-width: 360px; }

@media (max-width: 820px) {
  /* faster, lighter scroll fade-ins */
  html.js .reveal { transform: translateY(14px); transition-duration: .55s; }
  html.js .reveal.in { transform: none; }

  /* less chrome: the bottom bar replaces these */
  .to-top, .scroll-cue { display: none !important; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* tighter sections */
  .intro, .collection, .about, .safety, .faq, .enquire, .brochure { padding: 72px 0; }
  .section-head { margin-bottom: 30px; }
  .h2 { font-size: clamp(32px, 9vw, 44px); }

  /* hero: buttons full width, easy to hit */
  .hero { padding: 104px 20px 60px; }
  .hero-title { margin-bottom: 22px; }
  .hero-lead { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero-actions .btn { padding: 16px 20px; font-size: 13px; }
  .hero-call { font-size: 13px; line-height: 1.6; }

  /* stats: 2 x 2 */
  .stats { gap: 22px 14px; margin-top: 26px; }

  /* product filters: compact, one swipeable row each */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 0 24px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 11px 15px; }
  .result-count { margin-bottom: 14px; }

  /* product popup → bottom sheet, WhatsApp button always visible */
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .modal[open] { animation: sheetUp .45s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
  .modal-grid { display: flex; flex-direction: column; }
  .modal-img { max-height: 34vh; min-height: 0; overflow: hidden; }
  .modal-img img { height: 34vh; object-fit: contain; background: #e9e5dd; }
  .modal-info { padding: 20px 20px 0; }
  .modal-info .h3 { font-size: 28px; }
  .m-line { margin-bottom: 10px; }
  .modal-info .body { font-size: 14px; margin-bottom: 10px; }
  .m-specs { margin: 6px 0 12px; }
  .m-specs div { padding: 10px 0; }
  .m-specs dd { font-size: 17px; }
  .m-actions {
    position: sticky; bottom: 0; z-index: 3; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    background: rgb(var(--bg2-rgb) / .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  }
  .m-actions .btn { padding: 15px 10px; font-size: 12px; }
  .m-spark { display: none; }
  .modal-nav { top: 17vh; width: 40px; height: 40px; }
  .modal-close { top: 10px; right: 10px; }

  /* brochure: smaller book, full-width buttons */
  .bro-grid { gap: 28px; }
  .book { width: min(220px, 62vw); }
  .bro-actions { flex-direction: column; }
  .bro-actions .btn { width: 100%; padding: 16px; }
  .trust { gap: 10px; margin-top: 28px; }

  /* founders: compact */
  .people { margin-top: 56px; }
  .person { padding: 22px 18px; gap: 16px; }
  .portrait { width: 140px; }

  /* safety: two per row, compact */
  .safety-grid { grid-template-columns: 1fr 1fr; }
  .safety-grid li { padding: 20px 16px; }
  .safety-grid h3 { font-size: 20px; margin: 10px 0 6px; }
  .safety-grid p { font-size: 13px; }

  /* FAQ */
  .faq-list summary { font-size: 19px; padding: 18px 36px 18px 0; }

  /* contact: big tap targets */
  .cc { padding: 16px; }
  .form { padding: 22px 18px; }
  /* 16px inputs stop iPhones zooming in on tap */
  .field input:not([type=radio]), .field textarea, .field select { font-size: 16px; }
  .seg span { padding: 11px 14px; }

  /* mobile menu: solid panel, big links */
  .nav-links { background: rgb(var(--bg-rgb) / 1); box-shadow: 0 30px 60px -30px var(--shadow); padding-bottom: 24px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* very small phones (e.g. iPhone SE 1st gen, 320 px) */
@media (max-width: 340px) {
  .safety-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 50px; }
}
