/* === Base Styles === */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;                          /* Remove default browser margins */
  font-family: 'Arial', sans-serif;   /* Clean sans-serif font */
  background-color: #000;             /* Black background */
  color: #fff;                        /* White text by default */
  overflow-x: hidden;
}

/* === Hero floating logo === */
.hero-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 260px;
  max-width: 260px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

@media (max-width: 768px) {
  .hero-logo {
    width: 95px;
    max-width: 95px;
    top: 1rem;
    left: 1rem;
  }
}

/* === Scroll-in animation — desktop only === */
@media (min-width: 769px) {
  section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Social Media Stack === */
.social-stack {
  position: fixed;                    /* Stick to viewport */
  top: 2em;                           /* Offset from top */
  right: 1em;                         /* Offset from right */
  display: flex;                      /* Flex container for vertical stack */
  flex-direction: column;             /* Align children vertically */
  gap: 1em;                           /* Space between icons */
  z-index: 1001;                      /* Sit above most content */
  -webkit-transform: translateZ(0);   /* Fix for some mobile browsers */
  will-change: transform;             /* Hint for performance optimization */
}

.social-item {
  position: relative;                 /* Needed for positioning label */
  display: flex;                      /* Flexbox for alignment */
  align-items: center;                /* Center vertically */
  justify-content: flex-end;          /* Align icon to right */
}

.social-item img {
  width: 40px;                        /* Icon size */
  height: 40px;
  transition: transform 0.2s ease;    /* Smooth hover scale */
}

.social-label {
  position: absolute;                 /* Position relative to parent */
  right: 60px;                        /* Place left of icon */
  opacity: 0;                         /* Hidden by default */
  background-color: rgba(0,0,0,0.7);  /* Semi-transparent black background */
  color: #fff;                        /* White text */
  padding: 0.3em 0.6em;               /* Spacing around text */
  border-radius: 4px;                 /* Rounded edges */
  white-space: nowrap;                /* Prevent text wrapping */
  transform: translateX(10px);        /* Slight offset for animation */
  transition: opacity 0.3s ease, 
              transform 0.3s ease;    /* Smooth reveal animation */
  font-size: 0.9em;                   /* Slightly smaller font */
}

.social-item:hover .social-label {
  opacity: 1;                         /* Show on hover */
  transform: translateX(0);           /* Slide in */
}

/* === Floating Navigation (Desktop) === */
.floating-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  gap: 2em;
  background: rgba(0,0,0,0.55);
  padding: 0.5em 1.8em;
  border-radius: 0 0 10px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.floating-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.25s ease;
}

.floating-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e60000;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.floating-nav a:hover {
  color: #fff;
}

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

.floating-nav a.active {
  color: #fff;
}

/* === Hamburger Button (Mobile only) === */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10001;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile Fullscreen Overlay === */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 1.5em 1em 2em;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  overflow: hidden;
}

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

.mobile-overlay-logo {
  width: 120px;
  flex-shrink: 0;
}

.mobile-overlay-logo img {
  width: 100%;
  height: auto;
}

.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-overlay-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: clamp(1.8em, 4.5vh, 2.2em);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25em 0.5em;
  transition: color 0.2s ease;
  position: relative;
}

.mobile-overlay-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e60000;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.mobile-overlay-nav a:hover {
  color: #fff;
}

.mobile-overlay-nav a:hover::after {
  width: 80%;
}

.mobile-overlay-socials {
  display: flex;
  gap: 1.2em;
  align-items: center;
}

