/* Bootstrap en Google Fonts worden apart geladen via lib/setup.php */

/* ==========================================================================
 * Variabelen — kleuren uit het originele DTPL-logo
========================================================================== */

:root {
    --groen-donker: #046221;
    --groen: #4F6F15;
    --groen-fris: #95C11F;
    --groen-licht: #C5D97D;
    --groen-zacht: #C2DDB4;
    --bg-zacht: #f6f7f2;
    --tekst: #24312a;
    --tekst-licht: #55635b;
    --wit: #ffffff;
    --radius: 8px;
    --schaduw: 0 10px 30px rgba(4, 98, 33, 0.08);
}

/* ==========================================================================
 * Global
========================================================================== */

html { height: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    background: var(--wit);
    color: var(--tekst);
    margin: 0;
    overflow-x: clip;
}

a { color: var(--groen-donker); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover, a:focus { color: var(--groen); text-decoration: none; }

h1, h2, h3, h4 { color: var(--tekst); }

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 12px; }
h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 10px; }

h1 span, h2 span { color: var(--groen-fris); }
h2 span { color: var(--groen); font-style: italic; }

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

.wrap { margin-top: 96px; }
.home .wrap, .page-template-temp-front .wrap { margin-top: 0; }

.block { padding: 80px 0; }

.section-intro {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--tekst-licht);
}

.mobile { display: none; }

/* Knoppen */
.btn-dtpl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    transition: all .2s;
}

.btn-dtpl.groen { background: var(--groen-donker); color: var(--wit); }
.btn-dtpl.groen:hover { background: var(--groen); color: var(--wit); }

.btn-dtpl.outline { background: var(--wit); color: var(--groen-donker); border-color: var(--groen-donker); }
.btn-dtpl.outline:hover { background: var(--groen-donker); color: var(--wit); }

.btn-dtpl.wit { background: var(--wit); color: var(--groen-donker); }
.btn-dtpl.wit:hover { background: var(--groen-licht); color: var(--groen-donker); }

.link-arrow {
    font-weight: 600;
    color: var(--groen-donker);
    border-bottom: 2px solid var(--groen-fris);
    padding-bottom: 3px;
}
.link-arrow:hover { color: var(--groen-fris); }
.link-arrow::after { content: "\2192"; margin-left: 8px; }

/* ==========================================================================
 * Vlinder — vliegt subtiel mee met het scrollen
========================================================================== */

#vlinder {
    position: fixed;
    top: 0;
    left: 0;
    width: 72px;
    height: 55px;
    z-index: 50;
    pointer-events: none;
    opacity: 0.35;
    will-change: transform;
}

#vlinder svg { width: 100%; height: 100%; overflow: visible; }

#vlinder .vleugel {
    animation: fladder 0.5s ease-in-out infinite alternate;
    transform-box: view-box;
    transform-origin: 32px 24px;
}

#vlinder .vleugel.rechts { animation-name: fladder-rechts; }

@keyframes fladder {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0.45); }
}

@keyframes fladder-rechts {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0.45); }
}

@media (prefers-reduced-motion: reduce) {
    #vlinder { display: none; }
}

/* ==========================================================================
 * Header
========================================================================== */

.navbar {
    z-index: 9999;
    background: var(--wit);
    width: 100%;
    position: fixed;
    top: 0;
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar-brand img { width: 200px; height: auto; }

.navbar-nav { align-items: center; gap: 6px; }

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--tekst);
    padding: 8px 14px !important;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .current-menu-item .nav-link,
.navbar-nav .current_page_item .nav-link {
    color: var(--groen-donker);
    border-bottom-color: var(--groen-fris);
}

.navbar-cta {
    margin-left: 18px;
    background: var(--groen-donker);
    color: var(--wit) !important;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
}
.navbar-cta:hover { background: var(--groen); }

.navbar-toggler { border: none; font-size: 24px; color: var(--groen-donker); }
.navbar-toggler:focus { box-shadow: none; }

.dropdown-menu { border: none; box-shadow: var(--schaduw); border-radius: var(--radius); }
.dropdown-item:hover { background: var(--bg-zacht); color: var(--groen-donker); }
.dropdown-item.active, .dropdown-item:active { background: var(--groen-donker); color: var(--wit); }

/* ==========================================================================
 * Hero
========================================================================== */

