/* ============================================================
 *  mauricemeinster.com — huisstijl v2.4
 *  Combinatie van de maritieme stijl (navy, messing, fotodracht)
 *  en de rustige privacy-tech-stijl van Meinster IT (licht, clean).
 *  Koppen: Newsreader (editoriale serif, variable font via Fontsource).
 *  Tekst: Inter (clean-tech sans).
 *  Mobiel-eerst; breekpunten 480/768/960/1200 px.
 *  Alle URL's relatief aan dit bestand.
 *  Wijzigingen v2.4: het navigatiemenu is nu op ELKE schermbreedte
 *  horizontaal (ook op smartphone — de drie korte items passen naast
 *  elkaar). Menu-knop en uitklaplogica zijn volledig verwijderd:
 *  simpeler, en het menu is zonder JavaScript altijd zichtbaar.
 *  NB: na wijzigingen aan dit bestand de ?v= in index.html verhogen!
 *  ============================================================ */

/* Newsreader: variable font met gewichtsas (200–800) in één bestand.
 *  Daarom dekt deze ene @font-face elk kopgewicht dat we gebruiken. */
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-600.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Lichte basis */
    --zand:         #f7f2e9;
    --zand-donker:  #ece4d4;

    /* Maritieme basis (persoonlijke site-kant) */
    --marine:       #16283f;
    --marine-mid:   #24405e;
    --marine-licht: #3d5a7d;

    /* Messing-accent: zonsondergang, kompas, marinebrons */
    --messing:      #b08d3f;
    --messing-licht:#d4b269;

    --tekst:        #1d2635;
    --tekst-zacht:  #55607a;
    --wit:          #ffffff;

    --font-kop:   "Newsreader", Georgia, serif;
    --font-tekst: "Inter", Arial, sans-serif;

    --breedte: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-tekst);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tekst);
    background-color: var(--zand);
}

.wrapper {
    width: 100%;
    max-width: var(--breedte);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ---------- Toegankelijkheid ---------- */
.skiplink {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--marine);
    color: var(--wit);
    padding: 0.5rem 1rem;
    z-index: 10;
}
.skiplink:focus { left: 0; }

/* Visueel verbergen maar voor screenreaders behouden */
.visueel-verborgen {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid var(--messing-licht);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Koppen ---------- */
h1, h2 {
    font-family: var(--font-kop);
    font-weight: 600;
    line-height: 1.2;
    color: var(--tekst);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 {
    font-family: var(--font-kop);
    font-weight: 600;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    line-height: 1.3;
    color: var(--tekst);
    margin: 2rem 0 0.25rem;
}

/* ---------- Header: horizontaal menu op élke breedte ---------- */
.site-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem max(1.25rem, calc((100% - var(--breedte)) / 2 + 1.25rem));
    background: var(--marine);
    border-bottom: 3px solid var(--messing);
}

/* De navigatielijst draagt zelf de klasse .site-nav — altijd een
 *  horizontale rij, ook op smartphone. De korte items passen daar
 *  ruim naast elkaar; mocht een zeer smal scherm toch vol raken,
 *  loopt de rij vanzelf om (flex-wrap). */
.site-nav {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1.1rem;
}
.site-nav a {
    color: var(--zand);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.site-nav a:hover,
.site-nav a:focus {
    color: var(--messing-licht);
    text-decoration: underline;
}

/* ---------- Hero: fregatfoto (lichtere overlay) + rond portret ---------- */
.hero {
    position: relative;
    padding-block: 4rem 3rem;
    color: var(--wit);
    background: var(--marine);           /* fallback: egale navy */
    border-bottom: 3px solid var(--messing);
}
/* Overlay licht genoeg om de fregatfoto te zien, donker genoeg voor
 *  AA-contrast van witte tekst. */
.hero--foto {
    background:
    linear-gradient(rgba(22, 40, 63, 0.55), rgba(22, 40, 63, 0.78)),
    url("../img/hero-maritiem.jpg") center / cover no-repeat;
}
.hero__grid {
    display: flex;
    flex-direction: column-reverse;      /* tekst boven, portret eronder op mobiel */
    align-items: flex-start;
    gap: 2rem;
}
.hero__portret {
    margin: 0;
    flex-shrink: 0;
}
/* Het portret: vierkante bron wordt rond afgekapt, messing dubbele rand. */
.hero__portret img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--messing);
    outline: 3px solid rgba(22, 40, 63, 0.55);   /* donkere buitenrand tegen lichte foto's */
    outline-offset: 2px;
}
.hero__tekst { max-width: 42rem; }
.hero h1 { color: var(--wit); margin: 0; }
.hero__rol {
    font-family: var(--font-kop);
    color: var(--messing-licht);
    font-size: 1.2rem;
    margin: 0.4rem 0 1.1rem;
}
.hero__intro {
    max-width: 38rem;
    margin: 0;
    color: #e9e2d2;
}

