body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #777;
    line-height: 1.8;
}

/* Parallax Backgrounds */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

/* Specific Images - Using Local Images */
.header-image {
    background-image: url('./images/daniel-costa-vzagZyV5OuI-unsplash.jpg');
    min-height: 100vh;
}

.spacer-image-1 {
    background-image: url('./images/daniel-costa-wM8JvqyvYrg-unsplash.jpg');
    min-height: 400px;
}

.spacer-image-2 {
    background-image: url('./images/eduardo-bresciani-brKuwDexcZU-unsplash.jpg');
    min-height: 400px;
}

.spacer-image-3 {
    background-image: url('./images/thandy-yung-vvVbR8QTCkA-unsplash.jpg');
    min-height: 400px;
}

/* Caption Text */
.caption {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #000;
}

.caption .border {
    background-color: #111;
    color: #fff;
    padding: 18px;
    font-size: 25px;
    letter-spacing: 10px;
    text-transform: uppercase;
}

/* Content Sections */
.content {
    color: #777;
    background-color: white;
    text-align: center;
    padding: 50px 80px;
}

.content h3 {
    text-transform: uppercase;
    color: #111;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

/* Header Section */
.section-description {
    padding: 80px;
    background-color: #f4f4f4;
}

/* Map Widget */
.section-map {
    background-color: #282e34;
    color: #ddd;
}

.section-map h3 {
    color: #fff;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    border: 5px solid #fff;
}

/* PRODUCT GRID & INTERACTIONS */
.section-products {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Product Card */
.product-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card-info {
    padding: 20px;
    text-align: left;
}

.card-info h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.card-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.card-info .meta {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #111;
    font-size: 15px;
}

/* CSS MODAL LOGIC */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Default Hidden State */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show Modal when Checkbox is Checked */
.product-toggle:checked~.product-modal {
    opacity: 1;
    visibility: visible;
}

/* Overlay Background */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* Modal Content */
.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    border-radius: 4px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.main-modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.modal-content h2 {
    margin-top: 0;
    color: #111;
}

/* REVEAL LOGIC */
.reveal-btn {
    display: inline-block;
    background-color: #111;
    color: white;
    padding: 12px 24px;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.reveal-btn:hover {
    background-color: #444;
}

.secret-image {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.secret-image img {
    width: 100%;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show Secret Image when Reveal Checkbox is Checked */
.reveal-toggle:checked~.secret-image {
    display: block;
}

/* Change Button Text hack (optional, simpler to just start with 'Reveal') */
.reveal-toggle:checked~.reveal-btn {
    background-color: #555;
    /* content: "Hide Image"; - can't rely on content replacement easily without ::after hacks, keeping simple */
}


/* Footer */
footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media only screen and (max-device-width: 1024px) {
    .parallax {
        background-attachment: scroll;
    }
}

@media only screen and (max-width: 768px) {

    body,
    html {
        font-size: 18px;
    }

    .caption .border {
        font-size: 16px;
        padding: 12px;
        letter-spacing: 4px;
    }

    .content {
        padding: 30px 20px;
    }

    .section-description {
        padding: 40px 20px;
    }

    .content h3 {
        font-size: 20px;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* RSVP Form Section */
.section-rsvp {
    background-color: #f9f9f9;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    font-family: inherit;
    font-size: 16px;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: #111;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #111;
    color: white;
    border: none;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #333;
}

/* Flash Messages */
.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.flashes li {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}