/* =========================================================
   KB Networks — huisstijl
   Kleuren afgeleid van het logo (slate-blauw).
   ========================================================= */

:root {
    --slate:        #46586f;
    --slate-dark:   #2f3d4f;
    --slate-light:  #6a7d96;
    --slate-50:     #eef1f5;
    --accent:       #3fa7a1;   /* frisse accentkleur voor CTA's */
    --accent-dark:  #348b86;
    --ink:          #24303d;
    --muted:        #6b7683;
    --bg:           #f4f6f9;
    --white:        #ffffff;
    --border:       #e2e7ee;
    --radius:       14px;
    --radius-lg:    22px;
    --shadow:       0 10px 30px rgba(47, 61, 79, 0.08);
    --shadow-lg:    0 20px 50px rgba(47, 61, 79, 0.14);
    --maxw:         1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--slate-dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.5px; }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--alt { background: var(--bg); }
.section--slate { background: var(--slate-dark); color: #dfe5ee; }
.section--slate h2, .section--slate h3 { color: var(--white); }

.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.section-head { max-width: 680px; margin: 0 auto 3rem; }
.section-head.text-center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--slate-dark); border-color: var(--border); }
.btn--ghost:hover { background: var(--slate-50); color: var(--slate-dark); border-color: var(--slate-light); }
.btn--light { background: #fff; color: var(--slate-dark); border-color: #fff; }
.btn--light:hover { background: var(--slate-50); border-color: var(--slate-50); color: var(--slate-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--slate-dark); font-weight: 800; }
.brand__logo { width: 42px; height: 42px; }
.brand__name { font-size: 1.2rem; letter-spacing: -.5px; }
.brand:hover { color: var(--slate-dark); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; }
.main-nav a {
    display: block; padding: .5rem .8rem; border-radius: 8px;
    color: var(--slate-dark); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--slate-50); color: var(--slate-dark); }
.main-nav a.is-active { color: var(--accent); }
.nav-login { margin-left: .5rem; }
.nav-login a { white-space: nowrap; }

.nav-toggle__btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle__btn span { width: 26px; height: 3px; background: var(--slate-dark); border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(circle at 15% 20%, #fff 0%, var(--bg) 60%);
    padding: 5rem 0 5.5rem;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin: 1.25rem 0 2rem; }
.hero__art {
    display: grid; place-items: center;
    background: radial-gradient(circle at center, #fff 0%, var(--slate-50) 80%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.hero__art img { width: 78%; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.pill {
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: .4rem 1rem; font-size: .85rem; font-weight: 600; color: var(--slate);
    box-shadow: var(--shadow);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card__icon {
    width: 54px; height: 54px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 1.2rem;
    background: var(--slate-50); color: var(--slate);
}
.card__icon svg { width: 28px; height: 28px; }
.card__link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent); }
.card__link::after { content: " →"; }

/* Feature list met vinkjes */
.checklist { list-style: none; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink); }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }

/* Split content blok */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    border-radius: var(--radius-lg); min-height: 320px;
    display: grid; place-items: center; color: #fff; padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.split__media img { width: 60%; filter: brightness(0) invert(1); opacity: .95; }

/* Lichte media-variant: toont een gekleurd logo zonder wit-filter */
.split__media--plain {
    background: radial-gradient(circle at center, #fff 0%, var(--slate-50) 90%);
    color: var(--slate-dark);
}
.split__media--plain img { width: 82%; filter: none; opacity: 1; }

.brand-visual {
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.brand-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.brand-visual figcaption {
    padding: .75rem 1rem;
    color: var(--muted);
    font-size: .9rem;
}

/* PenningPro-huisstijl (groen/goud), scoped op de productpagina */
.pp {
    --accent: #1f7a3d;
    --accent-dark: #175f2f;
}
.pp .stat__num { color: #d4a017; }

/* Stappen */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step__num {
    counter-increment: step; flex: 0 0 46px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--slate-dark); color: #fff;
    display: grid; place-items: center; font-weight: 700;
}
.step__num::before { content: counter(step); }

/* Prijstabel */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price--featured .price__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 999px; letter-spacing: 1px; text-transform: uppercase;
}
.price h3 { margin-bottom: .25rem; }
.price__amount { font-size: 2.4rem; font-weight: 800; color: var(--slate-dark); margin: .5rem 0; }
.price__amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; display: grid; gap: .6rem; margin: 1.25rem 0 1.75rem; }
.price li { display: flex; gap: .5rem; color: var(--muted); }
.price li svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; margin-top: 5px; }
.price .btn { margin-top: auto; text-align: center; }

/* CTA blok */
.cta {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 3.5rem;
    text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #cdd6e2; max-width: 560px; margin: 1rem auto 2rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat__label { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--border);
    border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,167,161,.15);
}
.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 24px; margin-top: 3px; }
.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; }
.alert--ok { background: #e6f6f4; color: var(--accent-dark); border: 1px solid #bfe8e4; }
.alert--err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }

/* Page hero (subpagina's) */
.page-hero { background: var(--slate-dark); color: #dfe5ee; padding: 4rem 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c3d2; max-width: 640px; margin-top: .75rem; }
.breadcrumb { font-size: .85rem; color: #9aa7b8; margin-bottom: .75rem; }
.breadcrumb a { color: #9aa7b8; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-dark); color: #b9c3d2; padding-top: 3.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: #b9c3d2; }
.site-footer a:hover { color: #fff; }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer .brand__name { color: #fff; }
.site-footer__about { font-size: .92rem; max-width: 320px; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .85rem; }
.site-footer__bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-toggle__btn { display: flex; }
    .main-nav {
        position: absolute; top: 74px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { padding: .8rem; }
    .nav-login { margin: .5rem 0 0; }
    .nav-login a { text-align: center; }
    .nav-toggle:checked ~ .main-nav { max-height: 520px; }
}

@media (max-width: 900px) {
    .grid--3, .grid--4, .price-grid, .stats { grid-template-columns: repeat(2, 1fr); }
    .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero__art { order: -1; max-width: 380px; margin: 0 auto; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .grid--3, .grid--4, .price-grid, .stats, .split__media { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta { padding: 2.25rem 1.5rem; }
    section { padding: 3.5rem 0; }
}
