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

.hmm-wrap *,
.hmm-dropdown * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hmm-wrap { position: relative; width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.hmm-navbar {
    background: #0e1014;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    padding: 0 48px;
    border-bottom: 1px solid #1e2128;
    position: relative;
    z-index: 1000;
    width: 100%;
}

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

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

/* Desktop nav items wrapper */
.hmm-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.hmm-nav-item {
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 64px;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

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

.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;
    margin-left: 2px;
}

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

.hmm-nav-right {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hmm-cta-btn {
    color: #ccc;
    font-size: 13px;
    padding: 7px 18px;
    border: 1px solid #2a2d35;
    border-radius: 4px;
    background: transparent;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    cursor: pointer;
}

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

/* ── HAMBURGER ───────────────────────────────────────────── */
.hmm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid #2a2d35;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.hmm-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.hmm-hamburger.hmm-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hmm-hamburger.hmm-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hmm-hamburger.hmm-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hmm-hamburger:hover span { background: #fff; }

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.hmm-mobile-drawer {
    display: none;
    flex-direction: column;
    background: #0e1014;
    border-top: 1px solid #1e2128;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
    width: 100%;
}

.hmm-mobile-drawer.hmm-drawer-open { max-height: 90vh; overflow-y: auto; }

.hmm-mob-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #1e2128;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font-family: inherit;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.hmm-mob-item:hover,
.hmm-mob-item.hmm-mob-active { background: #141720; color: #fff; }

.hmm-mob-arr {
    font-size: 20px;
    color: #555;
    transition: transform 0.2s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.hmm-mob-item.hmm-mob-active .hmm-mob-arr { transform: rotate(90deg); color: #4e9af1; }

/* Mobile sub-panel */
.hmm-mob-sub {
    display: none;
    flex-direction: column;
    background: #141720;
    border-bottom: 2px solid #1e2128;
    padding: 0 20px 20px;
    animation: hmmSlideDown 0.2s ease;
}

.hmm-mob-sub.hmm-mob-sub-open { display: flex; }

@keyframes hmmSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hmm-mob-sub-label {
    color: #4e9af1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 0 10px;
    display: block;
}

.hmm-mob-sub-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hmm-mob-sub-desc {
    color: #888;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hmm-mob-sub-links { display: flex; flex-direction: column; }

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

.hmm-mob-sub-links a:hover { color: #fff; }
.hmm-mob-sub-links a:last-child { border-bottom: none; }

.hmm-mob-sub-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4e9af1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 4px;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 16px;
    transition: background 0.15s;
}

.hmm-mob-sub-cta:hover { background: #2e7fd8; }

/* Mobile tab list (What We Do) */
.hmm-mob-tab-list { display: flex; flex-direction: column; }

.hmm-mob-tab-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #aaa;
    font-size: 13px;
    border-bottom: 1px solid #1e2128;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    background: none;
    width: 100%;
    text-align: left;
    transition: color 0.15s;
}

.hmm-mob-tab-trigger:hover { color: #fff; }
.hmm-mob-tab-trigger.hmm-mob-tab-open { color: #fff; }

.hmm-mob-tarr {
    font-size: 14px;
    color: #555;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.hmm-mob-tab-trigger.hmm-mob-tab-open .hmm-mob-tarr { transform: rotate(90deg); color: #4e9af1; }

.hmm-mob-tab-content {
    display: none;
    flex-direction: column;
    padding: 4px 0 4px 14px;
    border-bottom: 1px solid #1e2128;
}

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

.hmm-mob-tab-content a {
    color: #888;
    font-size: 12px;
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid #1e2128;
    transition: color 0.15s;
    display: block;
}

.hmm-mob-tab-content a:hover { color: #4e9af1; }
.hmm-mob-tab-content a:last-child { border-bottom: none; }

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

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

.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;
    display: block;
}

.hmm-dd-heading {
    color: #fff;
    font-size: 20px;
    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; }

.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; }

.hmm-tab-wrap { display: flex; gap: 32px; flex: 1; min-width: 0; }

.hmm-tab-nav {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    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;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.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; }

.hmm-tab-content { display: none; flex: 1; gap: 40px; min-width: 0; }
.hmm-tab-content.hmm-tab-show { display: flex; }

.hmm-tab-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }

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

.hmm-tab-col a:hover { color: #fff; }
.hmm-tab-col a:last-child { border-bottom: none; }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (min-width: 1440px) {
    .hmm-navbar   { padding: 0 64px; height: 70px; gap: 6px; }
    .hmm-dropdown { padding: 44px 64px 52px; gap: 72px; }
    .hmm-nav-item { height: 70px; font-size: 14px; padding: 0 14px; }
    .hmm-dd-left  { min-width: 280px; max-width: 320px; }
    .hmm-dd-heading { font-size: 22px; }
}

@media (max-width: 1280px) {
    .hmm-navbar   { padding: 0 32px; }
    .hmm-dropdown { padding: 32px 32px 40px; gap: 44px; }
    .hmm-dd-left  { min-width: 230px; max-width: 255px; }
    .hmm-tab-nav  { min-width: 180px; }
}

@media (max-width: 1100px) {
    .hmm-navbar   { padding: 0 24px; gap: 0; }
    .hmm-dropdown { padding: 28px 24px 36px; gap: 30px; }
    .hmm-nav-item { font-size: 12px; padding: 0 8px; }
    .hmm-tab-nav  { min-width: 165px; }
    .hmm-tab-content { gap: 24px; }
    .hmm-dd-left  { min-width: 210px; max-width: 230px; }
    .hmm-dd-heading { font-size: 18px; }
}

/* ── MOBILE (≤991px): hamburger + drawer ─────────────────── */
@media (max-width: 991px) {
    .hmm-hamburger   { display: flex; }
    .hmm-nav-links   { display: none !important; }
    .hmm-nav-right   { display: none !important; }
    .hmm-dropdown    { display: none !important; }
    .hmm-mobile-drawer { display: flex; }

    .hmm-navbar { height: 56px; padding: 0 20px; }
    .hmm-logo   { margin-right: 0; font-size: 18px; }
}

@media (max-width: 767px) {
    .hmm-navbar  { height: 52px; padding: 0 16px; }
    .hmm-logo img { width: 100px; }
    .hmm-mob-item { font-size: 13px; padding: 13px 16px; }
    .hmm-mob-sub  { padding: 0 16px 16px; }
}

@media (max-width: 480px) {
    .hmm-navbar  { height: 50px; padding: 0 14px; }
    .hmm-mob-sub-heading { font-size: 15px; }
    .hmm-mob-sub-links a { font-size: 12px; }
    .hmm-mob-tab-trigger { font-size: 12px; }
    .hmm-mob-tab-content a { font-size: 12px; }
}

@media (max-width: 360px) {
    .hmm-navbar  { height: 48px; padding: 0 12px; }
    .hmm-hamburger { width: 36px; height: 36px; }
    .hmm-mob-item { font-size: 12px; padding: 12px 14px; }
    .hmm-mob-sub-links a,
    .hmm-mob-tab-content a { font-size: 11px; }
}
