/* Navbar component */

/* Keep the wordmark weight consistent on every page that uses this component. */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../../vendor/css/fonts/poppins/v24/pxiByp8kv8JHgFVrLBT5V1s.ttf") format("truetype");
}

body {
    padding-top: var(--site-header-height, 0px);
}

:root {
    --teal: #00BDB0;
    --teal-dark: #16a984;
    --ink: #10161c;
    --ink-2: #1a2229;
    --muted: #072635;
    --line: #e6eceb;
    --radius: 14px;
    --shadow-soft: 0 10px 30px rgba(16, 22, 28, 0.08);
    --shadow-hard: 0 18px 45px rgba(16, 22, 28, 0.18);
    --primary: #209f9d;
    --primary-dark: #168785;
    --text: #1f2937;
    --text-light: #667085;
    --border: #d7dde1;
    --form-bg: #ffffff;
    --page-bg: #f4f6f8;
    --lime: #CDFF16;
}



.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 18px rgba(16, 22, 28, .08);
}

.site-header .utility-bar {
    background: #14161f;
    color: rgba(255, 255, 255, .85);
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem 0;
    letter-spacing: .04em;
    max-height: 3rem;
    overflow: hidden;
    opacity: 1;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
}

.utility-bar .ub-stars {
    color: #ffc107;
    letter-spacing: .05em;
}

.info-bar {
    background: var(--teal);
    color: #04241d;
    font-size: .82rem;
    font-weight: 700;
    padding: .5rem 0;
}

.info-bar a {
    color: #04241d;
}

.info-bar .ib-link {
    text-decoration: underline;
}

.info-bar .ib-text {
    font-weight: 600;
}

.info-bar .ib-plain:hover {
    color: #fff;
}

.site-header.utility-hidden .utility-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.navbar-main {
    position: relative;
    background: #fff;
    padding: 0;
}

.navbar-main .nav-link {
    color: var(--ink);
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 30px 5px !important;
    position: relative;
    transition: color .25s ease, background-color .2s ease;

}

/* Keep the dropdown caret available on .dropdown-toggle::after. */
.navbar-main .nav-link::before {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .15rem;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

/* The homepage has a legacy .nav-link::after underline rule. Reset it here
   so Bootstrap's dropdown indicator displays on every page. */
.navbar-main .nav-link.dropdown-toggle::after {
    display: inline-block;
    position: static;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    background: transparent;
    border-top: .3em solid currentColor;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transform: none;
    transition: none;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--teal-dark);
}

.navbar-main .nav-link:hover::before,
.navbar-main .nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-main .navbar-toggler {
    color: var(--ink);
}

/* .brand-mark {
    display: inline-flex;
    align-items: center;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: .02em;
    padding: .35rem 1.1rem;
    border-radius: 6px;
}

.brand-mark:hover {
    background: var(--teal);
    color: #fff;
} */





.brand-mark {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background: var(--teal);
    color: #fff;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 900;
    font-synthesis: none;
    font-size: 1.7rem;
    letter-spacing: .02em;
    padding: .35rem 1.1rem;
    border-radius: 6px;

    cursor: pointer;
    transform-style: preserve-3d;

    transition:
        transform 0.45s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.45s ease;
}

/* Hover */
.brand-mark:hover {
    color: #fff;
    background: var(--teal);

    transform:
        perspective(600px) translateY(-4px) scale(1.05) rotateX(2deg) rotateY(-3deg);

    box-shadow:
        0 12px 25px rgba(0, 189, 176, 0.25),
        0 4px 10px rgba(0, 189, 176, 0.15);
}


/* Shine */
.brand-mark::before {
    content: "";
    position: absolute;

    top: -20%;
    left: -120%;

    width: 70%;
    height: 140%;

    background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, .12) 35%,
            rgba(255, 255, 255, .65) 50%,
            rgba(255, 255, 255, .12) 65%,
            transparent 100%);

    transform: skewX(-20deg);

    transition:
        left .8s cubic-bezier(.2, .7, .2, 1);

    pointer-events: none;
}


/* Shine on hover */
.brand-mark:hover::before {
    left: 140%;
}


/* Logo content stays above shine */
.brand-mark>* {
    position: relative;
    z-index: 2;
}


.sub-munu-header {
    cursor: pointer;
}


















.navbar-main .dropdown {
    position: static;
}

/* ============================================================
   FIX: Desktop dropdown open/close logic.
   Previously ".mega-menu.show" forced the menu open regardless
   of hover state, which is why it wouldn't close on mouse-out.
   ".show" is now reserved ONLY for the mobile click-to-toggle
   behavior (scoped inside the max-width: 991.98px query below).
   ============================================================ */
