/* ==========================================================================
   POSTMAN & THE RAMBLERS - MAIN STYLESHEET
   Consolidated CSS for the entire website
   ========================================================================== */

/* CSS Variables for colors */
:root {
  --color--white: #D9D6CC;
  --warm-beige: #D9D6CC;
  --dark-charcoal: #1B1B1B;
  --accent: #8B7355;
  --medium-grey: #3A3A3A;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Enable smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

/* Text shadow utility */
.text-shadow-lg { 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8); 
}

/* ==========================================================================
   TYPOGRAPHY - Jeffrey Martin Inspired
   ========================================================================== */

.font-display {
  font-family: 'magnosans', 'Inter', sans-serif;
}

.font-body {
  font-family: 'ten-oldstyle', 'Libre Baskerville', serif;
}

/* Main header style - Jeffrey Martin exact styling */
.h-main-title {
  color: var(--color--white);
  font-family: magnosans, sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 900;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  transform: perspective(1px);
}

/* Section headers style - Jeffrey Martin exact styling */
.h-section-large {
  color: var(--color--white);
  text-transform: uppercase;
  font-family: magnosans, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.8;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* Gallery title should be accent color */
.gallery-title.h-section-large {
  color: var(--accent) !important;
}

/* Ensure text is always visible */
h1, h2, h3, h4, h5, h6, p, a {
  position: relative;
  z-index: auto;
}

/* ==========================================================================
   LAYOUT & SECTIONS
   ========================================================================== */

/* Remove snap behavior from sections */
.snap-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: auto; /* Reset z-index to fix stacking issues */
}

.snap-section .relative {
  z-index: auto; /* Reset z-index */
}

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

/* Hero image transition */
#hero-img {
  transition: opacity 1s ease-in-out;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

/* Gallery focus carousel styles */
.gallery-item {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.3;
  filter: blur(3px);
  z-index: 1;
}

.gallery-item.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
}

.gallery-item.prev {
  transform: translate(-150%, -50%) scale(0.8);
  opacity: 0.6;
  filter: blur(2px);
  z-index: 5;
}

.gallery-item.next {
  transform: translate(50%, -50%) scale(0.8);
  opacity: 0.6;
  filter: blur(2px);
  z-index: 5;
}

.gallery-item img {
  width: auto;
  height: 600px;
  max-height: 600px;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-track {
  position: relative;
  height: 700px;
  width: 100%;
  overflow: visible;
  padding: 3rem 0;
}

/* Force gallery-track to always have a minimum height on desktop */
@media (min-width: 1301px) {
  .gallery-track {
    height: 700px;
    min-height: 700px;
  }
}

/* Videos Gallery - Match photos gallery height */
#videos-gallery:not(.hidden) {
  height: 700px;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem; /* Reduce horizontal padding for more width */
}

/* Force videos gallery to have consistent height on desktop */
@media (min-width: 1301px) {
  #videos-gallery:not(.hidden) {
    height: 700px;
    min-height: 700px;
  }
}

/* Responsive width for videos gallery on smaller screens */
@media (max-width: 1300px) {
  #videos-gallery:not(.hidden) {
    width: 60%;
    margin: 0 auto;
  }
}

/* Gallery image hover effect */
#lightgallery img {
  transition: transform 0.3s ease;
}

#lightgallery img:hover {
  transform: scale(1.05);
}

/* Ensure gallery header and subtitle are above images */
#gallery .text-center.mb-8 {
  position: relative;
  z-index: 50 !important; /* Above gallery images (which go up to z-index: 10) */
}

#gallery .gallery-title {
  position: relative;
  z-index: 50 !important; /* Above gallery images */
}

#gallery-subtitle {
  position: relative;
  z-index: 50 !important; /* Above gallery images */
}

/* ==========================================================================
   BAND MEMBER SLIDESHOW
   ========================================================================== */

/* Band member slideshow styles */
.band-member-slideshow {
  position: relative;
  overflow: hidden;
}

.member-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease-in-out;
}

.member-photo.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

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

/* Navbar z-index fix - ensure it's above gallery elements */
#modern-navbar {
  z-index: 100 !important; /* Higher than gallery elements (z-index: 50) */
}

/* Language toggle styles */
.language-btn {
  opacity: 0.6;
  border: 2px solid transparent;
  cursor: pointer;
}

.language-btn:hover {
  opacity: 0.8;
}

