/* 1. Global Variables & Resets */
:root {
    --color-gold: #C5A47E;
    --color-charcoal: #333333;
    --color-cream: #FAFAF5;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --font-script: 'Pinyon Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    line-height: 1.6;
    background-color: var(--color-white);
}

/* Typography Utility Classes */
h1, h2, h3 {
    font-weight: 400;
}

.text-center { text-align: center; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.section-pre-title {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Layout Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.narrow { max-width: 800px; }

.section-pad { padding: 80px 0; }

.bg-cream { background-color: var(--color-cream); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 2. Navigation (Sticky) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    transition: all 0.4s ease;
    z-index: 1000;
    background-color: transparent; /* Start transparent */
    color: var(--color-white);
}

/* The class JS adds on scroll */
.navbar.scrolled {
    background-color: var(--color-white);
    color: var(--color-charcoal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li { margin-left: 2rem; }

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* --- Mobile Hamburger Styles --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: inherit; /* Takes color from navbar (white or charcoal) */
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show icon on mobile */
    }

    .nav-links {
        display: none; /* Hide links initially */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white; /* Mobile menu background */
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* This class will be toggled via JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0; /* Reset desktop margin */
    }

    .nav-links a {
        color: #333 !important; /* Force dark text on white mobile menu */
    }
    
    /* Ensure the hamburger bars are visible against hero image */
    .navbar:not(.scrolled) .bar {
        background-color: white;
    }
    .navbar.scrolled .bar {
        background-color: #333;
    }
}

/* 3. Hero Section */
#hero {
    /* REPLACE WITH YOUR MAIN COUPLE PHOTO */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('bg.jpg');
    background-size: cover;
    background-position: top;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    position: relative;
}

.hero-content .pre-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-script);
    font-size: 6rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Countdown */
#countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 1.5rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.time-box span {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
}

.time-box p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* 4. Welcome Section */
.gold-icon-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* 5. Timeline Section */
/* Timeline Layout Fix */
.timeline-container {
    display: flex;
    align-items: stretch; /* Forces image and text to be the same height */
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-details {
    flex: 1.5; /* Gives the text a bit more space than the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.timeline-time {
    font-family: 'Pinyon Script', cursive; /* Matches gold script in screenshots */
    color: var(--color-gold);
    font-size: 3.5rem;
    min-width: 100px;
    line-height: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.timeline-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.timeline-image-wrap {
    flex: 1;
}

.timeline-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without stretching */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Matches shadow in hotel section */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
    }
    .timeline-image-wrap {
        height: 300px; /* Give it a fixed height on mobile */
    }
}

/* 6. Travel / Hotel Section */
.two-col-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.col-image, .col-text { flex: 1; }

.col-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.booking-box {
    background-color: var(--color-cream);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.amenities-list {
    list-style: none;
    margin: 1.5rem 0;
}

.amenities-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.amenities-list li::before {
    content: '✓';
    color: var(--color-gold);
    position: absolute;
    left: 0;
}

.btn-gold {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-gold:hover { background-color: #b3936d; }

/* 7. Logistics & Map */
.info-boxes { margin-bottom: 3rem; }

.info-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.icon-circle {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.map-container {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.leaflet-map {
  width: 100%;
  height: 450px;
}

/* Custom labeled marker (C / R) */
.leaflet-label-pin {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  transform: translateY(-6px);
}

.leaflet-label-pin::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-radius: 3px;
}

/* Colors */
.leaflet-label-pin.pin-c { background: #a67c52; } /* church */
.leaflet-label-pin.pin-r { background: #111; }    /* reception */

/* Keep marker centered on location */
.leaflet-div-icon {
  background: transparent;
  border: none;
}


/* 8. Footer */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 5rem 0;
}

.footer h2 {
    font-family: var(--font-script);
    font-size: 3rem;
}

.footer-divider {
    width: 50px;
    border-color: var(--color-gold);
    margin: 2rem auto;
}

.footer p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* 9. Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title { font-size: 4rem; }
    .nav-links { display: none; } /* Hiding nav links for simplicity on small screens */
    
    .grid-2, .timeline-item, .two-col-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reverse-mobile { flex-direction: column-reverse; }

    .timeline-time {
        text-align: left;
        font-size: 2.5rem;
        padding-bottom: 0.5rem;
    }

    .timeline-image { padding-left: 0; }
    
    #countdown { gap: 1rem; }
    .time-box span { font-size: 2rem; }
}

/* FAQ Specific Styles */
.faq-grid {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-charcoal);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Small gold dot before the question to match the "icon" vibe */
.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

.faq-answer {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    padding-left: 1.5rem;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1.3rem;
    }
}