/*
 * CODFIX v5.15.7 HF9
 * Separate Products / Services hover dropdowns.
 *
 * IMPORTANT:
 * - Does NOT change header position/sticky/top/z-index.
 * - Does NOT change html/body overflow.
 * - Does NOT modify mobile navigation.
 */

.cfx5157-nav-dd {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 130;
    background: rgba(255, 255, 255, .985);
    border-top: 1px solid #f2f4f7;
    border-bottom: 1px solid #eaecf0;
    box-shadow: 0 28px 55px rgba(16, 24, 40, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.cfx5157-nav-dd.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.cfx5157-nav-dd-inner {
    padding: 22px 20px 26px;
}

.cfx5157-nav-dd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.cfx5157-nav-dd-head > span {
    color: var(--cfx5121-orange, #f97316);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.cfx5157-nav-dd-head > a {
    color: var(--cfx5121-orange, #f97316);
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
}

.cfx5157-nav-dd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.cfx5157-nav-dd-grid > a {
    display: block;
    padding: 12px 2px;
    border-bottom: 1px solid #f2f4f7;
    text-decoration: none;
}

.cfx5157-nav-dd-grid > a strong {
    display: block;
    color: #101828;
    font-size: .95rem;
    line-height: 1.5;
}

.cfx5157-nav-dd-grid > a small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: .78rem;
    line-height: 1.7;
}

.cfx5157-nav-dd-grid > a:hover strong,
.cfx5157-nav-dd-grid > a:focus-visible strong,
.cfx5157-nav-dd-head > a:hover,
.cfx5157-nav-dd-head > a:focus-visible {
    color: var(--cfx5121-orange, #f97316);
}

.cfx5157-nav-dd-grid > a:focus-visible,
.cfx5157-nav-dd-head > a:focus-visible {
    outline: 2px solid rgba(249, 115, 22, .35);
    outline-offset: 3px;
    border-radius: 8px;
}

.cfx5121-nav > [data-cfx5157-nav-trigger] {
    position: relative;
}

html[data-theme="dark"] .cfx5157-nav-dd {
    background: rgba(16, 24, 40, .985);
    border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .cfx5157-nav-dd-grid > a {
    border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .cfx5157-nav-dd-grid > a strong {
    color: #fff;
}

html[data-theme="dark"] .cfx5157-nav-dd-grid > a small {
    color: #98a2b3;
}

/* Desktop navigation is already hidden by the canonical CODFIX CSS <= 1100px. */
@media (max-width: 1100px) {
    .cfx5157-nav-dd {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cfx5157-nav-dd {
        transition: none;
        transform: none;
    }
}
