﻿/* =========================================================
   GCOMPANY â€” PREMIUM LIQUID-GLASS DROPDOWN NAVIGATION
   Shared stylesheet used by all top-level website pages.
========================================================= */

.g-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.g-nav-trigger-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.g-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #E0A97D;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.g-dropdown-toggle i {
    font-size: 10px;
    transition: transform .3s ease;
}

.g-nav-dropdown.is-open .g-dropdown-toggle i {
    transform: rotate(180deg);
}

.g-dropdown-toggle:hover,
.g-dropdown-toggle:focus-visible {
    color: #fff;
    background: rgba(224, 169, 125, .13);
    outline: none;
}

.g-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 550px;
    max-width: calc(100vw - 32px);
    padding: 15px;
    margin: 0;
    border: 1px solid rgba(224, 169, 125, .30);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(30, 16, 61, .97), rgba(21, 12, 56, .96));
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.g-services-dropdown .g-dropdown-menu { width: 550px; }
.g-portfolio-dropdown .g-dropdown-menu { width: 370px; }

/* Hover bridge keeps the panel open while the pointer moves into it. */
.g-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 13px;
}

.g-dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, .80);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .01em;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

/* Disable the main navigation's animated underline inside dropdown items. */
.g-dropdown-menu a::after { display: none !important; }

.g-dropdown-menu a:hover,
.g-dropdown-menu a:focus-visible,
.g-dropdown-menu a.active {
    color: #F2C16D;
    background: rgba(112, 0, 53, .38);
    border-color: rgba(224, 169, 125, .25);
    transform: translateX(3px);
    outline: none;
}

@media (min-width: 992px) {
    .g-nav-dropdown:hover > .g-dropdown-menu,
    .g-nav-dropdown:focus-within > .g-dropdown-menu,
    .g-nav-dropdown.is-open > .g-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .g-nav-dropdown.is-current > .g-nav-trigger-row > a::after {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .g-nav-dropdown {
        display: block;
        width: 100%;
    }

    .g-nav-trigger-row {
        width: 100%;
        justify-content: space-between;
    }

    .g-dropdown-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .g-dropdown-menu,
    .g-services-dropdown .g-dropdown-menu,
    .g-portfolio-dropdown .g-dropdown-menu {
        position: static;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 4px;
        margin: 8px 0 13px;
        padding: 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .035);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .g-dropdown-menu::before { display: none; }
    .g-nav-dropdown.is-open > .g-dropdown-menu { display: grid; }

    .g-dropdown-menu a {
        min-height: 40px;
        padding: 9px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .g-dropdown-menu,
    .g-services-dropdown .g-dropdown-menu,
    .g-portfolio-dropdown .g-dropdown-menu {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   GCOMPANY â€” ANIMATED WHITE SUBMENU UNDERLINE
   Restores the left-to-right white underline on hover/focus.
========================================================= */
.g-dropdown-menu a::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 12px;
    bottom: 5px;
    width: 0;
    height: 1.5px;
    border: 0;
    border-radius: 2px;
    background: #ffffff;
    opacity: .95;
    transform: none;
    transition: width .32s ease;
}

.g-dropdown-menu a:hover::after,
.g-dropdown-menu a:focus-visible::after,
.g-dropdown-menu a.active::after {
    width: calc(100% - 24px);
}
