/*
Theme Name: WebWeave
Theme URI: https://webweave.be
Author: WebWeave
Author URI: https://webweave.be
Description: Custom theme for WebWeave web design studio
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: webweave
*/

/* =============================================
   CSS RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:    #0E5C59;
    --color-accent:     #0E5C59;
    --color-neptune:    #86BDB9;
    --color-bg:         #FFFFFF;
    --color-bg-soft:    #F0F6F6;
    --color-text:       #1A1A1A;
    --color-muted:      #6B7280;
    --color-border:     #DFDFDF;

    --font-heading: 'Manrope', sans-serif;
    --font-body:    'Manrope', sans-serif;
    /* Editorial display font — opt-in via .display / hero & section titles, never the global h1-h6 rule */
    --font-display: 'Syne', 'Manrope', sans-serif;

    --radius: 12px;
    /* Sharper, editorial-style radius for the redesigned marketing sections — kept separate from
       --radius so klantportaal cards/pages (which reuse --radius) are unaffected. */
    --radius-edit: 4px;
    --transition: 0.25s ease;
    --max-width: 1200px;
    --section-padding: 100px 24px;
    --ink: #0B211F;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-neptune); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-padding); }
.section--soft { background: var(--color-bg-soft); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: #0a4543;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 92, 89, 0.3);
}

.btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.btn--outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--color-primary);
    font-weight: 800;
}
.btn--white:hover {
    background: rgba(255,255,255,0.92);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.25);
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(11,33,31,0.1);
}

/* Account for WordPress admin bar */
.admin-bar .site-header {
    top: 32px;
}

/* Admin- en klantportaal: header scrollt gewoon mee i.p.v. te blijven plakken */
.webweave-portal-page .site-header {
    position: absolute;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Als admin staan er extra navlinks (Adminportaal, Tools) — dan wat meer ademruimte */
body.webweave-is-admin .nav-inner {
    max-width: 1400px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo__img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover { color: var(--color-primary); }

/* Zachte hover-highlight op de gewone navlinks (incl. Inloggen / Mijn Portaal / Adminportaal / Uitloggen) */
.nav-menu a:not(.nav-cta) {
    padding: 8px 14px;
    border-radius: var(--radius-edit);
}
.nav-menu a:not(.nav-cta):not(.is-active):hover {
    background: var(--color-bg-soft);
}

/* Huidige pagina in de navigatie */
.nav-menu a.is-active {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-edit);
}
.nav-menu a.is-active:hover { color: #fff; }

/* "Project starten" — bewust anders dan de "huidige pagina"-highlight hierboven */
.nav-cta {
    margin-left: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-edit);
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.nav-cta:hover {
    background: #073533;
    border-color: #073533;
    color: #fff;
}
.nav-auth { margin-left: auto; }
@media (max-width: 768px) {
    .nav-auth { margin-left: 0; }
}

/* Admin-tools dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 100px;
    transition: color var(--transition), background var(--transition);
}
.nav-dropdown__toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition);
}
.nav-dropdown__toggle:hover,
.nav-dropdown.open .nav-dropdown__toggle {
    background: rgba(14, 92, 89, 0.08);
    color: var(--color-primary);
}
.nav-dropdown.open .nav-dropdown__toggle::after {
    transform: rotate(225deg) translateY(2px);
}
.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(14, 92, 89, 0.14);
    padding: 8px;
    list-style: none;
    z-index: 1100;
}
.nav-dropdown.open .nav-dropdown__menu { display: block; }
.nav-dropdown__menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}
.nav-dropdown__menu li a:hover { background: rgba(14, 92, 89, 0.08); color: var(--color-primary); }
.nav-dropdown__menu li a.is-active { background: var(--color-primary); color: #fff; }

@media (max-width: 768px) {
    .nav-dropdown__menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 10px;
        width: 100%;
        min-width: 0;
        text-align: center;
    }
    .nav-dropdown.open .nav-dropdown__menu { display: block; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        inset: 72px 0 0 0;
        background: #fff;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        gap: 12px;
        padding: 16px 24px;
        overflow-y: auto;
        font-size: 1.15rem;
        transform: translateX(100%);
        transition: transform var(--transition);
    }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu.open { transform: translateX(0); }
    /* Adminbalk duwt de header naar beneden; het menu moet daaronder starten, niet ergens onder de header. */
    .admin-bar .nav-menu { inset: 118px 0 0 0; }
}

/* Op erg lage schermen (bv. landscape) alles wat compacter, zodat scrollen zoveel mogelijk vermeden blijft */
@media (max-width: 768px) and (max-height: 480px) {
    .nav-menu { gap: 6px; font-size: 1rem; padding: 10px 24px; }
}

/* Onderliggende pagina niet laten meescrollen zolang het mobiele menu open staat */
body.nav-open { overflow: hidden; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-neptune);
    margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }

