/* ==========================================================================
   Narcose Tandarts Almere — site header, mega menu and mobile navigation
   ========================================================================== */

/* The header scrolls away with the page; the conversion path is taken over
   by the docked action bar at the bottom (see footer.css). */
.nta-header {
    position: relative;
    z-index: 900;
    width: 100%;
    background: var(--nta-white);
}

/* --------------------------------------------------------------- Top bar - */

/* White band, flush right: USPs first, phone and e-mail furthest right. */
.nta-topbar {
    background: var(--nta-white);
    color: var(--nta-body);
    font-size: .8125rem;
    line-height: 1.4;
    transition: height .4s var(--nta-ease), opacity .3s var(--nta-ease);
    overflow: hidden;
}

.nta-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    min-height: 44px;
    padding-block: 9px;
}

.nta-topbar__contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Hairline divider between the USPs and the contact details. */
.nta-topbar__contact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--nta-line);
}


.nta-topbar__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nta-ink-soft);
    font-weight: 600;
    white-space: nowrap;
}

.nta-topbar__contact a:hover {
    color: var(--nta-teal-700);
}

.nta-topbar__contact svg {
    color: var(--nta-teal-600);
    flex: none;
}

.nta-usps {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    text-align: right;
}

.nta-usps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--nta-body);
    font-weight: 500;
}

.nta-usps svg {
    color: var(--nta-teal-500);
    flex: none;
}

/* ------------------------------------------------------------- Main bar -- */

.nta-bar {
    position: relative;
    z-index: 2;
    background: var(--nta-white);
    transition: box-shadow .35s var(--nta-ease);
}

.nta-bar__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 88px;
    transition: min-height .35s var(--nta-ease);
}

/* ---------------------------------------------------------------- Logo --- */

/* The artwork is inlined by nta_logo() so it can be recoloured per surface:
   the white lockup on a dark surface, the full colour one on a light surface.
   The aspect ratio is fixed by the viewBox, so only the height is set here. */

.nta-logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    line-height: 1;
}

.nta-logo__art {
    display: block;
    width: auto;
    flex: none;
    transition: transform .5s var(--nta-ease-out);
}

.nta-logo__art--lockup {
    /* Sized off the bar it sits in: 88px in the header, 74px in the drawer. */
    height: 56px;
}

.nta-logo__art--mark {
    height: 44px;
}

.nta-logo:hover .nta-logo__art--lockup {
    transform: scale(1.03);
}

.nta-logo:hover .nta-logo__art--mark {
    transform: rotate(-6deg) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .nta-logo__art {
        transition: none;
    }

    .nta-logo:hover .nta-logo__art {
        transform: none;
    }
}

/* ------------------------------------------------------------ Desktop nav */

.nta-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nta-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nta-nav__item {
    position: relative;
}

/* Mega items stay static so the panel below can span the full header width. */
.nta-nav__item[data-nta-mega-item] {
    position: static;
}

.nta-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--nta-ink-soft);
    white-space: nowrap;
    transition: color .25s var(--nta-ease), background-color .25s var(--nta-ease);
}

.nta-nav__link:hover,
.nta-nav__item.is-open > .nta-nav__link,
.nta-nav__item.is-current > .nta-nav__link {
    color: var(--nta-teal-700);
    background: var(--nta-teal-50);
}

.nta-nav__link .nta-caret {
    flex: none;
    transition: transform .3s var(--nta-ease);
}

.nta-nav__item.is-open > .nta-nav__link .nta-caret {
    transform: rotate(180deg);
}

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

/* --------------------------------------------------------- Mega menu ----- */

.nta-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--nta-white);
    border-bottom: 1px solid var(--nta-line);
    box-shadow: 0 30px 60px rgba(6, 50, 59, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--nta-ease), transform .35s var(--nta-ease-out), visibility .35s;
}

.nta-nav__item.is-open .nta-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nta-mega__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 56px);
    padding-block: 40px 44px;
}

.nta-mega__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nta-line-soft);
}

.nta-mega__label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nta-muted);
}

.nta-mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
}

.nta-mega__card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--nta-radius);
    border: 1px solid transparent;
    transition: background-color .3s var(--nta-ease), border-color .3s var(--nta-ease), transform .3s var(--nta-ease);
}

.nta-mega__card:hover {
    background: var(--nta-teal-50);
    border-color: var(--nta-teal-100);
    transform: translateY(-2px);
}

.nta-mega__card .nta-ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--nta-teal-100);
}

.nta-mega__card:hover .nta-ico {
    background: var(--nta-teal-600);
    color: var(--nta-white);
}

.nta-mega__card-title {
    display: block;
    font-family: var(--nta-font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--nta-ink);
    line-height: 1.25;
    margin-bottom: 4px;
}

.nta-mega__card-desc {
    display: block;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--nta-body);
}

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

.nta-mega__usps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--nta-ink-soft);
}

.nta-mega__usps svg {
    color: var(--nta-teal-500);
    flex: none;
}

.nta-mega__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    padding: 26px;
    border-radius: var(--nta-radius-lg);
    overflow: hidden;
    isolation: isolate;
    color: var(--nta-white);
}

