:root {
    --cal-green: #6fb52d;
    --cal-green-dark: #4f8b1f;
    --cal-blue: #0096d6;
    --cal-blue-dark: #0075a6;
    --cal-text: #222222;
    --cal-text-muted: #555555;
    --cal-border: #e2e2e2;
    --cal-bg-light: #f7faf7;
    --cal-bg-footer: #222222;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--cal-text);
    line-height: 1.7;
    font-size: 20px;
    background: #ffffff;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--cal-blue);
    color: #fff;
    z-index: 9999;
    border-radius: 4px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header + navigatie */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--cal-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.main-nav {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--cal-text);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--cal-green);
    transition: width 0.2s ease-out;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--cal-green-dark);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: #ffffff;
    border: 2px solid var(--cal-blue);
    color: var(--cal-blue);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--cal-blue);
    color: #ffffff;
    border-color: var(--cal-blue-dark);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.05s ease-out;
}

.btn-primary {
    background: var(--cal-green);
    color: #ffffff;
    border-color: var(--cal-green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--cal-green-dark);
    border-color: var(--cal-green-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #ffffff;
    color: var(--cal-blue);
    border-color: var(--cal-blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--cal-blue);
    color: #ffffff;
    border-color: var(--cal-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.btn-link {
    background: transparent;
    color: var(--cal-blue);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
}

.btn-link::after {
    content: "›";
    margin-left: 0.2rem;
    font-size: 1.1em;
}

.btn-link:hover,
.btn-link:focus-visible {
    color: var(--cal-blue-dark);
    text-decoration: underline;
}

.btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.7);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2rem;
    align-items: stretch;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--cal-bg-light) 0%, #ffffff 60%, #eef7ff 100%);
}

.hero-image {
    order: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-content {
    order: 2;
}

.hero-content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(2.2rem, 2.8vw + 1.3rem, 2.9rem);
    line-height: 1.2;
}

.hero-subtitle {
    margin: 0 0 1.7rem;
    color: var(--cal-text-muted);
    font-size: 1.1rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Services (frontpage secties) */

.services {
    padding: 3rem 0;
}

.service-block {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: 12px;
}

.service-text {
    flex: 3;
}

.service-image {
    flex: 2;
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-block:nth-child(4n + 1) {
    background: #f7faf4;
}

.service-block:nth-child(4n + 2) {
    background: #f0f8ff;
}

.service-block:nth-child(4n + 3) {
    background: #f7faff;
}

.service-block:nth-child(4n + 0),
.service-block:nth-child(4n + 4) {
    background: #f5faf7;
}

.service-block + .service-block {
    margin-top: 1rem;
}

.service-text h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.7rem;
}

.service-body {
    color: var(--cal-text-muted);
    margin-bottom: 1.4rem;
    font-size: 1.15rem;
}

.service-body a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    border: 2px solid var(--cal-blue);
    background: #ffffff;
    color: var(--cal-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.05s ease-out;
}

.service-body a:hover,
.service-body a:focus-visible {
    background: var(--cal-blue);
    color: #ffffff;
    border-color: var(--cal-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-multi-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Nieuwsbriefblok */

.newsletter {
    padding: 2.5rem 0;
    background: var(--cal-bg-light);
    border-top: 1px solid var(--cal-border);
    border-bottom: 1px solid var(--cal-border);
}

.newsletter-inner {
    text-align: center;
}

.newsletter-inner h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

/* Nieuwssectie en kaarten */

.news-section {
    padding: 3rem 0;
    background: #f7faf7;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-header h2 {
    margin: 0;
    font-size: 1.7rem;
}

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

.news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--cal-text);
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.news-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 1rem 1.25rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.news-card-title {
    margin: 0;
    font-size: 1.2rem;
}

.news-card-date {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cal-text-muted);
}

.news-card-summary {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: var(--cal-text-muted);
}

.news-card .btn.btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

/* Footer */

.site-footer {
    background: var(--cal-bg-footer);
    color: #eeeeee;
    padding: 2.5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a,
.footer-social a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.scroll-top {
    color: #ffffff;
    text-decoration: none;
}

.scroll-top:hover,
.scroll-top:focus-visible {
    text-decoration: underline;
}

/* Hero banner (andere pagina's) */

.hero-banner {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 18rem 0;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 150, 214, 0.7), rgba(111, 181, 45, 0.4));
}

