/* ==========================================================================
   ETL Site Enhancements - clean design polish, fully responsive
   Loaded after the theme stylesheet.
   ========================================================================== */

:root {
    --etl-blue: #638aff;
    --etl-dark: #2b2f36;
    --etl-muted: #6b7280;
    --etl-line: #e6e8ee;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* ---------- Header ------------------------------------------------------ */
.header {
    position: relative;
    z-index: 50;
}
.menu-top-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    box-shadow: 0 2px 14px rgba(20, 30, 60, .08);
}
.header .gridContainer .row.border_bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
    border-bottom: 1px solid var(--etl-line);
}
.logo_col {
    float: none !important;
    width: auto !important;
    flex: 0 0 auto;
    padding: 0 !important;
}
.logo_col .text-logo,
.logo_col a {
    display: inline-block;
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    white-space: nowrap;
    color: var(--etl-dark) !important;
}
.logo_col img.custom-logo { max-height: 56px; width: auto; }

.main_menu_col {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    padding: 0 !important;
}
#drop_mainmenu_container { width: 100%; }
ul.fm2_drop_mainmenu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul.fm2_drop_mainmenu > li {
    float: none !important;
    margin: 0 !important;
    position: relative;
}
ul.fm2_drop_mainmenu > li > a {
    display: block;
    padding: 10px 2px;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--etl-dark) !important;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
ul.fm2_drop_mainmenu > li > a:hover,
ul.fm2_drop_mainmenu > li.current_page_item > a {
    color: var(--etl-blue) !important;
    border-bottom-color: var(--etl-blue);
}
ul.fm2_drop_mainmenu ul.sub-menu,
ul.fm2_drop_mainmenu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    min-width: 210px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 30, 60, .14);
    border: 1px solid var(--etl-line);
    list-style: none;
    display: none;
}
ul.fm2_drop_mainmenu li:hover > .sub-menu { display: block; }
ul.fm2_drop_mainmenu .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--etl-dark);
    text-decoration: none;
}
ul.fm2_drop_mainmenu .sub-menu a:hover { background: #f4f7ff; color: var(--etl-blue); }

/* Mobile toggle button */
.etl-menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 40px;
    border: 1px solid var(--etl-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 9px;
}
.etl-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--etl-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ---------- Page title -------------------------------------------------- */
.header_title h1.heading98 {
    font-size: clamp(30px, 4vw, 52px) !important;
    letter-spacing: -1px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0,0,0,.12);
}

/* ---------- Content ----------------------------------------------------- */
.content, .site-content, #content {
    font-size: 16px;
}
.wpb_text_column p { margin-bottom: 18px; }
.etl-vc-heading { color: var(--etl-dark); font-weight: 800; }
a { color: var(--etl-blue); }
a:hover { color: #3f61d1; }
.widget {
    border: 1px solid var(--etl-line);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
    background: #fff;
}
.widget h2.widgettitle {
    margin-top: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---------- Footer ------------------------------------------------------ */
.footer {
    background: var(--etl-dark) !important;
    border-top: 5px solid var(--etl-blue) !important;
    padding: 28px 0;
}
.footer_left p { color: #cbd0d8; font-size: 13px; margin: 0; }
.footer_right { text-align: right; }
.footer_right .footer-logo {
    font-size: 26px !important;
    line-height: 1.15;
    color: #fff !important;
    margin: 0;
    white-space: nowrap;
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
    .header .gridContainer .row.border_bottom { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .etl-menu-toggle { display: block; }
    ul.fm2_drop_mainmenu {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--etl-line);
        padding: 8px 0 14px;
    }
    body.etl-nav-open ul.fm2_drop_mainmenu { display: flex !important; }
    ul.fm2_drop_mainmenu > li > a {
        padding: 12px 6px;
        font-size: 13px;
        border-bottom: 1px solid var(--etl-line);
    }
    ul.fm2_drop_mainmenu ul.sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        padding-left: 14px;
    }
    ul.fm2_drop_mainmenu li:hover > .sub-menu { display: none; }
    ul.fm2_drop_mainmenu li.current_page_item > .sub-menu { display: block; }
    body.etl-nav-open .etl-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.etl-nav-open .etl-menu-toggle span:nth-child(2) { opacity: 0; }
    body.etl-nav-open .etl-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 782px) {
    .etl-vc-row { display: block; margin-left: 0; margin-right: 0; }
    .etl-vc-row > .wpb_column {
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 28px;
    }
    .logo_col .text-logo, .logo_col a { font-size: 22px !important; }
    .header_title h1.heading98 { font-size: 30px !important; }
    .footer_left, .footer_right {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer_right { margin-top: 12px; }
    .footer_right .footer-logo { font-size: 22px !important; white-space: normal; }
    .etl-vc-gmaps iframe { min-height: 260px; }
}