.mobile-overlay-socials img {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-overlay-socials a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Smaller phones only - tighten further */
@media (max-height: 620px) {
  .mobile-overlay-logo {
    width: 90px;
  }
  .mobile-overlay-nav a {
    font-size: 1.5em;
    padding: 0.15em 0.5em;
  }
  .mobile-overlay {
    padding: 1em 1em 1.5em;
  }
}

/* === Social Stack — desktop only === */
@media (max-width: 768px) {
  .floating-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .social-stack {
    bottom: 1.5em;
    top: auto;
    right: auto;
    left: 1em;
    flex-direction: row;
    z-index: 999;
  }

  .social-item {
    justify-content: flex-start;
  }

  .social-label {
    right: auto;
    left: 50px;
    transform: translateX(-10px);
  }

  .social-item:hover .social-label {
    transform: translateX(0);
  }
}

/* === Headings & Sections === */
h2 {
  text-align: center;                 /* Center headings */
  font-size: 2rem;                    /* Large font size */
  margin: 2rem 0;
  color: #e60000;                     /* Bright red */
}

h1 {
  font-size: clamp(1.6rem, 5vw, 3rem); /* Scales: ~1.6rem mobile → 3rem desktop */
  margin: 0.5em 0;
  color: red;                       /* Match the main section text color */
}

section {
  min-height: 100vh;                  /* Fill full viewport height */
  width: 100%;                        /* Full width */
  display: flex;                      /* Flex container */
  flex-direction: column;             /* Vertical stacking */
  justify-content: center;            /* Center content vertically */
  padding: 2em;
  box-sizing: border-box;             /* Include padding in dimensions */
}

/* === Main Section === */
#main {
  height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
  overflow: hidden;
  background: url('images/main.jpg') top center no-repeat;
  background-size: 100% auto;   /* Scale to full width */
  background-attachment: scroll; /* No fixed lock */
}

/* On mobile, swap to mobile image */
@media (max-width: 768px) {
  #main {
    background-image: url('images/main_mobile.jpg');
    background-size: cover;      /* Fill screen neatly */
    background-position: center top;
    background-repeat: no-repeat;
  }
}

.main-overlay {
  max-width: 800px;                   /* Limit text width */
  margin: 0 auto;
  text-align: center;
  padding: 35rem 2rem 2rem;            /* Add spacing from top */
  text-shadow: 4px 4px 8px black;     /* Shadow for readability */
}

.main-image {
  position: absolute;
  inset: 0;                           /* Cover whole section */
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* Cover scaling */
  z-index: 0;
}

#main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;                         /* Placeholder overlay (disabled) */
}

.main-text-bg {
  background-color: rgba(0,0,0,0.6);  /* Dark transparent background */
  padding: 2rem;
  border-radius: 8px;
  display: inline-block;
}

/* (dates link styles now handled by .show-cal-btn) */

/* === Band Section === */
#band {
  position: relative;
  color: white;
  z-index: 0;
  overflow: hidden;
  padding: 4em 2em;
  background: url('images/dates_bg.avif') top right / cover no-repeat;
  background: url('images/dates_bg.jpg') top right / cover no-repeat;
}

#band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  z-index: 0;
}

#band h2,
.band-grid,
#band .band-description {
  position: relative;
  z-index: 1;
}

.band-grid {
  display: flex;
  flex-wrap: wrap;                    /* Wrap members if needed */
  gap: 2em;                           /* Spacing between members */
  justify-content: center;
}

.band-member {
  text-align: center;
  max-width: 200px;
}

/* Scroll-in animation — desktop only */
@media (min-width: 769px) {
  .band-member {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .band-member.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.band-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;                 /* Circle images */
  border: 3px solid red;              /* Red border */
  object-fit: cover;                  /* Fill crop */
  transition: transform 0.3s ease;    /* Smooth hover zoom */
}

.band-member img:hover {
  transform: scale(1.1) rotate(3deg); /* Scale + rotate 3 degrees */
  transition: transform 0.3s ease;    /* Smooth transition */
}

#band .band-description {
  color: #ffffff !important;   /* Force white text */
  text-align: center;
  max-width: 800px;
  margin: 2em auto 0;
  line-height: 1.6;
  font-size: 1.1em;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1.5em;
}

/* ============================================================
   BAND MEMBER POPUP — Add after .band-description styles (~line 457)
   ============================================================ */

/* Clickable cursor on band member cards */
.band-member {
  cursor: pointer;
}

/* Extra glow ring on hover to hint it's clickable */
.band-member:hover img {
  box-shadow: 0 0 0 5px rgba(230, 0, 0, 0.45);
}

/* === Modal Overlay === */
#member-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  box-sizing: border-box;
}

#member-modal.open {
  display: flex;
}

/* === Modal Card === */
.member-modal-card {
  position: relative;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  max-width: 700px;
  width: 100%;
  padding: 2.2em 2.2em 2.2em 2em;
  box-sizing: border-box;
  display: flex;
  gap: 2.2em;
  align-items: flex-start;
  animation: mmSlideIn 0.28s ease-out;
}

@keyframes mmSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Close Button === */
.member-modal-close {
  position: absolute;
  top: 0.9em;
  right: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.member-modal-close:hover {
  background: #e60000;
}

/* === Left Column: Photo === */
.member-modal-photo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.member-modal-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #e60000;
  box-shadow: 0 0 24px rgba(230, 0, 0, 0.35);
}

