/* =========================================================
   mobile.css  –  phone / tablet fixes for EVERY page
   Applies only on screens 820px wide or narrower.
   Load it LAST on every page.
   ========================================================= */
@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* header and its menu button above all page content */
  .navbar {
    z-index: 1000;
  }

  /* ---------- TOP-RIGHT HANGING LEAF (all pages) ----------
     Small, pinned to the corner, never covers the text.
     The menu button sits on top of it.                       */
  html body .leaf--top-right,
  html body .leaf--hero-top,
  html body .leaf--tr,
  html body .leaf-tr {
    position: absolute !important;
    top: -5.6vw !important; /* was 0: pulls the leaf up so it touches the top edge */
    right: -2.6vw !important; /* was 0: pulls the leaf right so it touches the side edge */
    left: auto !important;
    bottom: auto !important;
    width: 50vw !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 6 !important;
    pointer-events: none !important;
  }

  /* ---------- HOME (index.html + style.css) ---------- */
  .hero .leaf--bottom-left {
    display: none;
  }

  /* decorative layers never block taps */
  .hero__fade,
  .hero__band,
  .badge,
  .products,
  .prod,
  .sym-icon,
  .sym-label {
    pointer-events: none;
  }

  /* text group becomes a normal top-to-bottom column, so nothing is cut off */
  .hero__content {
    inset: calc(var(--m) * 92) calc(var(--m) * 20) auto calc(var(--m) * 20);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .eyebrow,
  .hero .title,
  .hero .divider,
  .hero .desc,
  .hero .btn-explore {
    position: static;
    left: auto;
    top: auto;
  }
  .hero .eyebrow {
    font-size: calc(var(--m) * 10.5);
    line-height: calc(var(--m) * 14);
    letter-spacing: 0.14em;
    white-space: normal;
  }
  .hero .title {
    margin-top: calc(var(--m) * 10);
    font-size: calc(var(--m) * 27);
    line-height: 1.12;
    white-space: normal;
  }
  .hero .title__line2 {
    padding-left: 0;
  }
  .hero .divider {
    margin-top: calc(var(--m) * 16);
  }
  .hero .desc {
    margin-top: calc(var(--m) * 16);
    max-width: 100%;
    font-size: calc(var(--m) * 12.5);
    line-height: 1.7;
    letter-spacing: 0.06em;
    white-space: normal;
  }
  .hero .btn-explore {
    position: relative;
    z-index: 20;
    margin-top: calc(var(--m) * 20);
    width: calc(var(--m) * 160);
    height: calc(var(--m) * 42);
    font-size: calc(var(--m) * 13);
  }
  .hero .badge {
    top: calc(var(--m) * 392);
  }

  /* ---------- COLLECTIONS (collections.html) ---------- */
  .card--cardamom {
    padding-bottom: calc(var(--m) * 230);
  }
  .card--cardamom .card__img {
    right: calc(var(--m) * -6);
    bottom: calc(var(--m) * -6);
    width: calc(var(--m) * 250);
  }
  .card--pepper .card__img {
    left: calc(var(--m) * -6);
    width: calc(var(--m) * 240);
  }

  /* ---------- OUR STORY (about.html) ---------- */
  /* leaf is placed against the whole hero, not the padded inner box */
  .about .s-hero .wrap {
    position: static;
  }
  .about .s-hero .wrap > *:not(.leaf) {
    position: relative !important;
    z-index: 2;
  }
  .about .hero__img {
    max-width: none;
    width: calc(100% + var(--m) * 44);
    margin: calc(var(--m) * 24) calc(var(--m) * -22) 0;
  }

  /* section headings above the side leaves */
  .about .heading-line,
  .about .pill--center {
    position: relative !important;
    z-index: 1;
  }
  .about .leaf-dl,
  .about .leaf-dr {
    height: calc(var(--m) * 64);
    top: calc(var(--m) * -40);
    z-index: 0;
  }
  .about .leaf-sl {
    height: calc(var(--m) * 56);
    left: calc(var(--m) * -18);
    top: calc(var(--m) * -30);
    z-index: 0;
  }
  .about .s-diff .heading-line h2,
  .about .s-sig .heading-line h2 {
    font-size: calc(var(--m) * 23);
    line-height: 1.2;
  }
  .about .sig h3 {
    font-size: calc(var(--m) * 17);
  }
}
