/*
 * ============================================================
 * MAIN SITE STYLESHEET - Kindercentrum Vijgjes en Olijfjes
 * Premium Daycare Edition
 * ============================================================
 *
 * IMPORTANT - COLOR SYSTEM:
 * All colors in this file use CSS custom properties (variables)
 * that are defined dynamically from the admin panel.
 *
 * Available color variables:
 *   var(--site-primary)      - Deep teal blue
 *   var(--site-secondary)    - Warm coral
 *   var(--site-accent)       - Sunshine yellow
 *   var(--site-bg)           - Warm ivory cream
 *   var(--site-text)         - Rich slate
 *   var(--site-hero-bg)      - Soft peach
 *   var(--site-btn-bg)       - Coral
 *   var(--site-btn-hover)    - Darker coral
 *   var(--site-footer-bg)    - Rich slate
 *   var(--site-card-bg)      - White
 *   var(--site-card-border)  - Cream border
 *   var(--site-link)         - Teal blue
 *
 * Plus design tokens:
 *   var(--site-shadow-sm/md/lg)
 *   var(--site-radius-sm/md/lg)
 *   var(--site-gradient-primary/warm/hero)
 *
 * NEVER hardcode colors here. Always use var(--site-*).
 * Colors are managed at: /admin/colors
 * ============================================================
 */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Safety net: catch any rogue element wider than the viewport (decorative
       blobs, long unbreakable words, etc.) without breaking sticky positioning.
       `clip` is preferred over `hidden` because it doesn't create a scroll
       container. */
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

body {
    font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    background-color: var(--site-bg);
    /* Subtle grid pattern — 4% ink lines on a 52px grid.
     * Auto-adapts: in dark mode --site-text becomes light, lines stay visible. */
    background-image:
        linear-gradient(color-mix(in srgb, var(--site-text) 4%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--site-text) 4%, transparent) 1px, transparent 1px);
    background-size: 52px 52px;
    background-attachment: fixed;
    color: var(--site-text);
    line-height: 1.65;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

a {
    color: var(--site-link);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--site-secondary);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", system-ui, sans-serif;
    line-height: 1.25;
    color: var(--site-text);
    font-weight: 800;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--site-secondary-soft);
    color: var(--site-primary);
}

/* ========== FOCUS RINGS — keyboard accessibility ==========
 * Per skill rule: visible focus rings via outline (not box-shadow).
 * Uses :focus-visible so mouse users don't see them, only keyboard. */
:focus-visible {
    outline: 3px solid var(--site-secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--site-secondary);
    outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--site-primary);
    outline-offset: 0;
    border-color: var(--site-primary);
}

/* Suppress default focus on mouse interaction (only when :focus-visible isn't matched) */
:focus:not(:focus-visible) { outline: none; }

/* ========== INLINE SVG ICONS (no emoji) ========== */
.icon-svg {
    flex-shrink: 0;
    display: block;
}

.testimonial-stars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.testimonial-stars .icon-svg--star {
    width: 16px;
    height: 16px;
}

.footer-inline-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-inline-end: 7px;
    opacity: 0.88;
    transform: translateY(2px);
}

.footer-inline-icon .icon-svg {
    width: 17px;
    height: 17px;
}

.footer-social-link--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-social-link--icon:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
}

.footer-social-link--icon .icon-svg {
    width: 18px;
    height: 18px;
}

