/* ---- Shared entrance animations (used by .page-hero children) ---- */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   Shared multi-page styles
   =================================================================== */

/* ---- Interior page hero (non-home pages) ---- */
.page-hero {
  position: relative;
  padding: 150px var(--gutter) 70px;
  background:
    radial-gradient(
      52% 44% at 28% 40%,
      rgba(223, 178, 255, 0.16),
      transparent 70%
    ),
    linear-gradient(
      160deg,
      rgba(12, 6, 24, 0.92),
      rgba(24, 8, 48, 0.75) 52%,
      rgba(57, 18, 78, 0.4)
    );
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
  animation: hero-fade-up 0.6s ease-out both;
}

.page-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font:
    800 clamp(2.8rem, 8vw, 5rem)/0.95 "Barlow Condensed",
    sans-serif;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  animation: hero-fade-up 0.6s ease-out 0.08s both;
}

.page-hero .hero-copy {
  width: min(100%, 58ch);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  animation: hero-fade-up 0.6s ease-out 0.16s both;
}

/* ---- "At a glance" proof band (landing page) ---- */
/* Horizontal insetting is handled by the .wrap content rail inside this band
   (see the rail mixin in assets/scss/layout/_rails.scss). Padding it here as
   well double-counted the gutter and pushed this band ~56px further in than
   every other section. Keep the vertical rhythm only. */
.landing-proof {
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(183, 140, 255, 0.08),
    rgba(183, 140, 255, 0.015) 90%
  );
}

.landing-proof .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.proof-summary {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font:
    700 clamp(1.45rem, 3.5vw, 2rem)/1.25 "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
}

.proof-note {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

.proof-note em {
  font-style: normal;
  color: var(--violet);
  font-weight: 600;
}

/* ---- Featured video (home) ---- */
.featured-video-band {
  background: rgba(7, 6, 11, 0.25);
}

.featured-video-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.featured-video-layout > .performance-media,
.featured-video-layout > .featured-video-copy {
  min-width: 0;
  align-self: start;
}

.featured-video-layout .video-frame {
  margin: 0;
}

/* Keep the direct video link available when embedded playback is unavailable. */
.featured-video-copy .video-fallback {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.featured-video-copy .video-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding-block: 6px;
  color: var(--content-label, #dfbaff);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.featured-video-copy .mini-title {
  margin-bottom: 14px;
}

.featured-video-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ---- Testimonials (social proof) ---- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: 4px 16px 16px 4px;
  background:
    radial-gradient(
      120% 160% at 0% 0%,
      rgba(183, 140, 255, 0.12),
      rgba(183, 140, 255, 0.02) 55%
    ),
    rgba(7, 5, 16, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.testimonial blockquote {
  margin: 0 0 16px;
  padding: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial figcaption {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonial figcaption::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin: 0 9px 3px 0;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.testimonial .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  color: var(--violet);
}

.testimonial .stars svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
}

.links.testimonials-cta {
  margin-top: 24px;
}

/* ---- FAQ accordion ---- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 6, 11, 0.5);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq details[open] {
  border-color: var(--violet);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--violet);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ---- Value bullets ---- */
.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 6, 11, 0.5);
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
}

.value-list li svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  color: var(--violet);
}

/* ---- Supporting notes ---- */
.page-note {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px dashed rgba(223, 178, 255, 0.35);
  border-radius: 12px;
  background: rgba(223, 178, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Reorganised page rhythm ---- */
.section-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-actions {
  align-items: center;
  margin-top: 28px;
}

#watch .page-note {
  max-width: 760px;
}

/* ---- Contact page ---- */
.contact-copy {
  margin-top: 28px;
}

.contact-primary {
  gap: 20px;
}

.contact-primary a {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.panel .enquiry-list {
  grid-template-columns: 1fr;
  width: 100%;
}

/* ---- Contact / booking direct details ---- */
.contact-dir {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-dir a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-dir a svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--violet);
}

.contact-dir a .contact-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 6, 11, 0.5);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.social-btn:hover {
  background: rgba(30, 20, 44, 0.9);
  border-color: var(--violet);
  color: #fff;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ---- Scroll reveal (respects reduced motion) ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Responsive for enrichment ---- */
@media (min-width: 761px) {
  .page-hero {
    padding: 190px var(--gutter) 100px;
  }

  .landing-proof {
    padding-block: 48px;
  }

  .featured-video-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

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

  .value-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  #enquire .panel {
    align-self: start;
  }
}

/* ---- Active nav link on interior pages (aria-current) ---- */
.nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(183, 140, 255, 0.08);
}

