/**
 * Service Area mega menu styles.
 *
 * Targets the trigger <li class="mega-service-areas cw-mega-trigger"> rendered
 * by CW_Service_Area_Mega_Walker and the .cw-mega-panel injected in its sub-menu slot.
 */

.menu-item.mega-service-areas,
.menu-item.cw-mega-trigger {
    position: static; /* let the panel size to the nav row */
}

.cw-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    background: #ffffff;
    color: #0b1220;
    padding: 32px 40px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18);
    border-top: 1px solid #e5e7eb;
    display: none;
    font-family: inherit;
}

.menu-item.cw-mega-trigger:hover > .cw-mega-panel,
.menu-item.cw-mega-trigger:focus-within > .cw-mega-panel,
.menu-item.cw-mega-trigger.is-open > .cw-mega-panel {
    display: block;
}

.cw-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(280px, 360px);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

.cw-mega-col {
    min-width: 0;
}

.cw-mega-county + .cw-mega-county {
    margin-top: 24px;
}

.cw-mega-county-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b1220;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-mega-county-icon {
    display: inline-flex;
    align-items: center;
    color: #0b1220;
    line-height: 1;
}

.cw-mega-areas {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-mega-area {
    margin: 0;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.4;
}

.cw-mega-area a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cw-mega-area a:hover,
.cw-mega-area a:focus {
    color: #f5b400; /* matches the brand yellow CTA */
}

.cw-mega-area.is-coming-soon a {
    color: #94a3b8;
    pointer-events: auto;
}

.cw-mega-suffix-soon {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 4px;
}

.cw-mega-viewall {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.cw-mega-viewall a {
    color: #0b1220;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.cw-mega-viewall a:hover {
    color: #f5b400;
}

/* Right-hand card */
.cw-mega-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 22px 20px;
}

.cw-mega-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0b1220;
}

.cw-mega-card-icon {
    font-size: 18px;
}

.cw-mega-card-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.cw-mega-card-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.cw-mega-card-bullets li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.cw-mega-card-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0b1220;
}

.cw-mega-card-bullets li + li {
    margin-top: 6px;
}

.cw-mega-card-cta {
    margin: 0;
}

.cw-mega-card-cta a {
    color: #0b1220;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.cw-mega-card-cta a:hover {
    color: #f5b400;
}

/* Hide the placeholder <li> our walker inserts to force the dropdown open */
.cw-mega-panel + .cw-mega-placeholder,
.menu-item.cw-mega-placeholder {
    display: none !important;
}

@media (max-width: 1024px) {
    .cw-mega-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cw-mega-card-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .cw-mega-panel {
        position: static;
        padding: 16px;
        box-shadow: none;
        border-top: none;
    }
    .cw-mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