.member-modal-instrument {
  font-size: 0.72em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e60000;
  font-weight: 700;
  text-align: center;
}

/* === Right Column: Info === */
.member-modal-info {
  flex: 1;
  min-width: 0;
}

.member-modal-name {
  font-size: 1.7em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15em;
  line-height: 1.1;
}

.member-modal-years {
  font-size: 0.75em;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

.member-modal-bio {
  font-size: 0.93em;
  line-height: 1.72;
  color: #ddd;
  margin: 0 0 1.1em;
}

.member-modal-funfact {
  background: rgba(230, 0, 0, 0.1);
  border-left: 3px solid #e60000;
  border-radius: 0 6px 6px 0;
  padding: 0.65em 1em;
  font-size: 0.87em;
  color: #eee;
  line-height: 1.5;
  margin-bottom: 1em;
}

.member-modal-funfact strong {
  display: block;
  color: #e60000;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2em;
}

.member-modal-social {
  display: inline-block;
  color: #e60000;
  font-size: 0.83em;
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(230, 0, 0, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.member-modal-social:hover {
  color: #fff;
  border-color: #fff;
}

/* === Mobile: bottom sheet === */
@media (max-width: 600px) {
  #member-modal {
    padding: 0;
    align-items: flex-end;
  }

  .member-modal-card {
    border-radius: 18px 18px 0 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8em 1.3em 2.2em;
    gap: 1em;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    animation: mmSlideUp 0.3s ease-out;
  }

  @keyframes mmSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .member-modal-photo img {
    width: 120px;
    height: 120px;
  }

  .member-modal-funfact {
    text-align: left;
  }
}

/* === Gallery Section === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive columns */
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;                 /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Soft shadow */
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease;   /* Smooth zoom + shadow */
}

.gallery-img:hover {
  transform: scale(1.2);              /* Zoom on hover */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2;                         /* Pop above neighbors */
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);        /* Dark overlay */
  display: none;                      /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;                      /* Above all */
}

#lightbox img {
  max-width: 90%;                     /* Scale for viewport */
  max-height: 90%;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  cursor: pointer;                    /* Click to close */
}

/* === Tour Dates Section === */
#dates {
  position: relative;
  background: #000;
  color: #f0f0f0;
  padding: 2em;
  overflow: hidden;
  z-index: 0;
}

#dates::before {
  content: none;
}

#dates > * {
  position: relative;
  z-index: 1;
  text-align: center;
}

#dates-container,
#dates-container * {
  text-align: left;
}

#dates h2 {
  text-align: center;
  color: #e60000;
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
}

/* === Dates Container === */
#dates-container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* === Month Label === */
.dates-month-label {
  font-size: 0.78em;
  font-weight: bold;
  color: #e60000;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin: 2em 0 0.75em;
  text-align: left !important;
}

.dates-month-label:first-child {
  margin-top: 0;
}

/* === Two Column Grid === */
.dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}

@media (max-width: 680px) {
  .dates-grid {
    grid-template-columns: 1fr;
  }
}

/* === Show Card === */
.show-card {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.show-card:hover {
  background: rgba(255,255,255,0.1);
}

/* === Colored Date Block === */
.show-date-block {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
}

.show-day-num {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.show-day-name {
  font-size: 0.65em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* === Card Body === */
.show-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.show-full-date {
  font-size: 0.73em;
  color: #aaa;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-venue-name {
  font-size: 0.9em;
  font-weight: bold;
  color: #fff;
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
}

.show-time {
  font-size: 0.73em;
  color: #aaa;
  margin-top: 5px;
}

.show-cal-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.show-cal-btn a {
  font-size: 0.7em;
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 4px 8px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}

.show-cal-btn a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* (dates link styles handled by .show-cal-btn) */

/* === Merch Section === */
#merch {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 4em 2em;
}

#merch h2 {
  color: #e60000;
  margin-bottom: 1em;
}

#merch .merch-intro {
  max-width: 600px;
  margin: 0 auto 3em;
  font-size: 1.2em;
  color: #ddd;
}

.merch-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.merch-item {
  background-color: #111;
  padding: 1.5em;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch-item:hover {
  box-shadow: 0 0 30px rgba(255,0,0,0.3);
}

.merch-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1em;
  cursor: pointer;
}