/* ---------- Secties: één consistente breedte ---------- */
.sectie { padding-block: 2.5rem; }
.sectie--tint { background: var(--zand-donker); }
.sectie__lead { color: var(--tekst-zacht); margin-top: 0; }

/* ---------- JIVC-blok met externe knoppen ----------
 *  Knoppen staan ALTIJD horizontair naast elkaar en lopen bij
 *  plaatsgebrek vanzelf om naar de volgende regel (flex-wrap). */
.jivc__kop { margin-top: 1.75rem; }
.linklijst {
    list-style: none;
    margin: 0.9rem 0 0; padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.linklijst a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wit);
    text-decoration: none;
    background: var(--marine);
    border-bottom: 3px solid var(--messing);
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
}
.linklijst a:hover,
.linklijst a:focus {
    background: var(--marine-mid);
    color: var(--messing-licht);
}

/* ---------- Tijdlijn: eenvoudige regels, periode optioneel ---------- */
.tijdlijn {
    list-style: none;
    margin: 0.75rem 0 0; padding: 0;
}
.tijdlijn__item {
    padding: 0.9rem 0;
    border-top: 1px solid var(--marine-licht);
}
.tijdlijn__item:last-child { border-bottom: 1px solid var(--marine-licht); }
.tijdlijn__periode {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--messing);
}
.tijdlijn__rol { font-weight: 700; }
.tijdlijn__org { color: var(--tekst-zacht); }

/* ---------- Contactformulier: velden op leesbare breedte ---------- */
.contactformulier {
    margin-top: 1.5rem;
    max-width: 40rem;
}
.veld { margin-bottom: 1.1rem; }
.veld label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.veld input,
.veld textarea {
    width: 100%;
    font: inherit;
    color: var(--tekst);
    background: var(--wit);
    border: 2px solid var(--marine-licht);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}
.veld input:focus,
.veld textarea:focus {
    border-color: var(--messing);
    outline: none;
}
.knop {
    font: inherit;
    font-weight: 700;
    color: var(--wit);
    background: var(--marine);
    border: none;
    border-bottom: 3px solid var(--messing);
    border-radius: 6px;
    padding: 0.7rem 1.6rem;
    cursor: pointer;
}
.knop:hover, .knop:focus { background: var(--marine-mid); }

/* Honeypot: onzichtbaar en onbereikbaar voor mensen */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 1px; width: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0 0 1rem;
    max-width: 40rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 700;
}
.form-status--ok   { border: 2px solid var(--marine); background: var(--wit); color: var(--tekst); }
.form-status--fout { border: 2px solid var(--messing); background: var(--wit); color: var(--tekst); }

/* ---------- Footer: navy als sluitstuk ---------- */
.site-footer {
    padding: 1.5rem 0 2rem;
    background: var(--marine);
    color: #c9d3e0;
    font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }

/* ---------- Breekpunten ---------- */
@media (min-width: 768px) {
    .hero { padding-block: 5.5rem 4rem; }
    .sectie { padding-block: 3.5rem; }
    .hero__grid {
        flex-direction: row;               /* tekst links, portret rechts */
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
    .hero__portret img { width: 220px; height: 220px; }
}
@media (min-width: 960px) {
    .hero__portret img { width: 260px; height: 260px; }
}
