/* ==========================================================================
   AVO — breakpoint refinements.
   Mobile is redesigned, not shrunk.
   ========================================================================== */

/* ---------- Mobile 320–767 ---------- */
@media (max-width: 767px) {
  /* Artist card actions: three equal buttons in one row, booking CTA below. */
  .artist-card__actions {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    gap: 10px;
  }
  .artist-card__profile-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
    align-items: stretch;
  }
  .artist-card__profile-links .btn {
    width: 100% !important;
    height: 42px;
    min-height: 42px;
    min-width: 0 !important;
    padding: 8px 3px;
    font-size: clamp(7px, 2.25vw, 9px);
    letter-spacing: .06em;
    white-space: nowrap;
    justify-content: center;
  }
  .artist-card__book {
    width: min(100%, 300px) !important;
    min-height: 46px;
    margin: 0 auto;
    justify-content: center !important;
  }

  .section { padding: 84px 0; }
  .hero__content { padding-bottom: 120px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Roster swipes horizontally on small screens */
  .roster--swipe {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 48px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 16px;
    -webkit-overflow-scrolling: touch;
  }
  .roster--swipe > .artist-card { flex: 0 0 82vw; scroll-snap-align: center; }

  .modal__panel { border-left: 0; border-right: 0; border-bottom: 0; min-height: 92vh; }
  .step-nav .btn { flex: 1; justify-content: center; }
  .philosophy p { padding: 16px 0; }
  .panel { padding: 22px; }
  .perf-row { gap: 16px; }
  .footer-bottom { align-items: flex-start; }

  /* Touch targets */
  .btn { padding: 16px 24px; min-height: 48px; }
  .filters button { min-height: 42px; }
}

@media (max-width: 400px) {
  .h-xl { font-size: 14vw; }
  .btn { letter-spacing: 0.16em; font-size: 10px; }
}

/* ---------- Tablet 768–1023 ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .section { padding: 110px 0; }
  .roster { grid-template-columns: 1fr 1fr; gap: 36px; }
  .panels { flex-direction: column; height: auto; }
  .h-xl { font-size: 9vw; }
  .h-lg { font-size: 8vw; }
}

/* ---------- Laptop 1024–1439 ---------- */
@media (min-width: 1024px) and (max-width: 1439px) {
  .h-xl { font-size: 7.4vw; }
  .float-cta { right: 190px; }
}

/* ---------- Large desktop ---------- */
@media (min-width: 1440px) {
  .h-xl { font-size: 6.4vw; }
}

/* Never allow sideways scroll */
html, body { max-width: 100%; }

/* About AVO compact mobile spacing */
@media (max-width: 767px) {
  #about { padding-block: 56px 64px; }
  #about .section-label { margin-bottom: 24px; }
  #about .grid { gap: 28px; }
  #about .editorial__index { margin: 0; font-size: clamp(72px, 20vw, 120px); line-height: .76; }
  #about .editorial__drift { margin-top: 8px; }
  #about .editorial__drift span { padding: 3px 0; line-height: 1.08; }
}


/* ---------- Performance + mobile polish ---------- */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior-x: none;
}

img, video {
  max-width: 100%;
}

.btn, a, button, input, select, textarea {
  touch-action: manipulation;
}

@media (max-width: 767px) {
  /* Keep below-the-fold sections cheap to render until they enter the viewport. */
  .section, .site-footer, .marquee, .gold-divider {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
  }

  /* Avoid desktop-only effects consuming a frame on phones. */
  .cursor { display: none !important; }
  .hero__video {
    object-position: 50% 50%;
    transform: none !important;
  }

  .hero__content {
    padding-top: max(96px, env(safe-area-inset-top) + 72px);
    padding-bottom: max(84px, env(safe-area-inset-bottom) + 64px);
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .mobile-nav {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  /* Keep form fields readable and prevent iOS zoom. */
  input, select, textarea {
    font-size: 16px;
  }

  /* Avoid accidental 100vw overflow from decorative media. */
  .wrap, .grid, .artist-card, .stage, .stage__item, .footer-grid {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 32px, 1400px); }
  .section { padding-block: 56px 68px; }
  .section-label { margin-bottom: 20px; }
  .hero__lede { max-width: 34rem; }
  .artist-card__profile-links .btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
  }
}

