/* ============================================================
   Fun4All Loop — huisstijl (ontwerp 26046-02a)
   Wordt op elke pagina geladen ná de eigen stijl van de pagina
   en vóór site-a11y.css. Zet kleuren, lettertypen, menu, paginakop
   en footer gelijk aan het ontwerp.
   ============================================================ */

:root {
    --f4-blue: #21409a;
    --f4-blue-dark: #1a347f;
    --f4-navy: #26338c;
    --f4-orange: #d9481a;        /* designoranje, iets donkerder: 4,3:1 met wit */
    --f4-orange-hover: #c23f16;
    --f4-pink: #f5a4c7;
    --f4-lilac: #c6b4d8;
    --f4-yellow: #e6e21c;
    --f4-green: #2f8a4a;
    --f4-head: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f4-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Bestaande paginavariabelen meenemen in de nieuwe huisstijl */
    --orange: #c8441a;           /* tekst op wit: 4,9:1 */
    --orange-dark: #a83813;
    --purple: var(--f4-blue);
    --dark: #1b2250;
    --dark2: #1b2250;
}

body { font-family: var(--f4-body); color: #1b2250; }
h1, h2, h3, h4, .section-title, .logo { font-family: var(--f4-head); }
.section-title { color: var(--f4-blue) !important; letter-spacing: -0.5px; }
.section-title span { color: var(--f4-orange) !important; -webkit-text-fill-color: currentColor; background: none !important; }

/* ── Menu ─────────────────────────────────────────────────── */
nav[aria-label="Hoofdnavigatie"] {
    background: var(--f4-blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
    padding: 0 2rem 0 2.2rem;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-direction: row;
}
nav[aria-label="Hoofdnavigatie"] .logo {
    align-self: flex-start;
    margin: 0 0 -32px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    line-height: 0;
    min-height: 0;
    display: block;
}
nav[aria-label="Hoofdnavigatie"] .logo img {
    width: 158px !important;
    height: auto !important;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(10, 20, 60, 0.18));
}
nav[aria-label="Hoofdnavigatie"] .nav-links {
    position: static !important;
    transform: none !important;
    width: auto !important;
    margin-left: auto;
    gap: 1.5rem;
    flex-wrap: nowrap;
}
nav[aria-label="Hoofdnavigatie"] .nav-links a {
    color: #fff;
    font-family: var(--f4-head);
    font-weight: 500;
    font-size: 0.98rem;
    white-space: nowrap;
}
nav[aria-label="Hoofdnavigatie"] .nav-links a:hover,
nav[aria-label="Hoofdnavigatie"] .nav-links a[aria-current="page"],
nav[aria-label="Hoofdnavigatie"] .nav-links a.active { color: #fff; }
nav[aria-label="Hoofdnavigatie"] .nav-links a::after { background: var(--f4-orange) !important; height: 3px; border-radius: 2px; }

.btn-register,
.btn-solid,
.hero-btn-primary,
.footer-btn {
    background: var(--f4-orange) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: var(--f4-head);
    font-weight: 700;
    letter-spacing: 0 !important;
    -webkit-text-fill-color: #fff;
}
.btn-register:hover,
.btn-solid:hover,
.hero-btn-primary:hover,
.footer-btn:hover { background: var(--f4-orange-hover) !important; transform: translateY(-2px); box-shadow: none !important; }
nav[aria-label="Hoofdnavigatie"] .btn-register { font-size: 1.05rem; padding: 0.55rem 1.4rem; margin-left: 0.5rem; }

.hamburger span { background: #fff !important; }
.hamburger { margin-left: auto; }

.mobile-menu {
    top: 76px !important;
    background: var(--f4-blue) !important;
    border-bottom: 4px solid var(--f4-orange) !important;
    padding: 2.6rem 2rem 1.5rem !important;
}
.mobile-menu ul li a { color: #fff !important; font-family: var(--f4-head); font-size: 1.05rem !important; }
.mobile-menu ul li a:hover,
.mobile-menu ul li a[aria-current="page"],
.mobile-menu ul li a.active { color: var(--f4-pink) !important; }

@media (min-width: 1241px) {
    nav[aria-label="Hoofdnavigatie"] .hamburger { display: none !important; }
}
@media (max-width: 1240px) {
    nav[aria-label="Hoofdnavigatie"] .nav-links,
    nav[aria-label="Hoofdnavigatie"] .btn-register { display: none !important; }
    nav[aria-label="Hoofdnavigatie"] .hamburger { display: flex !important; }
}
@media (max-width: 768px) {
    nav[aria-label="Hoofdnavigatie"] { min-height: 64px; padding: 0 1rem 0 1rem; flex-direction: row !important; gap: 1rem; }
    nav[aria-label="Hoofdnavigatie"] .logo { margin-bottom: -22px; }
    nav[aria-label="Hoofdnavigatie"] .logo img { width: 112px !important; }
    .mobile-menu { top: 64px !important; }
}

/* ── Paginakop op de vervolgpagina's ─────────────────────── */
body:not(.home) main > section.hero:first-child,
.shop-hero,
.page-hero {
    background: var(--f4-blue) !important;
    background-image: none !important;
    color: #fff;
    min-height: 380px;
    padding: 6rem 2rem 9.5rem !important;
    position: relative;
    overflow: hidden;
}
body:not(.home) main > section.hero:first-child::before,
.shop-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("img/deco-patroon.svg") right -40px top 0 / auto 130% no-repeat !important;
    opacity: 1;
    pointer-events: none;
}
body:not(.home) main > section.hero:first-child::after,
.shop-hero::after,
.page-hero::after {
    content: '';
    position: absolute;
    left: 2%;
    right: auto;
    bottom: 0;
    width: min(520px, 70%);
    height: 130px;
    background: url("img/mensen.svg") left bottom / contain no-repeat !important;
    pointer-events: none;
    z-index: 4;
}
body:not(.home) main > section.hero:first-child + section { padding-top: 4.5rem !important; }

body:not(.home) main > section.hero:first-child h1,
.shop-hero h1,
.page-hero h1 {
    font-family: var(--f4-head);
    font-weight: 900;
    color: #fff;
    text-shadow: none;
    letter-spacing: -0.5px;
}
body:not(.home) main > section.hero:first-child p,
.shop-hero p,
.page-hero p { color: #fff; opacity: 1; }
@media (max-width: 768px) {
    body:not(.home) main > section.hero:first-child,
    .shop-hero,
    .page-hero { min-height: 280px; padding: 4rem 1.2rem 6.5rem !important; }
    body:not(.home) main > section.hero:first-child::after,
    .shop-hero::after,
    .page-hero::after { height: 82px; width: 85%; }
}

/* ── Footer ───────────────────────────────────────────────── */
footer.site-footer {
    background: none;
    color: var(--f4-navy);
    padding: 0;
    margin-top: 80px;
    font-family: var(--f4-body);
}
.sf-art {
    position: relative;
    height: 190px;
    pointer-events: none;
}
.sf-people {
    position: absolute;
    left: 2%;
    bottom: -3px;
    height: 190px;
    width: auto;
    max-width: 60%;
}
.sf-heart {
    position: absolute;
    right: 4%;
    bottom: -64px;
    width: 190px;
    height: 132px;
    z-index: 3;
    pointer-events: auto;
    display: block;
    text-decoration: none;
    transition: transform 0.25s;
}
.sf-heart:hover { transform: translateY(-4px) rotate(-3deg); }
.sf-heart img { width: 100%; height: 100%; transform: scaleX(-1); display: block; }
.sf-heart span {
    position: absolute;
    left: 46%;
    top: 21%;
    width: 52%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--f4-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}
.sf-band { background: var(--f4-lilac); padding: 34px 24px 34px; }
.sf-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px 32px;
}
.sf-head {
    font-family: var(--f4-head);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
    color: var(--f4-navy);
}
.sf-col p,
.sf-col li { color: var(--f4-navy); font-size: 1rem; line-height: 1.5; margin: 0; }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-col a { color: var(--f4-navy); text-decoration: none; }
.sf-col a:hover,
.sf-col a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sf-social { display: flex; gap: 10px; margin-top: 18px; }
.sf-social a {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--f4-blue);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    transition: background 0.2s, transform 0.2s;
}
.sf-social a:hover { background: var(--f4-orange); transform: translateY(-2px); }
.sf-social svg { width: 18px; height: 18px; fill: currentColor; }
.sf-bottom { background: var(--f4-blue); color: #fff; padding: 22px 24px 26px; }
.sf-bottom .sf-inner { grid-template-columns: auto 1fr auto; align-items: center; }
.sf-bottom .sf-legal { justify-content: center; }
.sf-btn { display: inline-flex; padding: 0.5rem 1.2rem; font-size: 0.98rem; margin: 2px 0 10px; text-decoration: none; }
.sf-bottom p { margin: 0; font-size: 0.9rem; color: #fff; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.sf-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 0.88rem; }
.sf-legal a:hover { color: var(--f4-pink); }
@media (max-width: 860px) {
    .sf-inner { grid-template-columns: 1fr 1fr; }
    .sf-art { height: 110px; }
    .sf-people { height: 110px; max-width: 70%; }
    .sf-heart { width: 140px; height: 98px; bottom: -40px; right: 2%; }
    .sf-heart span { font-size: 0.8rem; }
    .sf-bottom .sf-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .sf-inner { grid-template-columns: 1fr; }
    .sf-band { padding-top: 48px; }
}

/* ── Voorleesknop in huisstijl ────────────────────────────── */
#vl-fab {
    background: var(--f4-orange) !important;
    font-family: var(--f4-head) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}
#vl-fab:hover { background: var(--f4-orange-hover) !important; }

/* ── Bewegende poppetjes (mensen.js) ──────────────────────── */
.mensen-paused .mensen * { animation-play-state: paused !important; }
.mensen-inline { display: block; line-height: 0; pointer-events: none; }
.mensen-inline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-people.mensen-inline { height: auto; aspect-ratio: 620 / 200; }
.sf-people.mensen-inline { width: 589px; }
.page-mensen {
    position: absolute;
    left: 2%;
    bottom: 0;
    height: 130px;
    width: 403px;
    max-width: 70%;
    z-index: 4;
    pointer-events: none;
}
body:not(.home) main > section.hero.has-mensen:first-child::after,
.shop-hero.has-mensen::after,
.page-hero.has-mensen::after { content: none; }
.mensen-toggle {
    position: absolute;
    z-index: 6;
    right: 1.2rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.35rem 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--f4-navy);
    font-family: var(--f4-head);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 24, 70, 0.2);
}
.mensen-toggle:hover { background: #fff; }
.mensen-toggle span { font-size: 0.75rem; }
body.home .hero .mensen-toggle { right: auto; left: calc(1.2% + min(600px, 48vw) + 14px); bottom: 20px; }
.sf-art .mensen-toggle { bottom: auto; top: 0; }
@media (max-width: 860px) {
    .sf-people.mensen-inline { width: 341px; }
}
@media (max-width: 768px) {
    .page-mensen { height: 82px; width: 254px; max-width: 85%; }
    body.home .hero .mensen-toggle { left: auto; right: 1rem; bottom: auto; top: 84px; }
    .mensen-toggle { font-size: 0.8rem; padding: 0.3rem 0.85rem; }
}
