/* ==========================================================================
   01. DESIGN TOKENS & FIXED FULL-PAGE BACKGROUND
   ========================================================================== */

:root {
  --bg: #100e12;
  --bg-raised: #17141a;
  --line: #2c2731;
  --text: #ede8e2;
  --text-dim: #a79fae;
  --wine: #8e2436;
  --wine-bright: #b23349;

  --font-display: 'Barlow Semi Condensed', 'Bahnschrift', 'DIN Alternate', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Base body styles shared by all bands */
body {
  margin: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* Band-specific background overrides */
body.page-dreamside     { background-image: url('../images/dreamside/bg_thedreamside.jpg'); }
body.page-casket        { background-image: url('../images/casket/bg_casket.jpg'); }
body.page-capstone      { background-image: url('../images/capstone/bg_capstone.jpg'); }
body.page-afello        { background-image: url('../images/afello/bg_afello.jpg'); }
body.page-kgb           { background-image: url('../images/kgb/bg_kgb.jpg'); }
body.page-berlin-heart  { background-image: url('../images/a_berlin_heart/bg_a_berlin_heart.jpg'); }
body.page-electric-violet { background-image: url('../images/electric_violet/bg_electric_violet.jpg'); }

img {
  max-width: 100%;
  display: block;
}

/* Global iFrame Reset */
iframe {
  border: 0;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ==========================================================================
   02. ACCESSIBILITY, UTILITIES & EXPANDABLE CONTAINERS
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wine);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Expandable Grid Container System */
.expandable-grid-container {
  width: 100%;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Releases Container: Fits 1 row of Spotify cards */
#releases-container {
  max-height: 280px;
}

/* Shop Container: Fits 2 rows of Bandcamp cards */
#shop-container {
  max-height: 320px;
}

/* Expanded state override */
.expandable-grid-container.is-expanded {
  max-height: 4000px !important;
}

.grid-toggle-btn {
  background: none;
  border: none;
  color: var(--wine-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 1.25rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: inline-block;
  transition: color 0.15s ease;
}

.grid-toggle-btn:hover {
  color: var(--text);
}


/* ==========================================================================
   03. SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 14, 18, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  height: 34px;
  width: auto;
}

.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--text);
  border-color: var(--wine-bright);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .arrow {
  font-size: 0.65rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.15s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 30;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.4rem 1rem !important;
  font-size: 0.85rem;
  text-transform: none;
  border-bottom: none !important;
  color: var(--text-dim);
}

.dropdown-menu a:hover {
  background: var(--line);
  color: var(--text);
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

@media (min-width: 781px) {
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}


/* ==========================================================================
   04. HERO SECTION & SHOUT BOX
   ========================================================================== */

.band-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(16, 14, 18, 0.92) 0%, 
    rgba(16, 14, 18, 0.65) 50%, 
    rgba(16, 14, 18, 0.85) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--wine-bright);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.hero-main-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 55ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
}

.btn-primary:hover {
  background: var(--wine-bright);
  border-color: var(--wine-bright);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(23, 20, 26, 0.8);
}

.btn-secondary:hover {
  border-color: var(--wine-bright);
  color: var(--text);
}

/* Hero Social Icons List */
.hero-socials {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-socials li {
  margin: 0;
}

.hero-socials a {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.85;
}

.hero-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-socials img {
  width: 40px;
  height: 40px;
  display: block;
}

/* Shout Box Card */
.shout-box {
  background: rgba(23, 20, 26, 0.92);
  border: 1px solid var(--wine-bright);
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  position: relative;
}

.shout-badge {
  position: absolute;
  top: -12px;
  right: 15px;
  background: var(--wine-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}

.shout-thumb {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.shout-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.shout-title {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.shout-btn {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--wine-bright);
  font-weight: 600;
  transition: color 0.15s ease;
}

.shout-btn:hover {
  color: var(--text);
}


/* ==========================================================================
   05. FULL-WIDTH SINGLE SECTIONS
   ========================================================================== */

.band-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 14, 18, 0.92);
  backdrop-filter: blur(3px);
}

.bg-raised {
  background: rgba(23, 20, 26, 0.95);
}

.section-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.band-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1.5rem;
}