/* ========== TOPBAR (utility strip) ========== */
.topbar {
    background: var(--site-gradient-primary);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 5%;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-contact a {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
    font-size: 0.78rem;
}

.topbar-contact a:hover {
    color: #ffffff;
}

.topbar-sep {
    opacity: 0.35;
    margin: 0 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-hours {
    opacity: 0.80;
    font-size: 0.76rem;
}

.topbar-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.92;
}

.topbar-icon .icon-svg {
    width: 15px;
    height: 15px;
}

/* ========== HEADER ========== */
.site-header {
    background-color: var(--site-header-bg);
    box-shadow: var(--site-shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    padding: 8px 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.06));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .title {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.15rem;
    color: var(--site-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.15;
}

.logo-text .subtitle {
    font-size: 0.62rem;
    color: var(--site-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-top: 2px;
}

/* ========== NAVIGATION ========== */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.main-nav ul li a {
    display: block;
    padding: 10px 14px;
    color: var(--site-text);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
}

.main-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--site-secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 22px;
}

.main-nav ul li a:hover {
    color: var(--site-primary);
    background: var(--site-primary-soft);
}

.main-nav ul li a.active {
    color: var(--site-primary);
    font-weight: 700;
}

/* ========== NAV DROPDOWN (Ons aanbod) ========== */
.main-nav ul li.has-dropdown {
    position: relative;
}

.main-nav ul li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-nav ul li.has-dropdown .dropdown-caret {
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

.main-nav ul li.has-dropdown:hover .dropdown-caret,
.main-nav ul li.has-dropdown:focus-within .dropdown-caret {
    transform: rotate(180deg);
}

.main-nav ul li.has-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--site-card-bg);
    border: 1px solid var(--site-card-border);
    border-radius: 10px;
    box-shadow: var(--site-shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 50;
}

.main-nav ul li.has-dropdown:hover .dropdown-menu,
.main-nav ul li.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.main-nav ul li.has-dropdown .dropdown-menu li {
    width: 100%;
}

.main-nav ul li.has-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
    white-space: nowrap;
}

.main-nav ul li.has-dropdown .dropdown-menu li a::after {
    display: none;
}

/* RTL: pin dropdown to the right edge of the parent. */
[dir="rtl"] .main-nav ul li.has-dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

/* Header scroll state */
.site-header.scrolled {
    box-shadow: var(--site-shadow-lg);
}

.site-header.scrolled .logo img {
    height: 38px;
}

.site-header.scrolled .header-inner {
    padding-top: 0;
    padding-bottom: 0;
}

/* ========== NAV CTA BUTTON ========== */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--site-gradient-warm);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--site-secondary) 32%, transparent);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--site-secondary) 42%, transparent);
    color: #ffffff !important;
}

.nav-cta-btn.active {
    background: var(--site-primary);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--site-primary) 32%, transparent);
}

/* ========== HAMBURGER MENU ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--site-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ==========
 * Stacked vertical layout: text + buttons sit ABOVE the image on every
 * viewport. The image takes ~80% width on desktop (full width on mobile),
 * centered, with a soft glow + layered shadow.
 *
 * Layered background: warm gradient + subtle dot grid pattern + colour blobs.
 * The image lives in a frame with rounded corners + glow halo. */
.hero.hero--split {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* LAYERED BACKGROUND (top → bottom):
     *  1. Subtle dot-grid pattern (premium, used by editorial/SaaS sites)
     *  2. Warm directional gradient base */
    background:
        radial-gradient(
            circle,
            color-mix(in srgb, var(--site-primary) 18%, transparent) 1.4px,
            transparent 1.6px
        ) 0 0 / 26px 26px,
        linear-gradient(
            160deg,
            var(--site-hero-bg) 0%,
            color-mix(in srgb, var(--site-bg) 88%, var(--site-secondary-soft)) 55%,
            color-mix(in srgb, var(--site-hero-bg) 92%, var(--site-accent-soft)) 100%
        );
    background-attachment: scroll;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(0.75rem, 2.5vw, 1.5rem) clamp(2rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: clamp(2rem, 4vw, 3rem);
}

/* Decorative organic blobs — soften the dot grid and add chromatic depth.
 * Sit ABOVE the dot pattern (z-index: 0) but BELOW the content (z-index: 2). */
.hero.hero--split::before,
.hero.hero--split::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}
.hero.hero--split::before {
    width: clamp(22rem, 48vw, 42rem);
    height: clamp(22rem, 48vw, 42rem);
    top: -14rem;
    inset-inline-end: -10rem;
    background: radial-gradient(circle, var(--site-secondary) 0%, transparent 62%);
    opacity: 0.28;
}
.hero.hero--split::after {
    width: clamp(18rem, 38vw, 32rem);
    height: clamp(18rem, 38vw, 32rem);
    bottom: -10rem;
    inset-inline-start: -7rem;
    background: radial-gradient(circle, var(--site-accent) 0%, transparent 65%);
    opacity: 0.24;
}

/* TEXT PANEL — transparent, sits above background, no dark overlay */
.hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--site-text);
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.1rem;
    color: var(--site-primary);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: none;
}

