/* ==========================================================================
   BERENDES WEBDESIGN - MAIN STYLESHEET
   ==========================================================================

   INHOUDSOPGAVE

   01. Design tokens & globale basis
   02. Layout helpers / containers
   03. Header, logo & navigatie
   04. Hero, typografie & buttons
   05. Algemene secties & cards
   06. Portfolio-overzicht / project cards
   07. Projectdetailpagina & browser mockup
   08. Project CTA
   09. Contact CTA
   10. Flash messages
   11. Contactpagina & formulier
   12. Footer - basis
   13. Algemene paginakoppen & content cards
   14. Dienstenpagina / doelgroep / proces
   15. Homepage proces
   16. Over mij / About-pagina
   17. Contact extra informatie
   18. Errorpagina's
   19. Footer - uitgebreide inhoud
   20. Formulier privacytekst
   21. Juridische / legal pagina's
   22. Responsive - tablet (max. 850px)
   23. Responsive - mobiel (max. 540px)

   TIP: Zoek in VS Code op bijvoorbeeld "SECTION 11" of "CONTACTPAGINA".
   ========================================================================== */


/* ==========================================================================
   SECTION 01 - DESIGN TOKENS & GLOBALE BASIS
   Kleuren, globale reset, body, links en lijsten.
   ========================================================================== */

:root {
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #eef4f3;
    --text: #17211f;
    --text-muted: #5e6d69;
    --primary: #176b60;
    --primary-dark: #105047;
    --border: #dce5e2;
    --max-width: 1180px;
    --shadow: 0 20px 50px rgba(23, 33, 31, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ==========================================================================
   SECTION 02 - LAYOUT HELPERS / CONTAINERS
   Algemene breedtes en content-containers.
   ========================================================================== */

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

.narrow-container {
    max-width: 760px;
}


/* ==========================================================================
   SECTION 03 - HEADER, LOGO & NAVIGATIE
   Sticky header, desktop navigatie, logo en menu-toggle basis.
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(220, 229, 226, 0.85);
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
}


/* --- Navigatie-layout ---------------------------------------------------- */

.navigation {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navigation-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation {
    display: block;
}


/* --- Mobiele menu-knop: basis ------------------------------------------- */

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle-line {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


/* --- Logo ---------------------------------------------------------------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 12px 28px rgba(23, 107, 96, 0.18);
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    color: var(--primary);
}


/* --- Navigatielinks ------------------------------------------------------ */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: var(--primary);
    content: "";
}


/* ==========================================================================
   SECTION 04 - HERO, TYPOGRAFIE & BUTTONS
   Homepage hero, headings, intro-tekst, CTA-buttons en hero-card.
   ========================================================================== */


/* --- Hero layout --------------------------------------------------------- */

.hero {
    padding: 7rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 5rem;
}


/* --- Typografie ---------------------------------------------------------- */

.eyebrow {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    max-width: 790px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: -0.055em;
}

h2 {
    max-width: 760px;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.hero-text,
.section-intro {
    max-width: 680px;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}


/* --- Hero actions -------------------------------------------------------- */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}


/* --- Buttons ------------------------------------------------------------- */

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-weight: 750;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface);
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.button-light {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--primary-dark);
}


/* --- Hero card ----------------------------------------------------------- */

.hero-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.25rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-label {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 750;
}

.hero-card h2 {
    font-size: 1.8rem;
}

.hero-card ul {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-card li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-muted);
}

.hero-card li::before {
    position: absolute;
    left: 0;
    color: var(--primary);
    content: "✓";
    font-weight: 800;
}


/* ==========================================================================
   SECTION 05 - ALGEMENE SECTIES & CARDS
   Algemene sectie-spacing, achtergrondvarianten en card-layouts.
   ========================================================================== */

.section {
    padding: 6rem 0;
}

.section-muted {
    background: var(--surface-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card,
.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.service-card {
    padding: 2rem;
}

.service-card p,
.project-content p,
.narrow-container p,
.contact-content p {
    color: var(--text-muted);
}


/* ==========================================================================
   SECTION 06 - PORTFOLIO-OVERZICHT / PROJECT CARDS
   Project placeholders, content, status labels en links.
   ========================================================================== */

.project-placeholder {
    display: grid;
    min-height: 210px;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 96, 0.14),
            rgba(23, 107, 96, 0.03)
        );
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
}

.project-content {
    padding: 1.75rem;
}

.project-status {
    display: inline-flex;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-link {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--primary);
    font-weight: 800;
}

