/* ==========================================================================
   AVO — site-wide fixes (loaded LAST on every page)
   Earlier stylesheets patched the same components many times over. This
   file is the single final word for the items below. Edit here rather than
   adding another override elsewhere.
   ========================================================================== */

/* ---------- Tokens referenced in style.css but never defined ----------
   Without these, every rule that used them was silently discarded. */
:root {
  --avo-cream: var(--avo-light);
  --avo-ivory: var(--avo-white);
  --avo-gold:  var(--avo-accent);
}

/* ---------- Sideways overflow without breaking sticky elements ----------
   `overflow-x: hidden` on BOTH html and body turns body into its own scroll
   container, which silently breaks position:sticky and scroll-linked
   animation. html clips for the viewport; body uses `clip`, which never
   creates a scroll container. */
html { overflow-x: hidden; }
body { overflow-x: clip; max-width: 100%; }

/* ---------- Tighter spacing between sections ----------
   Was up to 150px top + 150px bottom (300px between two sections on desktop,
   144px on phones). Now max 96px each side. */
.section { padding-block: clamp(56px, 6vw, 96px); }
.section-label { margin-bottom: clamp(22px, 3vw, 40px); }
/* Sub-sections inside artist profile pages */
.section-gap { margin-top: clamp(56px, 6vw, 80px); }

@media (max-width: 767px) {
  .section { padding-block: 48px; }
}

/* ---------- Contact page: keep a long artist name inside its column ----------
   (Font size unchanged — it only wraps instead of running under the form.) */
.contact-info { min-width: 0; }
.contact-info h1 { overflow-wrap: break-word; }

/* Booking form panel: was a navy-blue gradient left over from the old
   gold/navy theme. Match the black + orange palette. */
.booking-form-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--avo-surface);
}

/* Contact page 7/5 split: the form column is narrow, so stack the
   "BOOKING FOR" badge under the title instead of beside it. */
@media (min-width: 900px) {
  .contact-form .booking-form-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .contact-form .booking-selected-badge {
    width: 100%; max-width: none; flex: none;
    border-left: 0; border-top: 1px solid var(--avo-border);
    padding: 18px 0 0;
  }
}

/* ---------- Header: 10px above and below the nav, at every size ---------- */
.nav,
.site-header.is-scrolled .nav { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 767px) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .nav,
  .site-header.is-scrolled .nav { padding-top: 10px; padding-bottom: 10px; }
}