.hero {
    position: relative;
    min-height: 640px;
    margin-top: 96px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 35%, rgba(255,255,255,0.15) 70%, rgba(255,255,255,0) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero-inner { max-width: 560px; padding: 90px 0; }

.hero-inner p { color: var(--tekst); margin-bottom: 32px; max-width: 480px; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
 * Diensten / vakgebieden
========================================================================== */

section.diensten { background: var(--bg-zacht); padding: 90px 0 80px; }

section.diensten h2 { text-align: center; }

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.dienst {
    text-align: center;
    padding: 28px 22px;
    border-radius: var(--radius);
    display: block;
    color: var(--tekst);
    position: relative;
}

.dienst + .dienst::before { display: none; }

.dienst:hover { background: var(--wit); box-shadow: var(--schaduw); color: var(--tekst); }

.dienst-icoon {
    height: 84px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dienst-icoon img {
    width: auto;
    height: 100%;
    max-width: 160px;
    object-fit: contain;
    transition: transform .25s ease;
}

.dienst:hover .dienst-icoon img { transform: scale(1.06); }

.dienst h3 { font-size: 17px; }

.dienst p { font-size: 14px; line-height: 1.6; color: var(--tekst-licht); margin: 0; }

/* ==========================================================================
 * Projecten / nieuws
========================================================================== */

section.projecten { padding: 80px 0; }

.section-head-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.section-head-row h2 { margin: 0; }

.projecten-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-kaart { display: block; border-radius: var(--radius); overflow: hidden; position: relative; }

.project-kaart .img-hover-zoom { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.4; }

.project-kaart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-kaart:hover img { transform: scale(1.05); }

.project-kaart h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 2px 0;
    color: var(--tekst);
}
.project-kaart:hover h4 { color: var(--groen-donker); }

/* ==========================================================================
 * Visie-banner
========================================================================== */

.visie-banner {
    position: relative;
    background: var(--groen-donker);
    color: var(--wit);
    padding: 56px 0;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}

.visie-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,98,33,0.97) 0%, rgba(4,98,33,0.92) 55%, rgba(4,98,33,0.55) 100%);
}

.visie-banner .container { position: relative; z-index: 2; }

.visie-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.visie-logo { flex: 0 0 auto; width: 110px; opacity: .95; }

.visie-tekst { flex: 1 1 380px; }

.visie-tekst h2 { color: var(--wit); font-size: 28px; margin-bottom: 10px; }

.visie-tekst p { margin: 0; color: rgba(255,255,255,0.9); max-width: 560px; }

/* ==========================================================================
 * Content-pagina's
========================================================================== */

.page-header h1 { margin-top: 20px; }

.page-content { padding: 80px 0; }

.page-content .wp-block-columns { gap: 40px; }

article.page p, article.post p { color: var(--tekst); }

/* Interne pagina's: nette kop met groen lijntje */
.page-header h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: var(--groen-fris);
    border-radius: 2px;
    margin-top: 16px;
}

/* Nieuws-overzicht (bestaande item-kaarten) */
.item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--wit);
    box-shadow: var(--schaduw);
    margin-bottom: 24px;
}

.img-hover-zoom { overflow: hidden; }
.img-hover-zoom img { transition: transform .4s ease; width: 100%; }
.item:hover .img-hover-zoom img { transform: scale(1.05); }

.item-content { padding: 18px 20px 22px; }
.item-content time { font-size: 13px; color: var(--tekst-licht); }
.item-content h4 { margin: 6px 0 0; font-size: 17px; }

/* ==========================================================================
 * Footer
========================================================================== */

.footer {
    background: var(--bg-zacht);
    border-top: 1px solid rgba(4,98,33,0.12);
    padding: 64px 0 48px;
}

.footer-brand img { width: 210px; }

.footer-brand .tagline { margin-top: 18px; color: var(--tekst-licht); font-size: 15px; max-width: 260px; }

.footer-brand hr {
    width: 40px;
    height: 3px;
    background: var(--groen-fris);
    border: none;
    opacity: 1;
    margin: 18px 0 0;
    border-radius: 2px;
}

.footer h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--groen-donker);
    margin-bottom: 18px;
}

.footer ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; font-size: 15px; }
.footer ul a { color: var(--tekst); }
.footer ul a:hover { color: var(--groen-donker); }

.footer .widget p { font-size: 15px; line-height: 1.9; color: var(--tekst); }

.footer .wp-block-social-links { gap: 12px; }

