/* ============================================================
   DARTEE GOLF, global responsive layer (web + mobile)
   Included on every primary page alongside nav-mobile.js, which
   injects the hamburger + slide-in menu on phones.
   ============================================================ */

html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; }

/* hamburger hidden on desktop */
.navtoggle { display: none; }
.mobmenu { display: none; }

@media (max-width: 768px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .announce { font-size: 11px; letter-spacing: .01em; }

  /* header: hamburger (left) · logo (center) · cart (right) */
  .header__bar { position: relative; height: 58px; justify-content: space-between; }
  .navtoggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: -8px; color: var(--green-900); background: none; border: none; padding: 0; }
  .navtoggle svg { width: 24px; height: 24px; }
  .header .nav { display: none !important; }
  .header .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .header .logo__img { height: 40px; }
  .header__actions { gap: 0; }
  .header__actions .icon-btn[aria-label="Search"] { display: none; }

  /* slide-in menu */
  .mobmenu { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
  .mobmenu.open { pointer-events: auto; }
  .mobmenu__scrim { position: absolute; inset: 0; background: rgba(10,30,26,.5); opacity: 0; transition: opacity .3s ease; }
  .mobmenu.open .mobmenu__scrim { opacity: 1; }
  .mobmenu__panel { position: absolute; top: 0; left: 0; height: 100%; width: 82vw; max-width: 360px; background: var(--cream-50); box-shadow: 16px 0 50px rgba(0,0,0,.24); transform: translateX(-100%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; display: flex; flex-direction: column; padding: 18px 22px 26px; box-sizing: border-box; overflow-y: auto; }
  .mobmenu.open .mobmenu__panel { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .mobmenu__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .mobmenu__logo { height: 30px; }
  .mobmenu__x { font-size: 30px; line-height: 1; color: var(--ink); background: none; border: none; width: 40px; height: 40px; }
  .mobmenu__group { font-family: var(--ff-sans); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--gold); padding: 16px 0 4px; }
  .mobmenu__nav { display: flex; flex-direction: column; }
  .mobmenu__nav a { font-family: var(--ff-display); font-size: 21px; letter-spacing: .01em; color: var(--green-900); padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
  .mobmenu__nav a.soon { color: var(--ink-soft); }
  .mobmenu__cta { margin-top: 18px; text-transform: none; }
  .mobmenu__foot { margin-top: 14px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

  /* floating cart hidden, header cart + auto-open drawer cover it */
  .cartfab { display: none !important; }
  .cartdrawer__panel { width: 92vw; max-width: 420px; }

  /* generous tap targets */
  .btn { min-height: 48px; }

  /* founder story, show the WHOLE founders photo on mobile (no crop) */
  .story__media, .story__media .ph--filled { height: auto !important; aspect-ratio: auto !important; }
  .story__media .shot { position: static !important; height: auto !important; width: 100% !important; object-fit: contain !important; }
}
