/*
Theme Name: Daniël E. Brouwer
Theme URI: https://www.danielebrouwer.nl
Author: Daniël E. Brouwer
Description: Persoonlijke website van Daniël E. Brouwer, auteur en autoriteit op het gebied van functioneel beheer. Rustig, deskundig, mobielvriendelijk. Nachtblauw palet met koperen accent.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: danielebrouwer
*/

/* ============================================================
   Palet en variabelen
   ============================================================ */
:root {
    --nachtblauw: #0C0E14;
    --marine: #16253A;
    --grafiet: #2E3138;
    --grafiet-zacht: #55585f;
    --zilvergrijs: #A7ADB5;
    --ivoor: #F5F4F2;
    --wit: #ffffff;
    --koper: #B8864A;
    --koper-hover: #a0743b;
    --lijn-licht: #e2dfd9;
    --lijn-donker: #2a3550;

    --max-breedte: 760px;
    --max-breedte-breed: 1120px;
    /* leesletter = lopende tekst (sans), titelletter = koppen (serif).
       Variant 2: rustige sans voor body/nav/labels, klassieke serif voor koppen. */
    --leesletter: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --titelletter: "EB Garamond", Georgia, "Times New Roman", serif;
}

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

html { font-size: 18px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--leesletter);
    color: var(--grafiet);
    background: var(--wit);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--koper);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--koper-hover); }

h1, h2, h3 {
    font-family: var(--titelletter);
    color: var(--grafiet);
    line-height: 1.22;
    font-weight: 500;
    margin: 0 0 .6em;
}
h1 { font-size: 2.2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }

p { margin: 0 0 1.2em; }

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-breedte);
    margin: 0 auto;
    padding: 0 28px;
}
.container-breed { max-width: var(--max-breedte-breed); }

.site-main { display: block; }
.sectie { padding: 72px 0; }
.sectie-ivoor { background: var(--ivoor); }
.sectie-wit { background: var(--wit); }

.bovenlabel {
    font-family: var(--leesletter);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--koper);
    margin-bottom: 18px;
}
/* Fijn goudlijntje boven het label (variant 2, minimalistisch accent). */
.bovenlabel::before {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    background: var(--koper);
    margin-bottom: 16px;
}

/* ============================================================
   Header en navigatie
   ============================================================ */
.site-header {
    background: var(--nachtblauw);
}
.site-header .container {
    max-width: var(--max-breedte-breed);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 22px;
}
.site-branding .site-title {
    font-family: var(--titelletter);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .01em;
    margin: 0;
}
.site-branding .site-title a { color: var(--ivoor); }
.site-branding .site-title a:hover { color: var(--koper); }

.hoofdnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.hoofdnav a {
    font-family: var(--leesletter);
    font-size: .9rem;
    color: var(--zilvergrijs);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.hoofdnav a:hover { color: var(--ivoor); }
.hoofdnav .current-menu-item a,
.hoofdnav .current_page_item a {
    color: var(--ivoor);
    border-bottom-color: var(--koper);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--lijn-donker);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--leesletter);
    font-size: .9rem;
    cursor: pointer;
    color: var(--ivoor);
}

/* ============================================================
   Hero (paginabrede donkere foto, portret links, tekst rechts)
   ============================================================ */
