/* ─── Fonts ──────────────────────────────────────────────────────────────────── */

@import url('../fonts/fonts.css');

/* ─── Reset & base ───────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --colour-primary:   #1a2744;
  --colour-accent:    #b5892a;
  --colour-bg:        #ffffff;
  --colour-surface:   #f6f5f1;
  --colour-border:    #e2dfd9;
  --colour-text:      #2c2c2c;
  --colour-muted:     #636363;
  --max-width:        1100px;
  --section-padding:  3.5rem 1.5rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Merriweather, Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--colour-text);
  background: var(--colour-bg);
}

a {
  color: var(--colour-primary);
  text-decoration: underline;
}

a:hover {
  color: var(--colour-accent);
}

/* ─── Skip link ──────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.6rem 1.2rem;
  background: var(--colour-primary);
  color: #fff;
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}

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

/* ─── Layout helper ──────────────────────────────────────────────────────────── */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */

header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.header-brand {
  border-bottom: 1px solid var(--colour-border);
}

.header-brand-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

.site-title {
  text-decoration: none;
  color: var(--colour-primary);
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.site-logo {
  display: block;
  height: 72px;
  width: auto;
  flex-shrink: 0;
}

.title-main {
  font-family: 'Merriweather Sans', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--colour-primary);
}

.title-tagline {
  font-family: Merriweather, Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--colour-muted);
  line-height: 1.4;
}

.header-nav-bar {
  background: var(--colour-primary);
}

.header-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
}

nav a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: 'Merriweather Sans', Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--colour-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.6rem 0.5rem;
  line-height: 1;
}

/* ─── Social links ───────────────────────────────────────────────────────────── */

.social-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  order: 2;
}

.social-links a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.6rem 0.4rem;
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover {
  color: #fff;
}

/* ─── Submenu ────────────────────────────────────────────────────────────────── */

.has-submenu {
  position: relative;
  display: flex;
  align-items: stretch;
}

.submenu-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.8rem 0.4rem 0.8rem 0;
  line-height: 1;
  vertical-align: middle;
}

.submenu-toggle:hover {
  color: #fff;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  background: var(--colour-primary);
  min-width: 130px;
  z-index: 100;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.submenu li {
  display: block;
}

.submenu a {
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-left: none;
  white-space: nowrap;
}

.has-submenu:hover .submenu,
.has-submenu.open .submenu {
  display: flex;
}

/* ─── Hero image ─────────────────────────────────────────────────────────────── */

.hero-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  line-height: 0;
  position: relative;
}

.hero-image img {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

.concert-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(26, 39, 68, 0.88);
  color: #fff;
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  line-height: 1.4;
}

.concert-overlay .next-label {
  margin-bottom: 0.4rem;
}

.concert-overlay-date {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.concert-overlay-detail,
.concert-overlay-programme {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.concert-overlay-programme {
  margin-bottom: 1rem;
}

.pull-quote-overlay {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  margin: 0;
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  background: rgba(26, 39, 68, 0.88);
  border-left: 3px solid var(--colour-accent);
}

.pull-quote-overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.pull-quote-overlay footer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 680px) {
  .pull-quote-overlay { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--colour-primary);
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center top;
  color: #fff;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 55, 0.68);
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.next-label {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--colour-accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  color: #fff;
}

.concert-details {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.concert-venue {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.programme {
  margin-bottom: 2.5rem;
}

.programme h2 {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--colour-accent);
  margin-bottom: 0.6rem;
  border: none;
  padding: 0;
  display: block;
  color: var(--colour-accent);
}

.programme ul {
  list-style: none;
  padding: 0;
}

.programme li {
  padding: 0.25rem 0;
  font-size: 1.05rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  background: var(--colour-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 2px solid var(--colour-accent);
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: transparent;
  color: var(--colour-accent);
}

.hero .button:hover {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.hero a:not(.button) {
  color: rgba(255, 255, 255, 0.9);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.hero a:not(.button):hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* ─── Sections ───────────────────────────────────────────────────────────────── */

section {
  border-bottom: 1px solid var(--colour-border);
}

section:nth-of-type(even) {
  background: var(--colour-surface);
}

h1 {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--colour-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--colour-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--colour-accent);
  display: inline-block;
}

h3 {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--colour-primary);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

address {
  font-style: normal;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.9;
}

/* ─── Blockquote ─────────────────────────────────────────────────────────────── */

blockquote {
  border-left: 4px solid var(--colour-accent);
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  background: var(--colour-surface);
}

blockquote p {
  margin-bottom: 0.3rem;
  font-style: italic;
  font-size: 1.05rem;
}

blockquote footer {
  background: none;
  color: var(--colour-muted);
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.85rem;
  padding: 0;
  box-shadow: none;
  border: none;
  flex-direction: unset;
  align-items: unset;
  justify-content: unset;
}

/* ─── Rehearsal programme list ───────────────────────────────────────────────── */

table.programme {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--colour-accent);
}

table.programme th,
table.programme td {
  text-align: left;
  padding: 0.1rem 0.75rem;
  border-bottom: none;
  vertical-align: top;
}

table.programme th {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--colour-muted);
  font-weight: 700;
  background: none;
}

table.programme tr:last-child td {
  border-bottom: none;
}

table.programme td:nth-child(2),
table.programme td:nth-child(3) {
  white-space: nowrap;
  color: var(--colour-muted);
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.85rem;
}

/* ─── Concert detail page ────────────────────────────────────────────────────── */

.concert-detail .section-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.concert-detail .next-label {
  color: var(--colour-accent);
}

.concert-detail .concert-venue {
  color: var(--colour-muted);
}

.concert-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.concert-hero-info {
  flex: 1;
}

.concert-hero-flyer {
  position: relative;
  flex: 0 0 auto;
  width: 80%;
  max-width: 640px;
}

.concert-hero-flyer img {
  display: block;
  width: 100%;
  height: auto;
}


@media (max-width: 680px) {
  .concert-hero {
    flex-direction: column;
  }

  .concert-hero-flyer {
    width: 100%;
    max-width: none;
  }
}

/* ─── Home split layout ─────────────────────────────────────────────────────── */

.home-split {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.home-split-flyer {
  flex: 0 0 auto;
  width: 50%;
  max-width: 500px;
}

.home-split-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.home-split-content {
  flex: 1;
}

@media (max-width: 680px) {
  .home-split {
    flex-direction: column;
  }

  .home-split-flyer {
    width: 100%;
    max-width: none;
  }
}

/* ─── Concerts page ──────────────────────────────────────────────────────────── */

#concerts h1 {
  margin-bottom: 0.5rem;
}

#concerts > .section-inner > p {
  margin-bottom: 0.75rem;
}

#concerts .schedule-table,
#previous-seasons .schedule-table {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

#concerts .schedule-table th,
#concerts .schedule-table td,
#previous-seasons .schedule-table th,
#previous-seasons .schedule-table td {
  padding: 0.4rem 0.9rem;
}

#concerts .schedule-table th:first-child,
#concerts .schedule-table td:first-child,
#concerts .schedule-table th:last-child,
#concerts .schedule-table td:last-child,
#previous-seasons .schedule-table th:first-child,
#previous-seasons .schedule-table td:first-child,
#previous-seasons .schedule-table th:last-child,
#previous-seasons .schedule-table td:last-child {
  white-space: nowrap;
}

