/* CSS layout styling for Mega Menu Header */
.mmh-9074f35f-wrapper {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.mmh-9074f35f-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #FFFFFF;
    position: relative;
    z-index: 999;
}

.mmh-9074f35f-logo img {
    display: block;
    width: auto;
}

.mmh-9074f35f-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #214462;
    text-decoration: none;
}

/* Nav Desktop */
.mmh-9074f35f-nav-desktop {
    display: flex;
    align-items: center;
}

.mmh-9074f35f-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.mmh-9074f35f-nav-item {
    position: relative;
}

.mmh-9074f35f-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #214462;
    text-decoration: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease-in-out;
}

.mmh-9074f35f-arrow {
    font-size: 8px;
    transition: transform 0.2s;
}

.mmh-9074f35f-nav-item:hover .mmh-9074f35f-arrow {
    transform: rotate(180deg);
}

/* Mega dropdown panel positioning */
.mmh-9074f35f-mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 90vw;
    max-width: 1200px;
    background: #FFFFFF;
    border-top: 3px solid #E11C09;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.mmh-9074f35f-nav-item:hover .mmh-9074f35f-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mmh-9074f35f-mega-grid {
    display: grid;
    padding: 35px 35px 25px 35px;
    gap: 30px;
}

.mmh-9074f35f-plumbing-grid {
    grid-template-columns: 1fr 1fr;
}

.mmh-9074f35f-industries-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
}

.mmh-9074f35f-mega-heading {
    font-size: 16px;
    font-weight: 700;
    color: #214462;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.mmh-9074f35f-mega-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #E11C09;
}

.mmh-9074f35f-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mmh-9074f35f-plumbing-grid .mmh-9074f35f-sublist {
    grid-template-columns: 1fr 1fr;
}

.mmh-9074f35f-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.mmh-9074f35f-sublink:hover {
    transform: translateX(4px);
}

.mmh-9074f35f-sublink-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.mmh-9074f35f-sublink-icon svg {
    width: 16px;
    height: 16px;
}

.res-icon {
    color: #214462;
}

.res-icon svg {
    fill: #214462;
}

.com-icon {
    color: #E11C09;
}

.com-icon svg {
    fill: #E11C09;
}

.mmh-9074f35f-sublink-text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease-in-out;
}

/* Action Strip */
.mmh-9074f35f-action-strip {
    background-color: #F8FAFC;
    padding: 15px 35px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #F1F5F9;
}

.mmh-9074f35f-strip-link {
    font-size: 13px;
    font-weight: 600;
    color: #214462;
    text-decoration: none;
    transition: color 0.2s;
}

.mmh-9074f35f-strip-link:hover {
    color: #E11C09;
}

/* Partner Card */
.mmh-9074f35f-partner-card {
    background-color: #214462;
    color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mmh-9074f35f-partner-card h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-top: 0;
    font-weight: 700;
}

.mmh-9074f35f-partner-card p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 15px 0 20px 0;
}

.mmh-9074f35f-partner-btn {
    background-color: #FFFFFF;
    color: #214462;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mmh-9074f35f-partner-btn:hover {
    background-color: #F1F5F9;
}

/* Main CTA & Global CTA Buttons */
.mmh-9074f35f-cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #E11C09;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border-radius: 4px;
    transition: opacity 0.2s;
    text-align: center;
    white-space: nowrap;
}

.mmh-9074f35f-cta-btn:hover {
    opacity: 0.9;
}

/* Mobile Toggle & Menu */
.mmh-9074f35f-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mmh-9074f35f-bar {
    width: 24px;
    height: 3px;
    background-color: #214462;
    transition: 0.3s;
}

.mmh-9074f35f-mobile-drawer {
    display: none;
}

/* Responsive breakpoint: 1024px */
@media (max-width: 1024px) {
    .mmh-9074f35f-header {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mmh-9074f35f-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .mmh-9074f35f-logo img {
        margin: 0 auto;
    }

    .mmh-9074f35f-nav-desktop {
        display: none;
    }

    .mmh-9074f35f-cta {
        display: block; /* Render on mobile on the far-right */
        z-index: 1000;
    }

    .mmh-9074f35f-cta .mmh-9074f35f-cta-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .mmh-9074f35f-mobile-toggle {
        display: flex;
        z-index: 1000;
    }

    /* Mobile Drawer Open Styles */
    .mmh-9074f35f-mobile-drawer {
        display: block;
        position: fixed;
        top: 80px; /* Offset to float nicely */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: #FFFFFF;
        z-index: 998;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid #E2E8F0;
    }

    .mmh-9074f35f-wrapper.drawer-open .mmh-9074f35f-mobile-drawer {
        transform: translateX(0);
    }

    .mmh-9074f35f-wrapper.drawer-open .mmh-9074f35f-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mmh-9074f35f-wrapper.drawer-open .mmh-9074f35f-bar:nth-child(2) {
        opacity: 0;
    }

    .mmh-9074f35f-wrapper.drawer-open .mmh-9074f35f-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mmh-9074f35f-nav-list-mobile {
        list-style: none;
        padding: 20px;
        margin: 0;
    }

    .mmh-9074f35f-mobile-link,\n    .mmh-9074f35f-accordion-trigger {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #214462;
        padding: 15px 0;
        text-decoration: none;
        border-bottom: 1px solid #F1F5F9;
        cursor: pointer;
    }

    .mmh-9074f35f-accordion-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mmh-9074f35f-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .mmh-9074f35f-accordion-content.open {
        max-height: 1200px;
    }

    .mmh-9074f35f-acc-inner {
        padding: 15px;
        background: #F8FAFC;
        border-radius: 6px;
    }

    .mmh-9074f35f-acc-section-title {
        font-size: 14px;
        font-weight: 700;
        color: #E11C09;
        margin: 15px 0 10px 0;
    }

    .mmh-9074f35f-acc-sublinks {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mmh-9074f35f-acc-sublinks li a {
        display: block;
        padding: 8px 0;
        font-size: 13px;
        color: #475569;
        text-decoration: none;
    }
}