.hero-content p {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    margin: 0 auto 2rem;
    color: color-mix(in srgb, var(--site-text) 82%, transparent);
    opacity: 1;
    font-weight: 500;
    line-height: 1.6;
    max-width: 46ch;
    text-shadow: none;
}

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

/* MEDIA PANEL — image sits BELOW the text+buttons, takes ~80% width on
 * desktop (full width on mobile), centered, with soft glow + layered shadow. */
.hero-media {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-frame {
    position: relative;
    width: 100%;
    /* 21:9 cinematic — wider, shorter banner shape suits the stacked layout. */
    aspect-ratio: 21 / 9;
    border-radius: clamp(20px, 3vw, 36px);
    overflow: hidden;
    background: var(--site-card-bg);
    box-shadow:
        0 32px 64px -22px color-mix(in srgb, var(--site-primary) 42%, transparent),
        0 16px 32px -10px color-mix(in srgb, var(--site-text) 24%, transparent),
        0 0 0 1px color-mix(in srgb, #ffffff 75%, transparent) inset;
    transform: translateZ(0);
}

/* Glow halo behind the frame — "floating" quality */
.hero-media-frame::before {
    content: "";
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(
            ellipse at 30% 30%,
            color-mix(in srgb, var(--site-secondary) 38%, transparent) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 70% 70%,
            color-mix(in srgb, var(--site-accent) 32%, transparent) 0%,
            transparent 55%
        );
    z-index: -1;
    filter: blur(28px);
    pointer-events: none;
    border-radius: inherit;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Tablet & smaller: keep the wide-banner feel but slightly taller. */
@media (max-width: 900px) {
    .hero-media-frame {
        aspect-ratio: 16 / 9;
    }
}

/* Phone: extra-tight padding; bring the aspect ratio closer to 16/10 so the
 * image doesn't shrink to a sliver on narrow vertical screens. */
@media (max-width: 480px) {
    .hero.hero--split {
        padding: 2rem 0.75rem 1.75rem;
        gap: 1.5rem;
    }
    .hero-media-frame {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }
    .hero-buttons { width: 100%; }
    .hero-buttons .btn { flex: 1 1 auto; min-width: 140px; }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 320px;
    height: 320px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--site-gradient-warm);
    color: var(--site-btn-text);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--site-secondary) 36%, transparent);
}

.btn-primary:hover {
    color: var(--site-btn-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--site-secondary) 46%, transparent);
}

.btn-secondary {
    background-color: var(--site-primary);
    color: #ffffff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--site-primary) 32%, transparent);
}

.btn-secondary:hover {
    background-color: var(--site-link);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--site-primary) 42%, transparent);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--site-btn-bg);
    color: var(--site-btn-bg);
}

.btn-outline:hover {
    background-color: var(--site-btn-bg);
    color: var(--site-btn-text);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--site-primary);
    transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
    padding: 90px 5%;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: "Poppins", serif;
    font-size: 2.5rem;
    color: var(--site-primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--site-text);
    font-size: 1.1rem;
    opacity: 0.75;
    max-width: 65ch;
    margin: 0 auto;
}

.section-title .divider {
    width: 70px;
    height: 4px;
    background: var(--site-gradient-warm);
    margin: 18px auto 0;
    border-radius: 4px;
}

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

