:root {
    --color-sage: #6b8f71;
    --color-sage-dark: #4a6b50;
    --color-moss: #8a9f7e;
    --color-sand: #d4c4a8;
    --color-cream: #f6f3ec;
    --color-linen: #ebe6dc;
    --color-bark: #4a4540;
    --color-text: #3f3d38;
    --color-text-soft: #6a665f;
    --color-white: #ffffff;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Nunito Sans", system-ui, sans-serif;
    --shadow-soft: 0 8px 32px rgba(74, 107, 80, 0.08);
    --radius: 12px;
    --max-width: 1280px;
    --sidebar-width: 320px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(107, 143, 113, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(212, 196, 168, 0.2) 0%, transparent 45%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-sage-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-sage);
}

.container {
    width: min(100% - 2.5rem, var(--max-width));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-linen);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

/* Logo in het midden, menu links en rechts — geheel gecentreerd (desktop) */
.header-inner--split {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.header-inner--split .nav-toggle {
    display: none;
}

.header-inner--split .main-nav--left {
    order: 1;
}

.header-inner--split .brand--center {
    order: 2;
}

.header-inner--split .main-nav--right {
    order: 3;
}

.main-nav--left ul,
.main-nav--right ul {
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex-shrink: 0;
}

.brand--logo-only {
    gap: 0;
}

/* Logo: volledig zichtbaar, niet bijsnijden */
.brand-logo-wrap {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 132px; /* +20% t.o.v. 110px */
    width: auto;
    max-width: 240px;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.brand--center .brand-logo {
    object-position: center center;
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-sage-dark);
    line-height: 1.2;
}

.brand-tagline {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    font-weight: 400;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-sage-dark);
    border-bottom-color: var(--color-sand);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-sage-dark);
    border-radius: 1px;
}

/* Homepage: volledige breedte hero-foto */
.hero-banner {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(280px, 42vh, 520px);
    background-color: var(--color-sage-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-banner__overlay {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: transparent;
    background-image: linear-gradient(
        to bottom,
        rgba(45, 55, 48, var(--hero-overlay-top, 0.35)) 0%,
        rgba(45, 55, 48, var(--hero-overlay-bottom, 0.5)) 100%
    );
}

.hero-banner--no-overlay .hero-banner__overlay {
    background-image: none !important;
    background-color: transparent !important;
}

.hero-banner__line {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    max-width: min(42rem, calc(100vw - 3rem));
    text-wrap: balance;
}

/* Breed scherm: één regel per zin */
@media (min-width: 640px) {
    .hero-banner__line {
        white-space: nowrap;
        width: max-content;
        max-width: calc(100vw - 3rem);
        text-wrap: pretty;
    }
}

.hero-banner__line--primary {
    font-size: clamp(1.15rem, 2.8vw, 2.15rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.hero-banner__line--secondary {
    font-size: clamp(1.05rem, 2.5vw, 1.85rem);
    letter-spacing: 0.01em;
}

.page-home .page-content {
    padding-top: 2.5rem;
}

/* Hero home (overige templates) */
.hero {
    padding: 3.5rem 0 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 28%);
    gap: 2rem;
    align-items: center;
}

.hero-welcome {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-moss);
    margin: 0 0 0.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-sage-dark);
    margin: 0 0 1.25rem;
    line-height: 1.15;
}

.hero--compact {
    padding: 2.5rem 0 1.5rem;
}

.hero--compact h1 {
    margin-bottom: 1rem;
}

/* Bredere pagina + zijbalk rechts */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 2.5rem 3rem;
    align-items: start;
}

.page-layout--full {
    grid-template-columns: 1fr;
}

.page-main.content-body {
    max-width: none;
}

.page-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-module {
    background: var(--color-white);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-linen);
    font-size: 0.98rem;
}

.sidebar-module h2,
.sidebar-module h3 {
    font-family: var(--font-display);
    color: var(--color-sage-dark);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
}

.sidebar-module p:first-of-type {
    margin-top: 0;
}

.sidebar-cta {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-linen);
}

.sidebar-cta .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.sidebar-body > :first-child {
    margin-top: 0;
}

/* Logo's/foto's in zijbalk: kleiner dan het vak → horizontaal gecentreerd */
.sidebar-body p:has(> img:only-child),
.sidebar-module p:has(> img:only-child) {
    text-align: center;
}

.sidebar-module img,
.sidebar-body img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0 1rem;
    vertical-align: middle;
    border-radius: 6px;
}

/* Inner pages */
.page-hero {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-sage-dark);
    margin: 0;
}

.page-content {
    padding: 0 0 4rem;
}

.page-content--no-hero {
    padding-top: 2.5rem;
}

.content-body {
    max-width: none;
}

/* Smalle tekst alleen waar geen page-layout (footer e.d.) */
.contact-layout .content-body {
    max-width: none;
}

.content-body h2,
.content-body h3 {
    font-family: var(--font-display);
    color: var(--color-sage-dark);
    font-weight: 600;
}

.content-body h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