.project-link:hover {
    color: var(--primary-dark);
}


/* ==========================================================================
   SECTION 07 - PROJECTDETAILPAGINA & BROWSER MOCKUP
   Hero van projectdetails, visual cards, browserweergave, features en tags.
   ========================================================================== */


/* --- Project hero -------------------------------------------------------- */

.project-hero {
    padding-bottom: 5rem;
}

.project-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 4rem;
}


/* --- Project visual card ------------------------------------------------- */

.project-visual-card {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 1.25rem;
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 96, 0.12),
            rgba(255, 255, 255, 0.92)
        );
    box-shadow: var(--shadow);
}


/* --- Browser mockup ------------------------------------------------------ */

.browser-mockup {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1rem;
    background: #f1f5f4;
}

.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #c7d3cf;
}

.browser-content {
    padding: 2rem;
}

.mockup-label {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.browser-content h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: -0.045em;
}

.browser-content p {
    color: var(--text-muted);
}


/* --- Mockup lines -------------------------------------------------------- */

.mockup-lines {
    display: grid;
    gap: 0.7rem;
    margin-top: 2rem;
}

.mockup-lines span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: var(--surface-muted);
}

.mockup-lines span:nth-child(1) {
    width: 100%;
}

.mockup-lines span:nth-child(2) {
    width: 78%;
}

.mockup-lines span:nth-child(3) {
    width: 58%;
}

.mockup-button {
    display: inline-flex;
    margin-top: 2rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}


/* --- Project details ----------------------------------------------------- */

.project-detail-grid,
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}


/* --- Feature list -------------------------------------------------------- */

.feature-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-muted);
}

.feature-list li::before {
    position: absolute;
    left: 0;
    color: var(--primary);
    content: "✓";
    font-weight: 800;
}


/* --- Tags ---------------------------------------------------------------- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag-list li {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: var(--surface-muted);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 750;
}


/* ==========================================================================
   SECTION 08 - PROJECT CTA
   Donkere call-to-action onder projectdetailpagina's.
   ========================================================================== */

.project-cta-section {
    background: var(--primary-dark);
    color: #ffffff;
}

.project-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.project-cta-card p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
}

.project-cta-card .eyebrow {
    color: #b8e1da;
}


/* ==========================================================================
   SECTION 09 - CONTACT CTA
   Algemene donkere contactsectie.
   ========================================================================== */

.contact-section {
    background: var(--primary-dark);
    color: #ffffff;
}

.contact-section .eyebrow {
    color: #b8e1da;
}

.contact-section p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}


/* ==========================================================================
   SECTION 10 - FLASH MESSAGES
   Meldingen na formulieren of andere Flask-acties.
   ========================================================================== */

.flash-section {
    padding-top: 1.25rem;
}

.flash-message {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.flash-success {
    border-color: rgba(23, 107, 96, 0.25);
    background: #e8f6f3;
    color: var(--primary-dark);
}

.flash-error {
    border-color: rgba(180, 35, 24, 0.25);
    background: #fff0ed;
    color: #b42318;
}


/* ==========================================================================
   SECTION 11 - CONTACTPAGINA & FORMULIER
   Contact-grid, invoervelden, validatie en sidebar.
   ========================================================================== */


/* --- Contact layout ------------------------------------------------------ */

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}


/* --- Formulier ----------------------------------------------------------- */

.contact-form {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-label {
    color: var(--text);
    font-weight: 800;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 107, 96, 0.12);
}

.form-textarea {
    min-height: 170px;
    resize: vertical;
}

.form-error {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-submit {
    justify-self: start;
    cursor: pointer;
}


/* --- Contact sidebar ----------------------------------------------------- */

.contact-sidebar {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 1.5rem;
}

.contact-side-card {
    position: static;
}


/* ==========================================================================
   SECTION 12 - FOOTER: BASIS
   Algemene footerachtergrond en tekst.
   ========================================================================== */

.site-footer {
    padding: 2rem 0;
    background: #0b332e;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}


/* ==========================================================================
   SECTION 13 - ALGEMENE PAGINAKOPPEN & CONTENT CARDS
   Headers en content-layout voor algemene pagina's.
   ========================================================================== */


/* --- Page header --------------------------------------------------------- */

.page-header {
    padding: 5rem 0 3.5rem;
}

.page-header-content {
    max-width: 780px;
}

.page-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    letter-spacing: -0.05em;
}

.page-intro {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.15rem;
}


/* --- Algemene content-grid ---------------------------------------------- */

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.content-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2rem;
    background: var(--surface);
}