.nta-mega__feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s var(--nta-ease-out);
}

.nta-mega__feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(190deg, rgba(6, 50, 59, .15) 10%, rgba(6, 50, 59, .88) 88%);
}

.nta-mega__feature:hover img {
    transform: scale(1.05);
}

.nta-mega__feature h4 {
    color: var(--nta-white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.nta-mega__feature p {
    font-size: .875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 18px;
}

/* ------------------------------------------------------- Mobile toggle --- */

.nta-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-radius: 14px;
    border: 1px solid var(--nta-line);
    background: var(--nta-white);
    color: var(--nta-teal-800);
    flex: none;
    transition: background-color .3s var(--nta-ease), border-color .3s var(--nta-ease);
}

.nta-burger:hover {
    background: var(--nta-teal-50);
    border-color: var(--nta-teal-200);
}

.nta-burger__box {
    position: relative;
    width: 20px;
    height: 14px;
}

.nta-burger__box span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .35s var(--nta-ease), opacity .2s var(--nta-ease), width .35s var(--nta-ease);
}

.nta-burger__box span:nth-child(1) { top: 0; }
.nta-burger__box span:nth-child(2) { top: 6px; width: 74%; }
.nta-burger__box span:nth-child(3) { top: 12px; }

.nta-burger[aria-expanded="true"] .nta-burger__box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nta-burger[aria-expanded="true"] .nta-burger__box span:nth-child(2) {
    opacity: 0;
}

.nta-burger[aria-expanded="true"] .nta-burger__box span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------- Mobile drawer -- */

.nta-drawer {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    flex-direction: column;
    background: var(--nta-white);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-2%);
    transition: opacity .35s var(--nta-ease), transform .4s var(--nta-ease-out), visibility .4s;
    overscroll-behavior: contain;
}

.nta-drawer.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.nta-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding-inline: var(--nta-gutter);
    border-bottom: 1px solid var(--nta-line-soft);
    flex: none;
}

.nta-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px var(--nta-gutter) 40px;
}

.nta-drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nta-drawer__list > li {
    border-bottom: 1px solid var(--nta-line-soft);
}

.nta-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 2px;
    font-family: var(--nta-font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nta-ink);
    text-align: left;
}

.nta-drawer__link svg {
    flex: none;
    color: var(--nta-teal-500);
    transition: transform .35s var(--nta-ease);
}

.nta-drawer__link[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nta-drawer__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--nta-ease-out);
}

.nta-drawer__panel > div {
    overflow: hidden;
}

.nta-drawer__link[aria-expanded="true"] + .nta-drawer__panel {
    grid-template-rows: 1fr;
}

.nta-drawer__sub {
    margin: 0;
    padding: 0 0 18px;
    list-style: none;
    display: grid;
    gap: 4px;
}

.nta-drawer__sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--nta-radius-sm);
    background: var(--nta-mist);
    color: var(--nta-ink-soft);
    font-size: .9375rem;
    font-weight: 500;
}

.nta-drawer__sub a:hover {
    background: var(--nta-teal-100);
    color: var(--nta-teal-800);
}

.nta-drawer__sub svg {
    color: var(--nta-teal-500);
    flex: none;
}

.nta-drawer__actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.nta-drawer__contact {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--nta-line-soft);
    font-size: .9375rem;
}

.nta-drawer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nta-ink-soft);
    font-weight: 500;
}

.nta-drawer__contact svg {
    color: var(--nta-teal-500);
    flex: none;
}

/* ---------------------------------------------------------- Breakpoints -- */

@media (max-width: 1180px) {
    .nta-nav__link {
        padding-inline: 12px;
        font-size: .9rem;
    }

    .nta-bar__inner {
        gap: 18px;
    }

    /* Just above the burger breakpoint the logo, the menu and two buttons no
       longer fit side by side. The secondary action drops out first; it also
       sits in the docked bar at the bottom of the screen. */
    .nta-bar__cta .nta-btn--ghost {
        display: none;
    }
}

@media (max-width: 1024px) {
    /* Vanaf hier neemt het hamburgermenu het over. De bovenbalk kost dan
       alleen verticale ruimte: het telefoonnummer en de mailknop staan op
       deze formaten al in de zwevende contactbalk onderaan het scherm. */
    .nta-topbar {
        display: none;
    }

    .nta-nav,
    .nta-bar__cta {
        display: none;
    }

    .nta-burger {
        display: flex;
    }

    .nta-bar__inner {
        min-height: 76px;
    }
}

/* Drop USPs one by one as the bar narrows, contact details stay longest. */
@media (max-width: 1180px) {
    .nta-topbar__inner {
        gap: 20px;
    }

    .nta-usps {
        gap: 20px;
    }

    .nta-topbar__contact {
        gap: 20px;
        padding-left: 20px;
    }

    .nta-usps li:nth-child(n + 3) {
        display: none;
    }
}

@media (max-width: 560px) {
    .nta-logo__art--lockup {
        height: 44px;
    }

    .nta-logo__art--mark {
        height: 38px;
    }
}