/* Opt-in editorial display treatment — used on the redesigned marketing sections only */
.section-title--display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0;
}

.section-eyebrow--dark { color: var(--color-primary); }

/* =============================================
   HERO — bold color-block, editorial type
   ============================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: var(--color-primary);
}

/* Giant faded decorative word behind the hero copy — the site's "signature" flourish */
.hero__deco {
    position: absolute;
    z-index: 0;
    inset: auto auto -6% -2%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(6rem, 22vw, 15rem);
    line-height: 0.8;
    color: rgba(255,255,255,0.06);
    letter-spacing: -0.02em;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: var(--radius-edit);
    margin-bottom: 28px;
}

.hero__title {
    margin-bottom: 24px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.98;
    font-size: clamp(2.75rem, 6vw, 4.75rem);
}

.hero__title-accent {
    color: var(--color-neptune);
}

.hero__subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    max-width: 460px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__actions .btn--primary {
    background: #fff;
    color: var(--color-primary);
}
.hero__actions .btn--primary:hover {
    background: var(--color-neptune);
    color: var(--ink);
    box-shadow: none;
}

/* Signature visual: one custom illustrated "scene" (desk + mini website on screen)
   instead of a photo mockup — the site's memorable, on-brand hero moment. */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 420px;
}

.hero-scene {
    width: 100%;
    max-width: 420px;
    overflow: visible;
}

.hero-scene__float {
    animation: heroFloat 6s ease-in-out infinite;
    transform-origin: center;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.hero-scene__glow {
    animation: heroGlow 4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes heroGlow {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.6; }
}

.hero-scene__pulse {
    animation: heroPulse 2.2s ease-out infinite;
    transform-origin: center;
}
@keyframes heroPulse {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-scene__cursor {
    animation: heroBlink 1.1s steps(1) infinite;
}
@keyframes heroBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-scene__leaf {
    animation: heroSway 4.5s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: bottom center;
}
@keyframes heroSway {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scene__float,
    .hero-scene__glow,
    .hero-scene__pulse,
    .hero-scene__cursor,
    .hero-scene__leaf { animation: none; }
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__visual { min-height: 280px; margin-top: 24px; }
    .hero-scene { max-width: 300px; }
    .hero__deco { font-size: clamp(4rem, 26vw, 8rem); inset: auto auto -4% 50%; transform: translateX(-50%); }
}

/* =============================================
   MARQUEE STRIP
   ============================================= */
.marquee-strip {
    background: var(--ink);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    animation: marquee 28s linear infinite;
}
.marquee-item {
    color: rgba(255,255,255,0.9);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 24px;
}
.marquee-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--color-neptune);
    vertical-align: middle;
    margin-left: 24px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-edit);
    padding: 36px 32px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    position: relative;
}
.service-card:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 16px 40px rgba(14,92,89,0.16);
}
.service-card:hover .service-card__title,
.service-card:hover .service-card__num { color: #fff; }
.service-card:hover .service-card__text { color: rgba(255,255,255,0.75); }
.service-card:hover .service-card__link { color: var(--color-neptune); }

.service-card--featured {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.service-card--featured .service-card__title,
.service-card--featured .service-card__num { color: #fff; }
.service-card--featured .service-card__text  { color: rgba(255,255,255,0.75); }
.service-card--featured .service-card__link  { color: var(--color-neptune); }

.service-card__num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-neptune);
    margin-bottom: 20px;
}

.service-card__title { font-size: 1.15rem; margin-bottom: 12px; }
.service-card__text  { color: var(--color-muted); font-size: 0.95rem; font-weight: 400; margin-bottom: 24px; }
.service-card__link  { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
}
.portfolio-card {
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    transition: transform var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); }

.portfolio-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-edit);
    box-shadow: 0 12px 32px rgba(14,92,89,0.14);
    margin-bottom: 20px;
}
.portfolio-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__image img { transform: scale(1.04); }