.hero {
    background-color: var(--nachtblauw);
    background-image: linear-gradient(90deg, rgba(11,17,32,0.35) 0%, rgba(11,17,32,0.65) 55%, rgba(11,17,32,0.92) 100%), var(--hero-foto, none);
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}
.hero-inner {
    max-width: var(--max-breedte-breed);
    margin: 0 auto;
    padding: 120px 28px;
    display: flex;
    justify-content: flex-end;
}
.hero-tekst { max-width: 440px; }
.hero h1 {
    font-family: var(--titelletter);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 1.16;
    color: var(--ivoor);
    margin-bottom: 22px;
}
.hero p {
    font-family: var(--leesletter);
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--zilvergrijs);
    margin-bottom: 30px;
}
.hero-knoppen { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Knoppen
   ============================================================ */
.knop {
    display: inline-block;
    font-family: var(--leesletter);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--koper);
    background: transparent;
    padding: 12px 26px;
    border-radius: 3px;
    border: 1px solid var(--koper);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.knop:hover { background: var(--koper); border-color: var(--koper); color: var(--nachtblauw); }

.knop-licht {
    color: var(--ivoor);
    background: transparent;
    border: 1px solid var(--lijn-donker);
}
.knop-licht:hover { color: var(--ivoor); border-color: var(--zilvergrijs); background: transparent; }

.koper-link {
    font-family: var(--leesletter);
    font-size: .92rem;
    font-weight: 500;
    color: var(--koper);
    border-bottom: 1px solid var(--koper);
    padding-bottom: 2px;
}
.koper-link:hover { color: var(--koper-hover); border-color: var(--koper-hover); }

/* ============================================================
   Wegwijzers (drie blokken homepage)
   ============================================================ */
.wegwijzers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--lijn-licht);
}
/* Minimalistische wegwijzers: open blokken, dunne scheidslijn, geen vlakken. */
.wegwijzer {
    display: block;
    border-bottom: 1px solid var(--lijn-licht);
    border-right: 1px solid var(--lijn-licht);
    padding: 34px 30px;
    background: transparent;
    color: var(--grafiet);
    position: relative;
    transition: background .15s ease;
}
.wegwijzer:nth-child(3n) { border-right: none; }
.wegwijzer:hover { background: var(--ivoor); color: var(--grafiet); }
.wegwijzer h3 {
    margin: 0 0 .35em;
    font-size: 1.2rem;
    color: var(--grafiet);
}
.wegwijzer p { margin: 0; font-size: .95rem; color: var(--grafiet-zacht); font-family: var(--leesletter); }
/* Subtiel koperen pijltje als affordance. */
.wegwijzer::after {
    content: "→";
    position: absolute;
    right: 30px;
    bottom: 32px;
    color: var(--koper);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}
.wegwijzer:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================================
   Tekstpagina's
   ============================================================ */
.pagina-kop { margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--grafiet-zacht); margin-bottom: 1.4em; }
.tekst-blok { max-width: var(--max-breedte); }

/* twee-koloms uitgelicht blok (boek op homepage) */
.uitgelicht {
    max-width: var(--max-breedte-breed);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 38px;
    align-items: center;
}
.uitgelicht .cover {
    width: 160px; height: 228px;
    background: var(--marine);
    border-radius: 4px;
    display: flex; align-items: flex-end;
    padding: 16px; box-sizing: border-box;
    font-family: var(--leesletter);
    color: #d3c1a0; font-size: .95rem; line-height: 1.3;
}

/* over-sectie met foto */
.over-grid {
    max-width: var(--max-breedte-breed);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
}
/* Twee kolommen alleen wanneer er een portret aanwezig is. */
.over-grid:has(.over-foto) { grid-template-columns: 1fr 0.7fr; }
.over-grid .tekst-blok { max-width: 720px; }
.over-foto { border-radius: 6px; overflow: hidden; }
.over-foto img { width: 100%; height: auto; object-fit: cover; border-radius: 6px; }

/* ============================================================
   Modellen
   ============================================================ */
.model {
    border-top: 1px solid var(--lijn-licht);
    padding-top: 40px;
    margin-top: 52px;
}
.model:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.model .kernboodschap {
    font-family: var(--leesletter);
    font-size: 1rem;
    font-weight: 500;
    color: var(--koper);
    margin-bottom: 1em;
}
.activiteiten {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}
.activiteiten li {
    background: transparent;
    border-top: 2px solid var(--koper);
    border-radius: 0;
    padding: 16px 2px 4px;
}
.activiteiten li strong {
    font-family: var(--titelletter);
    font-weight: 500;
    font-size: 1.08rem;
    display: block;
    margin-bottom: 6px;
    color: var(--grafiet);
}
.activiteiten li span { font-size: .94rem; color: var(--grafiet-zacht); }

/* ============================================================
   Boeken
   ============================================================ */
.boek {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--lijn-licht);
    padding: 36px 0;
}
.boek:first-of-type { border-top: none; padding-top: 8px; }
.boek-cover { flex: 0 0 150px; max-width: 150px; }
/* Vaste verhouding voorkomt layout-shift terwijl de cover laadt. */
.boek-cover img {
    border-radius: 4px;
    width: 150px;
    aspect-ratio: 150 / 214;
    object-fit: cover;
    background: var(--ivoor);
}
.boek-cover .cover-placeholder {
    width: 150px; height: 214px;
    background: var(--marine);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--titelletter);
    font-size: .82rem; color: #cdbc9d;
    text-align: center; padding: 12px;
}
.boek-inhoud h3 { margin-top: 0; }
.boek-inhoud p { margin-bottom: .8em; }

/* ============================================================
   Boek-detailpagina
   ============================================================ */