.navbar-main .dropdown:hover>.mega-menu,
.navbar-main .dropdown:focus-within>.mega-menu {
    display: grid;
}

.navbar-main .mega-menu {
    --menu-ink: #123149;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1180px, calc(100vw - 1.5rem));
    min-height: 320px;
    padding: 2.2rem 2.6rem 2.4rem;
    border: 0;
    border-top: 4px solid var(--teal);
    border-radius: 0;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 18px 40px rgba(16, 22, 28, .18);
    z-index: 1050;
    animation: megaMenuIn .36s ease-out both;

}

.navbar-main .mega-menu-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.navbar-main .mega-menu-ai {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-column {
    min-width: 0;
    animation: megaColumnIn .35s ease-out both;
}

.mega-column:nth-child(2) {
    animation-delay: .04s;
}

.mega-column:nth-child(3) {
    animation-delay: .08s;
}

.mega-column:nth-child(4) {
    animation-delay: .12s;
}

.mega-column h3 {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #e4eaee;
    color: var(--menu-ink);
    font-size: 1.1rem;
    letter-spacing: 0;
}

.mega-column h3 i {
    color: var(--teal-dark);
    font-size: 1.25rem;
}

.mega-column a {
    display: block;
    margin: 0 -1rem;
    padding: .55rem 1rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    transition: background-color .2s ease, color .2s ease;
    text-decoration: none !important;
}

.mega-column a:hover {
    background: var(--teal);
    color: #fff;
    text-decoration: none !important;
}

.mega-featured a {
    padding-top: .3rem;
    padding-bottom: .7rem;
}

.mega-featured a img {
    display: block;
    width: 100%;
    height: 58px;
    margin-bottom: .45rem;
    object-fit: cover;
}

.mega-menu-reviews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.mega-review-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid var(--teal);
    color: var(--teal);
    text-align: center;
}

.mega-review-card strong {
    color: var(--teal-dark);
    font-size: 1.65rem;
}

.mega-review-card span {
    font-size: 1.5rem;
    font-weight: 600;
}

.mega-review-card b {
    color: var(--teal-dark);
    font-size: .86rem;
}

.mega-contact-copy {
    margin: 0 0 .8rem;
    color: #425466;
    font-size: .88rem;
    line-height: 1.6;
}

@keyframes megaMenuIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes megaColumnIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar-main .navbar-collapse {
        padding-top: .75rem;
    }

    .navbar-main .dropdown:hover>.mega-menu,
    .navbar-main .dropdown:focus-within>.mega-menu {
        display: none !important;
    }

    .navbar-main {
        padding: 10px 0;
    }

    .navbar-main .nav-link {
        padding: 10px 10px !important;
    }

    /* Mobile-only: JS toggles ".show" on click/tap */
    .navbar-main .dropdown.show>.mega-menu {
        display: grid;
        position: static;
        width: 100%;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: .75rem;
        padding: .75rem 0 1rem;
        border-top: 0;
        border-radius: 0;
        transform: none;
        box-shadow: none;
        background: transparent;
        animation: megaMenuMobileIn .24s ease-out both;
    }

    .navbar-main .mega-menu-small,
    .navbar-main .mega-menu-ai,
    .navbar-main .mega-menu-reviews {
        grid-template-columns: 1fr;
    }

    .mega-column h3 {
        margin-bottom: .5rem;
        font-size: 1rem;
    }

    .mega-column a {
        margin: 0;
        padding: .3rem 0;
    }
}

@media (max-width: 767.98px) {
    .info-bar .ib-left-content {
        display: none !important;
    }

    .info-bar .info-actions {
        width: 100%;
        justify-content: space-between;
        gap: .5rem !important;
        flex-wrap: nowrap;
    }

    .info-bar .ib-plain {
        white-space: nowrap;
        font-size: .7rem;
    }
}

@media (min-width: 992px) {
    .navbar-main .dropdown>.nav-link {
        transition: background-color .2s ease, color .2s ease;
    }

    /* Hard guarantee: if the item is neither hovered nor
       focus-within, the menu is force-closed. No class can
       override this on desktop. */
    .navbar-main .dropdown:not(:hover):not(:focus-within)>.mega-menu {
        display: none !important;
    }

    .navbar-main .dropdown:hover>.nav-link,
    .navbar-main .dropdown:focus-within>.nav-link {
        background: var(--teal);
        color: #fff;
    }


}




@keyframes megaMenuMobileIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Case Study Image */
.mega-case img {
    width: 100%;
    height: 56px;
    display: block;
    object-fit: cover;
    margin-bottom: 10px;
}