/* ========== ABOUT SECTION ========== */
.about-section {
    background-color: var(--site-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    box-shadow: var(--site-shadow-lg);
    position: relative;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--site-radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-text h3 {
    font-family: "Poppins", serif;
    font-size: 2rem;
    color: var(--site-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--site-text);
    opacity: 0.88;
}

/* ========== SERVICES CARDS ========== */
.services-section {
    background: linear-gradient(180deg, var(--site-bg) 0%, var(--site-hero-bg) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--site-card-bg);
    border-radius: var(--site-radius-md);
    padding: 44px 32px;
    text-align: center;
    border: 1px solid var(--site-card-border);
    box-shadow: var(--site-shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--site-gradient-warm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--site-shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--site-secondary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.4s ease;
    color: var(--site-primary);
}

.service-card .icon .icon-svg {
    width: 2.35rem;
    height: 2.35rem;
}

.service-card:hover .icon {
    background: var(--site-gradient-warm);
    transform: scale(1.08);
}

.service-card h3 {
    font-family: "Poppins", serif;
    font-size: 1.4rem;
    color: var(--site-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

.service-card p {
    line-height: 1.7;
    font-size: 0.96rem;
    color: var(--site-text);
    opacity: 0.85;
}

/* ========== FEATURES ========== */
.features-section {
    background-color: var(--site-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--site-radius-md);
    transition: all 0.35s ease;
    background: transparent;
}

.feature-item:hover {
    background: var(--site-card-bg);
    box-shadow: var(--site-shadow-md);
    transform: translateY(-5px);
}

.feature-item .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--site-gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--site-secondary) 36%, transparent);
    transition: transform 0.35s ease;
}

.feature-item .icon .icon-svg {
    width: 2rem;
    height: 2rem;
}

.feature-item:hover .icon {
    transform: rotate(-6deg) scale(1.06);
}

.feature-item h4 {
    font-size: 1.15rem;
    color: var(--site-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.92rem;
    opacity: 0.78;
    line-height: 1.65;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--site-gradient-primary);
    text-align: center;
    padding: 80px 5%;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--site-accent) 0%, transparent 70%);
    opacity: 0.22;
    border-radius: 50%;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--site-secondary) 0%, transparent 70%);
    opacity: 0.22;
    border-radius: 50%;
}