.portfolio-card__image--placeholder {
    background: linear-gradient(135deg,
        hsl(var(--hue, 174), 50%, 85%),
        hsl(var(--hue, 174), 60%, 70%)
    );
}
.portfolio-card__body { padding: 0; }
.portfolio-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-neptune);
    margin-bottom: 8px;
    display: block;
}
.portfolio-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.portfolio-card__excerpt { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 12px; }
.portfolio-card__link { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }

.portfolio-card--wip {
    opacity: 0.7;
}
.portfolio-card--wip .portfolio-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-soft);
    border-style: dashed;
}
.portfolio-card__wip-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

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

/* =============================================
   STATS
   ============================================= */
.stats-section {
    background: var(--ink);
    padding: 72px 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.stat__number {
    display: block;
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.stat__plus { color: var(--color-neptune); }
.stat__label { color: rgba(255,255,255,0.55); font-size: 0.9rem; font-weight: 500; }

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================
   ABOUT
   ============================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__visual { position: relative; }

.about__image-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about__photo {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-edit);
    box-shadow: 0 24px 64px rgba(14,92,89,0.18);
    display: block;
}

.about__badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--color-primary);
    border-radius: var(--radius-edit);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(14,92,89,0.2);
}
.about__badge svg { color: var(--color-neptune); }

.about__content .section-title {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}
.about__content p { color: var(--color-muted); margin-bottom: 16px; font-weight: 400; }

.about__list {
    list-style: none;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.about__list svg { color: var(--color-primary); flex-shrink: 0; }

@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about__visual { display: none; }
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--color-border);
}
.testimonial-card--featured {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.testimonial-card--featured .testimonial-card__quote  { color: rgba(255,255,255,0.8); }
.testimonial-card--featured .testimonial-card__author strong { color: #fff; }
.testimonial-card--featured .testimonial-card__author span  { color: rgba(255,255,255,0.55); }
.testimonial-card--featured .testimonial-card__stars { color: #FFD700; }

.testimonial-card__stars { color: #FFD700; font-size: 1rem; margin-bottom: 20px; letter-spacing: 2px; }
.testimonial-card__quote {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 28px;
    font-style: italic;
    font-weight: 400;
}
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color, var(--color-primary));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.95rem; color: var(--color-text); font-weight: 700; }
.testimonial-card__author span  { font-size: 0.8rem; color: var(--color-muted); }

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card--featured { order: -1; }
}

/* =============================================
   CONTACT / CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #073533 100%);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(134,189,185,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.cta-title {
    color: #fff;
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.cta-subtitle { color: rgba(255,255,255,0.6); font-size: 1rem; font-weight: 400; }

.cta-section__deco {
    position: absolute;
    z-index: 0;
    inset: auto -2% -10% auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(6rem, 20vw, 13rem);
    line-height: 0.8;
    color: rgba(255,255,255,0.05);
    letter-spacing: -0.02em;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 400;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: #073533; color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-neptune);
    background: rgba(255,255,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success { color: #86BDB9; font-weight: 600; font-size: 1.1rem; text-align: center; padding: 24px 0; }
.form-error   { color: #ffaaaa; font-size: 0.9rem; margin: 0; }

@media (max-width: 900px) {
    .cta-inner { grid-template-columns: 1fr; gap: 48px; }
    .form-row  { grid-template-columns: 1fr; }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #051e1d;
    color: rgba(255,255,255,0.45);
    padding: 56px 24px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--color-neptune); }

.footer-logo {
    margin-bottom: 24px;
}
.footer-logo__img {
    height: 80px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =============================================
   SECONDARY BUTTON
   ============================================= */
.btn--secondary {
    background: var(--color-bg-soft);
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn--secondary:hover {
    background: var(--color-border);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
    background: var(--color-primary);
    padding: 130px 24px 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-banner__deco {
    position: absolute;
    z-index: 0;
    inset: auto auto -10% 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 0.8;
    color: rgba(255,255,255,0.05);
    letter-spacing: -0.02em;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.page-banner__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.page-banner__bg::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(134,189,185,0.18) 0%, transparent 70%);
}
.page-banner__bg::after {
    content: '';
    position: absolute;
    bottom: -160px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(134,189,185,0.12) 0%, transparent 70%);
}

.page-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.page-banner .section-eyebrow {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 7px 16px;
    border-radius: var(--radius-edit);
    margin-bottom: 24px;
}

.page-banner__title {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
}

.page-banner__subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.8;
}

