:root {
    --primary: #5c6b5e; 
    --accent: #d4af37;  
    --bg: #fdfbf7;      
    --text: #333;
    --white: #ffffff;
    --card-bg: #fdfbf7; 
    --anim-speed: 1.8s; /* Centraal de snelheid aanpassen */
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden; /* Voorkomt scrollbalken tijdens animatie */
}

/* --- Gatefold Animatie Styles --- */

/* Container die alles omsluit */
#gatefold-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Gemeenschappelijke styles voor beide deuren (DRY) */
.gate-door {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary); /* Gebruikt bruiloftskleur */
    z-index: 2000; /* Zorgt dat het boven alles staat */
    transition: transform var(--anim-speed) ease-in-out;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    /* Optioneel: voeg hier een subtiele textuur toe aan de deuren */
    /* background-image: url('path/to/texture.png'); */
}

/* Specifieke positionering */
.gate-left {
    left: 0;
    border-right: 1px solid var(--accent);
}

.gate-right {
    right: 0;
    border-left: 1px solid var(--accent);
}

/* State wanneer de pagina geladen is: deuren openen */
.loaded .gate-left {
    transform: translateX(-100%);
}

.loaded .gate-right {
    transform: translateX(100%);
}

/* Styling voor de hoofdcontent die onthuld wordt */
#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--anim-speed) ease-in-out;
    transition-delay: 0.3s; /* Start iets later dan de deuren */
}

.loaded #main-content {
    opacity: 1;
    visibility: visible;
}

/* --- Einde Gatefold Styles --- */


h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    margin: 10px 0; 
}

nav {
    position: sticky;
    top: 0;
    background: rgba(253, 251, 247, 0.98);
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.hero h1 { font-size: 4rem; }

.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 1rem 20px; 
    text-align: center; 
}

footer {
    margin-top: -5rem;
}

.section-title { font-size: 2.5rem; margin-bottom: 3rem; }
.section-title::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 2px; 
    background: var(--accent); 
    margin: 10px auto; 
}

.section-spacing {
    margin-top: 5rem;
}

/* Tijdlijn & Kaartstijl */
.grid-2, .timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #f0e6d2;
    transition: all 0.4s ease;
    text-align: left;
}

/* .card:hover { */
/*     border-color: var(--accent); */
/*     transform: translateY(-5px); */
/*     box-shadow: 0 10px 20px rgba(0,0,0,0.05); */
/* } */

.card-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 15px;
}

.time { 
    font-weight: bold; 
    color: var(--accent); 
    font-size: 1.3rem; 
    display: block;
    margin-bottom: 5px;
}

/* Cadeau Register */
.gift-register {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gift-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

/* .gift-item:hover { */
/*     transform: scale(1.03); */
/*     box-shadow: 0 10px 20px rgba(0,0,0,0.1); */
/* } */

.gift-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gift-content {
    padding: 15px;
}

.gift-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary);
}

.gift-content p {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
}

/* RSVP & Formulieren */
#rsvp {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-top: 5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f0e6d2;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

input[type="text"], select {
    padding: 15px;
    width: 95%;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s;
    background-color: var(--bg);
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

select {
    cursor: pointer;
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group {
    margin-top: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px 0;
}

.custom-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

.btn:hover { 
    background-color: #4a574b; 
}

/* Responsiveness */
@media (max-width: 768px) {
    .timeline, .grid-2, .gift-register { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    nav a { margin: 0 5px; font-size: 0.65rem; }
    #rsvp { padding: 2rem 1rem; }
    
    /* Zorg dat deuren op mobiel ook goed werken */
    .gate-door { width: 50%; } 
}
