/* =========================================================
   Mini-camping Molenhof — stijl geïnspireerd op molengrenszicht.nl
   Palet: tan #b39573 · antraciet #222329 · accent #e9a30c
   ========================================================= */

:root {
    --tan: #b39573;
    --tan-dark: #97795a;
    --tan-light: #f3ece2;
    --ink: #222329;
    --gray: #7a7a7a;
    --accent: #e9a30c;
    --white: #ffffff;
    --max-width: 1140px;
    --font: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* iOS-overscroll: boven wit (achter de header), onder donker
       (aansluitend op de footer) in plaats van een witte band. */
    background-color: var(--ink);
    background-image: linear-gradient(var(--white) 50%, var(--ink) 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: var(--font);
    font-size: 1.075rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    /* Footer altijd onderaan het scherm, ook bij korte pagina's. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.main-content { flex: 1 0 auto; width: 100%; }

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

a { color: var(--tan-dark); }
a:hover { color: var(--ink); }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid #e8e2d9;
    box-shadow: 0 1px 6px rgba(34, 35, 41, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    color: var(--tan);
    display: grid;
    place-items: center;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.25rem; letter-spacing: 0.01em; }
.brand-text small { color: var(--gray); font-size: 0.78rem; }

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.98rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--tan-dark); }
.site-nav a.active { color: var(--tan-dark); border-bottom-color: var(--tan); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero (startpagina) ---------- */

.hero {
    position: relative;
    min-height: 480px;
    display: grid;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 35, 41, 0.35) 0%, rgba(34, 35, 41, 0.55) 100%);
}

.hero-content {
    position: relative;
    color: var(--white);
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.75rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.btn-accent { background: var(--tan); color: var(--white); }
.btn-accent:hover { background: var(--tan-dark); color: var(--white); transform: translateY(-1px); }

.hero-buttons { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }

/* ---------- Paginabanner (subpagina's) ---------- */

.page-banner {
    position: relative;
    background: var(--ink) center/cover no-repeat;
    padding: 3.25rem 0;
}

.page-banner .hero-overlay { background: rgba(34, 35, 41, 0.45); }

.page-banner h1 {
    position: relative;
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.page-banner h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 0.6rem;
    background: var(--tan);
}

/* ---------- Inhoud ---------- */

.main-content { padding: 3rem 1.25rem 4rem; }

.article { max-width: 800px; }
.article-center { margin: 0 auto; text-align: center; }

.article h2, .article h3, .article h4 {
    color: var(--ink);
    margin: 1.6rem 0 0.5rem;
    line-height: 1.25;
}

.article h2:first-child, .article h3:first-child, .article p:first-child { margin-top: 0; }

.article h2 { font-size: 1.7rem; }
.article h3 { font-size: 1.3rem; color: var(--tan-dark); }

.article p, .article ul, .article ol { margin-bottom: 0.9rem; }
.article ul, .article ol { padding-left: 1.4rem; }

/* ---------- Mededelingsband ---------- */

.notice-band {
    background: var(--tan-light);
    border-left: 5px solid var(--tan);
    max-width: 800px;
    margin: 2.25rem auto 0;
    padding: 1.4rem 1.75rem;
    text-align: center;
}

.notice-band p { font-size: 1.1rem; }
.notice-band p + p { margin-top: 0.35rem; font-weight: 700; color: var(--tan-dark); }

/* ---------- Uitgelichte kaarten ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid #e8e2d9;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 10px 28px rgba(34, 35, 41, 0.14);
    transform: translateY(-3px);
    color: var(--ink);
}

.feature-img { aspect-ratio: 4 / 3; overflow: hidden; }

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

.feature-card:hover .feature-img img { transform: scale(1.05); }

.feature-body { padding: 1.25rem 1.4rem 1.5rem; }
.feature-body h3 { color: var(--tan-dark); margin-bottom: 0.4rem; font-size: 1.25rem; }
.feature-body p { color: var(--gray); font-size: 0.98rem; margin-bottom: 0.75rem; }

.feature-more { font-weight: 700; color: var(--tan); font-size: 0.95rem; }

/* ---------- Tarieventabel ---------- */

.price-table-wrap { max-width: 800px; margin-top: 1.5rem; overflow-x: auto; }

.price-table { width: 100%; border-collapse: collapse; }

.price-table th, .price-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e8e2d9;
    text-align: left;
}