/* Widgetkolommen in de smalle footerkolom altijd stapelen */
.footer .footer-widgets .wp-block-columns { display: block !important; }
.footer .footer-widgets .wp-block-column { margin-bottom: 14px; }
.footer .footer-widgets .wp-block-social-links { justify-content: flex-start !important; }
.footer .widget p { margin-bottom: 8px; }

.copyright {
    background: var(--groen-donker);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 16px 0;
    text-align: center;
}

.copyright a { color: var(--wit); }
.copyright a:hover { color: var(--groen-licht); }

/* ==========================================================================
 * Binnenpagina's
========================================================================== */

.page-head-small {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--groen-donker);
    display: flex;
    align-items: flex-end;
}

.page-head-small::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,98,33,0.15) 0%, rgba(4,98,33,0.5) 100%);
}

.page-head-small .container { position: relative; z-index: 2; padding-bottom: 32px; }

.page-head-small h1 { color: var(--wit); margin-bottom: 0; }
.page-head-small h1::after { display: none; }

.page-head-small .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.page-head-small .breadcrumb a { color: var(--wit); }

.notebox {
    max-width: 760px;
    color: var(--tekst-licht);
    font-size: 17px;
    margin-bottom: 40px;
}

.item-project .item-content { padding: 16px 20px 20px; }

/* Kaart zonder foto: toon een rustig groen vlak met blad-patroon */
.item .img-hover-zoom { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--groen-zacht), var(--groen-licht)); }
.item .img-hover-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Meldingen en navigatie */
.alert {
    border-radius: var(--radius);
    border: 1px solid rgba(4,98,33,0.2);
    background: var(--bg-zacht);
    color: var(--tekst);
    padding: 18px 22px;
}

.posts-navigation .nav-links,
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.posts-navigation a {
    font-weight: 600;
    color: var(--groen-donker);
}

/* Contactpagina */
.box-time {
    background: var(--wit);
    border-radius: var(--radius);
    box-shadow: var(--schaduw);
    border: 1px solid rgba(4,98,33,0.08);
    padding: 36px;
}

/* Formulieren (Contact Form 7 + zoeken) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.search-form input[type="search"],
.search-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(36,49,42,0.2);
    border-radius: var(--radius);
    background: var(--wit);
    color: var(--tekst);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 6px;
    transition: border-color .2s, box-shadow .2s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--groen-fris);
    box-shadow: 0 0 0 3px rgba(149,193,31,0.2);
}

.wpcf7 input[type="submit"],
.search-form .search-submit {
    display: inline-block;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--groen-donker);
    color: var(--wit);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}

.wpcf7 input[type="submit"]:hover,
.search-form .search-submit:hover { background: var(--groen); }

.wpcf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 13px; }
.wpcf7 .wpcf7-response-output {
    border-radius: var(--radius);
    border: 1px solid rgba(4,98,33,0.25);
    padding: 12px 16px;
    margin: 16px 0 0;
}

/* 404 */
.pagina-404 { text-align: center; padding: 100px 0; }
.pagina-404 h1::after { margin-left: auto; margin-right: auto; }
.pagina-404 p { color: var(--tekst-licht); max-width: 480px; margin: 0 auto 32px; }

/* ==========================================================================
 * Responsive
========================================================================== */

@media (max-width: 991px) {
    .navbar-brand img { width: 160px; }

    .navbar-collapse {
        background: var(--wit);
        margin-top: 12px;
        padding: 12px 0 20px;
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    .navbar-nav { align-items: flex-start; }
    .navbar-cta { margin: 14px 14px 0; }

    .projecten-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    h1 { font-size: 34px; }
    h2 { font-size: 27px; }

    .wrap { margin-top: 78px; }
    .hero { margin-top: 78px; min-height: 520px; }
    .hero-overlay { background: rgba(255,255,255,0.85); }
    .hero-inner { padding: 60px 0; }

    .block, section.projecten, .page-content { padding: 56px 0; }
    .page-head-small { min-height: 200px; }
    .pagina-404 { padding: 64px 0; }
    section.diensten { padding: 64px 0 56px; }

    .visie-inner { gap: 20px; }
    .visie-logo { width: 80px; }

    .footer { padding: 48px 0 32px; }
    .footer > .container > .row > div { margin-bottom: 32px; }

    .mobile { display: block; }
    .desktop { display: none; }
}

@media (max-width: 575px) {
    .projecten-grid { grid-template-columns: 1fr; }
}