.content-body ul {
    padding-left: 1.25rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Tabellen: horizontaal scrollen op smalle schermen */
.content-body .table-scroll,
.page-main .table-scroll,
.sidebar-body .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.content-body .table-scroll table,
.page-main .table-scroll table,
.sidebar-body .table-scroll table {
    margin: 0;
    box-shadow: none;
}

/* Tarieven tabel */
.price-table {
    width: 100%;
    min-width: 22rem;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.content-body .table-scroll .price-table,
.page-main .table-scroll .price-table {
    margin: 0;
}

.price-table th,
.price-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-linen);
    /* uitlijning komt uit de editor (inline style), niet uit vaste CSS */
}

.price-table th {
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 600;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table th:last-child,
.price-table td:last-child {
    font-weight: 600;
    color: var(--color-sage-dark);
    white-space: nowrap;
    width: 1%;
    text-align: right;
    vertical-align: top;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    white-space: nowrap;
    width: 1%;
}

.price-table .price-amount {
    display: inline-block;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 2.5rem 3rem;
    align-items: start;
}

.contact-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-linen);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-sage-dark);
    margin: 0 0 1rem;
}

.text-muted {
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--color-sage);
    color: var(--color-white) !important;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-sage-dark);
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    background: var(--color-sage-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-grid a {
    color: var(--color-sand);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.footer-block--custom {
    font-size: 0.95rem;
}

.footer-block--custom p {
    margin: 0 0 0.5rem;
}

.footer-block--custom .footer-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: inherit;
}

.site-footer .footer-block--custom a {
    color: var(--color-sand);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-cookie-line {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
}

.footer-cookie-settings,
.footer-cookie-sep {
    color: var(--color-sand);
}

.footer-cookie-settings {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-cookie-settings:hover {
    color: var(--color-white);
}

/* Cookiemelding */
.cookie-notice {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    pointer-events: none;
}

.cookie-notice__panel {
    pointer-events: auto;
    background: var(--color-white);
    border-top: 1px solid var(--color-linen);
    box-shadow: 0 -8px 32px rgba(74, 107, 80, 0.12);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-notice--visible .cookie-notice__panel,
.cookie-notice--hide .cookie-notice__panel {
    transform: translateY(0);
    opacity: 1;
}

.cookie-notice--hide .cookie-notice__panel {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-notice__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.1rem 0;
}

.cookie-notice__text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text);
}

.cookie-notice__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    flex-shrink: 0;
}

.cookie-notice__more {
    font-size: 0.92rem;
    color: var(--color-sage-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice__more:hover {
    color: var(--color-sage);
}

.btn-cookie {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-sage);
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: var(--shadow-soft);
}

.btn-cookie:hover {
    background: var(--color-sage-dark);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-notice__actions {
        justify-content: flex-end;
    }
}

/* Responsive mobiel: gesloten = logo midden; open = menu links, logo rechts */
@media (max-width: 900px) {
    .header-inner--split {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .header-inner--split .nav-toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        order: unset;
    }

    /* Menu dicht: hamburger links, logo in het midden van de rest */
    .header-inner--split:not(.is-nav-open) .brand--center {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }

    .header-inner--split .main-nav--left,
    .header-inner--split .main-nav--right {
        display: none;
        order: unset;
    }

    /* Menu open: hamburger + menu links, logo rechtsboven */
    .header-inner--split.is-nav-open {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .header-inner--split.is-nav-open .brand--center {
        grid-column: 2;
        grid-row: 1 / span 3;
        justify-self: end;
        align-self: start;
    }

    .header-inner--split.is-nav-open .main-nav--left {
        display: block;
        grid-column: 1;
        grid-row: 2;
        padding-top: 0.5rem;
    }

    .header-inner--split.is-nav-open .main-nav--right {
        display: block;
        grid-column: 1;
        grid-row: 3;
        padding-bottom: 0.25rem;
    }

    .header-inner--split.is-nav-open .main-nav--left ul,
    .header-inner--split.is-nav-open .main-nav--right ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-inner--split .brand-logo {
        height: 72px;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        height: 106px; /* +20% t.o.v. 88px */
        max-width: 180px;
    }

    .header-inner--split .brand-logo {
        height: 72px;
        max-width: 120px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner:not(.header-inner--split) .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        border-bottom: 1px solid var(--color-linen);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-inner:not(.header-inner--split) .main-nav.is-open {
        max-height: 320px;
        padding: 1rem 1.25rem 1.25rem;
    }

    .header-inner:not(.header-inner--split) .main-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-sidebar {
        position: static;
    }

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

    /* Tabel niet in viewport persen: horizontaal scrollen i.p.v. afbreken */
    .table-scroll .price-table {
        width: max-content;
        min-width: 100%;
        font-size: 0.95rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.85rem 1rem;
    }

    .price-table td:first-child {
        white-space: normal;
        min-width: 9rem;
        max-width: 14rem;
    }

    .price-table th:last-child,
    .price-table td:last-child {
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: manual;
        min-width: 5.75rem;
        padding-left: 1.25rem;
    }

    .price-table .price-amount {
        display: inline-block;
        white-space: nowrap;
        word-break: keep-all;
    }

    .hero-banner__overlay {
        padding: 2.25rem 1.25rem;
    }

    .hero-banner__line--primary {
        font-size: clamp(1.05rem, 4.5vw, 1.5rem);
    }

    .hero-banner__line--secondary {
        font-size: clamp(0.95rem, 4vw, 1.25rem);
    }

    .content-body table:not(.price-table),
    .sidebar-body table:not(.price-table) {
        min-width: 280px;
    }
}
