
/* ==========================================================
   VED VAIDYA MEDIA
   PREMIUM WHITE HEADER + SIMPLE SERVICES MEGA MENU
   File: assets/css/header.css
========================================================== */

:root {
    --vvx-navy: #052d50;
    --vvx-deep: #04253c;
    --vvx-teal: #098f9b;
    --vvx-mint: #91f2d4;
    --vvx-border: #dfecef;
    --vvx-text: #28485c;
    --vvx-font: "Manrope", Arial, sans-serif;
    --vvx-height: 88px;
    --vvx-ease: cubic-bezier(.22,1,.36,1);
}

.vvx-header,
.vvx-header *,
.vvx-drawer,
.vvx-drawer *,
.vvx-backdrop {
    box-sizing: border-box;
}

.vvx-header a,
.vvx-drawer a {
    text-decoration: none;
}

.vvx-header button,
.vvx-drawer button {
    font: inherit;
    cursor: pointer;
}

.vvx-header a:focus-visible,
.vvx-header button:focus-visible,
.vvx-drawer a:focus-visible,
.vvx-drawer button:focus-visible {
    outline: 3px solid #12a9a3;
    outline-offset: 3px;
}

.vvx-skip {
    position: fixed;
    left: 12px;
    top: -120px;
    z-index: 99999;
    padding: 12px 17px;
    background: #fff;
    color: #052d50;
    border-radius: 9px;
}

.vvx-skip:focus {
    top: 12px;
}

/* HEADER */

.vvx-header {
    position: sticky;
    z-index: 9000;
    top: 0;
    left: 0;
    width: 100%;

    background: #fff !important;
    border-bottom: 1px solid var(--vvx-border);
    box-shadow: 0 7px 30px rgba(3,37,60,.055);
    font-family: var(--vvx-font);

    transition:
        box-shadow .35s ease,
        border-color .35s ease;
}

.vvx-header.is-scrolled {
    --vvx-height: 74px;
    box-shadow: 0 12px 35px rgba(3,37,60,.11);
}

.vvx-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px,235px) minmax(0,1fr) auto;
    align-items: center;
    gap: clamp(13px,2vw,32px);

    width: min(1530px,calc(100% - 76px));
    min-height: var(--vvx-height);
    margin: 0 auto;
    overflow: visible;

    transition: min-height .55s var(--vvx-ease);
}

/* LOGO */

.vvx-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    background: transparent !important;
}

.vvx-brand img {
    display: block;
    max-width: min(100%,215px);
    width: auto;
    max-height: 66px;
    height: auto;
    object-fit: contain;

    transition:
        max-height .5s ease,
        transform .35s ease;
}

.vvx-brand:hover img {
    transform: scale(1.025);
}

.vvx-header.is-scrolled .vvx-brand img {
    max-height: 56px;
}

/* DESKTOP NAVIGATION */

.vvx-desktop-nav {
    min-width: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.vvx-nav-list,
.vvx-nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vvx-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: clamp(3px,.6vw,12px);
}

.vvx-nav-list > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.vvx-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;

    padding: 11px clamp(8px,.75vw,14px);
    border-radius: 10px;

    color: var(--vvx-text);
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    line-height: 1.35;

    transition:
        color .25s ease,
        background .25s ease;
}

.vvx-nav-list > li:hover > a,
.vvx-nav-list > li:focus-within > a,
.vvx-nav-list > li.current-menu-item > a,
.vvx-nav-list > li.current-menu-ancestor > a,
.vvx-nav-list > li.current_page_item > a {
    color: #087d91;
    background: #eff9f7;
}

/* OTHER WORDPRESS DROPDOWNS */

.vvx-nav-list .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 50;

    width: 290px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;

    background: #fff;
    border: 1px solid #d8eaed;
    border-top: 2px solid var(--vvx-teal);
    border-radius: 0 0 14px 14px;

    box-shadow: 0 22px 55px rgba(3,37,60,.15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%,9px);

    transition:
        opacity .25s ease,
        transform .3s var(--vvx-ease),
        visibility .25s ease;
}

.vvx-nav-list li:hover > .sub-menu,
.vvx-nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%,0);
}

.vvx-nav-list .sub-menu li {
    position: relative;
}

.vvx-nav-list .sub-menu a {
    display: block;
    min-height: 42px;
    padding: 11px 13px;

    color: #36566b;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;

    transition:
        background .25s ease,
        color .25s ease,
        padding-left .25s ease;
}

