/* =========================================================
   Philadelphia Soli Deo Gloria Choral Society
   Design system + site styles
   ========================================================= */

:root {
  /* Brand colors (carried over from the original site) */
  --navy: #011f5b;
  --navy-dark: #010f30;
  --navy-tint: #e7ecf6;
  --red: #990000;
  --red-dark: #700000;
  --ink: #171523;
  --mist: #d3ddf5;
  --mist-light: #f3f6fd;
  --cream: #faf8f3;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-width: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(1, 31, 91, 0.08), 0 1px 2px rgba(1, 31, 91, 0.06);
  --shadow-md: 0 10px 30px rgba(1, 31, 91, 0.12);
  --shadow-lg: 0 24px 60px rgba(1, 31, 91, 0.18);

  --ease: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 700;
}

h5,
h6 {
  font-family: var(--font-body);
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:not([class]):hover {
  color: var(--red);
}

ul,
ol {
  padding-left: 1.25em;
}

button {
  font-family: inherit;
}

/* ---------- Type scale ---------- */
h1,
.h1 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.8rem, 1.45rem + 1.5vw, 2.65rem);
}

h3,
.h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: #3a3a4a;
}

/* ---------- Responsive container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 960px;
}

section {
  padding-block: clamp(2.5rem, 4vw + 1rem, 5rem);
}

/* Tighter than the default section rhythm, for content that's really one
   continuous unit (e.g. program + ticket tiers) rather than two distinct
   ideas that deserve a full section-sized gap between them. */
.section-tight {
  padding-block: clamp(2rem, 3vw + 1rem, 3.25rem);
}

.section-alt {
  background: var(--mist-light);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy .eyebrow,
.section-navy .lede,
.section-navy p {
  color: var(--white);
}

.section-navy .lede {
  color: rgba(255, 255, 255, 0.85);
}

.section-navy .eyebrow {
  color: #ffd7d7;
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head--wide {
  max-width: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.25em;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline.on-dark {
  color: var(--white);
}

.btn-outline.on-dark:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

/* backdrop-filter is scoped to .is-solid only (not .is-open): applying a
   filter to .site-header would make it the CSS containing block for its
   fixed-position descendant (the mobile nav panel), sizing that panel to
   the header's own height instead of the viewport. */
.site-header.is-solid {
  backdrop-filter: saturate(180%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.brand-name em {
  font-style: normal;
  display: block;
  font-size: 0.85em;
  color: var(--red);
}

/* Every page opens on the same dark hero image, so the header starts
   transparent-over-dark and needs light text/controls until it goes solid. */
.site-header:not(.is-solid):not(.is-open) .brand-name,
.site-header:not(.is-solid):not(.is-open) .brand-name em {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(1, 31, 91, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease);
}

.site-header:not(.is-solid):not(.is-open) .nav-toggle {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}

.site-header:not(.is-solid):not(.is-open) .nav-toggle span {
  background: var(--white);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4em 0.1em;
  position: relative;
  transition: color var(--ease);
}

.site-header:not(.is-solid):not(.is-open) .primary-nav a:not(.nav-cta) {
  color: var(--white);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav a.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.55em 1.1em;
  border-radius: var(--radius-pill);
}

.primary-nav a.nav-cta::after {
  display: none;
}

.primary-nav a.nav-cta:hover {
  background: var(--red-dark);
}

/* ---------- Hero ----------
   Every page shares a solid-navy hero band (radial glow + a faint grain
   texture instead of a photo) so the identical Mozart photo isn't repeated
   as a background banner on all seven pages. The homepage gets its own
   distinct split layout with that photo used once, deliberately, as a
   framed portrait rather than a full-bleed background. */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(900px 520px at 88% -12%, rgba(153, 0, 0, 0.4), transparent 60%), radial-gradient(700px 520px at 2% 112%, rgba(211, 221, 245, 0.16), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 5vw + 1.5rem, 5rem) clamp(2rem, 3.5vw, 3.25rem);
  text-align: center;
}

.hero-content .eyebrow {
  color: var(--mist);
  justify-content: center;
}

.hero-content h1 {
  color: var(--white);
}

.hero-content .lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 900px;
  margin-inline: auto;
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy p {
  font-size: clamp(0.98rem, 0.93rem + 0.25vw, 1.08rem);
}

.hero-small {
  padding-block: clamp(3.75rem, 5vw + 1.5rem, 5rem) clamp(1.5rem, 2.5vw, 2rem);
}

.hero-small .hero-content {
  padding-block: 0;
}

.hero-small h1 {
  margin-bottom: 0.3em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--mist);
  font-weight: 600;
}

.hero-meta span strong {
  color: var(--white);
}

/* Tickets page: the hero is a wayfinding banner above the real content
   (ticket tiers), not the page's main event, so it gets noticeably less
   padding than the other interior-page heroes. */
.hero-compact {
  padding-block: clamp(2.5rem, 3.5vw + 1rem, 3.25rem) clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Homepage photo hero ----------
   The homepage is the one place the Mozart photo appears full-bleed, with
   the concert title overlaid directly on it — the classic "hero image"
   treatment. Interior pages keep the plain navy band above (no repeated
   photo banner on every page). */
.hero-photo::before,
.hero-photo::after {
  content: none;
}

.hero-photo .hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-photo .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 15, 48, 0.8) 0%, rgba(1, 31, 91, 0.84) 55%, rgba(1, 15, 48, 0.94) 100%);
}

.hero-photo .hero-content {
  padding-block: clamp(4.5rem, 7vw + 1.5rem, 6rem) clamp(2rem, 3vw, 2.75rem);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3:not(.ticket-grid),
  .grid-auto {
    grid-template-columns: 1fr;
  }
}

/* ---------- Media / video embeds ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--navy-tint);
}

.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback for videos whose owner has disabled iframe embedding: a
   clickable thumbnail that opens the video on YouTube in a new tab. */
.video-fallback a {
  position: absolute;
  inset: 0;
  display: block;
}

.video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(1, 15, 48, 0.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  transition: background var(--ease), transform var(--ease);
}

.video-fallback a:hover .play-badge {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.08);
}