#concerts .schedule-table th,
#previous-seasons .schedule-table th {
  background: none;
  color: var(--colour-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--colour-border);
}


/* ─── General tables ─────────────────────────────────────────────────────────── */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--colour-border);
}

.schedule-table th {
  background: var(--colour-primary);
  color: #fff;
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover td {
  background: #edeae1;
}

.schedule-table .table-section-heading td {
  background: #fff;
  color: var(--colour-text);
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding-top: 1.5rem;
  border-top: 2px solid var(--colour-border);
}

/* ─── Rehearsal date list ────────────────────────────────────────────────────── */

#rehearsals .rehearsal-dates {
  width: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

#rehearsals .rehearsal-dates td {
  padding: 0.1rem 0.75rem 0.1rem 0;
  border-bottom: none;
}

#rehearsals .rehearsal-dates tr:last-child td {
  border-bottom: none;
}

#rehearsals .rehearsal-dates tbody tr:hover td {
  background: none;
}

/* ─── Rehearsal section headings ─────────────────────────────────────────────── */

#rehearsals h3 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--colour-accent);
}

#rehearsals h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ─── Content lists ──────────────────────────────────────────────────────────── */

.benefits-list,
.friends-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.benefits-list li,
.friends-list li {
  margin-bottom: 0.3rem;
}

/* ─── Bio layout ─────────────────────────────────────────────────────────────── */

.bio-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.bio-text {
  flex: 1;
  min-width: 0;
}

.bio-photo {
  flex: 0 0 280px;
  margin: 0;
}

.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.bio-photo figcaption {
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--colour-muted);
  margin-top: 0.4rem;
}

@media (max-width: 680px) {
  .bio-layout {
    flex-direction: column;
  }

  .bio-photo {
    flex: none;
    width: 100%;
  }
}

/* ─── People grid ────────────────────────────────────────────────────────────── */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.person {
  border-left: 3px solid var(--colour-accent);
  padding-left: 0.75rem;
}

.person p {
  margin: 0;
  color: var(--colour-muted);
  font-size: 0.95rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */

body > footer {
  background: var(--colour-primary);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Merriweather Sans', Arial, sans-serif;
  font-size: 0.85rem;
}

body > footer .section-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

body > footer p {
  margin: 0;
}

body > footer a {
  color: var(--colour-accent);
}

body > footer a:hover {
  color: #fff;
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  :root {
    --section-padding: 2.5rem 1.1rem;
  }

  .site-logo {
    height: 52px;
  }

  .title-tagline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav a {
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
  }

  nav a:hover,
  nav a[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--colour-accent);
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: flex;
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
  }

  .has-submenu.open .submenu a {
    padding-left: 2.5rem;
  }

  .submenu-toggle {
    padding: 0.7rem 1rem 0.7rem 0;
    font-size: 0.8rem;
  }

  .header-nav-inner {
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .concert-overlay {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 0.9rem 1.1rem;
  }

  .schedule-table th:last-child,
  .schedule-table td:last-child {
    display: none;
  }

  body > footer .section-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
