/************************************************

Site footer (parts/footer-site.php)

Every selector is scoped to .site-footer or .sf-cta with an sf- prefix, so
Foundation and the old footer rules in style.css don't reach it.

*************************************************/

/* colours and the side gutter (--space-x): variables.css */
.site-footer,
.sf-cta {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

/* the theme sets letter-spacing, sizes and colours on generic elements */
.site-footer *,
.sf-cta * {
    letter-spacing: normal;
}

/* the theme sets font-size and colour directly on div/form/a/span; inherit
instead. :where() keeps this at class weight, so the sf- rules below still win */
.site-footer :where(div, form, nav, ul, li, a, span, p),
.sf-cta :where(div, form, ul, li, span, p) {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.sf-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-x);
}

.site-footer ul,
.sf-cta ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.sf-cta a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.sf-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- CONTACTBLOK (optional, Weergave > Footer) ---------- */
.sf-cta {
    background: var(--color-bg);
    padding: 120px 0;
}

.sf-cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    min-height: 400px;
    padding: 56px 64px;
    background: var(--color-olive);
    border-radius: 20px;
    color: var(--color-green);
}

.sf-cta-bg {
    position: absolute;
    right: 60px;
    top: -40px;
    height: 480px;
    width: auto;
    max-width: 100%;
    opacity: .16;
    pointer-events: none;
}

.sf-cta-main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.sf-cta .sf-cta-title {
    max-width: 620px;
    margin: 0;
    font-family: var(--font-serif);
    font-weight: normal;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--color-green);
}

/* the look of the button is .btn.btn--dark (components.css), this is only its place */
.sf-cta .sf-btn {
    align-self: flex-start;
}

.sf-cta-links {
    position: relative;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sf-cta-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    font-size: 15px;
    color: var(--color-green);
    text-decoration: none;
    transition: color .2s ease;
}

.sf-cta-links a svg {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.sf-cta-links a:hover,
.sf-cta-links a:focus-visible {
    color: var(--color-gold-dark);
}

.sf-cta-links a:hover svg,
.sf-cta-links a:focus-visible svg {
    transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
    .sf-cta-links a svg {
        transition: none;
    }

    .sf-cta-links a:hover svg {
        transform: none;
    }
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-green);
    color: var(--color-bg);
}

.site-footer .sf-wrap {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-top: 96px;
    padding-bottom: 72px;
}

.sf-cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.sf-col {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.6;
}

.sf-col--adres {
    width: 244px;
}

.sf-col--news {
    min-width: 240px;
}

.site-footer .sf-logo-link {
    display: block;
    align-self: center;
    margin: -20px 0 8px;
    transition: opacity .2s ease;
}

.site-footer .sf-logo-link:hover {
    opacity: .8;
}

.site-footer .sf-logo {
    display: block;
    width: 200px;
    height: auto;
}

.site-footer .sf-title {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-gold);
    font-family: var(--font-serif);
    font-weight: normal;
    font-size: 22px;
    line-height: 1.6;
    letter-spacing: -.3px;
    text-transform: none;
    color: var(--color-gold);
}

.site-footer .sf-title--socials {
    margin-top: 36px;
    margin-bottom: 16px;
}

.site-footer .sf-col--news .sf-title:first-child {
    margin-bottom: 16px;
}

/* socials without the newsletter above them */
.site-footer .sf-col--news .sf-title--socials:first-child {
    margin-top: 0;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-bg);
}

.sf-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    line-height: 1.25;
}

.site-footer a {
    color: var(--color-bg);
    text-decoration: none;
    /* keeps the .u-underline animation, this rule outweighs components.css */
    transition: color .2s ease, background-size .35s ease;
}

.site-footer .sf-links li {
    font-size: 14px;
    line-height: 1.25;
}

/* inline, so the underline follows the text when a link wraps */
.site-footer .sf-links a {
    display: inline;
    font-size: 14px;
    line-height: 1.25;
}

