/* ==========================================================================
   pds-footer — site footer

   Plain white, no tint and no oversized wordmark: the page already closes on
   the dark CTA panel, so the footer stays quiet underneath it. Three bands —
   brand + links + contact, the vestiging panel with the Google Maps embed,
   and the fine print.
   ========================================================================== */

.pds-foot {
    position: relative;
    background: var(--pds-paper);
    color: var(--pds-body);
    /* A single hairline is all the separation this needs on white. */
    border-block-start: 1px solid var(--pds-line);
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.pds-foot__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 4.5vw, 4rem);
}

/* --- Top: brand | nav | contact --------------------------------------------- */

.pds-foot__top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: clamp(2.25rem, 3.4vw, 4rem);
}

/* --- Brand ------------------------------------------------------------------- */

.pds-foot__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.125rem;
}

.pds-foot__ident {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.pds-foot__mark {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 3rem;
    block-size: 3rem;
    border-radius: 14px;
    background: var(--pds-purple-wash);
    color: var(--pds-purple);
}

.pds-foot__mark svg {
    inline-size: 2.125rem;
    block-size: 2.125rem;
    display: block;
}

.pds-foot__logo {
    display: block;
    block-size: clamp(2.5rem, 3.4vw, 3rem);
    inline-size: auto;
    max-inline-size: 100%;
}

.pds .pds-foot__formerly {
    margin: -.25rem 0 0;
    font-size: var(--pds-fs-small);
    font-style: italic;
    color: var(--pds-muted);
}

.pds .pds-foot__name {
    font-family: var(--pds-display);
    font-size: 1.4375rem;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--pds-title);
}

.pds .pds-foot__tagline {
    max-inline-size: 34ch;
    font-size: var(--pds-fs-small);
    line-height: 1.6;
    color: var(--pds-body);
}

.pds .pds-foot__badge {
    /* .pds p sets font-size: inherit, which would otherwise beat .pds__pill. */
    font-size: var(--pds-fs-eyebrow);
    white-space: normal;
    text-align: start;
    line-height: 1.35;
}

/* --- Socials ------------------------------------------------------------------ */

.pds-foot__social {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-block-start: .25rem;
}

.pds-foot__social ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pds-foot__social a {
    display: grid;
    place-items: center;
    inline-size: 2.625rem;
    block-size: 2.625rem;
    border: 1px solid var(--pds-line);
    border-radius: 50%;
    background: var(--pds-paper);
    color: var(--pds-title);
    text-decoration: none;
    transition: background-color .3s var(--pds-ease), border-color .3s var(--pds-ease),
                color .3s var(--pds-ease), transform .3s var(--pds-ease), box-shadow .3s var(--pds-ease);
}

.pds-foot__social a:hover {
    background: var(--pds-purple);
    border-color: var(--pds-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(106, 36, 140, .24);
}

.pds-foot__social svg {
    display: block;
}

/* --- Nav ---------------------------------------------------------------------- */

.pds-foot__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    align-content: start;
    gap: 2rem 1.75rem;
}

.pds-foot__col-title {
    font-family: var(--pds-text);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pds-muted);
    margin: 0;
}

.pds-foot__col .pds-foot__col-title {
    margin-block-end: 1rem;
}

.pds-foot__col ul {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pds-foot__col a {
    display: inline-block;
    font-size: var(--pds-fs-small);
    color: var(--pds-body);
    text-decoration: none;
    transition: color .3s var(--pds-ease);
}

/* An underline that wipes in from the left rather than simply appearing. */
.pds-foot__col a span {
    display: inline-block;
    background-image: linear-gradient(var(--pds-purple), var(--pds-purple));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left 100%;
    padding-block-end: 2px;
    transition: background-size .4s var(--pds-ease-out);
}

.pds-foot__col a:hover {
    color: var(--pds-purple);
}

.pds-foot__col a:hover span {
    background-size: 100% 1.5px;
}

/* --- Contact -------------------------------------------------------------------
   Flat on the paper — a hairline sets it apart instead of a filled card, so the
   footer keeps one single white ground. */

.pds-foot__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .875rem;
}

