/* ============================================
   BRANDWAG 2006 — 20-Jaar Reünie
   Colors: Green, Gold, Brown
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-dark: #1a5c2a;
    --green-mid: #2e7d32;
    --green-light: #4caf50;
    --gold: #DAA520;
    --gold-light: #f5d675;
    --brown: #5d4037;
    --brown-light: #8d6e63;
    --cream: #faf8f0;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-mid: #555;
    --text-light: #888;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

/* ---- NAVIGATION ---- */
.nav {
    background: var(--green-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    padding: 0.7rem 0;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-brand span {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d3517 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(218,165,32,0.08) 0%, transparent 50%);
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(218,165,32,0.3));
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

/* ---- COUNTDOWN ---- */
.countdown {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    position: relative;
}

.countdown-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(218,165,32,0.3);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    min-width: 85px;
    backdrop-filter: blur(10px);
}

.countdown-item .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.countdown-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

/* ---- SECTIONS ---- */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-mid);
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ---- PAGE HERO (smaller, for inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d3517 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2.5rem;
}

.page-hero h1 {
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}

/* ---- CARDS ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* ---- FORMS ---- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-mid);
    background: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    background: var(--green-dark);
    color: white;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

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

.btn-gold:hover {
    background: var(--gold-light);
}

/* ---- GALLERY ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #ddd;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

/* ---- MEMORY WALL ---- */
.memory-card {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
}

.memory-card .author {
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.3rem;
}

.memory-card .year {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.memory-card .text {
    color: var(--text-mid);
    line-height: 1.8;
}

/* ---- THEN & NOW ---- */
.then-now-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.then-now-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.then-now-photos img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.then-now-info {
    padding: 1.2rem;
    text-align: center;
}

.then-now-info h3 {
    color: var(--green-dark);
}

.then-now-info p {
    color: var(--text-mid);
    font-size: 0.9rem;
}

/* ---- IN MEMORIAM ---- */
.memoriam-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.memoriam-card .name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.3rem;
}

.memoriam-card .dates {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.memoriam-card .tribute {
    color: var(--text-mid);
    font-style: italic;
}

.candle {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ---- POLL / SUPERLATIVES ---- */
.poll-category {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.poll-category h3 {
    color: var(--green-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.poll-option:last-child { border-bottom: none; }

.poll-option input[type="radio"] {
    accent-color: var(--green-dark);
    width: 18px;
    height: 18px;
}

.poll-option label {
    cursor: pointer;
    font-size: 0.95rem;
}

/* ---- MAP ---- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
}

/* ---- SUCCESS MESSAGE ---- */
.success-msg {
    background: #e8f5e9;
    border: 2px solid var(--green-mid);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 3rem auto;
}

.success-msg h2 {
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-dark);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .hamburger { display: block; }

    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .countdown-item { min-width: 70px; padding: 0.8rem; }
    .countdown-item .number { font-size: 1.8rem; }
    .section { padding: 2rem 1rem; }
    .form-container { padding: 1.5rem; }
    .then-now-photos img { height: 180px; }
    .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
