/* ============================================
   FOYR REVAMP — HEADER STYLES
   ============================================ */


/* ============================================
   HEADER LAYOUT
   ============================================ */

.nav-container {
    display: flex;
    justify-content: center;
    align-items: normal;
    position: static;
    transition: ease-in-out 0.2s;
    padding: 0;
}

.nav-container.is-open {
    position: relative;
    z-index: 1111;
    background: #fff;
    padding: 0;
}

.nav-container.is-open .revamp-header {
    background: #fff !important;
}

body.page-template-page-pricing-revamp .hdr-shp {
    height: 100%;
    min-height: 90px;
    border-left: 1px dashed var(--bs-border-color-translucent);
}


/* ============================================
   HEADER BASE
   ============================================ */

.revamp-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;

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

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 20px;

    background: transparent;

    transition:
        max-width 0.3s ease,
        padding 0.4s ease,
        border-radius 0.4s ease,
        top 0.4s ease,
        box-shadow 0.3s ease,
        background 0.7s ease,
        transform 0.3s ease;
}

.revamp-header.scrolled {
    position: fixed;
    top: 20px;

    max-width: 600px;
    padding: 14px 20px;

    border-radius: 20px;
    border: 1px solid var(--clr-white);

    background: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transform: scale(0.98);
}

.revamp-header.scrolled::before,
.revamp-header.scrolled::after {
    opacity: 0;
}

.revamp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);

    width: 100%;
    max-width: 910px;
    margin: auto;
}


/* ============================================
   LOGO
   ============================================ */

a.revamp-header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.revamp-header__logo img {
    width: auto;
    height: 36px;
}


/* ============================================
   NAVIGATION
   ============================================ */

.revamp-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;

    max-width: 500px;
    overflow: visible;

    transition:
        max-width 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.revamp-header__nav>* {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.revamp-header__nav .revamp-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.revamp-nav__list li {
    position: static;
}

.revamp-header__nav .revamp-nav__list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-style: normal;
    font-weight: 500;
    color: var(--clr-text-dark);
    transition: color var(--transition);
}

.revamp-header__nav .revamp-nav__list li a:hover {
    color: var(--clr-purple);
}

.revamp-header__nav .revamp-nav__list li a .nav-arrow {
    display: inline-flex;
    line-height: normal;
}

@media (max-width:991px) {
    .revamp-header__nav .revamp-nav__list li a {
        font-size: 20px;
        padding: 10px 0 !important;
        width: 100%;
    }
}

/* ============================================
   NAV LINK
   ============================================ */

.nav-link {
    display: inline-block;
    padding: 10px 0;

    text-decoration: none;
    font-weight: 500;
    color: #121212;
}

.dropdown-toggle::after {
    display: none;
}


/* ============================================
   CTA BUTTONS
   ============================================ */

.revamp-header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.revamp-header__cta_mob {
    display: flex !important;
}

.revamp-btn-login,
.revamp-btn-try {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 140%;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.2s ease;
}

.revamp-btn-login {
    background: #ffffff;
    color: #000000;
}

.revamp-btn-try::after {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0));
}

.revamp-btn-login:active,
.revamp-btn-try:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

.book-now-btn {
    display: none !important;
    width: 0;
    transform: scaleX(0);
}

.revamp-header.scrolled .book-now-btn {
    display: inline-block !important;
    width: auto;
    transform: unset;
}

.revamp-header.scrolled .login-btn {
    display: none !important;
    width: 0;
    transform: scaleX(0);
}


/* ============================================
   HAMBURGER MENU
   ============================================ */

.revamp-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;

    padding: 4px;
}

.revamp-header__hamburger span {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 2px;
    background: var(--clr-dark);

    transition:
        transform var(--transition),
        opacity var(--transition);
}


/* ============================================
   MEGA MENU BASE
   ============================================ */

.mega-dropdown {
    position: relative;
    width: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 9999;

    display: block;

    width: calc(100% - 30px);
    padding: 20px;

    border-radius: 16px;
    border: none;

    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;

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

    transition: all 0.25s ease;
}

.mega-menu .mega-container {
    display: flex;
    gap: 0;
}


/* ============================================
   SOLUTIONS MENU
   ============================================ */