.boek-detail {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 44px;
    align-items: start;
    margin-bottom: 16px;
}
.boek-detail-cover img { border-radius: 4px; width: 220px; }
.boek-detail-inhoud .pagina-kop { margin-top: 0; }

.boek-gegevens { border-top: 1px solid var(--lijn-licht); padding-top: 24px; margin-top: 40px; }
.boek-gegevens h2 { margin-top: 0; }
.boek-gegevens dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 8px 24px;
    margin: 0;
    font-family: var(--leesletter);
    font-size: .95rem;
}
.boek-gegevens dt { color: var(--grafiet-zacht); }
.boek-gegevens dd { margin: 0; color: var(--grafiet); }

.boek-extra { margin-top: 8px; }

.boek-toc {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    font-family: var(--leesletter);
}
.boek-toc li {
    padding: 10px 0;
    border-bottom: 1px solid var(--lijn-licht);
    color: var(--grafiet);
}
.boek-toc li:last-child { border-bottom: 0; }

.boek-knoppen { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.boek-training {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--ivoor);
    border-radius: 8px;
}
.boek-training p { margin: 0 0 .6em; }
.boek-training p:last-child { margin-bottom: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-telefoon {
    font-family: var(--titelletter);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--grafiet);
    margin: 8px 0 24px;
}
.contact-telefoon a { color: var(--grafiet); }
.contact-telefoon a:hover { color: var(--koper); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--nachtblauw);
    padding: 40px 0;
    font-family: var(--leesletter);
    font-size: .86rem;
    color: var(--zilvergrijs);
}
.site-footer .container {
    max-width: var(--max-breedte-breed);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer a { color: var(--koper); }
.site-footer a:hover { color: var(--koper-hover); }

/* ============================================================
   Mobiel
   ============================================================ */
@media (max-width: 820px) {
    html { font-size: 17px; }
    .hero h1 { font-size: 2rem; }

    .nav-toggle { display: block; }
    .hoofdnav { flex-basis: 100%; display: none; margin-top: 16px; }
    .hoofdnav.open { display: block; }
    .hoofdnav ul { flex-direction: column; gap: 4px; }
    .hoofdnav a { display: block; padding: 8px 0; }

    .hero-inner { padding: 80px 28px; justify-content: flex-start; }
    .hero-tekst { max-width: 100%; }
    .hero {
        background-image: linear-gradient(180deg, rgba(11,17,32,0.55) 0%, rgba(11,17,32,0.85) 100%), var(--hero-foto, none);
        background-position: top center;
    }

    .wegwijzers { grid-template-columns: 1fr; gap: 16px; }
    .activiteiten { grid-template-columns: 1fr; }

    .uitgelicht { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
    .over-grid { grid-template-columns: 1fr; gap: 28px; }

    .boek { flex-direction: column; gap: 18px; }
    .boek-cover { flex-basis: auto; }

    .boek-detail { grid-template-columns: 1fr; gap: 24px; }
    .boek-detail-cover img { width: 180px; }
    .boek-gegevens dl { grid-template-columns: 1fr; gap: 2px 0; }
    .boek-gegevens dt { margin-top: 10px; }

    .sectie { padding: 52px 0; }
}


/* ============================================
   Lichte header & footer (zelfde als body)
   ============================================ */
.site-header {
    background: var(--wit);
    border-bottom: 1px solid var(--lijn-licht);
}
.site-branding .site-title a { color: var(--grafiet); }
.site-branding .site-title a:hover { color: var(--koper); }
.hoofdnav a { color: var(--grafiet); font-weight: 700; }
.hoofdnav a:hover { color: var(--koper); }
.hoofdnav .current-menu-item a {
    color: var(--koper);
    border-bottom-color: var(--koper);
}
.site-footer {
    background: var(--wit);
    border-top: 1px solid var(--lijn-licht);
}
.site-footer,
.site-footer p,
.site-footer span { color: var(--grafiet); }
.site-footer a { color: var(--koper); }
.site-footer a:hover { color: var(--koper-hover); }


/* ============================================
   Consistente sectie-witruimte
   Eerste kop in een sectie/container krijgt geen
   extra top-marge bovenop de sectie-padding.
   ============================================ */
.sectie > .container > :first-child,
.sectie > .container > *:first-child > :first-child,
.sectie > :first-child {
    margin-top: 0;
}
.sectie .container > h1:first-child,
.sectie .container > h2:first-child,
.sectie .container > h3:first-child {
    margin-top: 0;
}
.sectie > .container > :last-child,
.sectie > .container > *:last-child > :last-child,
.sectie > :last-child {
    margin-bottom: 0;
}