/* =============================================
   PRICING
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.03);
    box-shadow: 0 24px 64px rgba(14,92,89,0.2);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-neptune);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-card__name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-neptune);
    margin-bottom: 12px;
}

.pricing-card__price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 4px;
}

.pricing-card__currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 10px;
    font-family: var(--font-heading);
}
.pricing-card--featured .pricing-card__currency { color: #fff; }

.pricing-card__amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.pricing-card--featured .pricing-card__amount { color: #fff; }

.pricing-card__plus {
    font-size: 1.8rem;
    vertical-align: super;
}

.pricing-card__period {
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 400;
    margin-bottom: 20px;
}
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.55); }

.pricing-card__desc {
    font-size: 0.92rem;
    color: var(--color-muted);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.7;
}
.pricing-card--featured .pricing-card__desc {
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.15);
}

.pricing-card__features {
    list-style: none;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}
.pricing-card--featured .pricing-card__features li { color: rgba(255,255,255,0.85); }

.pricing-card__features li svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-card--featured .pricing-card__features li svg { color: var(--color-neptune); }

.pricing-card .btn { width: 100%; text-align: center; }

.pricing-note {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.87rem;
    margin-top: 40px;
}

.maintenance-grid { grid-template-columns: 1fr 1fr; max-width: 800px; margin: 0 auto; }

@media (max-width: 960px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .pricing-card--featured { transform: scale(1); }
    .maintenance-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background var(--transition);
}
.faq-item__question:hover { background: var(--color-bg-soft); }

.faq-item__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform var(--transition);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.open .faq-item__answer { max-height: 400px; }

.faq-item__answer-inner {
    padding: 0 28px 24px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page-section {
    /* Verticaal (i.p.v. diagonaal) verloop: begint exact op var(--color-primary),
       zodat het naadloos aansluit op de effen .page-banner erboven — geen harde lijn. */
    background: linear-gradient(180deg, var(--color-primary) 0%, #073533 100%);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}
.contact-page-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(134,189,185,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-page-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info__title {
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    margin-bottom: 16px;
}

.contact-info__subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 0.97rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-info__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info__icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neptune);
    flex-shrink: 0;
}

.contact-info__text strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.contact-info__text span { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.contact-info__text a { color: var(--color-neptune); font-weight: 500; }

.contact-info__note {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 24px;
}
.contact-info__note p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 6px; }
.contact-info__note p:first-child { color: #fff; font-weight: 600; font-size: 0.92rem; }
.contact-info__note p:last-child { margin: 0; }

.form-label-optional { opacity: 0.5; font-weight: 400; font-size: 0.85em; }

@media (max-width: 900px) {
    .contact-page-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* =============================================
   SIMPLE CTA VARIANT
   ============================================= */
.cta-simple-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}

/* =============================================
   PILLARS (Over mij page)
   ============================================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pillar-card {
    text-align: center;
    padding: 44px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(14,92,89,0.08);
    border-color: transparent;
}

.pillar-card__icon {
    width: 64px; height: 64px;
    background: rgba(14,92,89,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 20px;
}

.pillar-card__title { font-size: 1.15rem; margin-bottom: 12px; }
.pillar-card__text  { color: var(--color-muted); font-size: 0.93rem; margin: 0; line-height: 1.75; }

.pillars-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .pillars-grid, .pillars-grid--2col { grid-template-columns: 1fr; } }

/* =============================================
   PROCESS STEPS (Over mij page)
   ============================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
    max-width: 960px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.process-step__number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-neptune);
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--font-heading);
    min-width: 60px;
    opacity: 0.5;
}

.process-step__title { font-size: 1.1rem; margin-bottom: 10px; }
.process-step__text  { color: var(--color-muted); font-size: 0.93rem; margin: 0; line-height: 1.75; }

@media (max-width: 768px) {
    .process-steps { grid-template-columns: 1fr; gap: 36px; }
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}
.legal-intro {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.8;
}
.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 44px 0 12px;
}
.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 28px 0 8px;
}
.legal-content p,
.legal-content li {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}
.legal-content ul {
    padding-left: 20px;
    margin: 12px 0 20px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a  { color: var(--color-primary); text-decoration: underline; }
.legal-content a:hover { color: var(--color-neptune); }
.legal-update {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: italic;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: var(--section-padding);
}
.error-404__inner  { max-width: 560px; margin: 0 auto; }
.error-404__code {
    display: block;
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 800;
    color: var(--color-neptune);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.45;
}
.error-404__title  { font-family: var(--font-display); letter-spacing: -0.02em; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; }
.error-404__text   { color: var(--color-muted); margin-bottom: 36px; line-height: 1.7; }
.error-404__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.error-404__links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.error-404__links a { color: var(--color-primary); text-decoration: none; }
.error-404__links a:hover { color: var(--color-neptune); }

/* =============================================
   FOOTER BOTTOM — legal links
   ============================================= */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom > p { margin: 0; }
.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .footer-legal  { justify-content: center; }
}