.vvx-nav-list .sub-menu a:hover {
    background: #eaf8f5;
    color: #087a88;
    padding-left: 17px;
}

.vvx-nav-list .sub-menu .sub-menu {
    left: calc(100% - 4px);
    top: -12px;
    width: 265px;
    transform: translateY(8px);
}

.vvx-nav-list .sub-menu li:hover > .sub-menu,
.vvx-nav-list .sub-menu li:focus-within > .sub-menu {
    transform: translateY(0);
}

/* CONTACT BUTTON */

.vvx-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    height: 100%;
}

.vvx-contact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-height: 51px;
    padding: 6px 7px 6px 21px;

    border-radius: 100px;
    overflow: hidden;

    background: linear-gradient(
        110deg,
        #076dad,
        #098fa5,
        #0a9c94
    );

    color: #fff !important;
    box-shadow: 0 10px 25px rgba(8,116,162,.17);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.vvx-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(8,116,162,.24);
}

.vvx-contact-copy {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.vvx-contact-arrow {
    display: grid;
    place-items: center;
    flex: none;

    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: rgba(255,255,255,.18);
    color: #fff;

    transition:
        transform .35s ease,
        background .35s ease;
}

.vvx-contact-arrow svg {
    width: 18px;
    height: 18px;
}

.vvx-contact:hover .vvx-contact-arrow {
    background: #fff;
    color: #087e92;
    transform: rotate(45deg);
}

.vvx-menu-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;

    width: 48px;
    height: 48px;

    border: 1px solid #dcecf0;
    border-radius: 12px;
    background: #f3fafb;
    color: var(--vvx-navy);
}

.vvx-trigger-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.vvx-trigger-inner span {
    display: block;
    width: 23px;
    height: 2px;
    background: currentColor;
    border-radius: 3px;
}

.vvx-trigger-inner span:nth-child(2) {
    width: 16px;
}

.vvx-trigger-inner span:nth-child(3) {
    width: 20px;
}

/* =========================================
   SIMPLE SERVICES MEGA MENU
========================================= */

@media (min-width: 1121px) {

    .vvx-nav-list > li.vvx-services-parent {
        position: static;
    }

    .vvx-nav-list > li.vvx-services-parent > .sub-menu {
        display: none !important;
    }

    .vvx-nav-list > li.vvx-services-parent > a::before {
        content: "";
        display: block;
        order: 2;

        width: 7px;
        height: 7px;
        margin-top: -4px;

        border-right: 1.8px solid currentColor;
        border-bottom: 1.8px solid currentColor;

        transform: rotate(45deg);
        transition: transform .25s ease;
    }

    .vvx-nav-list > li.vvx-services-parent:hover > a::before,
    .vvx-nav-list > li.vvx-services-parent:focus-within > a::before {
        transform: translateY(3px) rotate(225deg);
    }

    .vvx-nav-list > li.vvx-services-parent > a::after {
        display: none !important;
    }

    /* Dropdown container */

    .vvx-header .vvx-mega-menu {
        position: absolute;
        top: calc(100% - 1px);
        left: 50%;
        z-index: 110;

        width: min(820px, calc(100vw - 40px));
        max-height: calc(
            100dvh - var(--vvn-header-height, 88px) - 16px
        );

        overflow: auto;
        overscroll-behavior: contain;

        padding: 19px 22px 21px;

        border: 1px solid #dcebea;
        border-top: 2px solid #0b9d99;
        border-radius: 0 0 15px 15px;

        background: #ffffff;

        box-shadow: 0 24px 55px rgba(4,42,60,.13);

        font-family: var(--vvx-font);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translate(-50%,9px);

        transition:
            opacity .2s ease,
            visibility .2s ease,
            transform .3s var(--vvx-ease);
    }

    /* Open via hover or keyboard focus */

    .vvx-services-parent:hover > .vvx-mega-menu,
    .vvx-services-parent:focus-within > .vvx-mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%,0);
    }

    /* Escape key dismissal */

    .vvx-services-parent.vvx-mega-dismissed > .vvx-mega-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Small dropdown heading */

    .vvx-mega-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;

        padding-bottom: 12px;
        margin-bottom: 5px;

        border-bottom: 1px solid #dceae9;

        color: #0b7f89;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.4;
        letter-spacing: .14em;
    }

    .vvx-mega-head span:last-child {
        color: #83a0a5;
        letter-spacing: .07em;
    }

    /* Clean service title columns */

    .vvx-mega-services {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        column-gap: 22px;
    }

    /* Service links - not cards */

    .vvx-mega-link {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;

        min-width: 0;
        min-height: 48px;
        padding: 11px 0;

        border-bottom: 1px solid #edf2f1;
        background: transparent;

        color: #123c4e !important;

        font-size: 14px;
        font-weight: 750;
        line-height: 1.4;

        transition:
            color .2s ease,
            padding-left .3s var(--vvx-ease);
    }

    .vvx-mega-link > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .vvx-mega-link svg {
        flex: none;
        width: 16px;
        height: 16px;

        color: #90b2b5;
        opacity: 0;
        transform: translateX(-5px);

        transition:
            opacity .2s ease,
            transform .3s var(--vvx-ease),
            color .2s ease;
    }

    .vvx-mega-link:hover,
    .vvx-mega-link:focus-visible {
        color: #078a91 !important;
        padding-left: 5px;
    }

    .vvx-mega-link:hover svg,
    .vvx-mega-link:focus-visible svg {
        color: #078a91;
        opacity: 1;
        transform: translateX(0);
    }

    .vvx-mega-menu a:focus-visible {
        outline: 2px solid #08a6a0;
        outline-offset: 2px;
    }

    .vvx-mega-empty {
        padding: 18px 0;
        color: #577482;
        font-size: 16px;
    }
}

