﻿/* Gebedsschool - algemene basis */
:root {
    --brand: #4f3bbf; --brand-dark: #2f246f; --brand-soft: #eeeafd;
    --ink: #272338; --muted: #686378; --white: #ffffff;
    --surface: #f7f5fb; --warm: #f4efe7; --line: rgba(47, 36, 111, 0.13);
    --font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --gradient-brand: linear-gradient(135deg, var(--brand-dark), var(--brand));
    --shadow: 0 24px 60px rgba(47, 36, 111, 0.13);
    --shadow-soft: 0 12px 34px rgba(47, 36, 111, 0.07);
}

html { scroll-behavior: smooth; }

body {
    margin: 0; color: var(--ink); background: var(--surface);
    font-family: var(--font-sans); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 0.18em; }

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 1100;
    padding: 10px 14px; color: var(--white); background: var(--brand-dark);
    border-radius: 8px; transform: translateY(-160%); transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-announcement {
    color: var(--white); background: var(--brand-dark); font-size: 0.92rem;
}

.site-announcement__inner {
    min-height: 42px; display: flex; align-items: center; justify-content: center;
    gap: 10px; padding-block: 8px; text-align: center;
}

.site-announcement__label {
    display: inline-flex; align-items: center; min-height: 24px; padding: 1px 9px;
    color: var(--brand-dark); background: var(--white); border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

.site-announcement a { color: var(--white); font-weight: 700; }

.site-header {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(47, 36, 111, 0.06); backdrop-filter: blur(14px);
}

.site-header .navbar { min-height: 90px; padding-block: 0; }

.site-header__row {
    display: flex; align-items: center; flex-wrap: wrap;
}

.site-header__actions {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
}

.site-header .navbar-toggler {
    align-items: center; justify-content: center;
    width: 46px; height: 40px; padding: 0; color: var(--brand-dark);
    background: var(--white); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 6px 20px rgba(47, 36, 111, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header .navbar-toggler:hover {
    border-color: rgba(79, 59, 191, 0.42);
    box-shadow: 0 8px 24px rgba(47, 36, 111, 0.13);
}

.site-header .navbar-toggler[aria-expanded="true"] {
    background: var(--brand-soft); border-color: rgba(79, 59, 191, 0.42);
}

.site-header .navbar-toggler-icon { width: 1.35rem; height: 1.35rem; }

.site-brand {
    display: inline-flex; align-items: center; gap: 12px; min-width: 220px;
    color: var(--ink); text-decoration: none;
}

.site-brand:is(:hover, :focus) { color: var(--brand-dark); }

.site-brand__mark { width: 34px; height: 60px; object-fit: contain; }

.site-brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.site-brand__text strong {
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
}

.site-brand__text small {
    margin-top: 6px; color: var(--muted); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
}

.site-navigation { gap: 2px; }

.site-navigation .nav-link {
    position: relative; padding: 0.72rem 0.68rem; color: #4a4559;
    border-radius: 10px; font-size: 0.93rem; font-weight: 650; text-decoration: none;
}

.site-navigation .nav-link:is(:hover, :focus, .active) {
    color: var(--brand-dark); background: var(--brand-soft);
}

.site-navigation__search {
    display: inline-flex; align-items: center; gap: 8px; font-size: 1.3rem !important;
}

.language-switch { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.language-switch__item {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 36px; padding: 5px; color: var(--ink);
    background: var(--white); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 6px 20px rgba(47, 36, 111, 0.08); text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switch__item:is(:hover, :focus) {
    border-color: rgba(79, 59, 191, 0.42);
    box-shadow: 0 8px 24px rgba(47, 36, 111, 0.13);
    transform: translateY(-1px);
}

.language-switch__item.is-current {
    border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79, 59, 191, 0.13);
}

.language-switch__flag {
    display: block; width: 28px; height: 19px; overflow: hidden;
    background-color: var(--white); border: 1px solid rgba(39, 35, 56, 0.18);
    border-radius: 2px; box-shadow: 0 1px 2px rgba(39, 35, 56, 0.15);
}

.language-switch__flag--nl {
    background: linear-gradient(to bottom, #ae1c28 0 33.333%, var(--white) 33.333% 66.666%, #21468b 66.666% 100%);
}

.language-switch__flag--fr {
    background: linear-gradient(to right, #0055a4 0 33.333%, var(--white) 33.333% 66.666%, #ef4135 66.666% 100%);
}

.site-main { min-height: calc(100vh - 210px); }

.home-hero {
    position: relative; overflow: hidden;
    padding: clamp(64px, 8vw, 118px) 0 clamp(70px, 9vw, 128px);
    background: radial-gradient(circle at 80% 22%, rgba(79, 59, 191, 0.18), transparent 29%),
                linear-gradient(135deg, var(--white) 0%, #f8f6fc 54%, var(--brand-soft) 100%);
}

.home-hero::after {
    content: ""; position: absolute; right: -120px; bottom: -210px;
    width: 460px; height: 460px; border: 1px solid rgba(79, 59, 191, 0.13);
    border-radius: 50%;
}

.home-hero__content { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
    display: inline-block; margin-bottom: 15px; color: var(--brand);
    font-size: 0.8rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase;
}

:is(.home-hero h1, .page-hero h1, .section-heading h2, .texts-callout h2) {
    font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.035em;
}

.home-hero h1 {
    max-width: 760px; margin: 0; color: var(--brand-dark);
    font-size: clamp(3.1rem, 7vw, 6.5rem); line-height: 0.96;
}

.home-hero__lead {
    max-width: 680px; margin: 30px 0 0; color: #514b61;
    font-size: clamp(1.18rem, 2vw, 1.48rem); line-height: 1.55;
}

.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn-outline-brand {
    padding: 0.82rem 1.25rem; color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.72); border-color: rgba(79, 59, 191, 0.3);
    border-radius: 12px; font-weight: 750;
}

.btn-outline-brand:is(:hover, :focus) {
    color: var(--white); background: var(--brand-dark); border-color: var(--brand-dark);
}

.home-hero__visual {
    position: relative; z-index: 2; min-height: 470px;
    display: flex; align-items: center; justify-content: center;
}

.home-hero__visual img {
    position: relative; z-index: 2; width: auto; max-width: 58%; max-height: 330px;
    object-fit: contain; filter: drop-shadow(0 22px 32px rgba(47, 36, 111, 0.12));
}

.home-hero__halo {
    position: absolute; width: min(380px, 82vw); aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(79, 59, 191, 0.13);
    border-radius: 50%; box-shadow: var(--shadow);
}

.home-section { padding: clamp(72px, 8vw, 112px) 0; }

.section-heading { max-width: 760px; margin-bottom: 44px; }

:is(.section-heading h2, .texts-callout h2) {
    margin: 0; color: var(--brand-dark);
    font-size: clamp(2.15rem, 4vw, 3.6rem); line-height: 1.08;
}

.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; }

.home-section--texts { background: var(--warm); }

.texts-callout {
    display: flex; align-items: center; justify-content: space-between; gap: 36px;
    padding: clamp(34px, 5vw, 64px); color: var(--white);
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.13), transparent 28%), var(--gradient-brand);
    border-radius: 28px; box-shadow: var(--shadow);
}

.texts-callout :is(.eyebrow, h2) { color: var(--white); }

.texts-callout p {
    max-width: 760px; margin: 18px 0 0; color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.texts-callout .btn {
    flex: 0 0 auto; color: var(--brand-dark); border: 0;
    border-radius: 12px; font-weight: 800;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.14), transparent 26%), var(--gradient-brand);
}

.page-hero--compact { padding: clamp(62px, 8vw, 108px) 0; }
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.76); }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.2rem); }
.page-hero__lead { margin: 18px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.3rem; }