.language-btn.active {
  opacity: 1;
  border: 2px solid #8B7355;
  box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

/* Dropdown menu styles */
.dropdown-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.dropdown-link {
  transition: all 0.2s ease-in-out;
}

.dropdown-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT SECTION - SIMPLE ANIMATION
   ========================================================================== */

/* Background layers */
.contact-bg-dark {
  background: #1B1B1B;
}

/* Hide ALL contact content initially (header + details) */
.contact-content {
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

/* When background has slid in, show all contact content with white theme */
.contact-content.show-white {
  opacity: 1;
}

/* Accent color for main headings and labels */
.contact-content.show-white .contact-title {
  color: #8B7355; /* accent for GET IN TOUCH */
}

.contact-content.show-white .contact-details h3 {
  color: #8B7355; /* accent for BOOKING & MANAGEMENT and SOCIALS */
}

.contact-content.show-white .contact-details span {
  color: #8B7355; /* accent for Email: and Phone: labels */
}

/* Beige color for subtitle and contact info */
.contact-content.show-white .contact-subtitle {
  color: #D9D6CC; /* warm-beige for subtitle */
}

.contact-content.show-white .contact-details {
  color: #D9D6CC; /* warm-beige text */
}

.contact-content.show-white .contact-details a {
  color: #D9D6CC; /* warm-beige for email and phone links */
}

.contact-content.show-white .contact-details a:hover {
  color: #8B7355; /* accent on hover */
}

/* Social icons styling */
.contact-content.show-white .contact-details svg {
  color: #D9D6CC; /* warm-beige for social icons */
}

.contact-content.show-white .contact-details a:hover svg {
  color: #8B7355; /* accent for social icons on hover */
}

/* Contact details layout improvements */
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
  align-items: start;
}

.contact-details > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}



/* ==========================================================================
   Z-INDEX & STACKING CONTEXT
   ========================================================================== */

/* Ensure text is always visible */
h1, h2, h3, h4, h5, h6, p, a {
  position: relative;
  z-index: auto; /* Simplified z-index */
}

/* Video background fixes */
video {
  z-index: -1 !important; /* Put video behind everything */
}

/* Content containers */
.max-w-4xl, .max-w-2xl, .max-w-6xl {
  position: relative;
  z-index: auto; /* Simplified z-index */
}

/* ==========================================================================
   PERFORMANCE & ACCESSIBILITY
   ========================================================================== */

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(8px)) {
  header {
    background: rgba(217, 214, 204, 0.98) !important;
  }
}

/* Performance optimizations */
img {
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #8B7355;
  outline-offset: 2px;
}

/* ==========================================================================
   BAND MEMBER SLIDESHOW (ALTERNATIVE STYLES)
   ========================================================================== */

/* Alternative band member slideshow styles from style.css */
.member-nav {
  z-index: 10;
}

.member-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(217, 214, 204, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #D9D6CC;
}

/* ==========================================================================
   LIGHTGALLERY FIXES
   ========================================================================== */

/* Hide LightGallery containers that cause visual artifacts */
.lg-container,
.lg-custom {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* Only show LightGallery when actually opened */
.lg-container.lg-show {
  display: block !important;
  visibility: visible !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 9999 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - AGENDA SECTION
   ========================================================================== */

/* Keep the SHOWS title large on all screen sizes */
#agenda .h-section-large {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.8;
}

/* Agenda section mobile adjustments for screens under 800px */
@media (max-width: 800px) {
  /* Stack each show item vertically */
  #agenda .flex.flex-col.md\:flex-row.md\:items-center {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Make the ticket button full width */
  #agenda .border.border-warm-beige {
    width: 100%;
    margin-top: 0.75rem;
    display: block;
    text-align: center;
  }
  
  /* Ensure show info takes full width */
  #agenda .mb-2.md\:mb-0.md\:flex-1 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - GALLERY SECTION
   ========================================================================== */

/* Keep the GALLERY title large on all screen sizes */
#gallery .h-section-large {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.8;
  color: var(--accent) !important; /* Ensure gallery title keeps accent color */
}

