/* ==========================================================================
   EMH Advocatuur – style.css
   ========================================================================== */

/* ---------- Variabelen ---------- */
:root {
    --color-text: #333333;
    --color-accent: #333656;      /* navy uit het logo */
    --color-bg: #ffffff;

    --font-body: "PT Sans", Arial, Helvetica, sans-serif;
    --font-heading: "Antic Slab", Georgia, serif;

    --fs-body: 20px;
    --lh-body: 1.6;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Toegankelijkheid ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Layout ---------- */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px 60px;
    text-align: center;
}

.brand__logo {
    width: 300px;
    margin: 0 auto 20px;
}

/* ---------- Contact ---------- */
.contact {
    font-style: normal;
}

.contact p {
    margin: 0 0 20px;
}

.contact__name {
    font-weight: 400;
}

.contact__sep {
    margin: 0 .2em;
}

.contact a {
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

/* Subtiele onderstreping die van links naar rechts inschuift */
.contact a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.contact a:hover,
.contact a:focus-visible {
    color: var(--color-accent);
}

.contact a:hover::after,
.contact a:focus-visible::after {
    transform: scaleX(1);
}

.contact a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Animaties ---------- */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    animation: fade-up .9s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* Geen animaties voor bezoekers die dat hebben uitgezet */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        animation: none;
    }

    .contact a,
    .contact a::after,
    .skip-link {
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    :root {
        --fs-body: 18px;
    }

    .page {
        padding: 60px 20px 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-body: 16px;
    }

    .page {
        padding: 40px 16px 32px;
    }

    .brand__logo {
        width: 80vw;
        max-width: 300px;
    }

    /* Telefoon en e-mail onder elkaar, scheidingsteken weg */
    .contact__sep {
        display: block;
        height: 0;
        overflow: hidden;
    }
}