/* =============================================
   CLIENT PORTAL
   ============================================= */
.portal-page {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    padding: 152px 0 80px;
}
.portal-page__blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.pblob { position: absolute; opacity: 0.88; }

/* Dashboard (admin- en klantportaal): asymmetrische compositie, anders dan de hero */
.portal-page__blobs--dashboard .pblob--1 { width: 30%; top: -7%; right: -6%; }
.portal-page__blobs--dashboard .pblob--2 { width: 30%; bottom: -9%; left: -7%; }

/* Levende blob: traag van vorm veranderend, achter de paginainhoud */
.pblob-morph {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52%;
    aspect-ratio: 1 / 0.85;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(134,189,185,0.75), rgba(14,92,89,0.9));
    opacity: 0.7;
    animation: pblobMorph 16s ease-in-out infinite;
}
@keyframes pblobMorph {
    0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
    25%      { border-radius: 58% 42% 35% 65% / 60% 55% 45% 40%; }
    50%      { border-radius: 65% 35% 45% 55% / 35% 60% 40% 65%; }
    75%      { border-radius: 35% 65% 55% 45% / 55% 35% 65% 40%; }
}
@keyframes pblobMorph2 {
    0%, 100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
    30%      { border-radius: 30% 70% 65% 35% / 40% 35% 65% 60%; }
    60%      { border-radius: 48% 52% 40% 60% / 65% 40% 60% 35%; }
    85%      { border-radius: 65% 35% 55% 45% / 45% 65% 35% 55%; }
}
@keyframes pblobMorph3 {
    0%, 100% { border-radius: 50% 50% 60% 40% / 40% 50% 50% 60%; }
    20%      { border-radius: 65% 35% 40% 60% / 55% 65% 35% 45%; }
    45%      { border-radius: 38% 62% 58% 42% / 62% 38% 55% 45%; }
    70%      { border-radius: 55% 45% 35% 65% / 45% 55% 60% 40%; }
}

/* Teal pagina's (admin-/klantportaal, login, contact): levende blobs met sterk uiteenlopende grootte, tempo en richting */
.portal-page__blobs--dashboard .pblob-morph--1 { width: 36%; top: 22%; left: 44%; opacity: 0.55; animation: pblobMorph 14s ease-in-out infinite; }
.portal-page__blobs--dashboard .pblob-morph--2 {
    width: 24%; top: 76%; left: 16%; opacity: 0.48;
    animation: pblobMorph2 24s ease-in-out infinite reverse;
    animation-delay: -9s;
}
.portal-page__blobs--dashboard .pblob-morph--3 {
    width: 13%; top: 16%; left: 80%; opacity: 0.42;
    animation: pblobMorph3 9s ease-in-out infinite;
    animation-delay: -4s;
}
.portal-page__blobs--dashboard .pblob-morph--4 {
    width: 19%; top: 60%; left: 90%; opacity: 0.4;
    animation: pblobMorph 30s ease-in-out infinite reverse;
    animation-delay: -16s;
}

