/* ============================================================
   Arts Pass — theartspass.com holding page
   Plain CSS, no framework. Jason's brand palette below.
   ============================================================ */

:root {
  /* Primary (indigo-violet) */
  --primary-50:  #F5F4FB;  --primary-100: #E2DFF6; --primary-200: #C2BCF0;
  --primary-300: #9E94EB;  --primary-400: #7D6FE6; --primary-500: #5C4AE3;
  --primary-600: #3723D2;  --primary-700: #2D1DA5; --primary-800: #221678;
  --primary-900: #170F4C;  --primary-950: #0E0A2E;

  /* Neutral (cool gray) */
  --neutral-50:  #F7F7F8;  --neutral-100: #E9E9EC; --neutral-200: #D3D3DA;
  --neutral-300: #BBB9C5;  --neutral-400: #A5A3B3; --neutral-500: #8E8CA1;
  --neutral-600: #716E86;  --neutral-700: #5A586A; --neutral-800: #42414E;
  --neutral-900: #2B2A32;  --neutral-950: #1A1A1F;

  /* Success / teal-green (used decoratively in the vision gradient only) */
  --success-100: #DFF6ED; --success-200: #BBF1DB; --success-300: #92ECC7;
  --success-400: #6DE9B5; --success-500: #47E6A4; --success-600: #1FD68A;
  --success-700: #1AA86D; --success-800: #147A50;

  /* Brand gold accent (from the prototype ticket accent) */
  --gold-400: #facc15;  --gold-500: #eab308;  --gold-600: #ca8a04;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--neutral-800);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

/* =========================== HEADER / NAV =========================== */
/* Fully transparent, airy bar overlaying the hero — no fill, border, or shadow.
   Absolutely positioned so the indigo hero shows straight through beneath it. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand lockup — flex row; the logo image is the whole mark. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
/* AP monogram. Source SVG is indigo (#5B49E3); over the dark hero we render it
   WHITE via filter (brightness(0) invert(1) = pure white, source-color-agnostic).
   A whisper of shadow keeps it crisp where a tile image sits behind it.
   viewBox 2443x2046 → width auto preserves aspect ratio from the fixed height. */
.brand__logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(14, 10, 46, 0.35));
}

/* Single minimal action: understated white text link, no chrome. */
.site-nav__link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 4px 2px;
  text-shadow: 0 1px 3px rgba(14, 10, 46, 0.45);   /* legibility over tile imagery */
  transition: color 0.18s ease, opacity 0.18s ease;
  opacity: 0.9;
}
.site-nav__link:hover {
  color: var(--gold-400);
  opacity: 1;
}
.site-nav__link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.5);
}

/* =========================== HERO =========================== */
.hero {
  position: relative;   /* containing context for the overlaid header */
  background: var(--primary-950);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

/* Left text panel */
.hero__panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
}
.hero__glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}
.hero__glow--a { top: 60px;  left: 30px;  width: 300px; height: 300px; background: var(--gold-400); }
.hero__glow--b { bottom: 20px; right: 20px; width: 340px; height: 340px; background: var(--primary-400); }

.hero__panel-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-left: auto;
  padding: 92px 48px 64px;   /* extra top padding clears the overlaid header */
}

.hero__headline {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.accent-gold { color: var(--gold-400); }

.hero__subhead {
  color: rgba(255,255,255,0.82);
  font-size: 1.075rem;
  max-width: 560px;
  margin: 0 0 14px;
}

/* "More cities to come." — sits a step brighter than the subhead above it,
   and carries the gap down to the eyebrow. */
.hero__subhead--expansion {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  margin-bottom: 30px;
}

.hero__eyebrow {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

/* Right 2x2 gallery */
.hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--primary-950);
}
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--primary-800);
  min-height: 150px;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Flat indigo brand wash + bottom scrim, matching the prototype tiles. */
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,22,120,0.35);          /* primary-800 / 35% */
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,10,46,0.70), transparent 55%);
}
.tile__label {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 2;
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* Left-edge seam scrim dissolving into the text panel (desktop only). */
.hero__gallery-seam {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(14,10,46,0.85), rgba(14,10,46,0) 30%);
}

