/* ==========================================================================
   Narcose Tandarts Almere — site footer

   White, so the page ends light instead of dropping into a dark slab. The
   visit panel comes first because an address and a map are what people open a
   footer for; the link columns sit underneath in a quieter register.
   ========================================================================== */

.nta-footer {
    position: relative;
    background: var(--nta-white);
    color: var(--nta-body);
    border-top: 1px solid var(--nta-line-soft);
    overflow: hidden;
}

/* One soft turquoise bloom, low and wide, so the white does not read as flat. */
.nta-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -420px;
    width: min(1100px, 120%);
    height: 620px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(82, 190, 200, .14), rgba(82, 190, 200, 0) 68%);
    pointer-events: none;
}

.nta-footer > .nta-shell {
    position: relative;
    z-index: 2;
}

.nta-footer a {
    text-decoration: none;
}

.nta-footer a:hover {
    color: var(--nta-primary);
}

/* ------------------------------------------------------- Visit panel ----- */

.nta-footer__visit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(28px, 3.4vw, 56px);
    align-items: stretch;
    margin-top: clamp(52px, 6vw, 88px);
    padding: clamp(28px, 3.2vw, 46px);
    border: 1px solid var(--nta-line);
    border-radius: var(--nta-radius-xl);
    background: linear-gradient(168deg, var(--nta-teal-50), var(--nta-white) 62%);
    box-shadow: var(--nta-shadow-sm);
}

.nta-footer__visit-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nta-footer__visit-title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
    line-height: 1.16;
    letter-spacing: -.01em;
}

.nta-footer__visit-title span {
    color: var(--nta-primary);
}

.nta-footer__visit-text {
    max-width: 46ch;
    margin: 0 0 26px;
    font-size: .9375rem;
    line-height: 1.72;
}

.nta-footer__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.nta-footer__facts li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.nta-footer__fact-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--nta-white);
    border: 1px solid var(--nta-teal-100);
    color: var(--nta-primary);
}

.nta-footer__facts small {
    display: block;
    margin-bottom: 2px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nta-muted);
}

/* The e-mail address is longer than half a column and would break mid word. */
.nta-footer__fact--wide {
    grid-column: 1 / -1;
}

.nta-footer__facts strong,
.nta-footer__facts a {
    font-family: var(--nta-font-head);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--nta-ink);
    overflow-wrap: anywhere;
}

.nta-footer__facts a:hover {
    color: var(--nta-primary);
}

.nta-footer__visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

/* ------------------------------------------------------------- Map ------- */

.nta-footer__map {
    position: relative;
    min-height: clamp(280px, 26vw, 380px);
    border-radius: var(--nta-radius-lg);
    overflow: hidden;
    background: var(--nta-teal-100);
    box-shadow: var(--nta-shadow-md);
}

.nta-footer__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* The default map is loud next to a soft palette; this calms it down and
       returns to full colour when the visitor engages with it. */
    filter: saturate(.75) contrast(.96);
    transition: filter .5s var(--nta-ease);
}

.nta-footer__map:hover iframe,
.nta-footer__map:focus-within iframe {
    filter: none;
}

.nta-footer__map-link {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--nta-shadow-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--nta-ink) !important;
    transition: transform .3s var(--nta-ease-out), box-shadow .3s var(--nta-ease);
}

.nta-footer__map-link svg {
    color: var(--nta-primary);
}

.nta-footer__map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--nta-shadow-md);
}

/* ------------------------------------------------ Brand and link columns - */

.nta-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 3.6vw, 60px);
    padding-block: clamp(44px, 5vw, 76px) clamp(32px, 3.4vw, 52px);
}

/* The footer column has more room than the header bar, so the lockup runs
   larger here. */
.nta-footer__brand .nta-logo__art--lockup {
    height: 64px;
}

.nta-footer__about {
    max-width: 42ch;
    margin: 22px 0 0;
    font-size: .9375rem;
    line-height: 1.72;
    color: var(--nta-body);
}

/* Four labelled pills never fit on one line in this column, and 3 + 1 reads
   like an accident. A two by two grid is deliberate. */
