/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

/* TOP BAR */
.bth-topbar {
    background: #f0f8f8;
    border-bottom: 1px solid #d0e8e8;
    color: #555555;
    font-size: 12px;
    padding: 6px 0;
}

.bth-topbar-inner {
    max-width: 1410px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.bth-topbar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bth-topbar a {
    color: #1c9193;
    text-decoration: none;
    font-weight: 500;
}

.bth-topbar a:hover {
    text-decoration: underline;
}

.bth-sep {
    color: #cccccc;
}

/* HEADER MAIN */
.bth-header-main {
    background: #ffffff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 10;
}

.bth-header-inner {
    max-width: 1410px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.bth-logo-wrap a {
    display: block;
}

.bth-logo-wrap img {
    height: 68px;
    width: auto;
    display: block;
}

.bth-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a4a;
    text-decoration: none;
}

.bth-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SEARCH */
.bth-search-bar .search-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #d0e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fefe;
    box-shadow: 0 1px 4px rgba(28, 145, 147, 0.08);
}

.bth-search-bar .search-field {
    border: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    width: 220px;
    color: #333333;
}

.bth-search-bar .search-field::placeholder {
    color: #aaaaaa;
}

.bth-search-bar .search-submit {
    background: #1c9193;
    border: none;
    color: #ffffff;
    padding: 9px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s;
}

.bth-search-bar .search-submit:hover {
    background: #167a7b;
}

/* HAMBURGER — ascuns pe desktop */
.bth-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #1c9193;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 12px;
}

.bth-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* NAV */
.bth-primary-nav {
    background: #1c9193;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bth-nav-inner {
    max-width: 1410px;
    margin: 0 auto;
    width: 100%;
}

.bth-menu {
    list-style: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
}

.bth-menu > li {
    position: relative;
}

.bth-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    padding-bottom: 11px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.bth-menu > li > a:hover,
.bth-menu > li.current-menu-item > a,
.bth-menu > li.current-menu-ancestor > a {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background: rgba(0, 0, 0, 0.1);
}

.bth-arrow {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 1px;
}

/* DROPDOWN — DESKTOP */
.bth-dropdown,
.bth-subdropdown {
    display: none;
    position: absolute;
    background: #ffffff;
    border-top: 3px solid #1c9193;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
}

.bth-dropdown {
    top: 100%;
    left: 0;
}

.bth-subdropdown {
    top: 0;
    left: auto;
    right: 100%;
    z-index: 1000;
}

.bth-menu > li:hover > .bth-dropdown,
.bth-menu > li:focus-within > .bth-dropdown,
.bth-dropdown > li:hover > .bth-subdropdown,
.bth-dropdown > li:focus-within > .bth-subdropdown {
    display: block;
}

.bth-dropdown > li > a,
.bth-subdropdown > li > a {
    display: block;
    padding: 9px 20px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-weight: 400;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.bth-dropdown > li > a:hover,
.bth-subdropdown > li > a:hover {
    background: #f0fafa;
    border-left-color: #1c9193;
    color: #1c9193;
    font-weight: 500;
}

/* BUTON X — ascuns pe desktop */
.bth-close {
    display: none;
}

/* OVERLAY */
.bth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.bth-overlay.is-visible {
    display: block;
}

/* TOGGLE BUTON — ascuns pe desktop */
.bth-toggle {
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    /* TOPBAR */
    .bth-topbar-inner {
        padding: 0 16px;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: center;
    }

    .bth-topbar-left {
        display: none;
    }

    .bth-topbar-right {
        width: 100%;
        text-align: center;
    }

    /* HEADER */
    .bth-header-inner {
        padding: 10px 16px;
    }

    .bth-logo-wrap {
        flex: 0 0 70%;
    }

    .bth-logo-wrap img {
        height: 48px;
    }

    .bth-header-right {
        flex: 0 0 30%;
        justify-content: flex-end;
    }

    .bth-search-bar {
        display: none;
    }

    .bth-hamburger {
        display: flex;
    }

    /* NAV */
    .bth-nav-inner {
        padding: 0;
    }

    /* CANVAS */
.bth-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    min-height: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 0;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    display: flex;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
    .bth-menu.is-open {
        left: 0;
    }

    /* BUTON X */
    .bth-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background: #1c9193;
        border: none;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        padding: 14px 16px;
        width: 100%;
    }

    /* ITEME MENIU */
    .bth-menu > li,
    .bth-dropdown > li {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        border-bottom: 1px solid #eeeeee;
    }

    .bth-menu > li > a,
    .bth-dropdown > li > a {
        flex: 1;
        padding: 13px 20px;
        border-bottom: none;
        border-left: none;
        margin-bottom: 0;
        color: #2c2c2c;
        font-size: 13px;
        background: none;
        border-bottom: 3px solid transparent;
    }

    .bth-menu > li > a:hover,
    .bth-menu > li.current-menu-item > a {
        color: #1c9193;
        background: #f0fafa;
    }

    /* DEZACTIVEAZA HOVER DESKTOP PE MOBILE */
    .bth-menu > li:hover > .bth-dropdown,
    .bth-menu > li:focus-within > .bth-dropdown,
    .bth-dropdown > li:hover > .bth-subdropdown,
    .bth-dropdown > li:focus-within > .bth-subdropdown {
        display: none;
    }

    /* DROPDOWN MOBILE — controlat doar de JS */
    .bth-dropdown,
    .bth-subdropdown {
        flex: 0 0 100%;
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        border-left: 3px solid #1c9193;
        background: #f8fefe;
        display: none;
        min-width: unset;
        width: 100%;
        padding: 4px 0;
    }

    .bth-menu > li.is-open > .bth-dropdown,
    .bth-dropdown > li.is-open > .bth-subdropdown {
        display: block !important;
    }

    .bth-dropdown > li > a,
    .bth-subdropdown > li > a {
        display: block;
        color: #444444;
        padding: 10px 20px 10px 28px;
        border-left: none;
        font-size: 12px;
        border-bottom: 1px solid #eeeeee;
        background: none;
    }

    .bth-dropdown > li > a:hover,
    .bth-subdropdown > li > a:hover {
        background: #e8f6f6;
        color: #1c9193;
    }

    /* TOGGLE BUTON */
    .bth-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid #eeeeee;
        cursor: pointer;
        padding: 0 18px;
        min-height: 46px;
    }

    .bth-toggle:hover {
        background: #f0fafa;
    }

    .bth-toggle .bth-arrow {
        font-size: 12px;
        opacity: 1;
        display: inline-block;
        transition: transform 0.2s;
        color: #1c9193;
    }
}