/* ===================== CAPTURE FORMS ===================== */
/* The hidden ATTRIBUTE must win over any author display rule below. Without
   this, .capture's display:flex beat the browser's [hidden]{display:none} and
   the form stayed on screen after a successful submit — leaving the disabled
   "Sending…" button visible next to the confirmation. */
[hidden] { display: none !important; }

.capture {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}
.capture--hero { margin-top: 4px; }
.capture--closing { margin: 0 auto; }

.capture__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--neutral-300);
  background: #fff;
  color: var(--neutral-800);
  font-size: 1rem;
  font-family: inherit;
}
.capture__input::placeholder { color: var(--neutral-400); }
.capture__input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(92,74,227,0.45);
}

.btn-gold {
  flex: 0 0 auto;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  background: var(--gold-500);
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.btn-gold:active { background: var(--gold-600); transform: translateY(1px); }
.btn-gold:disabled { background: var(--neutral-300); color: var(--neutral-600); cursor: default; box-shadow: none; }

/* Wrapper holding the form + its inline status line, so the confirmation can
   take the form's place without the layout jumping. */
.capture-block { max-width: 480px; }
.capture-block--closing { margin: 0 auto; }

/* Inline confirmation / error shown after an AJAX submit. */
.capture-status {
  margin: 14px 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}
.capture-status a { color: inherit; text-decoration: underline; }

/* Over the indigo hero panel. */
.capture-status--on-dark            { color: rgba(255,255,255,0.88); text-shadow: 0 1px 3px rgba(14,10,46,0.45); }
.capture-status--on-dark.is-success { color: var(--gold-400); font-weight: 600; }
.capture-status--on-dark.is-error   { color: #FFD5D5; }

/* On the white closing card. */
.capture-status--on-light            { color: var(--neutral-700); }
.capture-status--on-light.is-success { color: var(--success-800); font-weight: 600; }
.capture-status--on-light.is-error   { color: #B3261E; }

/* ===================== CONTENT SECTIONS ===================== */
.section { padding: 84px 0; }
.section--light   { background: #fff; }
.section--neutral { background: var(--neutral-50); }

.section__heading {
  color: var(--primary-900);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 20px;
}
.section__body {
  color: var(--neutral-700);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 640px;
}
.section__body--wide { max-width: 720px; margin-bottom: 48px; }

/* Founding venues grid */
.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.venue figure { margin: 0; }
.venue img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(23,15,76,0.10);
}

/* ===================== VISION (gradient) ===================== */
.vision {
  /* THE signature gradient — deep indigo -> teal-green -> pale lavender.
     Diagonal sweep; text zones are placed on the legible ends. */
  background: linear-gradient(
    155deg,
    var(--primary-950) 0%,
    var(--primary-900) 16%,
    var(--primary-700) 32%,
    var(--success-700) 52%,
    var(--success-500) 66%,
    var(--success-200) 80%,
    var(--primary-100) 92%,
    var(--primary-50)  100%
  );
  padding: 96px 0 104px;
}
.vision__inner { max-width: 860px; }

.vision__heading {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(14,10,46,0.45);
}
.vision__body {
  color: rgba(255,255,255,0.92);
  font-size: 1.12rem;
  max-width: 660px;
  margin: 0 auto 52px;
  text-shadow: 0 1px 10px rgba(14,10,46,0.40);
}

/* Closing capture sits on a solid white card so it stays legible over the
   pale-lavender end of the gradient sweep. */
.capture-card {
  background: #fff;
  scroll-margin-top: 32px;   /* breathing room when scrolled to via #notify */
  border-radius: 18px;
  padding: 40px 32px 36px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(14,10,46,0.30);
  text-align: center;
}
.capture-card__heading {
  color: var(--primary-900);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 0 12px;
}
.capture-card__body {
  color: var(--neutral-700);
  font-size: 1.02rem;
  margin: 0 auto 24px;
  max-width: 420px;
}

/* ===================== THANK-YOU PAGE ===================== */
/* No-JS fallback destination (thank-you.html). Same indigo panel treatment as
   the hero, with the message on a white card. */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
}
.thanks {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 130px 24px 90px;   /* top clears the overlaid header */
}
.thanks__card {
  background: #fff;
  border-radius: 18px;
  padding: 48px 36px 44px;
  max-width: 560px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(14,10,46,0.35);
}
.thanks__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 9999px;
  background: var(--gold-500);
  color: var(--neutral-900);
  display: grid;
  place-items: center;
}
.thanks__heading {
  color: var(--primary-900);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 14px;
}
.thanks__body {
  color: var(--neutral-700);
  font-size: 1.05rem;
  margin: 0 auto 28px;
  max-width: 420px;
}
.thanks__link {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--primary-600);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}
.thanks__link:hover { background: var(--primary-500); }
.thanks__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.55);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--primary-950);
  padding: 34px 0;
}
.footer__line {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin: 0;
}
.footer__brand { color: #fff; font-weight: 700; }
.footer__dot { margin: 0 8px; color: rgba(255,255,255,0.35); }
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel-inner {
    margin: 0 auto;
    padding: 84px 28px 48px;   /* top clears the overlaid header */
    max-width: 640px;
  }
  /* Below the text, the gallery becomes a band. min-height, NOT height: the
     band is a floor the tiles can push past, never a cap that clips them.
     Renders identically to the old fixed 360px here (two 168px rows + gap +
     padding = 360), but it can no longer cut the bottom row off. */
  .hero__gallery { min-height: 360px; }
  .hero__gallery-seam { display: none; }   /* seam only makes sense in the split layout */

  .capture--hero { max-width: 100%; }
  .capture-block { max-width: 100%; }

  .thanks { padding: 110px 22px 70px; }

  .section { padding: 64px 0; }
  .venues { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .vision { padding: 72px 0 80px; }
}

@media (max-width: 480px) {
  .hero__panel-inner { padding: 72px 22px 40px; }   /* top clears the overlaid header */

  /* The 2x2 tile band on phones.
     Was: .hero__gallery { height: 300px } with .tile { min-height: 150px }.
     Two 150px rows + 8px gap + 16px vertical padding need 324px, so the grid
     overflowed the 300px box by 24px — the indigo band's bottom edge cut
     through the Symphony/Opera row and those tiles hung over the white
     section below. Nothing capped the band on desktop, hence mobile-only.
     Now the band is sized BY the tiles instead of capping them: each tile
     keeps a 4/3 ratio off its own column width, so the grid's 8px padding
     stays even on all four sides at any phone width. */
  .hero__gallery {
    min-height: 0;                    /* drop the 360px floor from the block above */
    grid-template-rows: auto auto;    /* rows follow the tiles, not a fixed height */
  }
  .tile {
    min-height: 0;                    /* the 150px floor is what overflowed */
    aspect-ratio: 4 / 3;
  }

  /* Keep the header compact on small screens; logo + link stay side by side. */
  .site-header__inner { padding: 16px 18px; }
  .brand__logo { height: 26px; }
  .site-nav__link { font-size: 0.9rem; }

  /* Stack the email field + button so neither gets cramped. */
  .capture { flex-direction: column; }
  .capture__input { flex-basis: auto; width: 100%; }
  .btn-gold { width: 100%; }

  .section { padding: 52px 0; }
  .venues { grid-template-columns: 1fr 1fr; gap: 10px; }
  .capture-card { padding: 30px 20px 28px; }
}
