/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #1a8a7d;
  --teal-dark: #146e63;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --charcoal: #2c2c2c;
  --off-white: #f9f7f3;
  --white: #ffffff;
  --section-alt: #f0eeea;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-dark);
}

section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
}

/* ===== Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-social {
  display: flex;
  gap: 0.9rem;
  margin-left: 1rem;
}

.nav-social a {
  color: var(--off-white);
  font-size: 1.15rem;
  transition: color 0.2s;
}

.nav-social a:hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--off-white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  margin-top: 64px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../resources/images/The Flying Oms duo performance.png') center top/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  color: var(--gold-light);
}


/* ===== About ===== */
#about {
  background: var(--white);
}

.about-grid {
  overflow: hidden;
}

.about-image {
  float: left;
  width: 42%;
  margin-right: 2.5rem;
  margin-bottom: 1rem;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-text h2 {
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-person {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.about-instruments {
  font-style: italic;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem !important;
}

.about-image picture {
  display: block;
}

/* ===== Media ===== */
#media {
  background: var(--section-alt);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.media-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

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

.media-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-audio {
  aspect-ratio: auto;
  display: block;
  padding: 0;
  text-align: left;
  color: var(--charcoal);
}

.audio-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.audio-button picture,
.audio-button picture img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.audio-button:hover picture img,
.audio-button:focus-visible picture img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.audio-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.audio-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(26, 138, 125, 0.85); /* teal */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.audio-button:hover .audio-play-icon,
.audio-button:focus-visible .audio-play-icon {
  background: var(--gold, #d4a843);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Play triangle (default) */
.audio-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
  transition: opacity 0.15s ease;
}

/* Pause bars (when playing) */
.audio-button.playing .audio-play-icon::before {
  width: 22px;
  height: 28px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(#fff, #fff) left/7px 100% no-repeat,
    linear-gradient(#fff, #fff) right/7px 100% no-repeat;
}

/* Auto-fade the icon while playing so the photo can breathe */
.audio-button.playing .audio-play-icon {
  opacity: 0;
}

.audio-button.playing:hover .audio-play-icon,
.audio-button.playing:focus-visible .audio-play-icon {
  opacity: 1;
}

/* Progress bar pinned to the bottom of the photo */
.audio-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.audio-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold, #d4a843);
  transition: width 0.15s linear;
}

.audio-meta {
  padding: 1rem 1.2rem 1.2rem;
}

.audio-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin: 0 0 0.15rem;
}

.audio-attr {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin: 0;
}

.media-audio audio {
  display: none;
}

.media-caption {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* ===== Events ===== */
#events {
  background: var(--white);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.event-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 65px;
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.event-date .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal);
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.event-info p {
  font-size: 0.9rem;
  color: #666;
}

.event-info .event-detail {
  font-style: italic;
  margin-top: 0.2rem;
}

/* Gig poster thumbnails — alternating ladder layout */
.event-poster {
  flex-shrink: 0;
  width: 130px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}

.event-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.event-poster img:hover {
  opacity: 0.85;
}

.event-card.poster-left .event-poster {
  order: -1;
}

/* Poster lightbox */
#poster-lightbox {
  border: none;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

#poster-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.80);
}

#poster-lightbox img {
  display: block;
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

/* ===== Store ===== */
#store {
  background: var(--section-alt);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.store-card-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-body {
  padding: 1rem 1.25rem;
}

.store-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.store-card-body .price {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: #c49a38;
  color: var(--charcoal);
  transform: translateY(-1px);
}

/* ===== Email Sign-up ===== */
#signup {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  text-align: center;
}

#signup h2 {
  color: var(--white);
}

#signup .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 550px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.signup-form input:focus {
  border-color: var(--gold);
}

.signup-form .btn-gold {
  flex-shrink: 0;
}

.signup-thanks {
  font-size: 1.2rem;
  color: var(--gold-light);
  padding: 1rem 0;
}

/* ===== Donate ===== */
#donate {
  background: var(--white);
  text-align: center;
}

.donate-content {
  max-width: 600px;
  margin: 0 auto;
}

.donate-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.paypal-button-wrapper {
  max-width: 300px;
  margin: 1.5rem auto 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.footer-social-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-group .social-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social-group a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-social-group a:hover {
  color: var(--gold);
}

.coming-soon-text {
  font-style: italic;
  color: #888;
  font-size: 1.05rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(44, 44, 44, 0.98);
    padding: 1rem 0;
    flex-direction: column;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav-social {
    margin: 0.75rem 1.5rem 0;
    justify-content: flex-start;
  }

  .hero {
    height: auto;
    min-height: 60vh;
  }

  .hero-bg {
    background-size: cover;
    background-position: center top;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .about-image {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 45vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .event-card.has-poster .event-poster {
    order: -1;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
  }

  .event-card.has-poster .event-poster img {
    width: 100%;
    object-fit: cover;
    max-height: 200px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input,
  .signup-form .btn-gold {
    width: 100%;
  }
}