.price-table thead th {
    background: var(--ink);
    color: var(--white);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.price-table tbody tr:nth-child(even) { background: var(--tan-light); }

.price-table .right { text-align: right; white-space: nowrap; }
.price-table .euro { color: var(--tan-dark); font-weight: 700; }

/* ---------- Fotogalerij ---------- */

.gallery-heading {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
}

.gallery-heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 0.45rem;
    background: var(--tan);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.gallery-item { position: relative; }

.gallery-item a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tan-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s, filter 0.35s;
}

.gallery-item a:hover img { transform: scale(1.06); filter: brightness(1.05); }

.gallery-item figcaption {
    font-size: 0.88rem;
    color: var(--gray);
    padding-top: 0.4rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 21, 25, 0.93);
    display: grid;
    place-items: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.15s;
}

.lightbox button:hover { color: var(--tan); }

.lb-close { top: 0.75rem; right: 1rem; font-size: 2.8rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reserveringsformulier ---------- */

.tarieven-cta { margin-top: 2rem; }

.booking-form {
    max-width: 800px;
    margin-top: 2rem;
    background: var(--white);
    border: 1px solid #e8e2d9;
    padding: 1.75rem 2rem 2rem;
}

.booking-form h2 {
    font-size: 1.25rem;
    color: var(--tan-dark);
    margin: 1.5rem 0 1rem;
}

.booking-form h2:first-of-type { margin-top: 0; }

.bf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.booking-form label {
    display: block;
    font-weight: 600;
    font-size: 0.98rem;
}

.booking-form input, .booking-form select, .booking-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-weight: 400;
    border: 1px solid #cfc8bb;
    border-radius: 4px;
    background: var(--white);
}

.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
    outline: 2px solid var(--tan);
    border-color: var(--tan);
}

.bf-notes { margin-top: 1rem; }

.booking-form .btn-large {
    margin-top: 1.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    border: 0;
    cursor: pointer;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.price-preview {
    background: var(--tan-light);
    border-left: 5px solid var(--tan);
    padding: 1rem 1.4rem;
    margin-top: 1.25rem;
}

.price-preview .pp-total { font-size: 1.2rem; font-weight: 700; color: var(--tan-dark); }
.price-preview .pp-note { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; }

.form-errors {
    max-width: 800px;
    background: #fbeae7;
    border-left: 5px solid #b3402e;
    padding: 1rem 1.4rem;
    margin-top: 1.5rem;
}

.form-errors ul { padding-left: 1.3rem; margin-top: 0.3rem; }

.booking-thanks { margin-left: 0; }

@media (max-width: 560px) {
    .bf-grid { grid-template-columns: 1fr; }
    .booking-form { padding: 1.25rem 1.25rem 1.5rem; }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: #c9cad1;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col h3::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--tan);
}

.footer-col a { color: var(--tan); text-decoration: none; }
.footer-col a:hover { color: var(--white); }

.footer-col address { font-style: normal; line-height: 1.9; }

.footer-svr { display: inline-block; margin-top: 1rem; background: var(--white); padding: 6px; border-radius: 3px; }
.footer-svr img { max-width: 120px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0;
    font-size: 0.88rem;
    color: #8e909a;
}

/* ---------- Responsief ---------- */

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
    .nav-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid #e8e2d9;
        box-shadow: 0 12px 24px rgba(34, 35, 41, 0.12);
        display: none;
    }

    .site-nav.open { display: block; }

    .site-nav ul { flex-direction: column; padding: 0.5rem 0; }

    .site-nav a { padding: 0.8rem 1.5rem; border-bottom: 0; border-left: 4px solid transparent; }
    .site-nav a.active { border-left-color: var(--tan); }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { min-height: 380px; }
    .brand-text small { display: none; }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .main-content { padding-top: 2rem; }
}