.site-footer a:hover {
    color: var(--color-gold);
}

/* the animated underline on the menu and legal links is .u-underline (components.css) */

/* newsletter */
.sf-news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    margin: 0;
    padding: 0 6px 0 20px;
    border: 1px solid var(--color-line-on-dark);
    border-radius: 999px;
    transition: border-color .2s ease;
}

.sf-news:focus-within {
    border-color: var(--color-gold);
}

.sf-hp {
    position: absolute;
    left: -5000px;
}

.site-footer .sf-news input[type="email"] {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 1px 2px;
    line-height: normal;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-bg);
}

.site-footer .sf-news input[type="email"]::placeholder {
    color: rgba(239, 239, 227, .55);
    opacity: 1;
    transition: color .2s ease;
}

.site-footer .sf-news input[type="email"]:focus::placeholder {
    color: rgba(239, 239, 227, .3);
}

.site-footer .sf-news-msg {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer .sf-news-msg.is-error {
    color: #f2b8b5;
}

/* socials */
.sf-socials {
    display: flex;
    gap: 10px;
}

.sf-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-line-on-dark);
    border-radius: 50%;
    transition: border-color .2s ease, color .2s ease;
}

.sf-socials a:hover {
    border-color: var(--color-gold);
}

/* bottom bar */
.sf-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--color-line-on-dark-strong);
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-muted-on-dark);
}

.site-footer .sf-bottom p,
.site-footer .sf-bottom a {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-muted-on-dark);
}

.site-footer .sf-bottom a {
    display: inline;
}

.site-footer .sf-bottom a:hover {
    color: var(--color-gold);
}

.sf-legal {
    display: flex;
    gap: 30px;
}

/* ================= BREAKPOINTS ================= */

@media (min-width: 1680px) {
    .sf-wrap {
        max-width: 1600px;
    }
}

@media (min-width: 2200px) {
    .sf-wrap {
        max-width: 1840px;
    }

    .sf-cta .sf-cta-title {
        font-size: 60px;
    }
}

@media (max-width: 1280px) {
    .sf-cta {
        padding: 104px 0;
    }

    .sf-cols {
        flex-wrap: wrap;
        row-gap: 48px;
    }
}

@media (max-width: 1100px) {
    .sf-col {
        flex: 1 1 200px;
    }

    .sf-col--adres {
        align-items: flex-start;
    }

    .site-footer .sf-logo-link {
        align-self: flex-start;
        margin: 0 0 24px;
    }
}

@media (max-width: 820px) {
    .sf-cta {
        padding: 80px 0;
    }

    .sf-cta-box {
        flex-direction: column;
        padding: 40px;
    }

    .sf-cta .sf-cta-title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .sf-cta-links {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .sf-cta {
        padding: 32px 0 64px;
    }

    .sf-cta-box {
        min-height: auto;
        gap: 28px;
        padding: 32px 24px;
        border-radius: 16px;
    }

    .sf-cta-bg {
        right: -30px;
        top: -20px;
        height: 300px;
        opacity: .14;
    }

    .sf-cta .sf-cta-title {
        font-size: 30px;
        line-height: 1.1;
    }

    .sf-cta .sf-btn {
        align-self: stretch;
        justify-content: center;
        padding: 18px 24px;
    }

    .sf-cta-links {
        gap: 4px;
    }

    .sf-cta-links a {
        min-height: 44px;
    }

    .site-footer .sf-wrap {
        gap: 40px;
        padding-top: 56px;
        padding-bottom: 32px;
    }

    .sf-cols {
        flex-direction: column;
        gap: 40px;
    }

    .sf-col {
        flex: none;
        width: 100%;
    }

    .site-footer .sf-logo-link {
        margin-bottom: 16px;
    }

    .site-footer .sf-logo {
        width: 160px;
    }

    .sf-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 24px;
    }

    .sf-legal {
        gap: 24px;
    }
}
