/* ==========================================================================
   WizeTek site chrome — header, navigation, mobile drawer, footer
   Depends on tokens.css and base.css.
   ========================================================================== */

/* ==========================================================================
   Header
   ========================================================================== */

.wz-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 60;
    height: var(--wz-header-h);
    display: flex;
    align-items: center;
    color: var(--wz-on-dark);
}

/* Pages that do not open on a dark hero get a solid header instead. */
.wz-header--solid {
    position: sticky;
    top: 0;
    background: var(--wz-white);
    border-bottom: 1px solid var(--wz-rule);
    color: var(--wz-ink);
}

.wz-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wz-s-5);
    width: 100%;
}

/* --- Brand -------------------------------------------------------------- */

.wz-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--wz-s-3);
    text-decoration: none;
    color: inherit;
    flex: none;
}

/* The mark is 4:3, so it is sized by height and left to work out its own
   width. A fixed square box would squash it. */
.wz-brand__mark {
    width: auto;
    height: 34px;
    flex: none;
}

.wz-brand__name {
    font-family: var(--wz-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* --- Desktop nav -------------------------------------------------------- */

.wz-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.wz-nav__list {
    display: flex;
    align-items: center;
    gap: var(--wz-s-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-nav__item {
    position: relative;
}

.wz-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--wz-s-2);
    padding: 9px 11px;
    border-radius: var(--wz-r-sm);
    font-size: var(--wz-fs-sm);
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    transition:
        background-color var(--wz-dur-fast) var(--wz-ease),
        color var(--wz-dur-fast) var(--wz-ease);
}

.wz-nav__link:hover {
    background: rgba(232, 240, 251, 0.1);
    color: var(--wz-white);
}

.wz-header--solid .wz-nav__link:hover {
    background: var(--wz-ground);
    color: var(--wz-blue);
}

.wz-nav__link[aria-current="page"] {
    color: var(--wz-sky);
    font-weight: 600;
}

.wz-header--solid .wz-nav__link[aria-current="page"] {
    color: var(--wz-blue);
}

.wz-nav__caret {
    width: 11px;
    height: 11px;
    transition: transform var(--wz-dur) var(--wz-ease);
}

.wz-nav__item[data-open="true"] .wz-nav__caret {
    transform: rotate(180deg);
}

/* --- Dropdown ----------------------------------------------------------- */

/* Ten services in a single column would run off the bottom of the viewport,
   so the panel is a three-column mega menu - one column per consulting pillar. */
.wz-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    translate: -50% 0;
    width: max-content;
    max-width: min(820px, calc(100vw - 2 * var(--wz-gutter)));
    max-height: calc(100vh - var(--wz-header-h) - 24px);
    overflow-y: auto;
    background: var(--wz-white);
    color: var(--wz-ink);
    border: 1px solid var(--wz-rule);
    border-radius: var(--wz-r);
    box-shadow: var(--wz-shadow-lg);
    padding: var(--wz-s-5);
    margin: 0;
    list-style: none;
    display: none;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: var(--wz-s-5);
}

.wz-nav__item[data-open="true"] .wz-dropdown {
    display: grid;
}

/* One grid column per consulting pillar. min-width:0 stops a long service
   title from forcing the column - and the whole panel - wider than its track. */
.wz-dropdown__group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wz-dropdown__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-dropdown__label {
    display: block;
    font-size: var(--wz-fs-label);
    font-weight: 600;
    letter-spacing: var(--wz-tracking-label);
    text-transform: uppercase;
    color: var(--wz-ink-faint);
    margin-bottom: var(--wz-s-2);
}

.wz-dropdown__link {
    display: block;
    padding: 8px 10px;
    border-radius: var(--wz-r-sm);
    font-size: var(--wz-fs-sm);
    color: var(--wz-ink);
    text-decoration: none;
}

.wz-dropdown__link:hover {
    background: var(--wz-ground);
    color: var(--wz-blue);
}

/* --- Toggles ------------------------------------------------------------ */

.wz-header__cta {
    flex: none;
}

.wz-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: var(--wz-r-sm);
    background: transparent;
    color: inherit;
    opacity: 0.85;
}

.wz-burger svg {
    width: 20px;
    height: 20px;
}

/* --- Mobile drawer ------------------------------------------------------ */

.wz-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.wz-drawer[data-open="true"] {
    display: block;
}

.wz-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(4, 16, 31, 0.6);
    border: 0;
    width: 100%;
}

.wz-drawer__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(400px, 88vw);
    background: var(--wz-navy);
    color: var(--wz-on-dark);
    padding: var(--wz-s-5) var(--wz-s-6) var(--wz-s-8);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--wz-s-5);
}

.wz-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wz-s-4);
}

.wz-drawer__close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--wz-on-dark-rule);
    border-radius: var(--wz-r-sm);
    background: transparent;
    color: inherit;
}

