:root {
    --td-bordeaux: #6e1a2c;
    --td-bordeaux-dark: #4a0f1d;
    --td-bordeaux-glow: #8a2839;
    --td-cream: #f7f1e8;
    --td-cream-soft: #ede4d4;
    --td-ink: #1a1012;
    --td-ink-soft: #2a1c1f;
    --td-text: #2a1c1f;
    --td-muted: #746864;
    --td-line: rgba(110, 26, 44, 0.18);
    --td-shadow: 0 14px 40px rgba(26, 16, 18, 0.25);

    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--td-text);
    background: var(--td-cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); letter-spacing: -.015em; color: var(--td-ink); font-weight: 500; }
h1 { font-weight: 500; }
a { color: var(--td-bordeaux); text-decoration: none; transition: color .2s; }
a:hover { color: var(--td-bordeaux-glow); }
.text-bordeaux { color: var(--td-bordeaux); }

/* ---------- nav ---------- */
.td-nav {
    background: var(--td-ink);
    color: var(--td-cream);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(247, 241, 232, 0.06);
}
.td-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.td-nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.td-nav__brand:hover { text-decoration: none; }

/* ---------- textual brand ---------- */
.td-brand { display: inline-flex; align-items: center; gap: .7rem; }
.td-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--td-bordeaux);
    color: var(--td-cream);
    background: var(--td-bordeaux);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.td-brand__text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.td-brand__name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--td-cream);
    letter-spacing: -.01em;
}
.td-brand__tag {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--td-bordeaux-glow);
    margin-top: 3px;
}
.td-brand--footer .td-brand__name { color: var(--td-cream); font-size: 1.35rem; }

.td-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
    align-items: center;
}
.td-nav__menu li { position: relative; margin: 0; padding: 0; }
.td-nav__menu a {
    color: var(--td-cream);
    font-size: .95rem;
    font-weight: 400;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, color .2s;
}
.td-nav__menu a:hover, .td-nav__menu a.is-active {
    color: var(--td-cream);
    border-bottom-color: var(--td-bordeaux-glow);
}
.td-nav__has-sub > ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--td-ink);
    padding: 12px 18px;
    margin: 0;
    min-width: 200px;
    border: 1px solid rgba(247, 241, 232, 0.08);
    border-top: 2px solid var(--td-bordeaux);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.td-nav__has-sub:hover > ul,
.td-nav__has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.td-nav__has-sub > ul li a { padding: 6px 0; display: block; border: none; }

.td-nav__toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.td-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--td-cream); transition: all .2s; }
.td-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.td-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.td-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
    .td-nav__toggle { display: flex; }
    .td-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--td-ink);
        padding: 0 1.5rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease, border-color .3s ease;
        border-bottom: 0 solid var(--td-bordeaux);
    }
    .td-nav__menu.is-open {
        max-height: 80vh;
        overflow: auto;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom-width: 2px;
    }
    .td-nav__menu a {
        display: block;
        padding: 8px 0;
        line-height: 1.3;
        border-bottom: 0;
        transition: color .2s;
    }
    .td-nav__menu a:hover, .td-nav__menu a.is-active {
        color: var(--td-bordeaux-glow);
        border-bottom-color: transparent;
    }
    .td-nav__has-sub > ul {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        background: transparent;
        border: none;
        list-style: none;
        margin: 0;
        padding: 0;
        min-width: 0;
    }
    .td-nav__has-sub > ul li a {
        padding: 4px 0 4px 1rem !important;
        font-size: .88rem;
        line-height: 1.2;
        color: rgba(247, 241, 232, .7);
    }
}

/* ---------- hero ---------- */
.td-hero {
    position: relative;
    background: var(--td-ink) url('/img/photos/groen/groen26.jpg') center/cover no-repeat;
    color: var(--td-cream);
    padding: 7rem 0 6rem;
    overflow: hidden;
}
.td-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,16,18,0.55) 0%, rgba(26,16,18,0.85) 100%);
}
.td-hero__inner { position: relative; max-width: 760px; }
.td-hero h1 { color: var(--td-cream); font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.td-hero__lead { font-size: 1.15rem; color: rgba(247, 241, 232, 0.85); margin-bottom: 2rem; }
.td-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.td-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .02em;
    border: 1px solid var(--td-bordeaux);
    border-radius: 2px;
    transition: all .2s;
    cursor: pointer;
}
.td-btn--primary { background: var(--td-bordeaux); color: var(--td-cream); }
.td-btn--primary:hover { background: var(--td-bordeaux-dark); color: var(--td-cream); border-color: var(--td-bordeaux-dark); }
.td-btn--ghost { background: transparent; color: var(--td-cream); border-color: rgba(247,241,232,.4); }
.td-btn--ghost:hover { background: var(--td-cream); color: var(--td-ink); border-color: var(--td-cream); }

/* ---------- sections ---------- */
.td-section { padding: 5rem 0; }
.td-section--alt { background: var(--td-cream-soft); }
.td-section--dark { background: var(--td-ink); color: var(--td-cream); }
.td-section--dark h1, .td-section--dark h2, .td-section--dark h3 { color: var(--td-cream); }
.td-section__heading { text-align: center; margin-bottom: 3rem; }
.td-section__eyebrow { color: var(--td-bordeaux); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; margin-bottom: .5rem; }
.td-section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.td-section__subtitle { color: var(--td-muted); max-width: 600px; margin: 0 auto; }