.pds .pds-foot__contact-text {
    max-inline-size: 30ch;
    font-size: var(--pds-fs-small);
    line-height: 1.55;
    color: var(--pds-body);
}

.pds-foot__reach {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
    inline-size: 100%;
}

.pds-foot__reach a {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-family: var(--pds-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--pds-title);
    text-decoration: none;
    transition: color .3s var(--pds-ease);
}

.pds-foot__reach a:hover {
    color: var(--pds-purple);
}

.pds-foot__reach-icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: 50%;
    background: var(--pds-purple-wash);
    color: var(--pds-purple);
    transition: background-color .35s var(--pds-ease), color .35s var(--pds-ease);
}

.pds-foot__reach a:hover .pds-foot__reach-icon {
    background: var(--pds-purple);
    color: #fff;
}

.pds-foot__cta {
    margin-block-start: .375rem;
}

/* --- Vestiging panel + map -------------------------------------------------------
   One outlined panel that the map fills edge to edge on its own half, so the
   Google Maps embed reads as part of the footer rather than a widget dropped
   into a card. */

.pds-foot__visit {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    border: 1px solid var(--pds-line);
    border-radius: var(--pds-r-lg);
    overflow: hidden;
    background: var(--pds-paper);
}

/* Without a map the panel is text only, so it should not stretch to two tracks. */
.pds-foot__visit--flat {
    grid-template-columns: minmax(0, 1fr);
}

.pds-foot__visit-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Centred, so a short vestiging (no address yet) does not leave the panel
       looking top-heavy against a full-height map. */
    justify-content: center;
    gap: 1.25rem;
    padding: clamp(1.5rem, 2.6vw, 2.5rem);
}

.pds .pds-foot__visit-text {
    max-inline-size: 42ch;
    /* Pulls the intro up under its kop; the flex gap is sized for the facts. */
    margin-block-start: -.5rem;
    font-size: var(--pds-fs-small);
    line-height: 1.6;
    color: var(--pds-body);
}

.pds-foot__fact {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: var(--pds-fs-small);
    line-height: 1.55;
}

.pds-foot__fact-icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 1.875rem;
    block-size: 1.875rem;
    border-radius: 10px;
    background: var(--pds-purple-wash);
    color: var(--pds-purple);
}

.pds-foot__address {
    font-style: normal;
    color: var(--pds-title);
}

/* Facts that carry a kop above their tekst — the openingstijden use their own
   body below, these are the free-form extra regels. */
.pds-foot__fact-body {
    inline-size: 100%;
    min-inline-size: 0;
}

.pds .pds-foot__fact-text {
    max-inline-size: 34ch;
    font-size: var(--pds-fs-small);
    line-height: 1.55;
    color: var(--pds-muted);
}

.pds-foot__hours-body {
    inline-size: 100%;
    min-inline-size: 0;
}

.pds .pds-foot__fact-title {
    font-size: var(--pds-fs-small);
    font-weight: 600;
    color: var(--pds-title);
    margin-block-end: .375rem;
}

.pds-foot__hours {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-inline-size: 20rem;
}

.pds-foot__hours li {
    display: flex;
    align-items: baseline;
    gap: .625rem;
    color: var(--pds-muted);
}

.pds-foot__hours-day {
    white-space: nowrap;
}

.pds-foot__hours-time {
    color: var(--pds-title);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pds-foot__route {
    margin-block-start: .25rem;
    padding-block: .8125rem;
    padding-inline: 1.25rem;
}

.pds-foot__route svg {
    color: var(--pds-purple);
    transition: color .3s var(--pds-ease);
}

/* Kenmerken close the panel: a hairline keeps them clearly separate from the
   address block above without adding a second card. */
.pds-foot__visit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    inline-size: 100%;
    margin: 0;
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--pds-line);
    list-style: none;
}

.pds-foot__visit-pills .pds__pill {
    max-inline-size: 100%;
    white-space: normal;
}

.pds-foot__route:hover svg {
    color: inherit;
}

/* Desaturated at rest so the panel reads as part of the page, full colour on
   hover for anyone actually using it. */