.prose p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  max-width: 85ch;
}

/* Expandable Bio Toggle */
.bio-more[hidden] {
  display: none;
}

.bio-toggle-btn {
  background: none;
  border: none;
  color: var(--wine-bright);
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: color 0.15s ease;
}

.bio-toggle-btn:hover {
  color: var(--text);
}


/* ==========================================================================
   06. SPOTIFY DISCOGRAPHY GRID
   ========================================================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  margin: 0;
}

.view-all {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wine-bright);
  font-weight: 600;
  transition: color 0.15s ease;
}

.view-all:hover {
  color: var(--text);
}

.spotify-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.spotify-embed-card {
  background: rgba(23, 20, 26, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.spotify-embed-card:hover {
  border-color: var(--wine-bright);
}

.spotify-embed-card__header {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.spotify-embed-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.02em;
}

.spotify-embed-card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}


/* ==========================================================================
   07. SHOP SECTION & BANDCAMP GRID
   ========================================================================== */

.shop-disclaimer {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: none;
  line-height: 1.6;
}

.shop-action {
  margin-bottom: 2rem;
}

.shop-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wine-bright);
  font-weight: 600;
  transition: color 0.15s ease;
}

.shop-link:hover {
  color: var(--text);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.shop-card {
  background: rgba(16, 14, 18, 0.85);
  border: 1px solid var(--line);
  padding: 0.75rem;
  transition: border-color 0.2s ease;
}

.shop-card:hover {
  border-color: var(--wine-bright);
}


/* ==========================================================================
   08. PHOTOS CAROUSEL & LIGHTBOX MODAL
   ========================================================================== */

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header-flex h2 {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: rgba(23, 20, 26, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.carousel-btn:hover {
  border-color: var(--wine-bright);
  color: var(--wine-bright);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.photo-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.photo-img:hover {
  border-color: var(--wine-bright);
}

.photo-credit {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Lightbox Modal */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.media-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.media-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 12, 0.94);
  backdrop-filter: blur(8px);
}

.media-modal-content {
  position: relative;
  z-index: 1001;
  width: 90vw;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-media-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.media-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.media-modal-caption {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.media-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.media-modal-close:hover {
  color: var(--wine-bright);
}


/* ==========================================================================
   09. VIDEO EMBED CAROUSEL
   ========================================================================== */

.video-embed-card {
  background: rgba(16, 14, 18, 0.85);
  border: 1px solid var(--line);
  padding: 0.75rem;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin: 0.75rem 0 0.25rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==========================================================================
   10. LINEUP & CONTACT
   ========================================================================== */

/* Member Lineup Grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.member-card {
  background: rgba(16, 14, 18, 0.85);
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.member-card:hover {
  border-color: var(--wine-bright);
}

.member-photo-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.member-role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--wine-bright);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
}

.member-bio {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Contact Card */
.contact-card {
  background: rgba(16, 14, 18, 0.85);
  border: 1px solid var(--line);
  padding: 2.5rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-email a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--wine-bright);
  transition: color 0.15s ease;
}

.contact-email a:hover {
  color: var(--text);
}

.contact-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Member Grid Responsive Breakpoints */
@media (max-width: 820px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo-wrapper {
    width: 140px;
    height: 140px;
  }
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(23, 20, 26, 0.98);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-mark {
  height: 30px;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.footer-nav h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--wine-bright);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
}


/* ==========================================================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .carousel-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  #shop-container {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
}

@media (max-width: 780px) {
  .nav-toggle { 
    display: flex; 
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
  }

  .primary-nav.is-open { 
    display: block; 
  }

  .primary-nav > ul { 
    flex-direction: column; 
    align-items: flex-start;
    gap: 1rem; 
  }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { 
    grid-column: 1 / -1; 
  }
}