/* ---------- service tiles ---------- */
.td-service {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    background: var(--td-ink);
    color: var(--td-cream);
    text-decoration: none;
    transition: transform .3s;
}
.td-service:hover { transform: translateY(-4px); color: var(--td-cream); }
.td-service__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .65;
    transition: opacity .3s, transform .6s;
}
.td-service:hover .td-service__img { opacity: .8; transform: scale(1.05); }
.td-service__body {
    position: relative;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 50%, rgba(26,16,18,.85) 100%);
}
.td-service__title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; color: var(--td-cream); margin: 0 0 .25rem; }
.td-service__desc { color: rgba(247,241,232,.78); font-size: .9rem; margin: 0; }
.td-service__more { display: inline-block; margin-top: .5rem; color: var(--td-cream); font-size: .85rem; border-bottom: 1px solid var(--td-bordeaux-glow); padding-bottom: 2px; }

/* ---------- gallery grid ---------- */
.td-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.td-gallery__item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    background: var(--td-ink);
}
.td-gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
    cursor: zoom-in;
}
.td-gallery__item:hover img { transform: scale(1.04); }

/* ---------- gallery tabs ---------- */
.td-tabs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 2.5rem; }
.td-tabs a {
    padding: 8px 18px;
    font-size: .9rem;
    color: var(--td-text);
    border: 1px solid var(--td-line);
    border-radius: 2px;
    transition: all .2s;
    background: transparent;
}
.td-tabs a:hover { background: var(--td-cream-soft); }
.td-tabs a.is-active { background: var(--td-bordeaux); color: var(--td-cream); border-color: var(--td-bordeaux); }

/* ---------- compare slider ---------- */
.td-compare {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 2px;
    background: var(--td-ink);
    user-select: none;
    touch-action: pan-y;
}
.td-compare__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.td-compare__top {
    clip-path: inset(0 50% 0 0);
    transition: clip-path .05s linear;
}
.td-compare__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--td-cream);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.td-compare__grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: var(--td-cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    color: var(--td-bordeaux);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: ew-resize;
    pointer-events: auto;
}
.td-compare__grip::before { content: '◀'; margin-right: 2px; font-size: .65rem; }
.td-compare__grip::after { content: '▶'; margin-left: 2px; font-size: .65rem; }
.td-compare__label {
    position: absolute;
    top: 14px;
    background: rgba(26,16,18,.78);
    color: var(--td-cream);
    padding: 4px 12px;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    border-radius: 2px;
    pointer-events: none;
}
.td-compare__label--before { left: 14px; }
.td-compare__label--after { right: 14px; }

/* ---------- project header ---------- */
.td-page-header {
    background: var(--td-ink);
    color: var(--td-cream);
    padding: 4rem 0 3rem;
    text-align: center;
}
.td-page-header h1 { color: var(--td-cream); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.td-page-header__sub { color: rgba(247,241,232,.78); margin: 0; }

/* ---------- contact ---------- */
.td-contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .td-contact-grid { grid-template-columns: 1fr 1.2fr; } }
.td-contact-card {
    background: var(--td-cream-soft);
    padding: 2.5rem 2rem;
    border-left: 4px solid var(--td-bordeaux);
}
.td-contact-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.td-contact-card a { color: var(--td-text); border-bottom: 1px solid var(--td-line); }
.td-contact-card a:hover { color: var(--td-bordeaux); border-bottom-color: var(--td-bordeaux); }
.td-contact-card .td-big {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--td-bordeaux);
    border: none;
    margin: .5rem 0;
}
.td-contact-card .td-big:hover { color: var(--td-bordeaux-dark); }
.td-map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 2px; }
.td-contact-photo { width: 100%; height: 100%; min-height: 320px; overflow: hidden; border-radius: 2px; }
.td-contact-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* ---------- footer ---------- */
.td-footer {
    background: var(--td-ink);
    color: rgba(247, 241, 232, .72);
    padding: 4rem 0 0;
    margin-top: 4rem;
    font-size: .92rem;
    border-top: 3px solid var(--td-bordeaux);
}
.td-footer .td-brand__name { color: var(--td-cream); }
.td-footer__tag { color: rgba(247, 241, 232, .6); margin: 0; max-width: 32ch; }
.td-footer__heading {
    color: var(--td-cream);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: .02em;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(247, 241, 232, .12);
}
.td-footer address { color: rgba(247, 241, 232, .72); font-style: normal; line-height: 1.7; }
.td-footer address strong { color: var(--td-cream); font-weight: 500; }
.td-footer a {
    color: rgba(247, 241, 232, .72);
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.td-footer a:hover { color: var(--td-cream); border-bottom-color: var(--td-bordeaux-glow); }
.td-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 1.5rem;
}
.td-footer__links li { margin-bottom: .4rem; break-inside: avoid; }
.td-footer__links a { display: inline-block; }
.td-footer__credits {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(247, 241, 232, .08);
    text-align: center;
    font-size: .82rem;
    color: rgba(247, 241, 232, .5);
    letter-spacing: .05em;
}

/* ---------- lightbox ---------- */
.td-lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 6, 7, .94);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.td-lightbox.is-open { display: flex; }
.td-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.td-lightbox__close, .td-lightbox__prev, .td-lightbox__next {
    position: absolute;
    background: transparent; border: none;
    color: var(--td-cream);
    font-size: 1.6rem;
    width: 48px; height: 48px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.td-lightbox__close { top: 14px; right: 14px; }
.td-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.td-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.td-lightbox__close:hover, .td-lightbox__prev:hover, .td-lightbox__next:hover { color: var(--td-bordeaux-glow); }

/* ---------- 404 ---------- */
.td-404 { padding: 6rem 0; text-align: center; }
.td-404 h1 { font-size: 5rem; color: var(--td-bordeaux); }
