/* ==========================================================
   BASIS: reset, header, footer en mobiel menu.
   Dit bestand is NIET nodig in een Flatsome child theme:
   daar regelt Flatsome de header, footer en basisopmaak.
   ========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ws-font-body);
    font-weight: 400;
    color: var(--ws-text);
    background: var(--ws-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--ws-transition);
    -webkit-tap-highlight-color: rgba(var(--ws-primary-rgb), 0.2);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ws-font-heading);
    font-weight: var(--ws-weight-heading);
    color: var(--ws-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.ws-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    transition: var(--ws-transition);
    border-bottom: 1px solid transparent;
}

.ws-header.scrolled {
    border-bottom-color: var(--ws-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.ws-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.ws-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--ws-primary);
    border-radius: var(--ws-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.ws-logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ws-dark);
    line-height: 1.2;
}

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

.ws-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.ws-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ws-dark);
    position: relative;
}

.ws-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ws-primary);
    transition: var(--ws-transition);
}

.ws-nav a:hover::after {
    width: 100%;
}

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

.ws-header-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.ws-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.ws-mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ws-dark);
    transition: var(--ws-transition);
}

/* ============================================
   FOOTER
   ============================================ */
.ws-footer {
    background: var(--ws-bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
}

.ws-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.ws-footer-brand .ws-logo {
    margin-bottom: 20px;
}

.ws-footer-brand .ws-logo-text {
    color: #fff;
}

.ws-footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
}

.ws-footer h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ws-footer-links {
    list-style: none;
}

.ws-footer-links li {
    margin-bottom: 10px;
}

.ws-footer-links a {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

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

.ws-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    font-weight: 300;
}

.ws-footer-contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--ws-primary);
    margin-top: 3px;
}

.ws-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 300;
}

.ws-footer-bottom a {
    color: var(--ws-primary);
}

.ws-footer-bottom a:hover {
    color: var(--ws-primary-dark);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.ws-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.ws-mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.ws-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.ws-mobile-nav.active {
    transform: translateX(0);
}

.ws-mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--ws-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ws-dark);
    border-bottom: 1px solid var(--ws-border);
}

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

.ws-mobile-nav .ws-btn {
    display: flex;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    color: #fff;
    border-bottom: 2px solid var(--ws-primary);
}


/* Responsive (basis) */
@media (max-width: 1024px) {
    .ws-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* .ws-header ervoor: anders wint .ws-btn uit sections.css */
    .ws-header .ws-nav,
    .ws-header .ws-header-cta {
        display: none;
    }

    .ws-mobile-toggle {
        display: flex;
    }

    .ws-header-inner {
        height: 70px;
    }

    .ws-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ws-footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
