:root {
    --primary-green: #3A5A40;
    --secondary-green: #588157;
    --vineyard-gold: #D4A373;
    --vineyard-bg-light: #F3EFE0; /* Creamier/Lighter */
    --vineyard-bg-dark: #2F3E46;  /* Deep dark green/slate */
    --text-dark: #354F52;
    --text-light: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Lato', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--vineyard-bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0;
}

.cursive-title {
    font-family: var(--font-script);
    font-size: 4rem; /* Larger */
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cursive-subtitle {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--vineyard-gold);
    margin-bottom: 0.5rem;
}

/* Modal (Keep existing) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Faded Vineyard background */
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('media/hotel/vineyard1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #FEFAE0;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background: white;
    font-family: var(--font-heading);
    text-align: center;
}

.gift-section {
    margin: auto;
    width: 100%;
    text-align: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-toggle button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 12px;
    margin-left: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.lang-toggle button:hover {
    background: white;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Table surface background */
    background: radial-gradient(circle at center, #4a4e52 0%, #2F3E46 100%);
    perspective: 1000px; /* For 3D drop effect */
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to potential buttons below if needed */
}

.slide {
    position: absolute;
    width: 450px; /* Fixed width for Polaroid look - Larger now */
    height: auto;
    aspect-ratio: 1 / 1.2; /* Polaroid aspect ratio (tall) */
    background-color: white; /* The white frame */
    padding: 15px 15px 60px 15px; /* Extra bottom padding for Polaroid text area */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    
    opacity: 0; /* Hidden by default, animated in */
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Common class for content (image or video) to fill the "window" inside the frame */
.slide-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure images/videos fit inside the "frame" */
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay for text readability */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#hero-title {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

#hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2rem;
}

/* Play Button */
.play-button {
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    margin: 2rem 0;
}

.play-button:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.play-icon {
    color: white;
    font-size: 2rem;
    margin-left: 5px; /* Visual centering adjustment */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    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);}
}


/* Invite Section */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 5;
    background: var(--vineyard-bg-light);
}

.centered-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.invite-text {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.separator-line {
    width: 2px;
    height: 100px;
    background-color: var(--vineyard-gold);
    margin: 3rem auto;
}

.date-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.big-date {
    font-size: 6rem;
    color: var(--vineyard-gold);
    line-height: 1;
}

/* Separator Image (Parallax) */
.separator-image {
    height: 60vh;
    background: url('media/hotel/vineyard1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    z-index: 4;
}

/* Location Section (Dark) */
.dark-bg {
    background-color: var(--vineyard-bg-dark);
    color: var(--text-light);
    text-align: center;
}

.container.vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.location-name {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.location-address {
    font-style: italic;
    opacity: 0.8;
}

.event-time {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 2rem;
}

.maps-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--vineyard-gold);
    color: var(--vineyard-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 1rem;
}

.maps-btn:hover {
    background: var(--vineyard-gold);
    color: var(--text-dark);
}

.hotel-images-grid {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: center;
}

/* Google Maps Overlay */
.maps-overlay-container {
    width: 100vw; /* Full viewport width */
    height: 400px; /* Adjust height as needed */
    background: url('media/hotel/googlemaps.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 3rem;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5); /* Inner shadow for depth */
}

.maps-overlay-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 15px 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--vineyard-gold);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.maps-overlay-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

/* Hotel Images - Bigger */
.hotel-img {
    width: 300px; /* Increased from 200px */
    height: 225px; /* Increased from 150px - maintained aspect ratio approx */
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Payment Grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
}

.payment-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--vineyard-gold);
    transition: transform 0.3s;
}

.payment-card:hover {
    transform: translateY(-5px);
}

.payment-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.payment-detail {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
}

.payment-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .hotel-images-grid {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hotel-img {
        width: 100% !important;
        max-width: 400px;
        height: 250px;
        margin-bottom: 1rem;
    }
}

.gift-btn {
    display: inline-block;
    background: var(--vineyard-gold);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    transition: transform 0.3s;
}

.gift-btn:hover {
    transform: translateY(-3px);
}

/* GSAP Helper Classes */
.animate-text, .animate-scroll {
    opacity: 0;
    transform: translateY(30px);
}


