/* Reset some default browser styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden; /* We will scroll only in the right panel */
  margin: 0;
  padding: 0;
}

/* Navigation Menu */
.site-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 8px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(201, 163, 107, 0.3);
  transition: all 0.3s ease;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0 10px;
}

.site-nav .nav-link {
  color: #795009;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.site-nav .nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #C9A36B;
  transition: width 0.3s ease;
}

.site-nav .nav-link:hover {
  color: #C9A36B;
}

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

/* Mobile navigation styles */
@media screen and (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    text-align: center;
    padding: 10px 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  
  .site-nav ul {
    justify-content: center;
  }
}

/* Container holds the left and right panels side by side */
.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Media query for mobile devices */
@media screen and (max-width: 720px) {
  body {
    overflow: auto;
    height: auto;
    width: 100%;
  }
  
  .container {
    flex-direction: column;
    height: auto;
  }
}

.left-panel {
  position: sticky;
  top: 0;
  width: 60vw;
  height: 100vh;
  overflow: hidden; /* Ensure layers don't spill out */
  padding: 4rem;
  color: #fff;
}

/* Title area in the left panel */
.left-panel .title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.left-panel .subtitle {
  font-size: 1.3rem;
  max-width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Right panel is scrollable and holds the main content sections */
.right-panel {
  width: 40vw;
  height: 100vh;
  overflow-y: auto; /* We enable vertical scrolling here */
  padding: 2rem;
  scroll-behavior: smooth;
}

/* Mobile styles for panels */
@media screen and (max-width: 720px) {
  .left-panel {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0;
    min-height: 100vh;
  }
  
  .left-panel .content {
    position: absolute;
    top: 8rem; /* Increased to account for fixed navigation */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 2rem;
  }
  
  .left-panel .title {
    font-size: 2.2rem;
    width: 100%;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    color: white;
  }
  
  .left-panel .subtitle {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
  }
  
  .right-panel {
    width: 100%;
    height: auto;
    overflow-y: visible;
    padding: 0;
  }
}

/* Each section takes at least the full viewport height for the "slide" feel */
section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  padding: 2rem 0;
}

/* Remove bottom border from last section */
section:last-child {
  border-bottom: none;
}

/* Mobile styles for sections */
@media screen and (max-width: 720px) {
  section {
    min-height: auto;
    padding: 0 0 3rem 0; /* No horizontal padding */
    width: 100%;
  }
  
  /* Content needs padding but not the images */
  section > *:not(.mobile-section-bg) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* First section (hero) needs more padding to accommodate title and nav */
  section.hero-section {
    padding-top: 4rem; /* Increased to account for fixed navigation */
  }
  
  /* Add scroll margin for navigation anchor points */
  section[id] {
    scroll-margin-top: 60px;
  }
}

section h2,
section h3,
section p {
  margin-bottom: 1rem;
}

/* Q&A section styling - moved to combined selector */

/* Keep all section headings in Playfair Display */

/* Moved to combined selector above */

/* Moved to combined selector above */

/* Moved to combined selector below */

.qa-section .answer,
.plan-section .event-time,
.plan-section .event-location,
.transport-section .event-time,
.transport-section .event-location {
  font-weight: 400;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.qa-section .answer {
  margin-bottom: 1rem;
}

.text-link {
  color: #C9A36B;
  text-decoration: none;
  border-bottom: 1px dotted #C9A36B;
  transition: all 0.3s ease;
  font-weight: 500;
}

.text-link:hover {
  color: #b38a4a;
  border-bottom: 1px solid #b38a4a;
}

/* Google Maps link styling */
.map-link {
  font-size: 0.8rem;
  color: #C9A36B;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.map-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Container for map link to reduce spacing */
.map-container {
  margin-top: -0.5rem;
  margin-bottom: 0;
}

/* Background layers for crossfade */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out; /* Smoother, slower transition */
  opacity: 0;
  z-index: 1;
}

/* Initially visible layer */
.bg-layer.bg1 {
  opacity: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* Mobile styles for background and sections */
@media screen and (max-width: 720px) {
  .bg-layer {
    position: static;
    opacity: 1 !important; /* Force visible */
    height: 100vh; /* Full screen height */
    width: 100%; /* Full screen width */
    background-size: cover;
  }
  
  /* Hide the second layer */
  .bg-layer.bg2 {
    display: none;
  }
  
  /* For the mobile section backgrounds */
  .mobile-section-bg {
    width: 100%; /* Full width */
    height: 50vh; /* Half viewport height */
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
  }
}

/* Make the first section a "hero" that centers its content vertically/horizontally */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center; /* horizontal center */
  min-height: 100vh; /* fill the viewport height */
  border-bottom: 1px solid #ccc; /* keep only bottom border */
  border-top: none; /* remove top border */
  padding: 0; /* remove default padding if desired */
}

/* Match the same font as the .title (Playfair Display) */
.hero-section .event-info {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: #795009; /* gold color */
}

/* Optional: adjust sizing */
.hero-section .event-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media screen and (max-width: 720px) {
  .hero-section .event-info h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
}

.hero-section .event-info #countdown {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: Helvetica, sans-serif;
}

.hero-section .event-info .rsvp-button {
  background-color: rgba(201, 163, 107, 0.85);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-section .event-info .rsvp-button:hover {
  background-color: rgba(201, 163, 107, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-section .event-info .rsvp-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section titles in Playfair Display - applies to all sections */
section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #333;
}

/* Container for the sections */
.plan-section,
.qa-section,
.transport-section {
  font-family: 'Montserrat', sans-serif;
}

/* Intro text styling for all sections */
.plan-section .intro,
.qa-section .intro,
.transport-section .intro {
  margin-bottom: 2rem;
  font-style: italic;
  color: #555;
  font-size: 1rem;
}

/* Each detail block, Q&A item, and transport item */
.plan-section .plan-item,
.qa-section .qa-item,
.transport-section .transport-item {
  margin-bottom: 1.5rem;
}

/* Transport item specific spacing adjustments */
.transport-section .transport-item {
  margin-bottom: 2rem; /* More space after each transport item */
}

/* Event headings, questions, and transport headings all in Montserrat */
.plan-section .event-name,
.qa-section .question,
.transport-section .transport-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Combined with answer styling above for consistency */

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #C9A36B;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.85;
  cursor: pointer;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 18px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.6s ease;
  border: 1px solid rgba(201, 163, 107, 0.3);
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator svg {
  margin-top: 5px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* Scroll indicator (desktop only) */

.scroll-indicator.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.scroll-indicator span {
  margin-bottom: 5px;
  font-family: 'Playfair Display', serif;
}