/* ═══════════════════════════════════════════════════════════
   Shared mobile polish. Loaded after each page's own stylesheet.
   Phones: comfortable thumb targets, no iOS zoom on form fields,
   and nothing allowed to push the page wider than the screen.
═══════════════════════════════════════════════════════════ */
[hidden]{ display:none !important; }

/* The 3D "tilt in" entrance makes full-width cards look wider than the screen until they
   reveal, which lets the page scroll sideways on phones and tablets. Use a plain fade-up there. */
@media (max-width:1024px){
  .reveal-3d{ transform:translateY(28px); }
  .reveal-3d.visible{ transform:none; }
}

@media (max-width:768px){
  /* iOS Safari zooms the whole page when a field under 16px gets focus */
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  select, textarea{ font-size:16px !important; }

  /* thumb-sized targets (44px is the usual minimum) */
  .nav-menu-btn{ min-height:44px; }

  /* logo on one line, and "Close" sits beside the X instead of under it */
  nav{ padding-top:8px; padding-bottom:8px; }
  .nav-logo{ white-space:nowrap; font-size:1.15rem; padding:12px 0; }
  .nav-menu-btn .nmb-close{ right:auto; left:44px; }
  .btn-ghost{ padding-top:13px; padding-bottom:13px; }
  .portfolio-link{ display:inline-block; padding:16px 0 12px; }
  .care-opt-row{ min-height:44px; }
  .tap-link{ padding-top:16px !important; padding-bottom:14px !important; }
  .tap-btn{ padding-top:16px !important; padding-bottom:16px !important; }
  .ft-link{ display:inline-block; padding:14px 6px !important; }

  /* long words and emails wrap instead of widening the page */
  p, li, label, .contact-item-text, .reach-text{ overflow-wrap:break-word; }
  img, video, svg{ max-width:100%; }
}

@media (max-width:350px){
  .nav-logo{ font-size:1rem; }
}