.wz-drawer__close svg {
    width: 18px;
    height: 18px;
}

.wz-drawer__list {
    display: flex;
    flex-direction: column;
    gap: var(--wz-s-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-drawer__link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--wz-r-sm);
    font-family: var(--wz-font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.wz-drawer__link:hover {
    background: var(--wz-on-dark-panel);
    color: var(--wz-white);
}

/* The link and its disclosure sit on one row: tapping the label still goes to
   the section index, tapping the chevron opens the list. */
.wz-drawer__row {
    display: flex;
    align-items: center;
    gap: var(--wz-s-2);
}

.wz-drawer__row .wz-drawer__link {
    flex: 1;
}

.wz-drawer__toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 1px solid var(--wz-on-dark-rule);
    border-radius: var(--wz-r-sm);
    background: transparent;
    color: var(--wz-on-dark-muted);
}

.wz-drawer__toggle svg {
    width: 18px;
    height: 18px;
    transition: transform var(--wz-dur) var(--wz-ease);
}

.wz-drawer__toggle[aria-expanded="true"] {
    color: var(--wz-sky);
    border-color: var(--wz-sky);
}

.wz-drawer__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.wz-drawer__sublist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: var(--wz-s-1) 0 var(--wz-s-3);
    padding-left: var(--wz-s-4);
    border-left: 1px solid var(--wz-on-dark-rule);
    list-style: none;
}

.wz-drawer__sublink {
    display: block;
    padding: 7px 12px;
    border-radius: var(--wz-r-sm);
    font-size: var(--wz-fs-sm);
    color: var(--wz-on-dark-muted);
    text-decoration: none;
}

.wz-drawer__sublink:hover {
    background: var(--wz-on-dark-panel);
    color: var(--wz-on-dark);
}

@media (max-width: 1200px) {
    .wz-nav,
    .wz-header__cta {
        display: none;
    }

    .wz-burger {
        display: inline-flex;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.wz-footer {
    position: relative;
    overflow: hidden;
    background:
        url("../img/mesh/mesh-footer.ae246dd4c524.svg") center bottom / cover no-repeat,
        var(--wz-navy-900);
    color: var(--wz-on-dark-muted);
    padding-top: var(--wz-s-9);
    font-size: var(--wz-fs-sm);
}

/* The ground here is a colour rather than a second image, so removing the
   image layer leaves it in place - no need to restate it. */
.wz-footer[data-mesh-live="true"] {
    background-image: none;
}

.wz-footer > .wz-shell {
    position: relative;
    z-index: 1;
}

.wz-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--wz-s-7);
    padding-bottom: var(--wz-s-8);
}

.wz-footer__about {
    max-width: 38ch;
}

.wz-footer__blurb {
    margin: var(--wz-s-4) 0 0;
}

.wz-footer__title {
    font-family: var(--wz-font-body);
    font-size: var(--wz-fs-label);
    font-weight: 600;
    letter-spacing: var(--wz-tracking-label);
    text-transform: uppercase;
    color: var(--wz-on-dark-faint);
    margin: 0 0 var(--wz-s-4);
}

.wz-footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--wz-s-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-footer a {
    color: inherit;
    text-decoration: none;
}

.wz-footer a:hover {
    color: var(--wz-sky);
    text-decoration: underline;
}

.wz-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--wz-s-4);
}

.wz-footer__contact-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: var(--wz-s-3);
    align-items: start;
}

.wz-footer__contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--wz-sky);
    margin-top: 3px;
}

.wz-social {
    display: flex;
    gap: var(--wz-s-2);
    margin-top: var(--wz-s-5);
}

.wz-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--wz-on-dark-rule);
    border-radius: var(--wz-r-sm);
    transition:
        background-color var(--wz-dur) var(--wz-ease),
        border-color var(--wz-dur) var(--wz-ease);
}

.wz-social a:hover {
    background: var(--wz-on-dark-panel);
    border-color: var(--wz-sky);
}

.wz-social svg {
    width: 17px;
    height: 17px;
}

.wz-footer__bar {
    border-top: 1px solid var(--wz-on-dark-rule);
    padding-block: var(--wz-s-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wz-s-4);
    font-size: var(--wz-fs-xs);
    color: var(--wz-on-dark-faint);
}

.wz-footer__bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wz-s-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    /* The ground here is a colour rather than a second image, so removing the
   image layer leaves it in place - no need to restate it. */
.wz-footer[data-mesh-live="true"] {
    background-image: none;
}

.wz-footer > .wz-shell {
    position: relative;
    z-index: 1;
}

.wz-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    /* The ground here is a colour rather than a second image, so removing the
   image layer leaves it in place - no need to restate it. */
.wz-footer[data-mesh-live="true"] {
    background-image: none;
}

.wz-footer > .wz-shell {
    position: relative;
    z-index: 1;
}

.wz-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--wz-s-6);
    }
}