@media (hover: hover) {
  .merch-item img:hover {
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
  }
}

.merch-item h3 {
  color: #e60000;
  margin-bottom: 0.5em;
}

.merch-item p {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 1em;
}

.request-btn {
  background-color: #e60000;
  color: #fff;
  border: none;
  padding: 0.8em 1.5em;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.request-btn:hover {
  background-color: #b30000;
}


/* === Modal Form === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-content {
  background-color: #111;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255,255,255,.2);
  position: relative;
  text-align: left;
}

.modal-content h3 {
  text-align: center;
  color: #e60000;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.8em;
  color: #fff;
  cursor: pointer;
}

.close:hover {
  color: #e60000;
}




/* === Book Us Section === */
#book-us {
  background-color: #000;
  color: #fff;
  padding: 4em 2em;
  text-align: center;
}

#book-us h2 {
  color: #e60000;                     /* Red heading */
  margin-bottom: 2em;
}

form {
  max-width: 700px;                   /* Wide form */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2em;                           /* Space between inputs */
  padding: 3em;
  background-color: rgba(255,255,255,0.05); /* Light overlay */
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,0,0,0.2);   /* Red glow */
}

.form-row {
  display: flex;
  gap: 1.5em;                         /* Space between fields */
}

.col {
  flex: 1;                            /* Equal width columns */
}

input, textarea {
  width: 100%;
  padding: 1.2em;
  font-size: 1.1em;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #111;
  color: #fff;
  transition: border-color 0.3s ease; /* Smooth border highlight */
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #e60000;              /* Red border on focus */
}

textarea {
  min-height: 200px;
  resize: vertical;                   /* Allow resize only vertically */
}

button {
  background-color: #e60000;          /* Red background */
  color: white;
  padding: 1em;
  font-size: 1.2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, 
              transform 0.2s ease;
}

button:hover {
  background-color: #b30000;          /* Darker red on hover */
  transform: scale(1.05);             /* Subtle zoom */
}

/* === Disable slide-up animation for main section === */
#main {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;           /* Stack fields vertically */
  }

  form {
    padding: 2em;
    max-width: 90%;                   /* Narrower form */
  }

  #book-us h2 {
    font-size: 2em;
  }
}

/* === Footer === */
footer {
  background-color: #111;
  padding: 1em;
  text-align: center;
  position: relative;
  z-index: 1002;                      /* Above social-stack (z-index: 999) on mobile */
}

footer img {
  width: 30px;
  margin: 0 0.5em;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: 0.5em;
}

/* === Venue Section (in Contact Us) === */
.venue-gallery {
  margin-top: 3em;
  color: #f0f0f0;
  text-align: center;
}

.venue-gallery h3 {
  font-size: 1.2em;
  color: #e00;                        /* Red heading */
  margin-bottom: 1em;
}

.venue-grid {
  display: flex;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;                    /* Wrap images */
  max-width: 800px;
  margin: 0 auto;
}

.venue-grid img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* On desktop, hide the carousel track wrapper — images sit directly in venue-grid */
.venue-grid-track {
  display: contents; /* children participate in flex layout as if track doesn't exist */
}

/* Duplicated images (aria-hidden) are hidden on desktop */
.venue-grid img[aria-hidden="true"] {
  display: none;
}

/* === Mobile: auto-scrolling venue carousel === */
@media (max-width: 768px) {
  .venue-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.2em;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  .venue-grid-track {
    display: flex;
    gap: 1.2em;
    animation: venue-scroll 18s linear infinite;
    width: max-content;
  }

  .venue-grid img[aria-hidden="true"] {
    display: block; /* show duplicates for seamless loop */
  }

  .venue-grid img {
    width: 160px;
    flex-shrink: 0;
    border-radius: 6px;
  }

  @keyframes venue-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* === Gallery Grid Wider (Desktop Only) === */
@media (min-width: 769px) {
  .gallery-grid {
    max-width: 900px;                 /* Limit gallery size */
    margin: 0 auto;
  }
}

/* === Fix hero text position on mobile === */
@media (max-width: 768px) {
  .main-overlay {
    padding: 8rem 1.5rem 2rem; /* much smaller top padding */
  }

  #main {
    align-items: center;       /* center text vertically */
    background-position: center top;
    background-size: cover;
  }

  /* Instant appear on mobile — no blank scroll gap */
  section,
  .venue-gallery,
  footer,
  .band-member {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}