/* ==========================================================================
   1. Basis   2. Titel   3. Carousel   4. Knoppen
   5. Contact-popup   6. Telefoon   7. Overig
   ========================================================================== */

/* 1. Basis ---------------------------------------------------------------- */
:root {
    --ink:       #0b2033;
    --ink-soft:  #56697a;
    --accent:    #16bfa5;
    --accent-dk: #0fa48d;
    --line:      #e3e9ed;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%; /* iOS vergroot tekst anders zelf */
    text-size-adjust: 100%;
}

body {
    zoom: 1.25; /* alles 125% (op telefoon terug naar 100%, zie 5) */
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 56px) clamp(18px, 5vw, 40px);
    background: #fff;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    text-align: center;
    overflow-x: hidden;
}

h1, h2 { margin: 0; line-height: 1.15; font-weight: 800; }
p      { margin: 0; }

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* geen dubbeltik-zoom vertraging */
}

.accent, b { color: var(--accent); }

/* 2. Titel ---------------------------------------------------------------- */
.title {
    font-size: clamp(2rem, 8vw, 3.4rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.subtitle {
    margin-top: 12px;
    font-size: clamp(1rem, 3.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

/* Regel onder de 404-melding. */
.redirect-note {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: clamp(0.92rem, 3.4vw, 0.98rem);
}

/* 3. Carousel ------------------------------------------------------------- */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 24px);
    margin-top: clamp(28px, 6vw, 54px);
}

.carousel-window {
    width: min(410px, 100%);
    min-height: 210px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.slide { display: none; }

.slide.is-active {
    display: block;
    animation: fade 0.3s ease;
}

.slide-head {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    letter-spacing: -0.02em;
}

.slide-body {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: clamp(0.92rem, 3.4vw, 0.98rem);
}

@keyframes fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.arrow-btn {
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

/* 4. Knoppen -------------------------------------------------------------- */
.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(410px, 100%);
    min-height: 48px; /* comfortabel aantikbaar */
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:active { transform: none; }

/* De 404-knop is een link, geen <button>. */
a.btn { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-size: clamp(1.1rem, 4.6vw, 1.4rem);
    letter-spacing: -0.01em;
}

.btn-ghost {
    border-color: var(--accent);
    background: #fff;
    color: var(--ink);
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    text-wrap: balance;
}

.arrow { font-size: 1.05em; }

/* Alleen op apparaten met een echte muis; anders blijft hover na een tik
   "plakken" op de telefoon. */
@media (hover: hover) {
    .btn:hover        { transform: translateY(-2px); }
    .btn-primary:hover { background: var(--accent-dk); }
    .btn-ghost:hover   { background: #f5f8f9; }

    .arrow-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .popup-close:hover { color: var(--ink); }

    .popup-link:hover {
        border-color: var(--accent);
        background: #f5f8f9;
    }
}

/* 5. Contact-popup -------------------------------------------------------- */
.popup {
    position: relative;
    width: min(360px, calc(100vw - 32px));
    padding: 30px 24px 26px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    text-align: center;
    box-shadow: 0 18px 50px rgba(11, 32, 51, 0.25);
}

.popup::backdrop {
    background: rgba(11, 32, 51, 0.55);
}

.popup[open] {
    animation: pop 0.2s ease;
}

@keyframes pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.popup-photo {
    width: 154px;
    height: 154px;
    border-radius: 50%;
    object-fit: cover;
    background: #e6f7f4;
}

.popup-name {
    margin-top: 14px;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.popup-role {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.popup-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.popup-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
    transition: border-color 0.2s, background 0.2s;
}

.popup-link svg {
    flex: none;
    color: var(--accent);
}

/* 6. Telefoon ------------------------------------------------------------- */
@media (max-width: 640px) {
    body {
        zoom: 1; /* 125% is op een klein scherm te groot */
        padding: 28px max(16px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom));
    }

    /* Kaart op volle breedte, pijlen eronder naast elkaar. */
    .carousel {
        flex-wrap: wrap;
        gap: 14px;
    }

    .carousel-window {
        order: -1;
        width: 100%;
        min-height: 0;
        padding: 22px 18px;
    }

    .arrow-btn {
        width: 64px;
        height: 48px;
    }

    .actions { margin-top: 26px; }

    .btn { width: 100%; }

    .popup {
        width: calc(100vw - 24px);
        padding: 26px 18px 22px;
    }

    .popup-link { font-size: 0.9rem; }
}

/* 7. Overig --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, .slide.is-active {
        animation: none !important;
        transition: none !important;
    }
}
