/* 1. Kleuren & Fonts */
:root {
    --primary-bg: #F0F4F3;      /* zacht grijsgroen */
    --accent:    #C8503E;      /* koperrood */
    --text:      #2E363F;      /* donker petrol */
    --hover:     #E6C684;      /* licht goud */
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
  }

/* 2. Basis-layout */
body {
    margin: 0;
    padding: 0;
    background: var(--primary-bg);
    color: var(--text);
    font-family: var(--font-serif);
    line-height: 1.5;
}

/* Container met achtergrondafbeelding */
.container {
    background-repeat: no-repeat;
    /* Positioneer links-boven én rechts-onder: */
    background-position: top left, bottom right;
    /* Grootte: 50% van breedte, auto hoogte (desktop) */
    background-size: 50% auto, 50% auto;
    width: 100%;
    min-height: 100vh;
    flex: 1;
  }

.hero-card {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.hero-headline {
    font-size: 1.8rem;
    margin-top: 20px;
    color: #364153;
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section + .section {
    border-top: 1px solid #ddd;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: black;
}
.section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Header & Navigatie */
header {
    background: #fff;
    border-bottom: 2px solid var(--accent);
    padding: 20px;
}

/* Header container voor flexbox */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header namen styling */
.header-namen {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: bold;
    font-family: var(--font-script);
}

/* Hamburger knop */
.nav-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* standaard verborgen op grotere schermen */
}

/* Navigatie menu */
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

/* Nav-menu list item margin */
.nav-menu li {
    margin: 0 15px;
}

/* Navigatie links */
nav ul li a {
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

/* Hover state: gebruik de dynamische primaire kleur */
nav ul li a:hover,
nav ul li a.active {
    background: var(--primary-color);
    background: var(--accent);
}

/* Tailwind utilities omgezet naar normale CSS */

/* .centered-container: flex, justify-center, items-center, py-10 */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* .width-75: 75% breedte */
.width-75 {
    width: 75%;
}

/* .custom-grid: grid, gap-5, justify-items-center, grid-cols-1 (en 2 kolommen vanaf 640px) */
.custom-grid {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Foutmelding */
.error-text {
    color: #ef4444;
}

/* Footer styling */
footer {
    font-family: var(--font-script);
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    background: var(--accent);
    color: #fff;}

/* Responsiviteit voor header en navigatie */
@media (max-width: 768px) {
    .header-namen {
        font-size: 2.5rem;
    }
    .header-container {
        justify-content: space-between;
    }
    nav ul li a {
        font-size: 1rem;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        text-align: left;
        padding: 10px 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 10px 0;
    }
    main {
        min-height: 100vh;
    }
}

/* 1. Maak de hero-container position:relative */
.hero-card {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

/* 2. Zorg dat de afbeelding full-width en full-height wordt */
.hero-card .hero-image {
    display: block;
    width: 100%;
    height: 80vh;        /* of wat jouw gewenste hoogte is */
    object-fit: cover;
}

/* 3. Overlay voor centering van tekst */
.hero-card .hero-overlay {
    position: absolute;
    inset: 0;            /* top/right/bottom/left = 0 */
    display: flex;
    align-items: center; /* verticale centering */
    justify-content: center; /* horizontale centering */
}

/* 4. Styling voor de namen */
.hero-card .couple-names {
    font-family: var(--font-script);
    font-size: 5rem;      /* pas aan naar wens */
    color: var(--accent);
    line-height: 1.1;
    margin: 0;
}

/* 5. Optionele subtitel onder de namen */
.hero-card .hero-overlay h2 {
    margin-top: 0.5rem;
    font-size: 2rem;
    color: #fff;
}

/* 6. Mobiele aanpassing */
@media (max-width: 640px) {
    .container {
        /* Centraal uitlijnen en volledige breedte nemen: */
        background-position: center top;
        /* Frame full-width laten schalen, hoogte automatisch */
        background-size: cover;
    }
    /* Hero-image iets korter maken op mobiel */
    .hero-card .hero-image {
        height: 50vh;
    }
    /* Namen iets kleiner */
    .hero-card .couple-names {
        font-size: 2.5rem;
    }
}


/* ===== Nieuwe kaart-styles ===== */

/* Algemene kaart-container */
.image-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--accent);
    margin-bottom: 2rem;
}

/* Fullwidth-preset */
.fullwidth-image {
    position: relative;
}
.fullwidth-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.fullwidth-image .image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
}
.fullwidth-image .image-overlay h2 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    padding: 0 1rem;
    text-align: center;
}

/* Foto & Tekst-preset */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.split-layout .image-side img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.split-layout .text-side h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .split-layout {
    flex-direction: row;
    }
    .split-layout .image-side,
    .split-layout .text-side {
    width: 50%;
    }
}

/* Collage-preset */
.collage-layout h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.grid-layout img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tekst-kaart */
.text-card {
    background: var(--blush);
    color: var(--deep-rose);
    border-radius: 0.75rem;
    border: 1px solid var(--accent);
    padding: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Countdown-kaart */
.card-countdown {
    border: 1px solid var(--accent);
    background: var(--primary-color);
    color: var(--hover);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.countdown-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.countdown-timers {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.countdown-unit {
    text-align: center;
}
.countdown-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--hover);
}
.countdown-label {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
