/* Standalone styles for afspraak.html, in the style of the main site (see styles-pro.css) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --btn: rgb(236, 172, 33);
    --btn-hover: rgb(213, 153, 28);
    --ink: #2d2925;
    --muted: #6f675f;
    --border-soft: rgba(60, 45, 20, 0.08);
    --surface-soft: #fffaf1;
    --font-main: "Montserrat", "Roboto", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    color: var(--muted);
    background-color: #2a2521;
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(236, 172, 33, 0.16), rgba(236, 172, 33, 0) 55%),
        radial-gradient(ellipse at 90% 95%, rgba(236, 172, 33, 0.08), rgba(236, 172, 33, 0) 50%);
}

.notice-card {
    width: 100%;
    max-width: 620px;
    padding: clamp(30px, 6vw, 56px);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.notice-logo {
    display: block;
    width: 190px;
    max-width: 55%;
    height: auto;
    margin: 0 auto 22px;
}

/* Title in the same style as the section titles of the site: spaced capitals with thin orange lines */
.notice-card h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 28px;
    color: var(--ink);
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.notice-card h1::before,
.notice-card h1::after {
    content: "";
    flex: 0 1 56px;
    min-width: 12px;
    height: 1px;
    background: #ffbd45;
}

.notice-card p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.75;
}

.notice-signature {
    margin-top: 8px;
    color: var(--ink);
    font-weight: 600;
}

.notice-divider {
    width: 40px;
    height: 3px;
    margin: 28px auto;
    border: 0;
    border-radius: 3px;
    background: #ecac21;
}

.notice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.button.primary {
    background: var(--btn);
    border-color: var(--btn);
    color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
}

.button:focus-visible {
    outline: 2px solid var(--btn-hover);
    outline-offset: 3px;
}

.button:hover .fa-phone {
    animation: phoneRing 0.7s ease-in-out;
    transform-origin: 50% 60%;
}

.button:hover .fa-whatsapp {
    animation: iconPop 0.4s ease;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.home-link i {
    transition: transform 0.25s ease;
}

.home-link:hover,
.home-link:focus-visible {
    color: #b0690a;
}

.home-link:hover i {
    transform: translateX(-4px);
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-18deg); }
    30% { transform: rotate(16deg); }
    45% { transform: rotate(-12deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes iconPop {
    0% { transform: scale(0.6); opacity: 0.4; }
    60% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* The card appears once the fonts are ready, so the text does not jump */
.notice-card {
    opacity: 0;
}

body.fonts-ready .notice-card {
    animation: cardIn 0.5s ease-out both;
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2521;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader img {
    width: 150px;
    max-width: 45%;
    animation: loaderPulse 1.6s ease-in-out infinite;
}

body.fonts-ready #page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    body {
        padding: 20px 14px;
    }

    .notice-card h1 {
        gap: 12px;
        font-size: 16px;
        letter-spacing: 3px;
    }

    .notice-actions .button {
        flex: 1 1 100%;
    }
}

@media (max-width: 380px) {
    .notice-card h1 {
        gap: 10px;
        font-size: 15px;
        letter-spacing: 2px;
    }
}

/* Landscape phones: keep the card compact */
@media (max-height: 520px) and (orientation: landscape) {
    body {
        justify-content: flex-start;
        padding: 16px;
    }

    .notice-logo {
        width: 120px;
        margin-bottom: 12px;
    }

    .notice-card h1 {
        margin-bottom: 16px;
    }

    .notice-divider {
        margin: 18px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-card,
    body.fonts-ready .notice-card {
        animation: none;
        opacity: 1;
    }

    #page-loader img,
    .button:hover .fa-phone,
    .button:hover .fa-whatsapp {
        animation: none;
    }
}
