/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #F5F2EE;
    --surface:  #FFFFFF;
    --border:   #E2DDD7;
    --text:     #1A1714;
    --muted: #000000;
    --accent:   #E8624A;
    --shadow:   0 6px 32px rgba(26,23,20,.11);
    --radius:   16px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-image: url("Image/background.PNG");
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;

    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("Image/background.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(8px);
    transform: scale(1.1);

    z-index: -1;
}

.hidden { display: none !important; }

/* =============================================
   HEADER
   ============================================= */
.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(245,242,238,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { letter-spacing: -.3px; }

.home-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 9px;
    transition: color .16s, background .16s;
}
.nav-link:hover { color: var(--text); background: rgba(26,23,20,.05); }

.nav-agenda {
    background: var(--text);
    color: #fff !important;
    font-weight: 600;
    transition: opacity .16s !important;
}
.nav-agenda:hover { opacity: .82; background: var(--text) !important; }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Animated blobs */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: #F5C4BA;
    top: -120px; left: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 380px; height: 380px;
    background: #B8D4F0;
    bottom: -80px; right: 100px;
    animation-delay: -3s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: #B8E0C2;
    top: 50%; right: 30%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(.96); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    animation: heroIn .7s ease both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    transition: opacity .18s, transform .14s, box-shadow .18s;
    box-shadow: 0 6px 24px rgba(232,98,74,.35);
}
.btn-hero:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232,98,74,.4);
}

.btn-ghost {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 4px;
    transition: color .16s;
}
.btn-ghost:hover { color: var(--text); }

/* DECO CARDS */
.hero-deco {
    position: relative;
    z-index: 1;
    width: 280px;
    flex-shrink: 0;
    animation: heroIn .7s .2s ease both;
}

.deco-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    position: absolute;
    width: 230px;
}

.deco-card span {
    display: block;
    font-size: 13px;
    font-weight: 600;
}
.deco-card small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.deco-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.deco-card-1 { top: 0;   left: 0;   animation: cardFloat 6s ease-in-out infinite; }
.deco-card-2 { top: 80px; left: 40px; animation: cardFloat 6s .8s ease-in-out infinite; }
.deco-card-3 { top: 160px; left: 10px; animation: cardFloat 6s 1.6s ease-in-out infinite; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
    background: var(--text);
    padding: 80px 0 100px;
    position: relative;
}

.gallery-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 11px;
    cursor: pointer;
    transition: opacity .16s, transform .13s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(232,98,74,.3);
}
.btn-upload:hover { opacity: .88; transform: translateY(-1px); }
.btn-upload input { display: none; }

/* Dropzone */
.dropzone {
    border: 2px dashed rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 64px 40px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(232,98,74,.07);
}

.dropzone-icon {
    font-size: 44px;
    margin-bottom: 16px;
    filter: grayscale(.4);
}
.dropzone-title {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    margin-bottom: 6px;
}
.dropzone-sub {
    font-size: 13px;
    color: rgba(255,255,255,.35);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: rgba(255,255,255,.05);
    animation: fadeIn .3s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .25s;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.gallery-count {
    text-align: center;
    color: rgba(255,255,255,.3);
    font-size: 12px;
    margin-top: 28px;
}

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn .18s ease;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,8,6,.92);
    backdrop-filter: blur(6px);
}

.lb-img-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lb-img {
    max-width: 90vw;
    max-height: 78vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,.5);
    animation: slideUp .2s ease;
}

@keyframes slideUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.lb-close {
    position: absolute;
    top: 20px; right: 24px;
    z-index: 2;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    width: 38px; height: 38px;
    cursor: pointer;
    transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,.2); }

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 26px;
    width: 48px; height: 64px;
    cursor: pointer;
    transition: background .15s;
    display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

.lb-info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    max-width: 600px;
    width: 90vw;
    justify-content: space-between;
}

#lb-caption {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-style: italic;
}

.lb-delete {
    background: rgba(200,57,44,.2);
    border: 1.5px solid rgba(200,57,44,.4);
    border-radius: 8px;
    color: #ff7a6b;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.lb-delete:hover { background: rgba(200,57,44,.35); }

/* =============================================
   CAPTION MODAL
   ============================================= */
#caption-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .15s ease;
}

.caption-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26,23,20,.55);
    backdrop-filter: blur(4px);
}

.caption-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: slideUp .18s ease;
}

.caption-box h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.caption-box p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.caption-box input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .15s;
    margin-bottom: 20px;
}
.caption-box input:focus { border-color: var(--accent); }

.caption-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.caption-actions button {
    border: 1.5px solid var(--border);
    background: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    cursor: pointer;
    transition: border-color .15s;
}
.caption-actions button:hover { border-color: var(--text); }

.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.btn-primary:hover { opacity: .88; }

/* =============================================
   FOOTER
   ============================================= */
.home-footer {
    background: var(--text);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
}
.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 800px) {
    .home-header { padding: 0 18px; }
    .hero { flex-direction: column; padding: 50px 24px 60px; gap: 50px; text-align: center; }
    .hero-sub { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-deco { width: 100%; height: 200px; position: relative; }
    .deco-card-1 { left: 50%; transform: translateX(-50%); }
    .deco-card-2, .deco-card-3 { display: none; }
    .gallery-section-inner { padding: 0 18px; }
    .section-title { font-size: 28px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .home-footer { padding: 20px 18px; }
}

/* ── Telefoon ── */
@media (max-width: 560px) {
    body { font-size: 14px; -webkit-text-size-adjust: 100%; }

    .home-header {
        padding: 0 12px;
        height: 56px;
    }
    .logo { font-size: 17px; }
    .home-nav { gap: 2px; }
    .nav-link { font-size: 12px; padding: 6px 9px; }

    .hero { padding: 38px 18px 46px; gap: 38px; min-height: 0; }
    .hero-eyebrow { margin-bottom: 10px; }
    .hero-title { margin-bottom: 14px; }
    .hero-sub { font-size: 16px; margin-bottom: 26px; }
    .btn-hero { padding: 13px 24px; }
    .hero-deco { height: 150px; }

    .gallery-section { padding: 48px 0 60px; }
    .gallery-section-inner { padding: 0 14px; }
    .section-head { margin-bottom: 26px; }
    .section-title { font-size: 24px; }
    .btn-upload { padding: 10px 18px; }
    .dropzone { padding: 44px 20px; }

    /* Lightbox */
    #lb-img, .lb-img-wrap { max-width: 94vw; max-height: 68vh; }
    .lb-close { top: 12px; right: 12px; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .lb-prev, .lb-next { width: 40px; height: 56px; font-size: 22px; }
    .lb-info { flex-direction: column; gap: 10px; text-align: center; width: 94vw; }

    /* Caption-modal: scrollbaar + geen iOS-zoom op focus */
    .caption-box { padding: 24px; max-height: 90vh; overflow-y: auto; }
    .caption-box input { font-size: 16px; }

    .home-footer { flex-direction: column; gap: 6px; text-align: center; }
}