.cta-section h2 {
    font-family: "Poppins", serif;
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    opacity: 0.92;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-section .cta-buttons,
.cta-section .btn {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn:not(.btn-outline-white) {
    background-color: #ffffff;
    color: var(--site-primary);
}

.cta-section .btn:not(.btn-outline-white):hover {
    background-color: var(--site-accent);
    color: var(--site-text);
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: var(--site-footer-bg);
    color: var(--site-footer-text);
    padding: 70px 5% 30px;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--site-gradient-warm);
}

.footer-grid {
    display: grid;
    /* Default: 3 columns (brand + Snelle Links + Contact). Brand gets a wider
       share so its description has room to breathe. */
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* When the optional Registratie & Inspectie column is present, switch to a
   4-column layout so everything still sits side-by-side at desktop width. */
.footer-grid:has(> .footer-section:nth-child(4)) {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-section h3 {
    font-family: "Poppins", serif;
    font-size: 1.2rem;
    margin-bottom: 22px;
    color: var(--site-secondary);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-section p,
.footer-section a {
    color: var(--site-footer-text);
    opacity: 0.82;
    line-height: 1.85;
    font-size: 0.94rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--site-accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 9px;
    transition: padding 0.25s ease;
}

.footer-section ul li:hover {
    padding-left: 6px;
}

/* RTL: hover-slide should push to the LEFT in Arabic, not the right. */
[dir="rtl"] .footer-section ul li:hover {
    padding-left: 0;
    padding-right: 6px;
}

/* Long URL or word inside any footer link wraps cleanly instead of forcing
   the column wider than its track (would otherwise trigger horizontal scroll
   on narrow phones). */
.footer-section a,
.footer-section p,
.footer-section li {
    overflow-wrap: anywhere;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 0.86rem;
    opacity: 0.65;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .main-nav ul li a {
        padding: 10px 10px;
        font-size: 0.78rem;
    }

    .nav-cta-btn {
        padding: 8px 14px;
        font-size: 0.74rem;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-grid,
    .footer-grid:has(> .footer-section:nth-child(4)) {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section {
        padding: 70px 5%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .topbar-hours {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header-inner {
        padding: 10px 4%;
        position: relative;
    }

    .logo img {
        height: 38px;
    }

    .logo-text .title {
        font-size: 1rem;
    }

    .logo-text .subtitle {
        font-size: 0.58rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta-btn {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100dvh;
        background: var(--site-header-bg);
        box-shadow: var(--site-shadow-lg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 70px;
        z-index: 999;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .main-nav.open {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a {
        padding: 14px 24px;
        font-size: 0.92rem;
        border-radius: 0;
        border-bottom: 1px solid var(--site-card-border);
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li a.active {
        background: var(--site-primary-soft);
        border-left: 3px solid var(--site-secondary);
    }

    /* On mobile, flatten the "Ons aanbod" dropdown into static, indented
       sub-items instead of an absolute-positioned popover. */
    .main-nav ul li.has-dropdown .dropdown-caret {
        display: none;
    }

    .main-nav ul li.has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .main-nav ul li.has-dropdown .dropdown-menu li a {
        padding: 12px 24px 12px 44px;
        font-size: 0.86rem;
        opacity: 0.85;
        border-bottom: 1px solid var(--site-card-border);
        border-radius: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }

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

    .hero-content {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 1.85rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-grid:has(> .footer-section:nth-child(4)) {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .section {
        padding: 56px 4%;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 0.98rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 32px 22px;
    }

    .cta-section {
        padding: 56px 5%;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .site-footer {
        padding: 50px 4% 24px;
    }

    .footer-bottom {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 8px 3%;
    }

    .logo img {
        height: 34px;
    }

    .logo-text .title {
        font-size: 0.92rem;
    }

    .logo-text .subtitle {
        font-size: 0.52rem;
        letter-spacing: 1.2px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 11px 24px;
        font-size: 0.78rem;
    }

    .section {
        padding: 40px 3%;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title h2 {
        font-size: 1.45rem;
    }

    .about-image img {
        height: 280px;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 26px 18px;
    }

    .service-card .icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .feature-item {
        padding: 24px 16px;
    }

    .feature-item .icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 40px 4%;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .footer-section h3 {
        font-size: 1.05rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.88rem;
    }
}

/* ============================================================
 * THEME TOGGLE BUTTON (in topbar)
 * ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}
.theme-toggle .theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Light mode shows the moon (click to go dark). Dark mode shows the sun. */
.theme-toggle .theme-toggle-icon--moon { display: inline-flex; }
.theme-toggle .theme-toggle-icon--sun  { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle-icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle-icon--sun  { display: inline-flex; }

/* ============================================================
 * DARK MODE — auto-derived from the brand colors set in admin.
 * Only neutrals (surfaces / text) flip; brand primary/secondary/accent
 * are LIGHTENED so they stay legible on the dark surfaces.
 * Because we reference --brand-* (the raw admin values) there is no
 * circular variable reference — admin colours still drive everything.
 * ============================================================ */
[data-theme="dark"] {
    /* Lighten the brand so it remains legible on dark surfaces. */
    --site-primary:   color-mix(in srgb, var(--brand-primary)   55%, #ffffff);
    --site-secondary: color-mix(in srgb, var(--brand-secondary) 65%, #ffffff);
    --site-accent:    color-mix(in srgb, var(--brand-accent)    85%, #ffffff);

    /* Surfaces */
    --site-bg:          #0F1513;
    --site-text:        #E8EAE6;
    --site-header-bg:   #161D1A;
    --site-hero-bg:     #18221E;
    --site-card-bg:     #172220;
    --site-card-border: #2A3833;
    --site-footer-bg:   #0A0F0E;
    --site-footer-text: #E8EAE6;

    /* Buttons & links pick up the lightened brand */
    --site-btn-bg:      var(--site-primary);
    --site-btn-text:    #0F1513;
    --site-btn-hover:   color-mix(in srgb, var(--brand-primary) 70%, #ffffff);
    --site-link:        var(--site-primary);
}

/* In dark mode the .topbar gradient gets darker for less glare. */
[data-theme="dark"] .topbar {
    background: linear-gradient(135deg, #0A0F0E 0%, #161D1A 100%);
}

/* Card-style sections in dark mode get a subtle ink wash so they
 * read as elevated above the body grid. */
[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .contact-preview-item,
[data-theme="dark"] .quick-link-card {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Hero grid pattern is visible — slightly bolder dots for dark mode. */
[data-theme="dark"] .hero.hero--split {
    background:
        radial-gradient(
            circle,
            color-mix(in srgb, var(--site-primary) 22%, transparent) 1.4px,
            transparent 1.6px
        ) 0 0 / 26px 26px,
        linear-gradient(160deg, var(--site-hero-bg) 0%, var(--site-bg) 100%);
}

/* Frame backdrop in dark mode */
[data-theme="dark"] .hero-media-frame {
    background: var(--site-card-bg);
    box-shadow:
        0 32px 64px -22px rgba(0, 0, 0, 0.6),
        0 16px 32px -10px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Smooth the colour transition when switching themes. */
body, .site-header, .site-footer, .topbar,
.service-card, .testimonial-card, .contact-preview-item, .quick-link-card,
.feature-item, .hero-media-frame, .main-nav {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