/* Donkerder webweave-grijs, met echte randomness in vorm, grootte en tempo — voor witte pagina's (prijzen, diensten) */
/* Omvat meerdere secties zodat de achtergrond over de volledige pagina doorloopt i.p.v. gelimiteerd te zijn tot 1 blok */
.page-light-blobs-wrap { position: relative; overflow: hidden; background: #fff; }
.page-light-blobs-wrap > section { position: relative; z-index: 1; background: transparent; }

/* Contact: teal achtergrond loopt door over banner + contactsectie i.p.v. gelimiteerd te zijn tot 1 blok */
.page-teal-blobs-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-primary) 0%, #073533 100%);
}
.page-teal-blobs-wrap > section { position: relative; z-index: 1; background: transparent; }
.light-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.lblob { position: absolute; opacity: 0.5; }
.light-blobs .lblob--1 { width: 28%; top: -7%; right: -6%; }
.light-blobs .lblob--2 { width: 28%; bottom: -9%; left: -7%; }
.lblob-morph { background: #6B7280; }
.lblob-morph--1 {
    width: 30%; top: 18%; left: 78%; opacity: 0.22;
    animation: pblobMorph 11s ease-in-out infinite;
}
.lblob-morph--2 {
    width: 15%; top: 62%; left: 8%; opacity: 0.25;
    animation: pblobMorph2 26s ease-in-out infinite reverse;
    animation-delay: -7s;
}
.lblob-morph--3 {
    width: 40%; top: 40%; left: 38%; opacity: 0.22;
    animation: pblobMorph3 34s ease-in-out infinite;
    animation-delay: -15s;
}
.lblob-morph--4 {
    width: 11%; top: 82%; left: 60%;
    background: rgba(134, 189, 185, 0.45);
    opacity: 1;
    animation: pblobMorph 7s ease-in-out infinite reverse;
    animation-delay: -2s;
}
.lblob-morph--5 {
    width: 22%; top: 12%; left: 30%; opacity: 0.24;
    animation: pblobMorph2 18s ease-in-out infinite;
    animation-delay: -9s;
}

.portal-page .container {
    position: relative;
    z-index: 1;
}
.portal-page .portal__header h1,
.portal-page .portal__header p {
    color: #fff;
}
.portal-page .portal__header p {
    color: rgba(255,255,255,0.82);
}

/* Login / wachtwoord vergeten — gecentreerde kaart in dezelfde stijl als het portaal */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.auth-card__logo {
    height: 52px;
    width: auto;
    margin: 0 auto 20px;
}
.auth-card h1 {
    margin-bottom: 8px;
}
.auth-card .wppb-user-forms {
    text-align: left;
    margin-top: 28px;
}
.auth-card .wppb-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.auth-card .wppb-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}
.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
    border-color: var(--color-primary);
}
.auth-card .wppb-form-field.login-remember {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.auth-card .login-remember input { width: auto; }
.auth-card .login-remember label { font-weight: 500; color: var(--color-muted); }
.auth-card .login-submit input[type="submit"] {
    width: 100%;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}
.auth-card .login-submit input[type="submit"]:hover {
    background: #0a4543;
}
.auth-card .login-register-lost-password {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
}
.auth-card .login-lost-password,
.auth-card .login-register {
    color: var(--color-muted);
}
.auth-card .login-lost-password:hover,
.auth-card .login-register:hover {
    color: var(--color-primary);
}
.auth-card .wppb-error,
.auth-card .wppb-success {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: left;
    margin-bottom: 20px;
}
.auth-card .wppb-error   { background: rgba(192,57,43,0.08); color: #c0392b; }
.auth-card .wppb-success { background: rgba(14,92,89,0.08); color: var(--color-primary); }

/* "Je bent ingelogd als ..." melding op het loginscherm */
.auth-loggedin {
    margin-top: 24px;
    animation: authLoggedinPop 0.3s ease;
}
@keyframes authLoggedinPop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-loggedin p {
    color: var(--color-muted);
    margin-bottom: 20px;
}
.auth-loggedin p strong { color: var(--color-text); }
.auth-loggedin__cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
}
.auth-loggedin__logout {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.auth-loggedin__logout:hover { color: var(--color-primary); }

/* Popup na het inloggen */
.ww-toast {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 2000;
    max-width: 320px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    padding: 16px 40px 16px 20px;
    animation: wwToastIn 0.3s ease;
}
.ww-toast--hide { animation: wwToastOut 0.25s ease forwards; }
@keyframes wwToastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wwToastOut {
    to { opacity: 0; transform: translateY(-12px); }
}
.ww-toast p { margin: 0; font-size: 0.9rem; color: var(--color-text); }
.ww-toast p strong { color: var(--color-primary); }
.ww-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted);
    padding: 4px;
}
.ww-toast__close:hover { color: var(--color-primary); }
@media (max-width: 640px) {
    .ww-toast { left: 16px; right: 16px; max-width: none; top: 84px; }
}