.nav a.nav-book[aria-current="page"],
.nav .nav-book[aria-current="page"] {
  background: linear-gradient(180deg, #c99bff 0%, #b78cff 100%);
  color: #12081f !important;
  box-shadow: 0 4px 12px rgba(183, 140, 255, 0.4);
}

.nav .nav-book[aria-current="page"]:hover,
.nav .nav-book[aria-current="page"]:focus-visible {
  background: linear-gradient(180deg, #e9ccff 0%, #d8b3ff 100%);
  color: #12081f !important;
  box-shadow: 0 5px 16px rgba(183, 140, 255, 0.6);
  transform: translateY(-1px);
}

/* ---- Focused homepage booking prompt ---- */
.home-cta .footer-cta {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---- Footer CTA strip (repeated across pages) ---- */
.footer-cta {
  max-width: 640px;
  margin: clamp(72px, 7vw, 96px) auto 44px;
  padding: 30px 26px;
  border: 1px solid rgba(223, 178, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(183, 140, 255, 0.1),
    rgba(7, 6, 11, 0.4)
  );
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-cta .mini-title {
  color: var(--blue);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.footer-cta h2 {
  margin: 0;
  color: var(--text);
  font:
    800 clamp(1.9rem, 5vw, 2.6rem)/1.05 "Barlow Condensed",
    sans-serif;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.footer-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 460px;
}

.footer-cta .button {
  margin-top: 4px;
}

@media (min-width: 761px) {
  .footer-cta {
    padding: 36px 40px;
  }
}

/* ---- Accessibility baseline (WCAG 2.2 aligned) ---- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(143, 88, 205, 0.9);
}

.skip-link:focus-visible {
  top: 12px;
  color: #12081f;
  background: #ffffff;
}

main[tabindex="-1"]:focus {
  outline: none;
}

.nav a,
.social-btn,
.faq summary,
.upcoming-more-btn,
.past-year-btn,
.gig-details,
.gig-dir {
  min-height: 44px;
}

.social-btn {
  min-width: 44px;
  justify-content: center;
}

.gig-details,
.gig-dir {
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero .hero-copy {
    animation: none !important;
  }

  .logo:hover {
    transform: rotate(-2deg);
  }
  .logo:hover .star,
  .logo:hover .moon {
    opacity: 0;
    transform: scale(0);
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #eee9f2;
    --line: rgba(255, 255, 255, 0.42);
  }

  .card,
  .panel,
  .faq details,
  .feed-wrapper,
  .footer-cta {
    border-color: rgba(255, 255, 255, 0.48);
  }
}

@media (forced-colors: active) {
  :where(a, button, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  .button,
  .nav-book,
  .social-btn,
  .faq details,
  .card,
  .panel,
  .feed-wrapper {
    forced-color-adjust: auto;
  }
}

/* ===================================================================
   Desktop layout refinement
   Keep wide screens composed rather than simply stretching mobile blocks.
   =================================================================== */
@media (min-width: 900px) {
  /* Section headings use the shared grid hierarchy below. */
  .two-col {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: start;
    column-gap: clamp(48px, 6vw, 76px);
  }

  #story .two-col,
  #enquire .two-col {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }

  #story .two-col > div:first-child,
  #enquire .two-col > div:first-child {
    max-width: 690px;
  }

  #story .panel,
  #enquire .panel {
    width: 100%;
    max-width: 390px;
    justify-self: end;
  }

  .features,
  .members {
    max-width: 1040px;
    margin-inline: auto;
  }

  .features > .card,
  .members > .card {
    height: 100%;
  }

  .featured-video-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    max-width: 1040px;
    margin-inline: auto;
    column-gap: clamp(44px, 5vw, 68px);
  }

  .featured-video-layout .video-frame {
    width: 100%;
    max-width: none;
  }

  .featured-video-copy {
    max-width: 390px;
  }

  #watch .page-note {
    margin-inline: auto;
  }

  .faq {
    max-width: 860px;
  }

  .footer-cta {
    max-width: 660px;
  }
}

@media (min-width: 1180px) {
  .page-hero .hero-copy {
    max-width: 62ch;
  }

  .features {
    gap: 22px;
  }

  #included .features,
  #what-you-get .features,
  #venues .features {
    max-width: 1080px;
  }
}

/* ===================================================================
   Section heading hierarchy
   The label is always above the heading. The grid spans the full section
   rail so both elements are centred against the actual page content width.
   =================================================================== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}

.section-head .label {
  grid-row: 1;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.section-head h2 {
  grid-row: 2;
  width: 100%;
  max-width: 18ch;
  margin: 0;
  text-align: center;
}

@media (max-width: 760px) {
  .section-head {
    justify-items: center;
  }

  .section-head .label,
  .section-head h2 {
    margin-inline: auto;
    text-align: center !important;
  }
}

/* Final mobile text alignment — loaded from the site's main stylesheet. */
@media (max-width: 760px) {
  main p,
  main li,
  main dd,
  main blockquote {
    text-align: left !important;
    text-justify: none !important;
    hyphens: none !important;
    max-width: 40ch;
    line-height: 1.55;
  }

  main :is(h1, h2, h3, h4) {
    text-align: center !important;
    text-wrap: balance;
    line-height: 1.15;
    hyphens: none !important;
  }

  /* Section headings and short labels are intentionally centred. */
  main .section-head,
  main .section-head :is(.label, h2),
  main :is(.eyebrow, .mini-title, .hero-eyebrow, .callout) {
    text-align: center !important;
  }

  /* Longer/card body copy stays left aligned even inside centred sections. */
  main
    :is(
      .panel p,
      .card p,
      .member-bio p,
      .page-note,
      .faq details p,
      .gig-calendar-copy p,
      .booking-details p,
      .performance-link p,
      .repertoire-panel p,
      .reviews-panel p,
      .event-option p,
      .featured-video-copy > p
    ) {
    text-align: left !important;
  }

  /* Keep the text block itself comfortably positioned on the page. */
  main :is(.section-intro, .section-lead, .page-hero .hero-copy) {
    max-width: 34ch;
    margin-inline: auto;
  }

  /* Practical details remain left aligned for scanning. */
  main
    :is(
      .gig-main,
      .gig-action,
      .gig-loc,
      .gig-time,
      .booking-details,
      .enquiry-builder,
      .member-bio
    ) {
    text-align: left !important;
  }
}