.content-card p {
    color: var(--text-muted);
}


/* --- Section heading ----------------------------------------------------- */

.section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.section-heading p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.08rem;
}


/* ==========================================================================
   SECTION 14 - DIENSTENPAGINA / DOELGROEP / PROCES
   Audience cards, service-opties en processtappen.
   ========================================================================== */


/* --- Grid basis ---------------------------------------------------------- */

.audience-grid,
.service-options-grid,
.process-grid {
    display: grid;
    gap: 1.5rem;
}

.audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* --- Cards --------------------------------------------------------------- */

.audience-card,
.service-option-card,
.process-step {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.audience-card,
.service-option-card,
.process-step {
    padding: 2rem;
}

.audience-card p,
.service-option-card p,
.process-step p {
    color: var(--text-muted);
}


/* --- Service options ----------------------------------------------------- */

.service-option-card {
    position: relative;
    overflow: hidden;
}

.service-option-featured {
    border-color: rgba(23, 107, 96, 0.3);
    box-shadow: var(--shadow);
}

.service-option-number {
    display: inline-flex;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 850;
}

.service-option-featured .service-option-number {
    background: rgba(23, 107, 96, 0.12);
}


/* --- Processtappen ------------------------------------------------------- */

.process-step span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1.25rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 850;
}


/* ==========================================================================
   SECTION 15 - HOMEPAGE PROCES
   Specifieke driedelige proces-grid op de homepage.
   ========================================================================== */

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}


/* ==========================================================================
   SECTION 16 - OVER MIJ / ABOUT-PAGINA
   Verhaal, highlight-card, waarden en timeline.
   ========================================================================== */


/* --- About story --------------------------------------------------------- */

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.about-story-card {
    display: grid;
    gap: 1rem;
}


/* --- About highlight ----------------------------------------------------- */

.about-highlight-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(23, 107, 96, 0.25);
    border-radius: 28px;
    padding: 2.25rem;
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 96, 0.12),
            rgba(255, 255, 255, 0.96)
        );
    box-shadow: var(--shadow);
}

.about-highlight-card p:not(.card-label) {
    color: var(--text-muted);
}


/* --- Values -------------------------------------------------------------- */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.value-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2rem;
    background: var(--surface);
}

.value-card p {
    color: var(--text-muted);
}


/* --- About timeline ------------------------------------------------------ */

.about-timeline {
    display: grid;
    gap: 1rem;
}

.about-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.5rem;
    background: var(--surface);
}

.about-step span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 850;
}

.about-step p {
    color: var(--text-muted);
}


/* ==========================================================================
   SECTION 17 - CONTACT EXTRA INFORMATIE
   Extra sidebar- en informatiecards op de contactpagina.
   ========================================================================== */

.contact-sidebar {
    display: grid;
    gap: 1.5rem;
}

.contact-note-card {
    border: 1px solid rgba(23, 107, 96, 0.25);
    border-radius: 22px;
    padding: 2rem;
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 96, 0.12),
            rgba(255, 255, 255, 0.96)
        );
    box-shadow: var(--shadow);
}

.contact-note-card p:not(.eyebrow) {
    color: var(--text-muted);
}


/* ==========================================================================
   SECTION 18 - ERRORPAGINA'S
   Layout voor bijvoorbeeld 404- en 500-pagina's.
   ========================================================================== */