.hero-banner-inner {
    position: relative;
    z-index: 1;
}

.hero-banner-content {
    max-width: 720px;
}

.hero-banner h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 3vw + 1.4rem, 3rem);
    line-height: 1.2;
}

.hero-banner-subtitle {
    margin: 0 0 1.8rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-banner .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Artikelen (single posts) */

.post-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cal-border);
}

.post-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.post {
    padding: 3rem 0;
    background: #ffffff;
}

.post .container {
    max-width: 800px;
}

.post-inner {
    background: #f5faf7;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.post-header {
    text-align: left;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--cal-border);
    padding-bottom: 1rem;
}

.post-header h1 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    line-height: 1.3;
}

.post-meta {
    margin: 0;
    font-size: 0.95rem;
    color: var(--cal-text-muted);
}

.post-image {
    margin: 0 0 1.8rem;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-body {
    font-size: 1rem;
    color: var(--cal-text);
}

.post-body p {
    margin: 0 0 1.1rem;
}

.post-body h2 {
    margin: 2rem 0 0.8rem;
    font-size: 1.5rem;
}

.post-body h3 {
    margin: 1.6rem 0 0.7rem;
    font-size: 1.25rem;
}

.post-body blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem 1.2rem 1.9rem;
    border-left: 5px solid var(--cal-green);
    background: #f7faf4;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cal-text);
    font-style: italic;
}

.post-body blockquote::before {
    content: "“";
    position: absolute;
    left: 0.7rem;
    top: 0.15rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--cal-green);
    opacity: 0.35;
}

.post-body blockquote p {
    margin: 0 0 0.8rem;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body blockquote a {
    color: var(--cal-blue);
    text-decoration: underline;
}

.post-body blockquote a:hover,
.post-body blockquote a:focus-visible {
    color: var(--cal-blue-dark);
}

/* Breakpoints */

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

@media (max-width: 840px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .logo img {
        height: 42px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--cal-border);
        display: none;
    }

    .main-nav ul li {
        margin-bottom: 0.25rem;
    }

    .main-nav ul li:last-child {
        margin-bottom: 0;
    }

    .main-nav a {
        display: block;
        padding: 0.55rem 0.8rem;
        border-radius: 8px;
        font-weight: 500;
        text-decoration: none;
    }

    .main-nav ul li:nth-child(3n + 1) a {
        background: #f7faf4;
        color: var(--cal-text);
    }

    .main-nav ul li:nth-child(3n + 2) a {
        background: #f0f8ff;
        color: var(--cal-text);
    }

    .main-nav ul li:nth-child(3n + 3) a {
        background: #f7faff;
        color: var(--cal-text);
    }

    .main-nav ul li a:hover,
    .main-nav ul li a:focus-visible {
        color: var(--cal-text);
        filter: brightness(0.97);
    }

    .main-nav--open ul {
        display: flex;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-banner {
        padding: 2.5rem 0;
    }

    .service-block {
        flex-direction: column;
        padding: 1.5rem;
    }

    .service-text {
        order: 1;
        width: 100%;
        flex: 0 0 auto;
    }

    .service-image {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }

    .service-block:nth-child(even) {
        flex-direction: column;
    }
}

@media (min-width: 641px) and (max-width: 840px) {
    .service-image {
        width: 75%;
        max-width: 620px;
        margin: 0.2rem auto 0;
    }

    .service-image img {
        max-height: 320px;
        object-fit: cover;
    }
}

@media (max-width: 640px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-inner {
        padding: 1.5rem 1.5rem;
        border-radius: 10px;
    }

    .post-nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-nav .btn {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 540px) {
    .hero-banner {
        padding: 6rem 0 3rem;
        background-position: center top;
    }

    .hero-banner-content {
        max-width: 100%;
    }

    .hero-banner h1 {
        font-size: 2.1rem;
    }

    .hero-banner-subtitle {
        font-size: 1.05rem;
    }

    .hero-banner .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .service-body a {
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .service-multi-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-top {
        flex-direction: column;
    }
}