.content-section { padding: clamp(62px, 8vw, 104px) 0; background: var(--white); }

.resource-card {
    display: flex; flex-direction: column; min-height: 235px; padding: 30px;
    color: var(--ink); background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-soft); text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:is(:hover, :focus) {
    color: var(--ink); border-color: rgba(79, 59, 191, 0.38);
    box-shadow: var(--shadow); transform: translateY(-4px);
}

.resource-card__type {
    color: var(--brand); font-size: 0.76rem; font-weight: 850;
    letter-spacing: 0.12em; text-transform: uppercase;
}

.resource-card h2 {
    margin: 26px 0 36px; color: var(--brand-dark);
    font-family: var(--font-serif); font-size: 1.75rem;
}

.resource-card__link { margin-top: auto; color: var(--brand); font-weight: 750; }

.site-footer { color: rgba(255, 255, 255, 0.78); background: #211a4b; }

.site-footer__inner {
    min-height: 96px; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-block: 22px;
}

.site-footer strong { color: var(--white); }

.preview-page {
    max-width: 960px; margin: 40px auto; padding: 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: 18px;
}

.preview-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

.preview-button {
    display: inline-block; padding: 12px 16px; color: var(--brand-dark);
    border: 1px solid rgba(79, 59, 191, 0.32); border-radius: 10px; text-decoration: none;
}

@media (max-width: 1199.98px) {
    .site-header .navbar { min-height: 72px; }
    .site-header .navbar-toggler { display: inline-flex; }

    .site-header .navbar-collapse {
        flex-basis: 100%; width: 100%; padding: 10px 0 18px;
    }

    .site-navigation { align-items: stretch !important; margin-top: 10px; }
    .site-navigation .nav-link { padding: 0.72rem 0.85rem; }
}

@media (min-width: 1200px) {
    .site-header__row { flex-wrap: nowrap; }
    .site-header__actions { margin-left: 1rem !important; }
}

@media (max-width: 991.98px) {
    .home-hero { padding-top: 70px; }
    .home-hero__visual { min-height: 390px; }
    .home-hero__visual img { width: 190px; }
    .home-hero__halo { width: 310px; }
}

@media (max-width: 767.98px) {
    .site-announcement__inner { align-items: flex-start; text-align: left; }

    .site-brand {
        min-width: 0; flex: 1 1 auto; gap: 8px; margin-right: 8px;
    }

    .site-brand__mark { width: 30px; height: 54px; }

    .site-brand__text strong {
        font-size: clamp(1.05rem, 5.2vw, 1.25rem); white-space: nowrap;
    }

    .site-brand__text small { display: none; }

    .site-header__actions { gap: 5px; }
    .language-switch { gap: 4px; }
    .language-switch__item { width: 40px; height: 40px; }
    .site-header .navbar-toggler { width: 44px; height: 40px; }
    .home-hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
    .home-hero__actions .btn { width: 100%; }
    .home-hero__visual { min-height: 340px; }
    .home-hero__visual img { max-width: 54%; max-height: 235px; }
    .texts-callout { align-items: stretch; flex-direction: column; }
    .texts-callout .btn { width: 100%; }
    .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}


@media (max-width: 379.98px) {
    .site-brand { gap: 6px; margin-right: 5px; }
    .site-brand__mark { width: 27px; height: 50px; }
    .site-brand__text strong { font-size: 1rem; }
    .language-switch__item { width: 37px; }
    .site-header .navbar-toggler { width: 41px; }
}

/* Toetsenbordnavigatie */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #f0a500;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.92);
}

:where(input, select, textarea):focus-visible {
    border-color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