.error-page-section {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.error-page {
    max-width: 760px;
    text-align: center;
}

.error-code {
    margin-bottom: 1rem;
    color: rgba(23, 107, 96, 0.16);
    font-size: clamp(5rem, 16vw, 11rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.error-page .page-title,
.error-page .page-intro {
    margin-inline: auto;
}

.error-actions {
    justify-content: center;
}


/* ==========================================================================
   SECTION 19 - FOOTER: UITGEBREIDE INHOUD
   Layout en links binnen de footer.
   ========================================================================== */

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.footer-content a:hover {
    color: #ffffff;
}


/* ==========================================================================
   SECTION 20 - FORMULIER PRIVACYTEKST
   Privacyverklaring onder het contactformulier.
   ========================================================================== */

.form-privacy-note {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-privacy-note a {
    color: var(--primary);
    font-weight: 800;
}


/* ==========================================================================
   SECTION 21 - JURIDISCHE / LEGAL PAGINA'S
   Privacyverklaring, voorwaarden en overige juridische content.
   ========================================================================== */


/* --- Legal layout -------------------------------------------------------- */

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: start;
}


/* --- Legal content ------------------------------------------------------- */

.legal-content {
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.25rem;
    background: var(--surface);
}

.legal-section + .legal-section {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.legal-section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.legal-section p {
    color: var(--text-muted);
}

.legal-section p + p {
    margin-top: 1rem;
}


/* --- Legal sidebar ------------------------------------------------------- */

.legal-side-card {
    position: sticky;
    top: 6rem;
    border: 1px solid rgba(23, 107, 96, 0.25);
    border-radius: 24px;
    padding: 2rem;
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 96, 0.12),
            rgba(255, 255, 255, 0.96)
        );
    box-shadow: var(--shadow);
}

.legal-side-card p:not(.eyebrow) {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}


/* ==========================================================================
   SECTION 22 - RESPONSIVE: TABLET
   Breakpoint: maximaal 850px.
   ========================================================================== */

@media (max-width: 850px) {

    /* --- Header & navigatie ---------------------------------------------- */

    .navigation {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }


    /* --- Hero ------------------------------------------------------------ */

    .hero {
        padding: 4.5rem 0;
    }


    /* --- Grids naar één kolom ------------------------------------------- */

    .hero-grid,
    .card-grid,
    .content-grid,
    .project-detail-grid,
    .project-info-grid,
    .project-hero-grid,
    .contact-page-grid,
    .audience-grid,
    .service-options-grid,
    .process-grid,
    .home-process-grid,
    .about-story-grid,
    .values-grid,
    .about-timeline,
    .legal-layout {
        grid-template-columns: 1fr;
    }


    /* --- Grid spacing ---------------------------------------------------- */

    .hero-grid,
    .project-hero-grid {
        gap: 3rem;
    }


    /* --- CTA layouts ----------------------------------------------------- */

    .project-cta-card,
    .contact-content {
        align-items: flex-start;
        flex-direction: column;
    }


    /* --- Project visual -------------------------------------------------- */

    .project-visual-card {
        order: -1;
    }


    /* --- Contact --------------------------------------------------------- */

    .contact-sidebar {
        position: static;
    }


    /* --- About ----------------------------------------------------------- */

    .about-highlight-card {
        padding: 2rem;
    }

    .about-step {
        grid-template-columns: 1fr;
    }


    /* --- Legal ----------------------------------------------------------- */

    .legal-side-card {
        position: static;
    }


    /* --- Footer ---------------------------------------------------------- */

    .footer-content {
        align-items: center;
        flex-direction: column;
    }
}


/* ==========================================================================
   SECTION 23 - RESPONSIVE: MOBIEL
   Breakpoint: maximaal 540px.
   Mobiele navigatie, typografie, buttons en spacing.
   ========================================================================== */

@media (max-width: 540px) {

    /* --- Header ---------------------------------------------------------- */

    .site-header {
        position: sticky;
    }


    /* --- Logo ------------------------------------------------------------ */

    .logo {
        gap: 0.6rem;
        font-size: 1.05rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.78rem;
    }


    /* --- Navigatie-layout ------------------------------------------------ */

    .navigation {
        position: relative;
        align-items: center;
        flex-direction: row;
        min-height: 68px;
        padding: 0;
    }

    .navigation-actions {
        margin-left: auto;
    }


    /* --- Hamburger menu -------------------------------------------------- */

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        display: none;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 1rem;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .main-navigation.is-open {
        display: block;
    }


    /* --- Mobiele navigatielinks ----------------------------------------- */

    .nav-links {
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-links a {
        display: block;
        border-radius: 10px;
        padding: 0.8rem 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--surface-muted);
    }

    .nav-links a.active::after {
        display: none;
    }


    /* --- Hamburger animatie --------------------------------------------- */

    .menu-toggle.is-open .menu-toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open .menu-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open .menu-toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* --- Mobiele typografie --------------------------------------------- */

    h1 {
        font-size: 2.7rem;
    }

    .page-title {
        font-size: 2.4rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }


    /* --- Sectie spacing -------------------------------------------------- */

    .section {
        padding: 4rem 0;
    }


    /* --- Buttons --------------------------------------------------------- */

    .hero-actions,
    .button {
        width: 100%;
    }


    /* --- Cards ----------------------------------------------------------- */

    .audience-card,
    .service-option-card,
    .process-step,
    .content-card {
        padding: 1.5rem;
    }


    /* --- Error pagina ---------------------------------------------------- */

    .error-actions {
        align-items: stretch;
    }
}