/* Narrow desktop adjustments */

@media (min-width: 1121px) and (max-width: 1300px) {

    .vvx-shell {
        width: calc(100% - 48px);
        grid-template-columns:
            minmax(150px,200px)
            minmax(0,1fr)
            auto;
        gap: 14px;
    }

    .vvx-nav-list {
        gap: 3px;
    }

    .vvx-nav-list > li > a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .vvx-contact {
        gap: 10px;
        padding-left: 16px;
    }
}

/* =========================================
   MOBILE DRAWER
========================================= */

.vvx-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9500;

    background: rgba(3,23,40,.63);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.vvx-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vvx-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9600;

    display: flex;
    flex-direction: column;

    width: min(430px,100%);
    height: 100dvh;

    background: #fff;

    transform: translateX(-105%);
    visibility: hidden;

    box-shadow: 20px 0 65px rgba(2,22,40,.22);

    transition:
        transform .5s var(--vvx-ease),
        visibility .5s;

    font-family: var(--vvx-font);
}

.vvx-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.vvx-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;

    gap: 15px;
    min-height: 88px;
    padding: 15px 23px;

    border-bottom: 1px solid var(--vvx-border);
}

.vvx-drawer-brand {
    display: flex;
    align-items: center;
    max-width: 75%;
}

.vvx-drawer-brand img {
    display: block;
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vvx-drawer-close {
    display: grid;
    place-items: center;
    flex: none;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid #d9e9ef;
    border-radius: 50%;

    background: #f5fafc;
    color: var(--vvx-navy);
}

.vvx-drawer-close svg {
    width: 20px;
    height: 20px;
}

.vvx-drawer-close:hover {
    background: #052d50;
    color: #fff;
}

.vvx-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 23px 26px 30px;
}

.vvx-drawer-section-label {
    display: flex;
    justify-content: space-between;

    padding-bottom: 14px;
    margin-bottom: 9px;

    border-bottom: 1px solid #e2edf1;

    color: #78909e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
}

.vvx-section-cross {
    color: #0ca987;
    font-size: 17px;
}

.vvx-mobile-list,
.vvx-mobile-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vvx-mobile-list {
    counter-reset: vvx-mobile;
}

.vvx-mobile-list > li {
    position: relative;
    counter-increment: vvx-mobile;
    border-bottom: 1px solid #e8eff2;
}

