/* ==========================================================================
   Notifica - Notion-Inspired Design
   ========================================================================== */

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

:root {
    /* Notifica logo kleuren - exact uit SVG */
    --navy: #16136F;
    --blue: #3636A2;
    --accent: #fbba00;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --bg: #ffffff;
    --bg-subtle: #f8f9fa;
    --border: #e8e8e8;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
}

/* Navigation - zeer minimaal zoals Notion */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo img {
    height: 64px;
    width: auto;
    display: block;
}

nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    align-self: stretch;
}

nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 450;
    transition: color 0.2s;
}

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

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s;
    padding: 8px 0;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 450;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-subtle);
    color: var(--blue);
}

.nav-dropdown-menu a:hover .nav-item-desc {
    color: var(--blue);
}

/* Wide dropdown for grouped menus */
.nav-dropdown-menu--wide {
    min-width: 280px;
    padding: 12px 0;
}

.nav-dropdown-menu--wide a {
    padding: 8px 20px;
}

.nav-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 4px 20px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-group-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.nav-group-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.nav-item-title {
    display: block;
    font-weight: 500;
}

.nav-item-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 1px;
}

/* Colored hover accents per group */
.nav-dropdown-menu--wide a[class^="nav-group-"] {
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.nav-dropdown-menu--wide a.nav-group-ai:hover {
    border-left-color: #7C3AED;
    background: #F5F3FF;
    color: var(--text);
}

.nav-dropdown-menu--wide a.nav-group-ai:hover .nav-item-title {
    color: #6D28D9;
}

.nav-dropdown-menu--wide a.nav-group-ai:hover .nav-item-desc {
    color: #7C3AED;
}

.nav-dropdown-menu--wide a.nav-group-analyse:hover {
    border-left-color: #2563EB;
    background: #EFF6FF;
    color: var(--text);
}

.nav-dropdown-menu--wide a.nav-group-analyse:hover .nav-item-title {
    color: #1D4ED8;
}

.nav-dropdown-menu--wide a.nav-group-analyse:hover .nav-item-desc {
    color: #2563EB;
}

.nav-dropdown-menu--wide a.nav-group-kennis:hover {
    border-left-color: #059669;
    background: #ECFDF5;
    color: var(--text);
}

.nav-dropdown-menu--wide a.nav-group-kennis:hover .nav-item-title {
    color: #047857;
}

.nav-dropdown-menu--wide a.nav-group-kennis:hover .nav-item-desc {
    color: #059669;
}

/* Buttons - minimaal, clean */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--blue);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    background: var(--navy);
    color: #ffffff !important;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-outline {
    background: white;
    color: var(--blue) !important;
    border: 1.5px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: white !important;
    border-color: var(--blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero - compacter */
.hero {
    padding: 30px 0 30px;
    margin-top: 64px;
    text-align: center;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--navy);
}

h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--navy);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--navy);
}

.subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero ERP Text - shows connected ERP systems */
.hero-erp-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
}

/* Stats - minimalistisch */
.stats {
    padding: 48px 0;
    background: var(--bg-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Sections - veel witruimte */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
}

/* Features - bento box style zoals Notion */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.feature-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
}

.step-card {
    text-align: center;
    padding: 32px;
}

.step-number,
.step-icon {
    width: 56px;
    height: 56px;
    background: var(--blue);
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.step-icon svg {
    fill: white;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Pain Points Grid - Card style */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pain-point-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.pain-point-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pain-point-icon svg {
    color: white;
}

.pain-point-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.pain-point-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Benefits Grid - Van Excel-chaos section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.benefit-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s;
}

.benefit-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ CTA section */
.faq-cta {
    text-align: center;
    margin-top: 32px;
}

.faq-cta .btn {
    padding: 16px 32px;
}

/* Testimonials Grid - Always 3 columns on desktop */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
}

/* CTA - minimaal maar effectief */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
}

.cta h2 {
    color: white;
}

.cta .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.cta .btn {
    background: white;
    color: var(--blue) !important;
}

.cta .btn:hover {
    background: var(--bg-subtle);
    color: var(--navy) !important;
}

.cta .btn-ghost {
    background: transparent !important;
    border: 2px solid white;
    color: white !important;
}

.cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

