/* ============================================================
   Bijbelbabbel — Stylesheet
   Palet: warm beige + olijfgroen  |  Glass UI
   ============================================================ */

:root {
    --beige:        #F5F0E8;
    --beige-mid:    #EDE7DA;
    --beige-dark:   #D9D1C0;
    --green:        #4A6741;
    --green-dark:   #2F4428;
    --green-light:  #EBF2E8;
    --text:         #2C2416;
    --text-muted:   #6B5B3E;
    --white:        #FFFFFF;
    --border:       #D4CABC;
    --gold:         #7A5C1E;

    --font-serif:   'DM Serif Display', Georgia, serif;
    --font-sans:    'Inter', system-ui, sans-serif;

    --radius:       14px;
    --radius-sm:    8px;
    --shadow-sm:    0 2px 12px rgba(44, 36, 22, 0.07), 0 1px 3px rgba(44, 36, 22, 0.05);
    --shadow-md:    0 8px 40px rgba(44, 36, 22, 0.11), 0 2px 8px rgba(44, 36, 22, 0.06);
    --glass-light:  rgba(255, 255, 255, 0.58);
    --glass-border: rgba(255, 255, 255, 0.78);
    --glass-inset:  inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --transition:   0.2s ease;

    --nav-height:   64px;
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--beige);
}

img, svg, iframe { display: block; max-width: 100%; }

a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
a:hover { color: var(--green-dark); }

ul { list-style: none; }

address { font-style: normal; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--text);
}

h4 {
    font-family: var(--font-sans);
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: 0.5rem; }
h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--green); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.section-intro {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

/* ── Section backgrounds ─────────────────────────────────── */
.section-light {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(74, 103, 65, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 88% 80%, rgba(122, 92, 30, 0.05) 0%, transparent 55%),
        var(--beige);
}

.section-beige {
    background:
        radial-gradient(ellipse at 80% 15%, rgba(74, 103, 65, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 85%, rgba(74, 103, 65, 0.04) 0%, transparent 50%),
        var(--beige-mid);
}

.section-green { background: var(--green-dark); color: var(--beige); }

.section-green h2,
.section-green h3 { color: var(--beige-dark); }
.section-green .section-label { color: var(--beige-dark); opacity: 0.6; }
.section-green .section-intro { color: var(--beige-dark); opacity: 0.8; }
.section-green a  { color: var(--beige-dark); }
.section-green a:hover { color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--green);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(47, 68, 40, 0.35);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(47, 68, 40, 0.45);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--green) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.5rem;
    border: 1.5px solid var(--green);
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
    margin-top: 1rem;
}
.btn-secondary:hover {
    background: var(--green);
    color: var(--white) !important;
}

.link-plain {
    display: inline-block;
    font-size: 0.88rem;
    margin-top: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}
.link-plain:hover { text-decoration: underline; }

/* ── Navigation ──────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(245, 240, 232, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    border-color: rgba(212, 202, 188, 0.6);
    box-shadow: 0 1px 20px rgba(44, 36, 22, 0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--green-dark) !important;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--green); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
header#home {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #2a3d24 0%, #354d2d 40%, #2c3e28 100%);
    padding: calc(var(--nav-height) + 3rem) 1.5rem 6rem;
    overflow: hidden;
}

header#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(74, 103, 65, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 15%, rgba(100, 140, 90, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(47, 68, 40, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-emblem {
    font-size: 1.8rem;
    color: var(--beige-dark);
    opacity: 0.5;
    margin-bottom: 1.75rem;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.08); }
}

header#home h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-style: italic;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
    letter-spacing: -0.01em;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--beige-dark);
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-sub {
    font-size: 0.88rem;
    color: var(--beige-dark);
    opacity: 0.65;
    margin-bottom: 0;
    font-weight: 400;
}
.hero-sub a { color: var(--beige-dark) !important; font-weight: 600; opacity: 1; }
.hero-sub a:hover { color: var(--white) !important; }

.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ── Over ons ────────────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.content-text p { color: var(--text); font-size: 0.97rem; }

.content-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm), var(--glass-inset);
    transition: box-shadow var(--transition), transform var(--transition);
}
.info-card:hover {
    box-shadow: var(--shadow-md), var(--glass-inset);
    transform: translateY(-3px);
}

.info-card-icon {
    font-size: 0.9rem;
    color: var(--green);
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.info-card h3 { color: var(--green-dark); font-size: 1.1rem; }
.info-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ── Wat neem je mee ─────────────────────────────────────── */
.meenemen-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ── Persoons-kaart (Over ons) ───────────────────────────── */
.person-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--glass-light);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm), var(--glass-inset);
}