.pds-foot__map {
    position: relative;
    min-block-size: 19rem;
    background: var(--pds-bone-deep);
    /* The map is the only non-white surface here, so it keeps the panel's
       rounded corner on its own side rather than sitting in a second box. */
    border-inline-start: 1px solid var(--pds-line);
}

.pds-foot__map iframe {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    border: 0;
    display: block;
    filter: grayscale(.5) contrast(1.03);
    transition: filter .45s var(--pds-ease);
}

.pds-foot__map:hover iframe,
.pds-foot__map:focus-within iframe {
    filter: none;
}

/* Editor-only nudge when there is nothing to map yet. */
.pds .pds-foot__map-hint {
    inline-size: 100%;
    padding: .875rem 1rem;
    border: 1px dashed var(--pds-line);
    border-radius: var(--pds-r);
    font-size: var(--pds-fs-small);
    line-height: 1.5;
    color: var(--pds-muted);
}

/* --- Bottom ------------------------------------------------------------------------ */

.pds-foot__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-block-start: clamp(1.25rem, 2.5vw, 2rem);
    border-block-start: 1px solid var(--pds-line);
    font-size: var(--pds-fs-eyebrow);
    color: var(--pds-muted);
}

.pds .pds-foot__copy {
    font-size: var(--pds-fs-eyebrow);
}

/* Agency credit — sits with the copyright line, separated by a hairline dot. */
.pds-foot__credit {
    white-space: nowrap;
}

.pds-foot__credit::before {
    content: "\2022";
    margin-inline: .5rem;
    color: var(--pds-line);
}

.pds-foot__credit a {
    color: var(--pds-muted);
    text-decoration: none;
    transition: color .3s var(--pds-ease);
}

.pds-foot__credit a:hover {
    color: var(--pds-purple);
}

.pds-foot__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pds-foot__legal a {
    color: var(--pds-muted);
    text-decoration: none;
    transition: color .3s var(--pds-ease);
}

.pds-foot__legal a:hover {
    color: var(--pds-purple);
}

.pds-foot__top-link {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    font-size: var(--pds-fs-eyebrow);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pds-title);
    text-decoration: none;
    transition: color .3s var(--pds-ease);
}

.pds-foot__top-link:hover {
    color: var(--pds-purple);
}

.pds-foot__top-icon {
    display: grid;
    place-items: center;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border: 1px solid var(--pds-line);
    border-radius: 50%;
    /* The icon set has no "up" arrow: this is the down one, turned. */
    transform: rotate(180deg);
    transition: background-color .35s var(--pds-ease), border-color .35s var(--pds-ease),
                color .35s var(--pds-ease), transform .4s var(--pds-ease-out);
}

.pds-foot__top-link:hover .pds-foot__top-icon {
    background: var(--pds-purple);
    border-color: var(--pds-purple);
    color: #fff;
    transform: rotate(180deg) translateY(3px);
}

/* --- Responsive ---------------------------------------------------------------------- */

@media (min-width: 1200px) {

    /* A hairline instead of a filled card keeps the contact column distinct
       without breaking the single white ground. */
    .pds-foot__contact {
        padding-inline-start: clamp(1.5rem, 2.5vw, 2.75rem);
        border-inline-start: 1px solid var(--pds-line);
    }
}

@media (max-width: 1199px) {

    .pds-foot__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pds-foot__contact {
        align-self: start;
    }
}

@media (max-width: 899px) {

    .pds-foot__visit,
    .pds-foot__visit--flat {
        grid-template-columns: minmax(0, 1fr);
    }

    .pds-foot__map {
        min-block-size: 0;
        aspect-ratio: 16 / 10;
        border-inline-start: 0;
        border-block-start: 1px solid var(--pds-line);
    }
}

@media (max-width: 767px) {

    .pds-foot__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .pds-foot__nav {
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    }
}

@media (max-width: 599px) {

    .pds-foot__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .pds-foot__credit {
        display: block;
        white-space: normal;
    }

    .pds-foot__credit::before {
        content: none;
    }

    .pds-foot__map {
        aspect-ratio: 4 / 3;
    }
}
