/* Self-hosted fonts — eliminates FOUT from Google Fonts CDN */
@font-face {
  font-family: 'Passion One';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/PassionOne-Regular-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Passion One';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/PassionOne-Bold-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/OpenSans-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  --color-tan: #D4A05C;
  --color-mustard: #E8B630;
  --color-teal: #1E7A6F;
  --color-dark: #1A1A1A;
  --color-cream: #FFF8F0;
  --color-red: #8B2020;
  --color-tan-light: #F0E0C8;
  --color-tan-dark: #A07838;
  --font-display: 'Passion One', Impact, sans-serif;
  --font-body: 'Open Sans', -apple-system, Helvetica, Arial, sans-serif;
  --wrap-max: 720px;
  --wrap-pad: 24px;
}

/* ==========================================================================
   MOBILE-FIRST BASE
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html { overflow-y: auto; }

body {
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-dark);
}

* { box-sizing: border-box; }

a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: underline; color: #155E54; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
}

h1 { font-size: 2.4em; margin: 0 0 0.3em; }
h2 { font-size: 1.8em; margin: 0 0 0.5em; }
h3 { font-size: 1.35em; margin: 0 0 0.3em; }

.newline { clear: both; }
.nowrap { white-space: nowrap; }

/* Reusable content wrapper — keeps text at a readable measure */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.wrapCenter { text-align: center; }

.wrapWide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

/* Full-bleed sections */
.section {
  padding: 48px 0;
}

.sectionCream { background: var(--color-cream); }
.sectionDark  { background: var(--color-dark); color: var(--color-cream); }
.sectionTan   { background: var(--color-tan-light); }

/* ==========================================================================
   HAMBURGER MENU (Mobile)
   ========================================================================== */

.nav-toggle {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.nav-toggle-label {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 30px;
  cursor: pointer;
  z-index: 100;
  background: rgba(255,248,240,0.85);
  border-radius: 4px;
  padding: 4px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--color-dark);
  height: 3px;
  width: 26px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { content: ''; position: absolute; top: -8px; }
.nav-toggle-label span::after  { content: ''; position: absolute; top: 8px; }

/* Overlay behind nav — tap to close */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.4);
}

.nav-toggle:checked ~ .nav-overlay {
  display: block;
}

.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; background: var(--color-dark); }
.nav-toggle:checked ~ .nav-toggle-label span::after  { transform: rotate(-45deg); top: 0; background: var(--color-dark); }

/* ==========================================================================
   LOGO / HEADER (used in nav bar on inner pages)
   ========================================================================== */

.logo {
  text-align: center;
  padding: 12px 0 10px;
}

.logo a { text-decoration: none; }

.logo .logoFull {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

.logo .logoText {
  font-family: var(--font-display);
  font-size: 1.2em;
  color: var(--color-dark);
  vertical-align: middle;
  margin-left: 8px;
}

/* ==========================================================================
   NAVIGATION (Mobile — slide-out panel)
   ========================================================================== */

#navigationlinks {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--color-cream);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  z-index: 90;
  overflow: hidden;
  overscroll-behavior: contain;
  padding-top: 60px;
  border-right: 3px solid var(--color-tan);
}

body:has(.nav-toggle:checked) #navigationlinks {
  transform: translateX(0);
  visibility: visible;
  overflow-y: auto;
}

#navigationlinks ul { list-style: none; margin: 0; padding: 0; }
#navigationlinks li { display: block; border-bottom: 1px solid var(--color-tan-light); }

#navigationlinks li a,
#navigationlinks li span {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--color-dark);
  text-decoration: none;
}

#navigationlinks li a:hover { background: var(--color-tan-light); text-decoration: none; }
#navigationlinks li span    { color: var(--color-teal); font-weight: 700; }

/* ==========================================================================
   CONTENT AREA
   ========================================================================== */

.content {
  background: var(--color-cream);
  min-height: 100vh;
}

.contentBody {
  padding: 0;
}

/* Page header banner for inner pages */
.pageHeader {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-tan);
}

.pageHeader h1 {
  margin: 0;
  font-size: 2.2em;
}

/* Inner pages (non-homepage) get padded content */
#shows .contentBody,
#contact .contentBody,
#badurl .contentBody,
#forbidden .contentBody {
  padding: 32px var(--wrap-pad) 48px;
  max-width: var(--wrap-max);
  margin: 0 auto;
}

#about .contentBody,
#media .contentBody {
  padding: 32px var(--wrap-pad) 48px;
  max-width: 960px;
  margin: 0 auto;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