/* De Client Portal-plugin en het generieke paginatitel-blok vervallen:
   onze eigen kop + navbalk-logoutlink vervangen ze. Ook de max-width/padding
   van de standaard thema-wrapper wordt hier genegeerd, zodat onze eigen
   .portal-page-achtergrond volledig breedtevullend kan renderen. */
.single-private-page .cp-logout { display: none; }
.single-private-page #main .container.section { max-width: none; padding: 0; margin: 0; }
.single-private-page #main .container.section > h1 { display: none; }

.portal {
    padding-bottom: 0;
}
.portal__header {
    margin-bottom: 48px;
}
.portal__header h1 {
    margin-bottom: 8px;
}
.portal__header p {
    color: var(--color-muted);
}
.portal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.portal > .portal-card + .portal-card,
.portal > .portal__grid + .portal-card {
    margin-top: 32px;
}
.portal-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}
.portal-card:hover {
    box-shadow: 0 16px 48px rgba(14, 92, 89, 0.1);
    border-color: transparent;
}
.portal-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.portal-card h3 {
    margin-bottom: 12px;
}
.portal-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.portal-card__header h3 { margin-bottom: 0; }
.portal-card__header .btn { flex-shrink: 0; }

details.portal-add-toggle {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
details.portal-add-toggle summary {
    cursor: pointer;
    list-style: none;
}
details.portal-add-toggle summary::-webkit-details-marker,
details.portal-add-toggle summary::marker {
    display: none;
    content: "";
}
details.portal-add-toggle[open] summary {
    margin-bottom: 16px;
}
.portal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portal-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.portal-list li:last-child { border-bottom: none; }
.portal-list .portal-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
}
.portal-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.portal-badge--paid {
    background: rgba(14, 92, 89, 0.1);
    color: var(--color-primary);
}
.portal-badge--open {
    background: rgba(234, 179, 8, 0.12);
    color: #92660a;
}
.portal-messages {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.portal-message {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
}
.portal-message:last-child { margin-bottom: 0; }
.portal-message__meta {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.portal-admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.portal-admin-form input,
.portal-admin-form select {
    flex: 1 1 180px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.portal-admin-form button { flex: 0 0 auto; }
.portal-list li a { color: var(--color-primary); font-weight: 600; margin-left: 8px; }
.portal-list li a:hover { color: var(--color-neptune); }

.portal__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.portal-stat {
    flex: 1 1 180px;
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.portal-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}
.portal-stat__label {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.portal-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 36px 20px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}
.portal-dropzone:hover,
.portal-dropzone.is-dragover {
    border-color: var(--color-primary);
    background: var(--color-bg-soft);
}
.portal-dropzone__text small { color: var(--color-muted); font-weight: 400; }
.portal-dropzone__filename { font-weight: 700; color: var(--color-primary); min-height: 1.2em; }
.portal-upload-form { flex-direction: column; align-items: stretch; }
.portal-upload-form .btn { align-self: flex-start; margin-top: 8px; }

.portal-list--data li { justify-content: flex-start; gap: 24px; }
.portal-list--data li > span:first-child { flex: 0 0 160px; }

.portal-table-search {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.portal-table-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow-x: auto;
}
.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.portal-table th,
.portal-table td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.portal-table th {
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table td a { color: var(--color-primary); font-weight: 600; }
.portal-table td a:hover { color: var(--color-neptune); }

/* Mobiele lijst (vervangt de tabel op kleine schermen) — tik op een rij voor een detailpagina */
.portal-mobile-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.portal-mobile-list li { border-bottom: 1px solid var(--color-border); }
.portal-mobile-list li:last-child { border-bottom: none; }
.portal-mobile-list li a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    color: var(--color-text);
}
.portal-mobile-list__title { font-weight: 700; }

.portal-detail__back {
    display: inline-block;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}
.portal-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Portaal: mobiel */
@media (max-width: 640px) {
    .portal-table-wrap { display: none; }
    .portal-mobile-list { display: block; }
    .portal-page {
        padding: 108px 0 48px;
    }
    .portal-card {
        padding: 22px;
    }
    .portal__stats {
        gap: 10px;
    }
    .portal-stat {
        flex: 1 1 130px;
        padding: 16px 18px;
    }
    .portal-stat__value {
        font-size: 1.4rem;
    }
    .portal-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .portal-list li {
        flex-wrap: wrap;
        gap: 8px;
    }
    .portal-table th,
    .portal-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .portal-admin-form input,
    .portal-admin-form select {
        flex: 1 1 100%;
    }
}