/* Contact Form */
.form-container {
    max-width: 560px;
    margin: 56px auto 0;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    padding: 64px 0 32px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col-logo h4 {
    height: 24px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-col-logo h4 img {
    height: 24px;
    width: auto;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive - Tablet and below */
@media (max-width: 900px) {
    .container, nav .container { padding: 0 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .features-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .features-grid[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
    .steps-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 700px) {
    .features-grid-3 { grid-template-columns: 1fr !important; }
    .features-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
    .features-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
    .stats-grid[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    nav .nav-links { display: none; }
    nav .mobile-menu-btn { display: flex; }
    .hero { padding: 25px 0 25px; }
    .section { padding: 64px 0; }
    .cta { padding: 64px 0; }
    .stats { padding: 56px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .stats-grid[style*="repeat(5"] { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .pain-points-grid { grid-template-columns: 1fr !important; }
    .benefits-grid { grid-template-columns: 1fr !important; }
    .testimonials-grid { grid-template-columns: 1fr !important; }
    /* Force all feature grids to single column on mobile */
    .features-grid { grid-template-columns: 1fr !important; }
    .features-grid-3 { grid-template-columns: 1fr !important; }
    .steps-grid { grid-template-columns: 1fr !important; }
    /* Values grid on over-ons page */
    .values-grid { grid-template-columns: 1fr !important; }
    .hero-erp-text { font-size: 14px; }
    h1 { font-size: 28px; }
    h2 { font-size: 26px; }
    .subtitle { font-size: 16px; }
    .section-header { margin-bottom: 40px; }
    .pain-point-card h3 { white-space: normal; }
    /* Syntess stats bar text wrapping fix */
    .stat-item .stat-label { font-size: 14px; }
}

@media (max-width: 480px) {
    .container, nav .container { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn, .hero-buttons .btn-outline { width: 100%; }
    h1 { font-size: 24px; }
    .stat-number { font-size: 36px; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: all 0.3s;
}

.mobile-menu-btn span::before { top: -7px; }
.mobile-menu-btn span::after { bottom: -7px; }

/* Mobile Menu Open State */
.mobile-menu-btn.active span { background: transparent; }
.mobile-menu-btn.active span::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn.active span::after { transform: rotate(-45deg); bottom: 0; }

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 99;
    padding: 24px;
    overflow-y: auto;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--blue); }

.mobile-nav .btn {
    width: 100%;
    margin-top: 24px;
    text-align: center;
}

/* FAQ Tiles */
.faq-tile {
    cursor: pointer;
    transition: all 0.25s;
}

.faq-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.faq-link {
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 12px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-read-more {
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Whitepaper Grid */
.whitepaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.whitepaper-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.whitepaper-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.whitepaper-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.whitepaper-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.whitepaper-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whitepaper-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.whitepaper-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.whitepaper-card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.whitepaper-card-content .btn {
    align-self: flex-start;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--bg-subtle);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Contact Popup */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.contact-popup.active {
    display: flex;
}

.contact-popup-content {
    background: white;
    border-radius: 12px;
    padding: 48px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 4px 8px;
    line-height: 1;
}

.contact-popup-close:hover {
    color: var(--text);
}

.contact-popup h2 {
    margin-bottom: 12px;
}

.contact-popup .section-subtitle {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .contact-popup-content {
        padding: 32px 24px;
        width: 95%;
    }
}

/* --------------------------------------------------------------------------
   Pipedrive Popup Styles
   -------------------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.popup-close:hover {
  background-color: #e5e7eb;
}

.popup-close svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.popup-body {
  padding: 40px;
}

@media (max-width: 768px) {
  .popup-body {
    padding: 24px;
  }
  
  .popup-overlay {
    padding: 16px;
  }
}

/* Blog Post Content Styling */
.blog-content {
    padding-top: 64px; /* Account for fixed nav */
}

.blog-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 24px;
    margin-top: 48px;
}

.blog-content h1:first-child {
    margin-top: 0;
}

.blog-content h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 16px;
}

.blog-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.blog-content li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 12px;
}

.blog-content strong {
    font-weight: 600;
    color: var(--navy);
}

.blog-content a {
    color: var(--blue);
    text-decoration: underline;
}

.blog-content a:hover {
    color: var(--navy);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--blue);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content code {
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.blog-content pre {
    background: var(--bg-subtle);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#cookie-banner.cookie-banner-visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner-text a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.cookie-btn-primary {
    background: var(--blue);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--navy);
}

.cookie-btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* ---- Leerportaal micro-CTA ---- */
.leerportaal-cta {
    margin: 48px 0;
    padding: 24px 28px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-left: 4px solid var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.leerportaal-cta-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leerportaal-cta-content {
    flex: 1;
}

.leerportaal-cta-heading {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
}

.leerportaal-cta-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.leerportaal-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.leerportaal-cta-link:hover {
    color: var(--navy);
}

@media (max-width: 600px) {
    .leerportaal-cta {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
}

/* ---- Newsletter CTA ---- */
.newsletter-cta {
    margin: 48px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 1px solid #e0e3f0;
}
.newsletter-cta__inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.newsletter-cta__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.newsletter-cta__content {
    flex: 1;
    min-width: 200px;
}
.newsletter-cta__heading {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
}
.newsletter-cta__text {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.newsletter-cta__form {
    flex-shrink: 0;
    align-self: center;
}
.newsletter-cta__input-row {
    display: flex;
    gap: 8px;
}
.newsletter-cta__input {
    padding: 10px 14px;
    border: 1px solid #e0e3f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-cta__input:focus {
    border-color: #16136F;
}
.newsletter-cta__btn {
    padding: 10px 20px;
    background: #16136F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.newsletter-cta__btn:hover {
    background: #3636A2;
}
.newsletter-cta__feedback {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
}
.newsletter-cta__feedback--success {
    color: #16136F;
    font-weight: 500;
}
.newsletter-cta__feedback--error {
    color: #dc2626;
}
@keyframes newsletter-spin {
    to { transform: rotate(360deg); }
}
.newsletter-spin {
    animation: newsletter-spin 1s linear infinite;
}

/* Newsletter footer variant — donkere navy band boven footer-grid */
.newsletter-cta--footer {
    margin: 0 -40px 32px;
    padding: 28px 40px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    border: none;
    border-radius: 12px;
}
.newsletter-cta--footer .newsletter-cta__icon {
    background: rgba(255,255,255,0.15);
}
.newsletter-cta--footer .newsletter-cta__heading {
    color: white;
}
.newsletter-cta--footer .newsletter-cta__text {
    color: rgba(255,255,255,0.75);
}
.newsletter-cta--footer .newsletter-cta__input {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.newsletter-cta--footer .newsletter-cta__input::placeholder {
    color: rgba(255,255,255,0.5);
}
.newsletter-cta--footer .newsletter-cta__input:focus {
    border-color: rgba(255,255,255,0.6);
}
.newsletter-cta--footer .newsletter-cta__btn {
    background: white;
    color: #16136F;
}
.newsletter-cta--footer .newsletter-cta__btn:hover {
    background: #f0f4ff;
}
.newsletter-cta--footer .newsletter-cta__feedback {
    color: #a5d6a7;
}

@media (max-width: 768px) {
    .newsletter-cta__inner {
        flex-direction: column;
        gap: 16px;
    }
    .newsletter-cta__form {
        width: 100%;
    }
    .newsletter-cta__input {
        width: 100%;
        flex: 1;
    }
}

/* ===== Klant-logo Marquee ===== */
.client-marquee {
    padding: 32px 0;
    overflow: hidden;
    background: white;
}

.client-marquee-track {
    display: flex;
    gap: 48px;
    align-items: center;
    animation: marquee-scroll 45s linear infinite;
    width: max-content;
}

.client-marquee:hover .client-marquee-track {
    animation-play-state: paused;
}

.client-marquee-item {
    flex: 0 0 auto;
    width: fit-content;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-marquee-item img {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s, opacity 0.3s;
}

.client-marquee-item[data-size="compact"] img {
    max-height: 24px;
    max-width: 100px;
}

.client-marquee-item[data-size="tall"] img {
    max-height: 42px;
}

.client-marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .client-marquee {
        padding: 24px 0;
    }
    .client-marquee-track {
        gap: 32px;
        animation-duration: 30s;
    }
    .client-marquee-item {
        height: 44px;
    }
    .client-marquee-item img {
        max-height: 28px;
        max-width: 110px;
    }
    .client-marquee-item[data-size="compact"] img {
        max-height: 18px;
        max-width: 80px;
    }
    .client-marquee-item[data-size="tall"] img {
        max-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
        gap: 48px 64px;
    }
    .client-marquee-track > .client-marquee-item[aria-hidden="true"] {
        display: none;
    }
}

/* ===== Global Print Styles ===== */
@media print {
    /* Verberg navigatie, footer en UI-elementen */
    header, .site-header, nav, .notion-nav,
    footer, .site-footer, .notion-footer,
    .print-btn, .back-link,
    .cookie-consent {
        display: none !important;
    }
}