@media (max-width: 380px) {
  .wrap { width: min(100% - 28px, 1400px); }
  .artist-card__profile-links .btn {
    font-size: 6.5px;
    letter-spacing: .015em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ======================================================================
   FINAL MOBILE PASS — AVO Talent
   Purpose: premium, compact, touch-friendly mobile layout at 375–767px.
   ====================================================================== */
@media (max-width: 767px) {
  :root {
    --gutter: clamp(16px, 5vw, 22px);
    --mobile-section-y: clamp(56px, 13vw, 78px);
  }

  /* One predictable viewport width and no accidental sideways movement. */
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  body { min-width: 0; }

  /* Header */
  .site-header { padding-top: env(safe-area-inset-top); }
  .nav { min-height: 58px; padding-block: 10px; }
  .nav__logo img { height: 31px; }
  .nav__toggle { min-height: 44px; padding: 10px 2px; }
  .mobile-nav {
    padding: calc(14px + env(safe-area-inset-top)) var(--gutter)
             max(20px, env(safe-area-inset-bottom));
  }
  .mobile-nav__links { margin-top: clamp(28px, 9vw, 46px); }
  .mobile-nav__links a { font-size: clamp(27px, 8.5vw, 40px); padding: 7px 0; }
  .mobile-nav .btn { width: 100%; min-height: 50px; }

  /* Hero */
  .hero { height: min(92svh, 860px); min-height: 680px; }
  .hero__content {
    padding-top: 88px;
    padding-bottom: max(76px, env(safe-area-inset-bottom) + 56px);
  }
  .hero__eyebrow { font-size: 10px; letter-spacing: .22em; }
  .hero__title {
    width: 100%;
    max-width: 620px;
    margin-top: 14px;
    font-size: clamp(46px, 12.7vw, 72px);
    line-height: .9;
    letter-spacing: -.04em;
  }
  .hero__lede { margin-top: 20px; font-size: 14px; line-height: 1.6; }
  .hero__actions { margin-top: 24px; gap: 8px; }
  .hero__actions .btn { width: 100%; min-height: 48px; justify-content: center; }
  .hero__meta { margin-top: 26px; gap: 10px; }
  .hero__meta > div { width: 100%; justify-content: space-between; gap: 12px !important; }
  .hero__meta .scroll-cue { display: none !important; }

  /* Sections: eliminate the large desktop breathing room on phones. */
  .section { padding-block: var(--mobile-section-y); }
  .section-label { margin-bottom: 30px; gap: 10px; }
  .section-label .bar { flex: 1 1 auto; max-width: 100px; }
  .section-label .eyebrow { font-size: 9px; letter-spacing: .2em; }
  .grid { gap: 28px; }
  .lede { font-size: 14px; line-height: 1.65; }
  .h-xl { font-size: clamp(48px, 13vw, 76px); line-height: .92; }
  .h-lg { font-size: clamp(38px, 10.5vw, 58px); line-height: .95; }
  .h-md { font-size: clamp(28px, 8.5vw, 40px); line-height: 1; }

  /* About / editorial */
  #about { padding-block: 52px 62px; }
  #about .section-label { margin-bottom: 26px; }
  #about .editorial__index { font-size: clamp(68px, 20vw, 104px); line-height: .72; }
  #about .editorial__drift { margin-top: 7px; }
  #about .editorial__drift span { padding-block: 2px; line-height: 1.05; }

  /* Artist cards: same geometry everywhere. */
  .roster { gap: 34px; margin-top: 30px; }
  .roster--swipe {
    gap: 14px;
    margin-top: 30px;
    padding-bottom: 12px;
  }
  .roster--swipe > .artist-card { flex-basis: min(86vw, 360px); }
  .artist-card { padding-bottom: 18px; }
  .artist-card__media { aspect-ratio: 4 / 5; }
  .artist-card__meta { padding: 18px; }
  .artist-card__meta h3 { font-size: clamp(25px, 7vw, 34px); }
  .artist-card__body { margin-top: 16px; min-height: 0; }
  .artist-card__actions {
    margin-top: 0;
    padding-top: 24px;
    gap: 10px;
  }
  .artist-card__profile-links {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(4px, 1.5vw, 7px);
  }
  .artist-card__profile-links .btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding-inline: 2px;
    font-size: clamp(7.4px, 2.1vw, 9.5px);
    letter-spacing: .035em;
    white-space: nowrap;
  }
  .artist-card__book {
    width: min(100%, 300px);
    height: 48px;
    min-height: 48px;
    margin-inline: auto;
    font-size: 9px;
    letter-spacing: .16em;
  }

  /* Performance/stage blocks */
  .stage { gap: 30px; }
  .stage__item,
  .stage__item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .stage__media { aspect-ratio: 4 / 3; }
  .stage__side { padding-bottom: 0; }
  .stage__side .artist-card__actions { padding-top: 24px; }
  .stage__side .artist-card__profile-links .btn { font-size: clamp(7.2px, 2.1vw, 9.5px); }

  /* Events / filters */
  .events-tabs { display: none !important; }
  .filters { gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; }

  /* Forms */
  .booking-form-section { padding-block: 30px; }
  .booking-form-grid { gap: 0 18px; }
  .field { margin-bottom: 16px; }
  .field > span { font-size: 9px; letter-spacing: .2em; padding-bottom: 7px; }
  input, select, textarea {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    font-size: 16px !important;
    line-height: 1.35;
  }
  textarea { min-height: 140px; }
  .booking-form-submit { gap: 18px; }
  .booking-form-submit .booking-submit { width: 100%; min-height: 52px; justify-content: center; }
  .form-note { font-size: 11px; line-height: 1.6; }

  /* Booking modal */
  .modal { align-items: stretch; }
  .modal__panel {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(18px, env(safe-area-inset-top) + 12px) var(--gutter)
             max(22px, env(safe-area-inset-bottom));
  }
  .modal__head { margin-bottom: 22px; }
  .modal__close { min-width: 44px; min-height: 44px; }
  .step__q { font-size: clamp(30px, 9vw, 42px); line-height: .94; }
  .step-nav { gap: 8px; }
  .step-nav .btn { min-height: 48px; }

  /* Footer */
  .site-footer { padding: 46px 0 26px; }
  .footer-grid { gap: 24px; }
  .footer-grid > * { min-width: 0; }
  .footer-grid a, .footer-grid button { font-size: 13px; padding-block: 4px; }
  .footer-services { font-size: 12px; line-height: 1.55; }
  .footer-address { font-size: 13px; line-height: 1.55; }
  .footer-map-link { margin-top: 12px; }
  .footer-map-link iframe { height: 150px; }
  .footer-bottom { margin-top: 26px; padding-top: 16px; gap: 9px; line-height: 1.5; }

  /* Floating controls should never cover the form or bottom CTA. */
  .float-cta, .sticky-cta { max-width: calc(100vw - 32px); }
}

@media (max-width: 390px) {
  :root { --gutter: 16px; }
  .hero { min-height: 650px; }
  .hero__content { padding-bottom: 68px; }
  .hero__title { font-size: clamp(44px, 12.4vw, 62px); }
  .section { padding-block: 52px 62px; }
  .section-label { margin-bottom: 26px; }
  .artist-card__profile-links .btn {
    height: 42px;
    min-height: 42px;
    font-size: 7.2px;
    letter-spacing: .02em;
  }
  .artist-card__book { height: 46px; min-height: 46px; font-size: 8.5px; }
}

@media (max-width: 360px) {
  .hero { min-height: 620px; }
  .hero__title { font-size: 44px; }
  .artist-card__profile-links { gap: 4px; }
  .artist-card__profile-links .btn { font-size: 6.9px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .artist-card:hover .artist-card__media,
  .artist-card:hover .artist-card__media img,
  .artist-card:hover .artist-card__meta h3,
  .artist-card:hover .artist-card__arrow { transform: none; }
  .artist-card:hover .artist-card__tag { opacity: 0; }
}


/* Compact application: preserve premium breathing room without oversized gaps. */
@media (max-width:767px){
  .artist-application--compact .step-nav .btn { width:auto; flex:1; }
  .artist-application--compact .step-nav { flex-wrap:nowrap; align-items:center; }
  .artist-application--compact .step-nav .link-arrow { order:initial; flex:0 0 auto; }
  .artist-application--compact .step__q { margin-bottom:18px; }
}


/* FINAL MOBILE SAFETY PASS */
@media (max-width: 767px) {
  .site-header { min-height: 68px; }
  .nav { min-height: 68px; padding-block: 12px; }
  .nav__logo img { max-height: 32px; }
  .page-content main, .page-content section { min-width: 0; }
  .page-content .display { max-width: 100%; }
  .page-content .lede { overflow-wrap: anywhere; }
  .page-content .page-hero h1 { margin-top: 18px; }
  .page-content .page-hero .lede { margin-top: 22px !important; }
  .booking-form-shell, .booking-form-section, .booking-form-submit { min-width: 0; }
  .booking-form-grid .field, .booking-form-grid input, .booking-form-grid textarea, .booking-form-grid select { width: 100%; min-width: 0; }
}