.nta-footer__social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 340px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.nta-footer__social a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 10px 13px;
    border: 1px solid var(--nta-line);
    border-radius: 999px;
    background: var(--nta-white);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--nta-ink-soft);
    transition: background-color .3s var(--nta-ease), border-color .3s var(--nta-ease),
                color .3s var(--nta-ease), transform .3s var(--nta-ease-out);
}

.nta-footer__social svg {
    color: var(--nta-primary);
    transition: color .3s var(--nta-ease);
}

.nta-footer__social a:hover {
    background: var(--nta-primary);
    border-color: var(--nta-primary);
    color: var(--nta-white);
    transform: translateY(-2px);
}

.nta-footer__social a:hover svg {
    color: var(--nta-white);
}

.nta-footer__title {
    margin: 0 0 18px;
    font-family: var(--nta-font-body);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nta-muted);
}

.nta-footer__list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .9375rem;
}

/* A rule that grows from nothing on hover, the same gesture as the jump nav
   in the article sections. */
.nta-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: gap .3s var(--nta-ease), color .3s var(--nta-ease);
}

.nta-footer__list a::before {
    content: "";
    width: 0;
    height: 1.5px;
    border-radius: 2px;
    background: var(--nta-primary);
    transition: width .3s var(--nta-ease);
}

.nta-footer__list a:hover {
    gap: 8px;
}

.nta-footer__list a:hover::before {
    width: 12px;
}

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

.nta-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 32px;
    padding-block: 24px;
    border-top: 1px solid var(--nta-line-soft);
    font-size: .8125rem;
    color: var(--nta-muted);
}

.nta-footer__copy em {
    font-style: normal;
    color: var(--nta-muted);
}

.nta-footer__copy em::before {
    content: "\00b7";
    margin: 0 8px;
    opacity: .6;
}

.nta-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nta-footer__legal a {
    color: var(--nta-muted);
}

.nta-footer__credit {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-inline-start: auto;
    color: var(--nta-muted) !important;
}

.nta-footer__credit strong {
    font-weight: 600;
    color: var(--nta-ink-soft);
    transition: color .3s var(--nta-ease);
}

.nta-footer__credit:hover strong {
    color: var(--nta-primary);
}

/* ==========================================================================
   Docked action bar — global, revealed past the hero, collapsible
   ========================================================================== */

/* The wrapper spans the viewport but never intercepts clicks; only the bar
   and the handle inside it do. */
.nta-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    display: flex;
    justify-content: center;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.nta-dock__bar,
.nta-dock__handle {
    pointer-events: auto;
    /* Both states start out of view; JS reveals them past the hero. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(140%);
    transition:
        transform .5s var(--nta-ease-out),
        opacity .3s var(--nta-ease),
        visibility 0s linear .5s;
}

.nta-dock.is-visible:not(.is-collapsed) .nta-dock__bar,
.nta-dock.is-visible.is-collapsed .nta-dock__handle {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s, 0s, 0s;
}

/* --------------------------------------------------------------- The bar - */

.nta-dock__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(1180px, 100%);
    padding: 12px 12px 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 24px 60px rgba(6, 50, 59, .18),
        0 2px 6px rgba(6, 50, 59, .06),
        inset 0 0 0 1px rgba(255, 255, 255, .7);
}

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

.nta-dock__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    color: var(--nta-ink);
    text-decoration: none;
}

.nta-dock__brand .nta-logo__art--mark {
    height: 34px;
}

.nta-dock__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nta-dock__brand-text strong {
    font-family: var(--nta-font-head);
    font-size: .9375rem;
    font-weight: 600;
}

.nta-dock__brand-text em {
    font-style: normal;
    color: var(--nta-primary);
}

.nta-dock__brand-text small {
    font-size: .625rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nta-muted);
}

/* Phone -------------------------------------------------------------------- */

.nta-dock__call {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    margin-inline-start: auto;
    padding-inline-start: 20px;
    border-inline-start: 1px solid var(--nta-line);
    color: var(--nta-ink);
    text-decoration: none;
}

.nta-dock__call-ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--nta-teal-50);
    color: var(--nta-primary);
    transition: background .3s var(--nta-ease), color .3s var(--nta-ease);
}

