/* ============================================================
   GLOBAL BASE
   ============================================================ */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Playfair Display', Georgia, serif;
  padding-top: 56px; /* height of fixed nav */
  background-image:
    linear-gradient(rgba(26,16,6,0.15), rgba(26,16,6,0.15)),
    url('/assets/texture_swirl.png'),
    url('/assets/img/texture/paper.png');
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 250px 250px, 300px 300px;
}

/* Media page — poster texture */
body.page-media {
  background-image:
    linear-gradient(rgba(26,16,6,0.15), rgba(26,16,6,0.15)),
    url('/assets/texture_poster.png'),
    url('/assets/img/texture/paper.png');
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 250px 250px, 300px 300px;
}

/* Tour page — leather texture */
body.page-tour {
  background-image:
    linear-gradient(rgba(26,16,6,0.15), rgba(26,16,6,0.15)),
    url('/assets/texture_leather.png'),
    url('/assets/img/texture/paper.png');
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 250px 250px, 300px 300px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: 'Rye', serif;
  color: var(--color-text);
}

.font-display { font-family: 'Rye', serif; }
.font-body    { font-family: 'Playfair Display', Georgia, serif; }
.font-mono    { font-family: 'Special Elite', monospace; }

a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}
a:hover { color: var(--color-highlight); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
  font-family: 'Rye', serif;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-align: center;
  position: relative;
}

/* ============================================================
   WAVY SVG DIVIDER
   ============================================================ */

.wavy-divider {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  line-height: 0;
  margin: 0.25rem 0;
}

.wavy-divider svg {
  display: block;
  width: 100%;
  height: 64px;
}

/* ============================================================
   ORNAMENTAL BORDER (concert-poster card style)
   ============================================================ */

.poster-border {
  border: 2px solid var(--color-primary);
  box-shadow:
    0 0 0 4px var(--color-bg),
    0 0 0 6px var(--color-muted);
  border-radius: 2px;
}

.poster-border-highlight {
  border: 2px solid var(--color-highlight);
  box-shadow:
    0 0 0 4px var(--color-bg),
    0 0 0 6px var(--color-primary);
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
  overflow: visible;
}

#main-nav.scrolled {
  background-color: rgba(26, 18, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

#main-nav.scrolled .nav-logo {
  height: 80px;
  width: auto;
  transition: height 0.3s ease;
}

.nav-logo {
  height: 100px;
  width: auto;
  position: relative;
  z-index: 60;
  margin-top: 25px;
  transition: height 0.3s ease;
}

/* Nav links — poster lineup style */
.nav-link {
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: scale(1.03);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

/* Mobile nav overlay */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 18, 8, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: 'Rye', serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--color-text);
  text-align: center;
  padding: 0.6rem 1rem;
  transition: color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.04em;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  transform: scale(1.05) rotate(-1deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-bg {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.scroll-chevron {
  animation: chevronBounce 1.8s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  font-family: 'Special Elite', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.6rem 1.25rem 0.4rem;
  background: var(--color-highlight);
  color: var(--color-text);
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
  border-radius: 1px;
  transform: rotate(-1.5deg);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.02) rotate(-1.5deg);
  box-shadow: 0 4px 16px rgba(212, 160, 32, 0.3);
}

.btn-outline {
  font-family: 'Special Elite', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.6rem 1.25rem 0.4rem;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  display: inline-block;
  border-radius: 1px;
  transform: rotate(-1.5deg);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.02) rotate(-1.5deg);
}

/* ============================================================
   TOUR DATE ROWS
   ============================================================ */

.tour-row {
  border-bottom: 1px solid rgba(140, 128, 112, 0.2);
  transition: background 0.15s ease;
}

.tour-row:hover {
  background: rgba(212, 160, 32, 0.05);
}

.tour-row.cancelled {
  opacity: 0.45;
  text-decoration: line-through;
}

.tour-row.past {
  opacity: 0.5;
}

/* ============================================================
   CARD / MEMBER CARDS
   ============================================================ */

.member-card {
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: scale(1.015) rotate(0.3deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ============================================================
   GALLERY / LIGHTBOX
   ============================================================ */

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,18,8,0);
  transition: background 0.25s ease;
}

.gallery-item:hover::after {
  background: rgba(26,18,8,0.25);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--color-muted);
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

#lightbox-close:hover { color: var(--color-primary); }

/* ============================================================
   PHOTO FEED GRID
   ============================================================ */

.ig-tile {
  background: var(--color-surface);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.form-field {
  width: 100%;
  background: rgba(38, 24, 8, 0.8);
  border: 1px solid rgba(140, 128, 112, 0.4);
  color: var(--color-text);
  font-family: 'Playfair Display', Georgia, serif;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease;
  border-radius: 1px;
}

.form-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.35rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-heading {
  font-family: 'Special Elite', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash-success {
  background: rgba(74, 143, 130, 0.15);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 0.75rem 1rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.flash-error {
  background: rgba(196, 83, 26, 0.15);
  border: 1px solid var(--color-highlight);
  color: var(--color-highlight);
  padding: 0.75rem 1rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