/* Gallery section mobile adjustments for screens under 1300px */
@media (max-width: 1300px) {
  /* Reduce top padding and fix spacing issues */
  #gallery {
    padding: 4rem 1rem 4rem 1rem;
    min-height: 300px; /* Make section taller on mobile/tablet */
  }
  
  /* Hide navigation arrows for touch navigation */
  #gallery-prev,
  #gallery-next {
    display: none;
  }
  
  /* Simplify gallery track for mobile - remove complex positioning */
  .gallery-track {
    min-height: 400px !important; /* Match videos gallery height */
    height: 400px !important; /* Fixed height for consistency */
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  /* Adjust overall gallery section height for mobile */
  #gallery {
    min-height: auto;
    height: auto;
  }
  
  /* Ensure gallery container provides proper spacing for hint text */
  .gallery-container {
    margin-bottom: 2rem;
  }
  
  /* Simplify gallery items - keep transitions for animations */
  .gallery-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }
  
  .gallery-item.active {
    opacity: 1;
    z-index: 10;
  }
  
  /* Hide prev/next items on mobile */
  .gallery-item.prev,
  .gallery-item.next {
    opacity: 0;
    z-index: 1;
  }
  
  /* Adjust image sizing for mobile and remove shadow */
  .gallery-item img {
    height: 350px;
    max-height: 350px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
  }
  
  /* Fix gallery title spacing */
  #gallery .text-center.mb-8.md\\:mb-12 {
    margin-bottom: 1.5rem;
  }
  
  /* Ensure navigation hint is positioned below the gallery */
  #gallery-hint {
    display: block;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
    clear: both;
    margin: 6px;
  }
  
  /* Video gallery mobile adjustments */
  #videos-gallery:not(.hidden) {
    padding: 2rem 1rem !important; /* Reduce padding on mobile */
    height: 400px !important; /* Fixed height to match photos gallery */
    min-height: 400px !important; /* Consistent minimum height */
    overflow-y: auto !important; /* Enable vertical scrolling */
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
    align-items: flex-start !important; /* Align content to top instead of center */
    justify-content: flex-start !important; /* Align content to top instead of center */
  }
  
  #videos-gallery .grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 1.5rem !important; /* Smaller gap between items */
    max-width: 100% !important; /* Use full width */
    width: 100% !important;
    padding-bottom: 1rem !important; /* Add bottom padding for better scrolling */
  }
  
  /* Make video items full width on mobile */
  #videos-gallery .video-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Additional mobile-specific adjustments for very small screens */
@media (max-width: 768px) {
  /* Comprehensive margin removal for iPhone 12 Pro (65.2px issue) */
  #videos-gallery,
  #videos-gallery *,
  #videos-gallery .grid,
  #videos-gallery .video-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin: 0 !important;
  }
  
  /* Force full width and remove any auto margins */
  #videos-gallery {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
  
  /* Override any Tailwind or parent container margins */
  #videos-gallery .grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Make video thumbnails truly full width */
  #videos-gallery .video-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Remove any parent container auto margins that might affect videos gallery */
  #gallery {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Force the gallery container to use full width */
  #gallery > div,
  #gallery .relative,
  #gallery .max-w-6xl,
  #gallery .max-w-4xl {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - CONTACT SECTION
   ========================================================================== */

/* Contact section mobile adjustments for screens under 1200px */
@media (max-width: 1200px) {
  /* Hide the right side portrait completely */
  .contact-portrait-container {
    display: none;
  }
  
  /* Restructure main contact container */
  #contact .relative.z-10.flex.h-screen {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 0;
  }
  
  /* Move band group photo to very top */
  .band-group-container {
    order: 1;
    width: 100%;
    height: 40vh;
    margin: 0;
    margin-bottom: 44px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 5;
  }
  
  /* Move band group photo to top and make it full width */
  .contact-left {
    width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    height: auto !important; /* Reset height from desktop layout */
    flex: none !important; /* Override flex-1 from Tailwind */
  }
  
  .band-group-container .relative {
    width: 100%;
    height: 100%;
    max-width: none;
  }
  
  .band-group-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  
  /* Adjust contact content positioning */
  .contact-content {
    order: 1;
    padding: 2rem 1rem;
  }
  
  /* Change animation direction from right-to-left to top-to-bottom */
  .contact-bg-dark {
    transform: translateY(-100%) !important;
    transition-property: transform;
    transition-duration: 2000ms;
    transition-timing-function: ease-in-out;
  }
  
  .contact-bg-dark.slide-in {
    transform: translateY(0%) !important;
  }
  
  /* Adjust contact details for mobile */
  .contact-details {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }
  
  /* Make sure contact title and content are properly sized for mobile */
  .contact-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  .contact-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - ABOUT SECTION
   ========================================================================== */

/* About section mobile adjustments for very small screens under 430px */
@media (max-width: 430px) {
  /* Scale down the band member slideshow container */
  .about-image-container {
    width: calc(100% - 2rem) !important;
    max-width: 300px !important;
    height: 500px !important;
  }
  
  /* Ensure proper spacing around the slideshow */
  #about .md\:pl-8 {
    padding-left: 0 !important;
  }
  
  #about .lg\:pl-16 {
    padding-left: 0 !important;
  }
  
  #about .xl\:pl-20 {
    padding-left: 0 !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - GLOBAL FIXES
   ========================================================================== */

/* Prevent horizontal scrolling and ensure full width coverage */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Force consistent box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Ensure all sections fill full width */
.snap-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Fix any containers that might cause overflow */
.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl {
  max-width: calc(100% - 2rem);
  width: 100%;
  box-sizing: border-box;
}

/* Ensure video background covers properly without causing scroll */
#global-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#global-video-bg video {
  min-width: 100%;
  min-height: 100vh;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* ==========================================================================
   FINAL OVERRIDE - REMOVED FOR TESTING
   ========================================================================== */

/* All width constraints removed for testing */