/* End of styles */

/* New Gift Section Styling */
.payment-grid-ref {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
    align-items: start;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-item {
    margin-top: 2rem; /* Visual balance */
}

.payment-category-title {
    font-size: 0.9rem;
    color: #D4A373; /* Pinkish/Gold tone from ref */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.payment-sub {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.payment-desc {
    font-size: 0.9rem;
    color: #333;
    max-width: 250px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
}

.payment-card-ref {
    background-color: #607086; /* Blue-Grey */
    color: white;
    padding: 2rem;
    border-radius: 30px; /* Highly rounded */
    width: 100%;
    max-width: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-align: left;
    font-size: 0.9rem;
}

.payment-card-ref h4 {
    font-family: var(--font-body); /* Simple font */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
}

.payment-card-ref ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

.payment-card-ref ul li::before {
    content: "• ";
    color: rgba(255,255,255,0.5);
}

.zelle-content p {
    margin: 0.5rem 0;
}

.small-email {
    font-size: 0.8rem;
    opacity: 0.8;
}

.gift-btn-ref {
    background-color: #607086;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.gift-btn-ref:hover {
    background-color: #4A5A6E;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .payment-grid-ref {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .payment-card-ref, .payment-desc {
        max-width: 100%;
    }
}

/* Location Grid Layout */
.location-grid-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.location-side-img {
    flex: 1;
    height: auto;
    min-height: 800px; /* Ensure tall cover */
    background-size: cover;
    background-position: center;
}

#hotel-img-1 {
    background-image: url('media/hotel/hotel1.jpg');
}

#hotel-img-2 {
    background-image: url('media/hotel/hotel2.jpg');
}

.location-content-center {
    flex: 2; /* Center content takes double space */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .location-grid-container {
        flex-direction: column;
    }
    
    .location-side-img {
        height: 300px;
        min-height: 300px;
        width: 100%;
    }
    
    /* Order for mobile: Img 1 -> Content -> Img 2 */
    #hotel-img-1 { order: 1; }
    .location-content-center { order: 2; }
    #hotel-img-2 { order: 3; }
    
    .maps-overlay-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: auto;
        right: auto;
    }
}

/* RSVP Section Specifics */
#rsvp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 3rem auto;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

#rsvp-form input, #rsvp-form select {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid #ccc; /* Clean border */
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle depth */
    outline: none;
    transition: border-color 0.3s;
}

#rsvp-form input:focus, #rsvp-form select:focus {
    border-color: var(--vineyard-gold);
}

#rsvp-submit {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--vineyard-gold);
    color: var(--vineyard-gold);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

#rsvp-submit:hover {
    background: var(--vineyard-gold);
    color: var(--text-dark);
}

/* Success Message */
.success-message {
    text-align: center;
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* New Sections Styling */
.white-bg {
    background-color: #ffffff;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--text-dark);
}

/* Schedule */
.schedule-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.schedule-item {
    text-align: center;
    padding: 2rem;
    border-left: 2px solid var(--vineyard-gold);
    min-width: 200px;
}

.schedule-item h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Accommodations / Coupon */
.coupon-box {
    background: var(--vineyard-bg-light);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.code-display {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-green);
    letter-spacing: 2px;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px dashed var(--vineyard-gold);
    display: inline-block;
}

.common-btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.common-btn:hover {
    background: var(--secondary-green);
}

/* Travel Grid */
.travel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 3rem auto;
    text-align: left;
}

.travel-item h3 {
    color: var(--vineyard-gold);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.travel-item ul {
    padding-left: 1.2rem;
    line-height: 1.8;
}

.travel-note {
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Logistics */
.info-box h3, .contact-box h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-link {
    color: var(--vineyard-gold);
    font-size: 1.2rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.contact-link:hover {
    border-bottom: 1px solid var(--vineyard-gold);
}

@media (max-width: 768px) {
    .travel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .schedule-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .schedule-item {
        border-left: none;
        border-top: 2px solid var(--vineyard-gold);
        padding: 2rem 0;
    }
}

/* Login Button Styling */
#login-button {
    background: var(--vineyard-gold);
    color: white;
    padding: 15px 30px;
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    margin-top: 10px;
}

#login-button:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}