.media-card h3 {
  margin-bottom: 0.2em;
}

.media-card .media-sub {
  color: #5a5a6b;
  margin-bottom: 0.9em;
  font-size: 0.95rem;
}

/* ---------- Image treatments ---------- */
.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-tint);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait {
  aspect-ratio: 3 / 4;
}

.landscape {
  aspect-ratio: 3 / 2;
}

.badge-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

.badge-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Team member ---------- */
.team-member {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--navy-tint);
}

.team-member:last-child {
  border-bottom: none;
}

.team-photos {
  display: grid;
  gap: 1rem;
}

@media (max-width: 780px) {
  .team-member {
    grid-template-columns: 1fr;
  }
  .team-photos {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Program list ----------
   Concert works listed one-per-line, like a printed program, instead of
   joined into a single heading that wraps unpredictably mid-phrase. */
.program-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  text-align: center;
}

.program-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--navy-tint);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.program-list li:first-child {
  border-top: 1px solid var(--navy-tint);
}

/* Modifier: no rule directly under the heading that introduces the list */
.program-list--flush li:first-child {
  border-top: none;
}

/* ---------- Pricing / tickets ---------- */
.ticket-tier {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--navy-tint);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.ticket-tier:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.ticket-tier.is-featured {
  border: 2px solid var(--red);
}

.ticket-tier .pill-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  background: var(--red);
  color: var(--white);
  white-space: nowrap;
}

.ticket-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw + 1.2rem, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.ticket-desc {
  color: #5a5a6b;
  font-size: 0.92rem;
}

.ticket-tier .btn {
  margin-top: auto;
}

/* Keep all three tiers visible side-by-side even on phones, in a
   condensed format, rather than stacking into a long single column. */
@media (max-width: 640px) {
  .ticket-grid {
    gap: 0.5rem;
  }

  .ticket-grid .ticket-tier {
    padding: 1rem 0.4rem 1.1rem;
    gap: 0.35rem;
    border-radius: var(--radius-md);
  }

  .ticket-grid .ticket-tier h3 {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
  }

  .ticket-grid .ticket-price {
    font-size: clamp(1.05rem, 5.5vw, 1.5rem);
  }

  .ticket-grid .ticket-desc {
    display: none;
  }

  .ticket-grid .ticket-tier .btn {
    font-size: 0.7rem;
    padding: 0.6em 0.2em;
    white-space: normal;
    line-height: 1.2;
  }

  .ticket-grid .pill-tag {
    font-size: 0.58rem;
    padding: 0.3em 0.6em;
  }
}

/* ---------- Donation methods ---------- */
.donate-card {
  text-align: center;
}

.donate-card .qr {
  width: min(220px, 100%);
  margin-inline: auto;
  margin-block-end: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--navy-tint);
}

/* ---------- Info / map cards ---------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-list .icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Forms ---------- */
.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

/* Spam honeypot: off-screen rather than display:none, since some simple
   bots skip fields hidden that way but still fill this one in. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.8em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d7dceb;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(1, 31, 91, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: 0.85rem;
  color: #6a6a7a;
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .footer-nav {
    align-items: flex-end;
  }
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav a.accent {
  color: #ff9d9d;
  font-weight: 700;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  z-index: 150;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red);
}

/* ---------- Ticket promo modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(1, 15, 48, 0.72);
  opacity: 0;
  transition: opacity var(--ease);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-visible {
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--ease);
}

.modal-overlay.is-visible .modal {
  transform: translateY(0) scale(1);
}

.modal .eyebrow {
  justify-content: center;
}

/* Chic date/venue display: a bold serif date + a small red divider dot,
   with a small tracked-caps venue line beneath. Reused wherever a concert's
   date/time/venue needs more presence than plain text (modal, hero bands,
   the events-page concert card). */
.date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.date-display-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.venue-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a7a;
  margin-bottom: 1.5rem;
}

/* On the dark hero band, swap to light-on-navy instead of navy-on-white */
.hero-content .date-display {
  color: var(--white);
  justify-content: center;
}

.hero-content .venue-label {
  color: var(--mist);
}

.modal .program-list {
  margin-bottom: 1.25rem;
}

.modal .program-list li {
  padding: 0.6rem 0;
  font-size: 1.3rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--mist-light);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}

.modal-close:hover {
  background: var(--navy-tint);
}

/* ---------- Reveal-on-scroll ----------
   Content is visible by default so it never depends on JS running.
   Only once `.js` is set (see main.js) do elements hide-then-reveal. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.color-red {
  color: var(--red);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--mist-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
}

.divider {
  height: 1px;
  background: var(--navy-tint);
  border: none;
  margin-block: clamp(2rem, 4vw, 3rem);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    top: 0;
    padding-top: 5.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform var(--ease);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--container-pad);
  }

  .primary-nav li {
    border-bottom: 1px solid var(--navy-tint);
  }

  .primary-nav a {
    display: block;
    padding: 1.05em 0.1em;
    font-size: 1.1rem;
    letter-spacing: normal;
    text-transform: none;
  }

  .primary-nav a.nav-cta {
    display: inline-block;
    margin-top: 1.25rem;
  }
}
