/* Wildcore — header + mobile optimization (v4) */

/* 1. Logo size cap */
.elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container,
.elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container img {
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
}
.elementor-widget-cmsmasters-site-logo__image-container img {
    max-width: 120px !important;
}

/* 2. Green top promo banner */
.elementor-element-f3b378c,
.elementor-element-2dfcfba5 {
    background-color: #074240 !important;
}
.elementor-element-2dfcfba5 {
    text-align: center !important;
    padding: 6px 16px !important;
}
.elementor-element-2dfcfba5 h2.elementor-heading-title,
.elementor-element-2dfcfba5 .elementor-heading-title {
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    letter-spacing: .5px !important;
    text-align: center !important;
    color: #ffffff !important;
}
.elementor-element-2dfcfba5 img.emoji {
    height: 16px !important;
    width: 16px !important;
    vertical-align: middle !important;
}

/* 3. Whitish translucent header */
header.elementor-182 {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
header.elementor-182 .elementor-element-f3b378c,
header.elementor-182 .elementor-element-2dfcfba5 {
    background-color: #074240 !important;
}

/* 4. Main header container */
.elementor-element-f487411 {
    display: flex !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 10px 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Desktop (≥1024px): single horizontal row */
@media (min-width: 1024px) {
    .elementor-element-f487411 {
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 30px !important;
    }
    .elementor-element-3eea87f9,
    .elementor-element-6bbc55dd,
    .elementor-element-3747468f {
        display: flex !important;
        width: auto !important;
        align-items: center !important;
    }
    .elementor-element-3eea87f9 { flex: 0 0 auto !important; }
    .elementor-element-6bbc55dd { flex: 1 1 auto !important; justify-content: center !important; }
    .elementor-element-3747468f { flex: 0 0 auto !important; }

    .elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container,
    .elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container img {
        max-height: 60px !important;
    }
    .elementor-widget-cmsmasters-site-logo__image-container img {
        max-width: 60px !important;
    }
}

/* 6. Tablet/Mobile (<1024px): logo left + hamburger right — main bar stays visible */
@media (max-width: 1023px) {
    .elementor-element-69d2afc {
        display: flex !important;
    }
    .elementor-element-f487411 {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding: 8px 16px !important;
    }
    /* Override e-con-full 100% width — children should size to content */
    .elementor-element-3eea87f9 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 50% !important;
    }
    .elementor-element-3747468f {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
    }
    /* Make sure hamburger is visible (it should be by default with elementor-hidden-widescreen, but ensure) */
    .elementor-element-4ad0ef2e {
        display: block !important;
        visibility: visible !important;
    }
    /* Hide desktop nav (should already be hidden by elementor-hidden-tablet/-mobile) */
    .elementor-element-6bbc55dd { display: none !important; }

    /* Smaller logo on mobile */
    .elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container,
    .elementor-widget-cmsmasters-site-logo .elementor-widget-cmsmasters-site-logo__image-container img {
        max-height: 44px !important;
    }
    .elementor-widget-cmsmasters-site-logo__image-container img {
        max-width: 44px !important;
    }

    /* Hide floating Click here button on mobile */
    .elementor-element-1af2d546 { display: none !important; }
}

/* 7. Phone (≤600px) */
@media (max-width: 600px) {
    .elementor-element-2dfcfba5 h2.elementor-heading-title,
    .elementor-element-2dfcfba5 .elementor-heading-title {
        font-size: 12px !important;
        letter-spacing: .25px !important;
    }
    .elementor-element-2dfcfba5 img.emoji {
        height: 14px !important;
        width: 14px !important;
    }
    .elementor-element-2dfcfba5 { padding: 5px 10px !important; }

    .elementor-widget-heading h1.elementor-heading-title,
    h1.elementor-heading-title {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }
    .elementor-widget-heading h2.elementor-heading-title,
    h2.elementor-heading-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    .elementor-button, .cmsmasters-button {
        min-height: 44px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    body, html { overflow-x: hidden !important; }
}

/* 8. Mobile hamburger icon color — was white, invisible on white header */
@media (max-width: 1023px) {
    .elementor-element-4ad0ef2e a.elementor-icon,
    .elementor-element-4ad0ef2e .elementor-icon,
    .elementor-element-4ad0ef2e .elementor-icon i {
        color: #074240 !important;
        font-size: 32px !important;
    }
    .elementor-element-4ad0ef2e a.elementor-icon:hover,
    .elementor-element-4ad0ef2e .elementor-icon:hover {
        color: #052f2d !important;
    }
}