.vvx-mobile-list > li > a {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 61px;
    padding: 12px 48px 12px 0;

    color: #063b58;

    font-size: clamp(19px,5vw,24px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.vvx-mobile-list > li > a::before {
    content: "0" counter(vvx-mobile);
    flex: none;

    color: #0b9798;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
}

.vvx-mobile-list > li > a:hover {
    color: #078595;
}

.vvx-submenu-toggle {
    position: absolute;
    top: 9px;
    right: 0;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid #d9e9ed;
    border-radius: 11px;

    background: #f2f9fa;
    color: #052d50;

    font-size: 24px;

    transition:
        background .25s ease,
        color .25s ease;
}

.vvx-submenu-toggle[aria-expanded="true"] {
    color: #fff;
    background: #07546a;
    border-color: #07546a;
}

.vvx-mobile-list .sub-menu {
    margin: 0 0 12px 15px;
    padding: 2px 0 3px 13px;
    border-left: 2px solid #a7e4dc;
}

.vvx-mobile-list .sub-menu[hidden] {
    display: none !important;
}

.vvx-mobile-list .sub-menu li {
    position: relative;
}

.vvx-mobile-list .sub-menu a {
    display: block;
    padding: 10px 46px 10px 7px;

    color: #42677a;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.48;

    border-radius: 8px;
}

.vvx-mobile-list .sub-menu a:hover {
    background: #eef9f6;
    color: #087f89;
}

.vvx-mobile-list .sub-menu .sub-menu {
    margin-left: 12px;
}

.vvx-mobile-list .sub-menu .vvx-submenu-toggle {
    top: 5px;
    width: 35px;
    height: 35px;
    font-size: 20px;
}

.vvx-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    min-height: 80px;
    margin-top: 27px;
    padding: 16px 19px;

    border-radius: 15px;

    color: #fff !important;

    background: linear-gradient(
        115deg,
        #053b61,
        #087f9b,
        #0c9d94
    );
}

.vvx-drawer-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vvx-drawer-cta-copy small {
    color: #c5edf0;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}

.vvx-drawer-cta-copy strong {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.vvx-drawer-cta-icon {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
}

.vvx-drawer-cta-icon svg {
    width: 21px;
    height: 21px;
}

.vvx-drawer-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;

    min-height: 58px;
    padding: 14px 25px;

    background: #f5fafb;
    border-top: 1px solid #e0ebef;

    color: #708895;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.vvx-bottom-status {
    display: block;
    flex: none;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: #0caa8c;
}

html.vvx-menu-open,
body.vvx-menu-open {
    overflow: hidden !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1120px) {

    .vvx-header {
        --vvx-height: 78px;
    }

    .vvx-header.is-scrolled {
        --vvx-height: 69px;
    }

    .vvx-shell {
        grid-template-columns: minmax(0,1fr) auto;
        width: calc(100% - 40px);
        gap: 12px;
    }

    .vvx-desktop-nav {
        display: none;
    }

    .vvx-menu-trigger {
        display: flex;
    }

    .vvx-brand img {
        max-height: 58px;
    }

    .vvx-mega-menu {
        display: none !important;
    }
}

@media (max-width: 650px) {

    .vvx-header {
        --vvx-height: 72px;
    }

    .vvx-header.is-scrolled {
        --vvx-height: 66px;
    }

    .vvx-shell {
        width: calc(100% - 28px);
        gap: 9px;
    }

    .vvx-brand img {
        max-width: 165px;
        max-height: 52px;
    }

    .vvx-contact {
        padding: 5px 6px 5px 12px;
        min-height: 43px;
        gap: 7px;
    }

    .vvx-contact-copy {
        font-size: 12px;
    }

    .vvx-contact-arrow {
        width: 29px;
        height: 29px;
    }

    .vvx-contact-arrow svg {
        width: 15px;
        height: 15px;
    }

    .vvx-menu-trigger {
        width: 43px;
        height: 43px;
    }

    .vvx-drawer-head {
        min-height: 81px;
        padding: 13px 19px;
    }

    .vvx-drawer-body {
        padding: 21px 21px 28px;
    }
}

@media (max-width: 390px) {

    .vvx-shell {
        width: calc(100% - 20px);
        gap: 6px;
    }

    .vvx-brand img {
        max-width: 140px;
    }

    .vvx-contact {
        padding-left: 10px;
        gap: 4px;
    }

    .vvx-contact-copy {
        font-size: 11px;
    }

    .vvx-contact-arrow {
        width: 26px;
        height: 26px;
    }

    .vvx-menu-trigger {
        width: 40px;
        height: 40px;
    }
}

/* WORDPRESS ADMIN BAR */

body.admin-bar .vvx-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .vvx-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .vvx-header {
        top: 0;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .vvx-header *,
    .vvx-header *::before,
    .vvx-header *::after,
    .vvx-drawer *,
    .vvx-drawer *::before,
    .vvx-drawer *::after,
    .vvx-drawer,
    .vvx-backdrop {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