.mega-menu.solutions-menu {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.mega-card {
    position: relative;
    overflow: hidden;

    display: block;
    flex-wrap: wrap;

    padding: 20px 0 0 20px;

    text-decoration: none;
}

.mega-card .mega-text-dv {
    width: 85%;
}

.mega-card .mega-text-icon {
    width: 10%;
}

.mega-card .mega-text-dv h3 {
    font-family: var(--font-body) !important;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
    color: #f9fafb;
}

.mega-card .mega-text-dv p {
    margin-top: 10px;

    font-family: var(--font-body);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;

    color: #f9fafb;
}

.mega-card .mega-img-dv {
    width: 100%;
    margin-top: auto;
}

.mega-card .mega-img-dv img {
    margin-left: auto;
}

.mega-text-icon {
    min-width: 20px;
}

.mega-text-icon svg {
    transition: 0.3s linear;
}

.mega-card:hover .mega-text-icon svg {
    transform: rotate(-45deg);
}


/* ============================================
   CARD COLORS
   ============================================ */

.purple {
    background: linear-gradient(135deg, #6a11cb, #8e44ad);
}

.yellow {
    color: #000;
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.orange {
    background: linear-gradient(135deg, #ff7e5f, #ff3d54);
}


/* ============================================
   RESOURCES MENU
   ============================================ */

.resources-menu {
    padding: 0;

    overflow: hidden;
    border-radius: 20px;

    background-color: #f5f5f5;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.mega-item {
    padding: 20px !important;

    border-radius: 0;

    background: #fff;
    color: #000;
    text-decoration: none;

    gap: 16px !important;

    transition: all 0.25s ease;
}

.mega-item:hover {
    background: #f5f5f5;
}

.mega-item h4 {
    margin: 0 0 4px;
    font-family: var(--font-body) !important;
    font-size: 14px;
}

.mega-item p {
    margin: 0;
    font-weight: normal;
    font-size: 12px;
    line-height: normal;
    color: #6B7280;
}


/* ============================================
   DESKTOP ONLY
   ============================================ */

@media (min-width: 992px) {
    .mobile-hamburger-div {
        display: none !important;
    }

    .revamp-header.scrolled .revamp-header__nav {
        max-width: 0;
        opacity: 0;
        transform: translateX(-10px);
    }

    .revamp-header.scrolled .revamp-header__nav>* {
        opacity: 0;
        transform: translateY(-5px);
    }

    .mega-dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .revamp-header__cta_mob {
        display: none !important;
    }
}


/* ============================================
   MOBILE STYLES
   ============================================ */

@media (max-width: 991px) {

    .revamp-header {
        width: 100%;
        max-width: unset !important;
        margin: auto;
    }

    .revamp-header.scrolled {
        top: 0;

        border-radius: 0 !important;

        background-color: #fff !important;

        transform: none !important;
    }

    .revamp-header__hamburger {
        display: flex;
    }

    .revamp-header__nav,
    .revamp-header__cta {
        position: relative;
        z-index: 100;
        display: none;
    }

    .revamp-header__nav {
        position: absolute;
        top: 100%;
        left: 0;

        display: block;

        width: 100%;
        max-width: unset !important;

        padding: 16px;

        border-radius: 0;
        background: #fff;

        opacity: 0;
        visibility: hidden;

        transform: translateY(20px);

        transition:
            opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .revamp-header__nav.is-open {
        left: 0;
        right: 0;
        width: 100vw;
        top: calc(100%);
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .revamp-header__nav .revamp-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        padding: 0;
    }

    .nav-link.dropdown-toggle.mobile-toggle {
        justify-content: space-between;
    }

    .revamp-header__cta {
        position: absolute;
        top: calc(100% + 215px);
        left: 0;

        display: block;

        width: 100%;

        padding: 16px;

        border-radius: 12px;

        background: #fff;
        box-shadow: var(--shadow-md);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition: all var(--transition);
    }

    .revamp-header__cta.is-open {
        display: none;
        flex-direction: column;
        gap: 10px;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .revamp-header__cta a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .revamp-header.scrolled .login-btn {
        display: block !important;
        width: 100%;

        transform: none !important;
    }

    .mega-menu {
        position: static !important;

        width: 100%;

        border-radius: 0;
        box-shadow: none !important;

        transform: unset !important;

        overflow: hidden;

        /* smooth animation */
        max-height: 0;
        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    /* inner content */
    .mega-menu .mega-container {
        display: flex;
        flex-direction: column;

        max-height: 80svh;
        overflow-y: auto;
    }

    /* OPEN STATE */
    .dropdown-menu.mega-menu.active {
        max-height: 1000px;
        /* enough large value */
        opacity: 1;
        visibility: visible;
    }

    .dropdown-toggle {
        padding: 0 !important;
    }

    .mega-grid {
        grid-template-columns: repeat(1, 1fr);
        max-height: 400px;
        overflow: auto;
    }

    .mega-item {
        padding: 14px 0 !important;
    }

    .mega-card {
        padding: 20px !important;
    }

    .mega-card .mega-img-dv {
        display: none;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99;

        visibility: hidden;
        opacity: 0;

        background-color: rgb(0 0 0 / 20%);

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);

        transition: 0.3s ease;
    }

    .menu-backdrop.active {
        visibility: visible;
        opacity: 1;
    }

    .revamp-header__hamburger[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .revamp-header__hamburger[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .dk-ver {
        display: none;
    }

    .mob-ver {
        display: block !important;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.mob-ver {
    display: none;
}