/* Jubilee mobile layer v1 — hamburger menu + phone/tablet tuning for every page. */

/* ---------- hamburger button (hidden on desktop) ---------- */
.jb-burger{display:none;width:48px;height:48px;padding:0;border:1px solid #0a0a0a;background:#fff;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:6px;-webkit-tap-highlight-color:transparent}
.jb-burger span{display:block;width:22px;height:2px;background:#0a0a0a;transition:transform .3s ease,opacity .2s ease}
.jb-burger[aria-expanded="true"]{background:#0a0a0a;border-color:#0a0a0a}
.jb-burger[aria-expanded="true"] span{background:#EEFF00}
.jb-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.jb-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.jb-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* ---------- drawer ---------- */
.jb-drawer{position:fixed;left:0;right:0;bottom:0;top:var(--jb-hdr,80px);z-index:40;background:#0a0a0a;color:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease}
.jb-drawer[hidden]{display:none}
.jb-drawer.is-open{opacity:1;transform:none}
.jb-drawer-in{max-width:720px;margin:0 auto;padding:20px 20px calc(32px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:28px;min-height:100%}
.jb-drawer-main{display:flex;flex-direction:column}
.jb-drawer-main a{font-family:"HN Cond","HN Display","Helvetica Neue",Helvetica,sans-serif;font-weight:900;text-transform:uppercase;letter-spacing:-.01em;line-height:1;font-size:clamp(34px,10vw,52px);color:#fff;text-decoration:none;padding:12px 0;border-bottom:1px solid #2a2a2a;opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .35s ease,color .2s ease}
.jb-drawer.is-open .jb-drawer-main a{opacity:1;transform:none}
.jb-drawer-main a:hover,.jb-drawer-main a:active{color:#EEFF00}
.jb-drawer-foot{display:flex;flex-direction:column;gap:4px;margin-top:auto}
.jb-drawer-foot a{color:#bdbdb8;text-decoration:none;font-size:16px;padding:12px 0}
.jb-drawer-foot a.jb-drawer-cta{background:#EEFF00;color:#0a0a0a;font-weight:500;font-size:17px;padding:18px 20px;text-align:center;margin-bottom:8px}
html.jb-menu-open,html.jb-menu-open body{overflow:hidden}

/* ---------- image sizing fix (all widths) ---------- */
.work img,.jb-hero-img{height:auto!important}

/* ---------- phones & small tablets ---------- */
@media (max-width:820px){
  .jb-burger{display:inline-flex}
  .nav-links{display:none!important}
  header > div{padding:10px 16px!important;gap:10px!important;flex-wrap:nowrap!important}
  header img[alt="Jubilee Digital Studio"]{height:42px!important}
  .jb-actions{margin-left:auto}
  .jb-apply{padding:13px 14px!important;font-size:13px!important;white-space:nowrap;min-height:48px;display:inline-flex!important;align-items:center}

  /* type scale */
  body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  h1.disp,.hero-h{font-size:clamp(42px,12.5vw,60px)!important;line-height:.9!important}
  h2.disp,.sec-h{font-size:clamp(34px,10vw,48px)!important}
  p{overflow-wrap:break-word}

  /* side gutters */
  section > div,footer > div,main > section > div{padding-left:20px!important;padding-right:20px!important}

  /* forms: 16px stops iOS zoom, bigger targets */
  input,select,textarea{font-size:16px!important}
  input:not([type=checkbox]):not([type=radio]),select{min-height:48px}
  button,.opt{min-height:48px}

  /* tap targets */
  footer a{display:inline-block;padding:9px 0;min-height:40px}
  details summary{padding:6px 0;min-height:44px}
  .rel a,.card{min-height:48px}

  /* SEO page layouts */
  .stats{grid-template-columns:1fr 1fr!important}
  .stats div{border-right:1px solid #0a0a0a!important;border-bottom:1px solid #0a0a0a}
  .stats div:nth-child(2n){border-right:0!important}
  .jb-hero-img{aspect-ratio:4/3!important;max-height:52vh}
  .steps{grid-template-columns:1fr!important}
  .work{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .reviews{grid-template-columns:1fr!important}

  /* announcement bar */
  a[href$="#work"][style*="display: block"]{font-size:12px!important;padding:9px 14px!important}
}

@media (max-width:380px){
  .jb-apply{font-size:12px!important;padding:12px 10px!important}
  header img[alt="Jubilee Digital Studio"]{height:36px!important}
}

@media (prefers-reduced-motion:reduce){
  .jb-drawer,.jb-drawer-main a,.jb-burger span{transition:none!important}
}