.hero {
  position: relative;
  background-image: url('/images/gallery/100A8116.jpg');
  background-size: cover;
  background-position: center 30%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.35) 0%,
    rgba(26,26,26,0.55) 100%
  );
}

.heroOverlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px var(--wrap-pad);
}

.heroLogo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 2.8em;
  color: #fff;
  margin: 16px 0 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--color-tan-light);
  margin: 0;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.introText {
  font-size: 1.15em;
  text-align: center;
  line-height: 1.8;
  margin: 0;
}

/* Next show band */
.nextShow {
  text-align: center;
}

.nextShow h2 {
  color: var(--color-mustard);
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 10px;
}

.nextShow .showDate {
  font-family: var(--font-display);
  font-size: 1.4em;
  color: var(--color-cream);
}

.nextShow .showVenue {
  font-size: 1.1em;
  color: var(--color-tan-light);
  margin-top: 4px;
}


.nextShow .nextShowCTA {
  margin-top: 20px;
}

.nextShow .nextShowCTA .btn {
  margin: 0 6px;
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-teal);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.15em;
  letter-spacing: 0.06em;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #155E54;
  transform: translateY(-1px);
}

.btnLarge {
  padding: 18px 48px;
  font-size: 1.3em;
}

.btnTip { background: #7A5A28; }
.btnTip:hover { background: #5E4520; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.bandBio {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-tan-light);
}

.bandBio p {
  max-width: 65ch;
}

.memberBio {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-tan-light);
}

.memberBio:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.memberPhoto {
  margin-bottom: 20px;
}

.memberPhoto img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.memberText h3 {
  color: var(--color-teal);
  font-size: 1.4em;
  margin: 0 0 8px;
}

.memberText p {
  max-width: 60ch;
  margin-top: 0;
}

/* ==========================================================================
   SHOWS PAGE
   ========================================================================== */

.showList {
  margin-bottom: 32px;
}

.showItem {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-tan-light);
}

.showItem:first-child { padding-top: 0; }

.showItem.upcoming {
  border-left: 4px solid var(--color-teal);
  padding-left: 20px;
}

.showItem .showDate {
  font-family: var(--font-display);
  font-size: 1.2em;
  color: var(--color-dark);
}

.showItem .showVenue {
  font-size: 1.05em;
  margin-top: 4px;
}

