/* ============================================================
   Herrington Mega Menu — Frontend Styles
   ============================================================ */

/* Reset inside our namespace */
.hmm-wrap *,
.hmm-dropdown * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.hmm-navbar {
    background: #0e1014;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 58px;
    padding: 0 40px;
    border-bottom: 1px solid #1e2128;
    position: relative;
    z-index: 1000;
    flex-wrap: nowrap;
}

.hmm-logo {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.hmm-logo img {
    width: 120px;
    height: auto;
}

.hmm-nav-item {
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 58px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
}

.hmm-nav-item:hover {
    color: #fff;
}

.hmm-nav-item.hmm-active {
    color: #fff;
    border-bottom-color: #4e9af1;
}

/* Arrow indicator */
.hmm-arr {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #aaa;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.hmm-nav-item.hmm-active .hmm-arr {
    transform: rotate(180deg);
    border-top-color: #fff;
}

/* CTA Button */
.hmm-nav-right {
    margin-left: auto;
    flex-shrink: 0;
}

.hmm-cta-btn {
    color: #ccc;
    font-size: 13px;
    padding: 6px 16px;
    border: 1px solid #2a2d35;
    border-radius: 4px;
    background: transparent;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.hmm-cta-btn:hover {
    border-color: #4e9af1;
    color: #fff;
}

/* ── DROPDOWN PANELS ─────────────────────────────────────── */
.hmm-dropdown {
    background: #141720;
    border-top: 1px solid #1e2128;
    display: none;
    padding: 36px 40px 44px;
    gap: 60px;
    position: relative;
    z-index: 999;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hmm-dropdown.hmm-open {
    display: flex;
}

/* Left panel */
.hmm-dd-left {
    min-width: 260px;
    max-width: 290px;
    flex-shrink: 0;
}

.hmm-dd-label {
    color: #4e9af1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hmm-dd-heading {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hmm-dd-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.hmm-dd-cta {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.hmm-dd-cta:hover {
    color: #4e9af1;
}

/* ── WHO WE ARE — link list ──────────────────────────────── */
.hmm-dd-links {
    display: flex;
    flex-direction: column;
    min-width: 210px;
}

.hmm-dd-links a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #1e2128;
    transition: color 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hmm-dd-links a:hover {
    color: #fff;
}

.hmm-dd-links a:last-child {
    border-bottom: none;
}

/* ── WHAT WE DO — tab layout ─────────────────────────────── */
.hmm-tab-wrap {
    display: flex;
    gap: 32px;
    flex: 1;
}

.hmm-tab-nav {
    display: flex;
    flex-direction: column;
    min-width: 195px;
    flex-shrink: 0;
}

.hmm-tab-btn {
    color: #888;
    font-size: 13px;
    padding: 12px 14px;
    border-bottom: 1px solid #1e2128;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    background: transparent;
}

.hmm-tab-btn:hover {
    background: #1a1d26;
    color: #ddd;
}

.hmm-tab-btn.hmm-tab-active {
    background: #1e2230;
    color: #fff;
}

.hmm-tab-btn:last-child {
    border-bottom: none;
}

.hmm-tarr {
    font-size: 10px;
    color: #555;
    flex-shrink: 0;
}

.hmm-tab-btn.hmm-tab-active .hmm-tarr {
    color: #4e9af1;
}

/* Tab panels */
.hmm-tab-content {
    display: none;
    flex: 1;
    gap: 40px;
}

.hmm-tab-content.hmm-tab-show {
    display: flex;
}

.hmm-tab-col {
    display: flex;
    flex-direction: column;
    min-width: 170px;
}

.hmm-tab-col a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #1e2128;
    transition: color 0.15s;
    white-space: nowrap;
}

.hmm-tab-col a:hover {
    color: #fff;
}

.hmm-tab-col a:last-child {
    border-bottom: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hmm-navbar {
        gap: 18px;
        padding: 0 24px;
    }
}

@media (max-width: 991px) {
    .hmm-navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
        align-items: flex-start;
    }
    .hmm-logo {
        width: 100%;
        margin-right: 0;
    }
    .hmm-nav-right {
        margin-left: 0;
        width: 100%;
    }
    .hmm-nav-item {
        width: 100%;
        min-height: 42px;
        justify-content: space-between;
        padding: 0 2px;
        border-bottom-width: 1px;
    }
    .hmm-cta-btn {
        display: inline-flex;
    }
    .hmm-dropdown {
        flex-direction: column;
        gap: 20px;
        padding: 18px 16px 24px;
    }
    .hmm-tab-nav {
        min-width: 100%;
    }
    .hmm-tab-content {
        flex-direction: column;
        gap: 20px;
    }
    .hmm-tab-col {
        min-width: 100%;
    }
    .hmm-tab-col a {
        white-space: normal;
        word-break: break-word;
    }
    .hmm-dd-left {
        min-width: 100%;
        max-width: 100%;
    }
    .hmm-dd-heading {
        font-size: 20px;
        line-height: 1.3;
    }
    .hmm-dd-desc {
        line-height: 1.6;
    }
    .hmm-tab-wrap {
        flex-direction: column;
        gap: 20px;
    }
    .hmm-tab-content.hmm-tab-show {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hmm-dd-heading {
        font-size: 17px;
    }
    .hmm-dd-desc,
    .hmm-tab-col a,
    .hmm-tab-btn {
        font-size: 12px;
    }
}
