/* SENTYAL Mobile Fixes v1.0 — global typography + tap targets for narrow viewports.
   Loaded site-wide. Only activates at <= 768px. Preserves eyebrow/label design intent. */

@media (max-width: 768px) {
  /* === Body content readability === */
  /* Ensure paragraph text is readable */
  p, li, .section__sub, .trust-item__desc, .buy-col__body,
  .foot__col a, .foot__col p, .foot__tagline {
    font-size: 14px !important;
    line-height: 1.7;
  }
  
  /* Bump body copy under 14px */
  .pull__cite, .exh-detail, .strip-work__price, .location__addr {
    font-size: 13px !important;
  }
  
  /* === Tap targets — minimum 44x44 (Apple HIG) === */
  .btn, button[type="submit"], .nav__cta, button.nav__burger,
  input[type="submit"], a.btn, .btn-primary, .btn-secondary {
    min-height: 44px;
    padding: 12px 20px !important;
    font-size: 12px !important;  /* uppercase labels stay tight */
    letter-spacing: 0.18em;
  }
  
  /* Form inputs — easier to tap, no autozoom on iOS */
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], input[type="number"], textarea, select {
    font-size: 16px !important;  /* iOS prevents zoom-on-focus when >= 16px */
    min-height: 44px;
    padding: 12px 14px !important;
  }
  textarea { min-height: 80px; }
  
  /* === Mobile nav menu links — readable, big tap area === */
  .nav__mob a, .nav__mobile a, .mobile-menu a {
    font-size: 16px !important;
    padding: 14px 24px !important;
    line-height: 1.4;
    min-height: 48px;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
  }
  
  /* Burger button itself */
  .nav__burger {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  
  /* === Eyebrow text (intentional small caps) — leave at design size but bump min slightly === */
  .masthead__eyebrow, .section__eyebrow, .hero__eyebrow,
  .pull__mark, .section__rail span, .trust-item__label,
  .artist-card__medium, .strip-work__artist,
  .exh-date, .buy-col__label, .cta-slab__sub,
  .location__city, .location__link {
    font-size: 11px !important;  /* up from 10px */
  }
  
  /* === Footer column headers === */
  .foot__col h4 {
    font-size: 12px !important;
    margin-bottom: 12px;
  }
  
  /* === Issue bar / .issue thin line === */
  .issue { font-size: 11px !important; padding: 12px 16px !important; }
  
  /* === Headings — keep dramatic but not overwhelming === */
  h1, .h1 { font-size: clamp(2rem, 8vw, 2.75rem) !important; line-height: 1.1; }
  h2, .h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; line-height: 1.2; }
  h3, .h3 { font-size: clamp(1.15rem, 4.5vw, 1.4rem) !important; }
  
  /* === Anti-overflow fixes === */
  body, html { overflow-x: hidden; }
  img, picture, video { max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; }
  pre { white-space: pre-wrap; word-break: break-word; }
  
  /* Container max-widths shouldn't push beyond viewport */
  .container, .wrap, .inner, [class*="container"], [class*="wrap"] {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* === Section padding — tighter on mobile === */
  section, .section { padding-top: 48px !important; padding-bottom: 48px !important; }
}

/* Even narrower screens === */
@media (max-width: 480px) {
  h1, .h1 { font-size: 1.85rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  
  .btn, button[type="submit"], .nav__cta {
    width: 100%;
    text-align: center;
  }
  
  /* Stacked layouts at smallest width */
  .grid, [class*="-grid"], [class*="grid-"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* === Expanded mobile nav (added 2026-04-26) === */
@media (max-width: 768px) {
  .nav__mob__primary, .nav__mob__secondary, .nav__mob__cta { display: flex; flex-direction: column; }
  .nav__mob__primary a, .nav__mob__secondary a, .nav__mob__cta a {
    font-family: "Futura", "Century Gothic", sans-serif;
    font-size: 14px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 14px 0 !important;
    border-bottom: 1px solid #dcd7cc;
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav__mob__secondary a {
    font-size: 12px !important;
    color: #5a5a5a;
    padding: 12px 0 !important;
    min-height: 44px;
  }
  .nav__mob__primary { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid #FE5000; }
  .nav__mob__secondary { margin-bottom: 24px; }
  .nav__mob__cta { gap: 0; margin-top: auto; padding-top: 20px; border-top: 1px solid #dcd7cc; }
  .nav__mob__cta a {
    background: #1a1a1a; color: #fff !important;
    text-align: center; justify-content: center;
    padding: 14px !important; border: none; margin-bottom: 4px;
  }
  .nav__mob__primary-cta { background: #FE5000 !important; }
  .nav__mob.open {
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding-bottom: 80px !important;
  }
}
@media (max-width: 1100px) {
  .nav__links a:nth-child(n+5) { display: none; }
}

/* 2026-04-26: Hide artwork breadcrumb on small screens — prevents reading as second nav bar */
@media (max-width: 600px) {
  .crumb { display: none; }
}

/* === Nav drawer base (added 2026-04-26 — was previously inline on home only) === */
/* Burger hidden on desktop, visible at mobile width via existing @media block */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px; height: 16px;
  background: none; border: none; cursor: pointer;
  padding: 0; margin-left: 12px;
}
.nav__burger span { display: block; width: 100%; height: 2px; background: #1a1a1a; }

/* Drawer base — hidden by default, fixed-position when open */
.nav__mob {
  display: none;
  flex-direction: column;
  background: #f7f4ee;
  border-bottom: 2px solid #FE5000;
  padding: 24px;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.nav__mob.open { display: flex; }

/* Mobile width: show burger, hide desktop links */
@media (max-width: 640px) {
  .nav__burger { display: flex !important; }
  .nav__links, .nav__cta { display: none !important; }
  .nav { padding: 0 20px !important; height: 56px !important; }
  .nav__mob { top: 56px; max-height: calc(100vh - 56px); }
}

/* === Hard reset 2026-04-26 14:00Z — drawer hidden by default, wins specificity === */
.nav__mob:not(.open) { display: none !important; }
.nav__mob.open { display: flex !important; }