.showItem .showAddress { color: #595959; }

.showItem .showNote {
  font-style: italic;
  color: #595959;
  margin-top: 4px;
  font-size: 0.9em;
}

.showIcons {
  display: inline;
  margin-left: 6px;
  white-space: nowrap;
}

.showIcons a {
  display: inline-block;
  margin-left: 3px;
  opacity: 0.4;
  transition: opacity 0.2s;
  vertical-align: baseline;
}

.showIcons a:hover {
  opacity: 1;
  text-decoration: none;
}

.showIcons img {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Inverted icons for dark backgrounds */
.showIconsLight img {
  filter: invert(1);
}

.showIconsLight a {
  opacity: 0.5;
}

.showList.past .showItem .showDate { color: #595959; }
.showList.past .showItem .showAddress { color: #595959; }

/* ==========================================================================
   MEDIA PAGE
   ========================================================================== */

.videoEmbed {
  margin-bottom: 48px;
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.photoCredit {
  color: #595959;
  font-style: italic;
  margin-bottom: 20px;
}

/* Justified row layout — images fill each row proportionally like Google Photos */
.photoGallery {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.photoGallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
  height: 200px;
  flex-grow: 1;
}

/* Landscape images get more width, portrait less — proportional to aspect ratio */
.photoGallery a.landscape { flex-basis: 260px; }
.photoGallery a.portrait  { flex-basis: 140px; }
.photoGallery a.square    { flex-basis: 200px; }

.photoGallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photoGallery a:hover img {
  transform: scale(1.04);
}

.pswp__img--placeholder { display: none !important; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

#contactPreamble {
  margin-bottom: 28px;
  font-size: 1.05em;
}

#contactForm fieldset { border: none; padding: 0; margin: 0; }
#contactForm ol { list-style: none; padding: 0; margin: 0; }

#contactForm li {
  margin-bottom: 20px;
}

#contactForm label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95em;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm textarea,
#contactForm select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-tan-light);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1em;
  background: #fff;
  transition: border-color 0.2s;
}

#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  border-color: var(--color-teal);
  outline: none;
}

#contactForm input[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--color-teal);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 1.25em;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

#contactForm input[type="submit"]:hover {
  background: #155E54;
  transform: translateY(-1px);
}

.inputErrorField { border-color: var(--color-red) !important; background: #FFF0F0 !important; }
.errortip { display: block; color: var(--color-red); font-size: 0.85em; margin-top: 4px; }

.ui-state-error {
  color: var(--color-red);
  font-weight: 600;
  padding: 12px 16px;
  background: #FFF0F0;
  border: 1px solid var(--color-red);
  border-radius: 5px;
  margin-bottom: 20px;
}

.errorMessage { color: var(--color-red); font-weight: 600; }

.successMessage {
  padding: 24px;
  background: #F0FFF0;
  border: 1px solid var(--color-teal);
  border-radius: 5px;
  margin-bottom: 24px;
}

.formRow--optional { position: absolute; left: -9999px; top: -9999px; }

.tipJar {
  margin-top: 40px;
  padding: 28px;
  background: var(--color-tan-light);
  border-radius: 6px;
  text-align: center;
}

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

.desktopFooter { display: none; }

.mobileFooter {
  padding: 32px var(--wrap-pad);
  text-align: center;
  background: var(--color-dark);
  color: var(--color-cream);
}

.socialLinks { margin-bottom: 12px; }

.socialLinks a {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.socialLinks a:hover { opacity: 1; }
.socialLinks img { width: 28px; height: 28px; filter: invert(1); }

.copyright { font-size: 0.85em; color: #999; margin: 5px 0; }

.mobileOnly { }

/* ==========================================================================
   DESKTOP (806px+)
   ========================================================================== */

@media screen and (min-width: 806px) {

  html { overflow-y: scroll; }

  body { font-size: 18px; }

  :root {
    --wrap-max: 720px;
    --wrap-pad: 32px;
  }

  /* Full-width — no bordered box */
  .content {
    width: 100%;
    max-width: 100%;
  }

  .contentBody {
    padding: 0;
  }

  #shows .contentBody,
  #contact .contentBody,
  #badurl .contentBody,
  #forbidden .contentBody {
    padding: 48px 32px 64px;
    max-width: var(--wrap-max);
  }

  #about .contentBody,
  #media .contentBody {
    padding: 48px 32px 64px;
    max-width: 960px;
  }

  /* Hide hamburger */
  .nav-toggle-label { display: none; }
  .nav-overlay { display: none !important; }
  .mobileOnly { display: none !important; }

  /* Logo bar */
  .logo { padding: 14px 0 4px; }
  .logo .logoFull { width: 56px; height: 56px; }
  .logo .logoText { font-size: 1.4em; }

  /* Desktop nav — horizontal */
  #navigationlinks {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    visibility: visible;
    overflow: visible;
    padding: 0 0 6px;
    border-right: none;
    text-align: center;
  }

  #navigationlinks ul { display: inline-block; }
  #navigationlinks li { display: inline-block; border-bottom: none; }

  #navigationlinks li a,
  #navigationlinks li span {
    display: inline-block;
    padding: 5px 16px;
    font-size: 1.1em;
  }

  #navigationlinks li a:hover {
    background: var(--color-tan-light);
    border-radius: 3px;
  }

  /* Hero */
  .hero {
    background-image: url('/images/gallery/100A8108.jpg');
    min-height: 80vh;
  }

  .heroLogo {
    width: 220px;
    height: 220px;
  }

  .hero h1 {
    font-size: 4em;
  }

  .tagline {
    font-size: 1.6em;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .introText {
    font-size: 1.2em;
  }

  /* About — side-by-side bios */
  .memberBio {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 56px;
  }

  .memberBio:nth-child(even) {
    flex-direction: row-reverse;
  }

  .memberPhoto {
    flex: 0 0 300px;
    margin-bottom: 0;
  }

  .memberPhoto img {
    max-width: 300px;
  }

  .memberText {
    flex: 1;
  }

  /* Gallery — taller rows on desktop */
  .photoGallery {
    gap: 8px;
  }

  .photoGallery a {
    height: 280px;
  }

  .photoGallery a.landscape { flex-basis: 380px; }
  .photoGallery a.portrait  { flex-basis: 200px; }
  .photoGallery a.square    { flex-basis: 280px; }

  /* Contact */
  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm input[type="tel"] {
    width: 60%;
  }

  #contactForm input[type="submit"] {
    width: auto;
    padding: 16px 56px;
  }

  /* Footer */
  .mobileFooter { display: none; }

  .desktopFooter {
    display: block;
    text-align: center;
    padding: 24px 0 40px;
    background: var(--color-dark);
    color: var(--color-cream);
  }

  .desktopFooter .socialLinks img { filter: invert(1); }
  .desktopFooter .copyright { color: #999; }
}