.nta-dock__call:hover .nta-dock__call-ico {
    background: var(--nta-primary);
    color: var(--nta-white);
}

.nta-dock__call-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nta-dock__call-text small {
    font-size: .6875rem;
    color: var(--nta-muted);
}

.nta-dock__call-text strong {
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* Actions ------------------------------------------------------------------ */

.nta-dock__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.nta-dock__wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding-inline: 18px;
    border-radius: 999px;
    background: var(--nta-teal-50);
    color: var(--nta-teal-800);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s var(--nta-ease), transform .3s var(--nta-ease);
}

.nta-dock__wa:hover {
    background: var(--nta-teal-100);
    transform: translateY(-1px);
}

.nta-dock__book {
    height: 46px;
    white-space: nowrap;
}

/* Collapse control --------------------------------------------------------- */

.nta-dock__toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    padding: 0;
    border: 1px solid var(--nta-line);
    border-radius: 50%;
    background: var(--nta-white);
    color: var(--nta-muted);
    cursor: pointer;
    transition: color .3s var(--nta-ease), border-color .3s var(--nta-ease);
}

.nta-dock__toggle:hover {
    color: var(--nta-primary);
    border-color: var(--nta-teal-200);
}

/* Collapsed handle --------------------------------------------------------- */

.nta-dock__handle {
    position: absolute;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0 18px 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 18px 44px rgba(6, 50, 59, .2),
        inset 0 0 0 1px rgba(255, 255, 255, .7);
    color: var(--nta-ink);
    font-family: var(--nta-font-head);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
}

.nta-dock__handle .nta-logo__art--mark {
    height: 30px;
}

/* Chevron points up on the handle: it opens the bar again. */
.nta-dock__handle > svg:last-child {
    color: var(--nta-primary);
    transform: rotate(180deg);
}

/* Focus -------------------------------------------------------------------- */

.nta-dock a:focus-visible,
.nta-dock button:focus-visible {
    outline: 2px solid var(--nta-primary);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .nta-footer__visit {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The map leads on narrow screens: on a phone the route matters more than
       the address block that repeats what the contact page already says. */
    .nta-footer__map {
        order: -1;
        min-height: 260px;
    }

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

    .nta-footer__brand {
        grid-column: 1 / -1;
    }

    /* Below the desktop breakpoint the bar drops the brand block and the
       phone label, so the actions keep their full width. */
    .nta-dock__brand-text,
    .nta-dock__call-text small {
        display: none;
    }

    .nta-dock__call {
        margin-inline-start: auto;
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@media (max-width: 620px) {
    .nta-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

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

    .nta-footer__visit {
        padding: 20px;
    }

    .nta-footer__visit-actions .nta-btn {
        width: 100%;
    }

    .nta-footer__bottom {
        justify-content: flex-start;
    }

    .nta-footer__credit {
        margin-inline-start: 0;
    }

    /* Phone-sized: the bar keeps only the three tap targets, the two contact
       options as icons and the appointment button carrying the label. */
    .nta-dock {
        padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    }

    .nta-dock__bar {
        gap: 8px;
        padding: 9px 9px 9px 12px;
    }

    .nta-dock__brand {
        display: none;
    }

    .nta-dock__wa span {
        display: none;
    }

    .nta-dock__wa {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .nta-dock__call-ico {
        width: 44px;
        height: 44px;
    }

    .nta-dock__call {
        margin-inline-start: 0;
    }

    .nta-dock__actions {
        flex: 1;
        justify-content: flex-end;
    }

    .nta-dock__book {
        flex: 1;
        height: 44px;
        justify-content: center;
        padding-inline: 14px;
        font-size: .875rem;
    }

    .nta-dock__toggle {
        width: 32px;
        height: 32px;
    }

    .nta-dock__handle {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .nta-dock__bar,
    .nta-dock__handle,
    .nta-dock__wa,
    .nta-dock__call-ico {
        transition-duration: .01ms;
        transform: none;
    }

    .nta-dock.is-visible:not(.is-collapsed) .nta-dock__bar,
    .nta-dock.is-visible.is-collapsed .nta-dock__handle {
        transform: none;
    }
}