.person-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(44, 36, 22, 0.15);
}

.person-card-info strong { font-size: 0.95rem; color: var(--green-dark); }

/* ── Agenda ──────────────────────────────────────────────── */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agenda-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    transition: background var(--transition);
}

.agenda-item-next {
    position: relative;
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.agenda-item-next > .cal-picker {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
}

.agenda-date-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--green);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    min-width: 80px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(47,68,40,0.35);
}

.agenda-date-tbd { background: rgba(255,255,255,0.1); box-shadow: none; }

.agenda-day   { font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
.agenda-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; margin-top: 3px; }
.agenda-year  { font-size: 0.7rem; opacity: 0.6; margin-top: 2px; }

.agenda-details { flex: 1; }
.agenda-details h3 { color: var(--white); margin-bottom: 0.4rem; font-size: 1.1rem; }
.agenda-details p  { font-size: 0.9rem; color: var(--beige-dark); margin-bottom: 0.25rem; opacity: 0.85; }

.agenda-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(74,103,65,0.8);
    color: var(--white);
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    margin-bottom: 0.6rem;
}

.agenda-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--beige-dark) !important;
    margin-top: 0.5rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition);
}
.agenda-link:hover { opacity: 1; color: var(--white) !important; }

/* ── Agenda: add-to-calendar ─────────────────────────────── */
.cal-picker { position: relative; display: inline-block; }

.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    min-height: 44px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.cal-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.5);
}

.cal-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: rgba(30, 47, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 20;
}
.cal-menu[hidden] { display: none; }

.cal-menu a,
.cal-menu button {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    color: var(--beige-dark);
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}
.cal-menu a:last-child,
.cal-menu button:last-child { border-bottom: none; }
.cal-menu a:hover,
.cal-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

/* ── Locatie ─────────────────────────────────────────────── */
.locatie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.locatie-block { margin-bottom: 2rem; }
.locatie-block:last-child { margin-bottom: 0; }
.locatie-block h3 { color: var(--green-dark); margin-bottom: 0.5rem; }

address {
    margin: 0.75rem 0 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.locatie-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }

.locatie-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.locatie-list li { font-size: 0.92rem; color: var(--text-muted); }

.locatie-map iframe {
    width: 100%;
    height: 340px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.map-caption {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    margin-bottom: 0;
    text-align: right;
    opacity: 0.6;
}

/* ── Contact ─────────────────────────────────────────────── */
#contact .section-intro { max-width: 100%; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md), var(--glass-inset);
}

.contact-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 4px 12px rgba(47,68,40,0.3);
}

.contact-avatar img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 10% 0%;
}

.contact-info h3  { color: var(--green-dark); margin-bottom: 0.2rem; font-size: 1.1rem; }
.contact-info > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.contact-email-link {
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    color: var(--green) !important;
    word-break: break-all;
}
.contact-email-link:hover { text-decoration: underline; }

.contact-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    opacity: 0.85;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--green-dark);
    color: var(--beige-dark);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p:not(.footer-logo) { font-size: 0.88rem; opacity: 0.65; line-height: 1.6; }

footer h4 { color: var(--beige-mid); opacity: 0.55; margin-bottom: 0.75rem; }

footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
footer ul li a {
    color: var(--beige-dark);
    font-size: 0.88rem;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity var(--transition);
}
footer ul li a:hover { opacity: 1; color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.4;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .content-grid,
    .locatie-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(245, 240, 232, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 1.5rem; display: block; }
    .nav-toggle { display: flex; }

    .meenemen-cards { grid-template-columns: 1fr; }

    .agenda-item { flex-direction: column; gap: 1rem; }
    .agenda-date-block {
        flex-direction: row;
        gap: 0.75rem;
        align-items: baseline;
        min-width: unset;
        padding: 0.6rem 1rem;
        width: fit-content;
    }
    .agenda-day { font-size: 1.5rem; }

    .contact-card { flex-direction: column; text-align: center; }

    .footer-grid { grid-template-columns: 1fr; }
}
