/*
Theme Name: BIA Balance
Theme URI: https://biabalance.hu
Author: AI Assistant
Description: A custom WordPress theme for BIA Balance.
Version: 1.0
Text Domain: biabalance
*/

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Custom logo styling */
.logo-text-top {
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -1px;
}

.logo img {
    max-height: 60px;
    width: auto !important;
}

.logo-text-middle {
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text-bottom {
    font-weight: 600;
    letter-spacing: 1px;
}


/* ---------------------------------------------------------
   Base Header Styles
--------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100% !important;
}

.custom-header-inner.is-sticky .custom-header-menu-list li.CTA a {
    color: #000 !important;
}


/* -----------------------------------------------------
       CTA (GOMB) MENÜPONT STÍLUS
       ----------------------------------------------------- */
.header-menu-list li.CTA a {
    background-color: #58ACB0 !important;
    color: #fff !important;
    /* Mindig fekete szöveg a gombon */
    padding: 14px 24px !important;
    border-radius: 4px;
    display: inline-flex !important;
    font-family: 'Poppins', Sans-serif;
    font-size: 16px;
    align-items: center;
    gap: 8px;
    /* Távolság az ikontól */
    font-weight: 700;
    line-height: 1;

    border-radius: 300px;
    transition: transform 0.2s ease, background 0.2s ease;
}



/* CTA Hover effekt */
.header-menu-list li.CTA a:hover {
    transform: translateY(-3px);
    /* Kicsit megemelkedik */
    filter: brightness(1.1);
    /* Kicsit világosodik */
    border-radius: 300px;
    color: #fff !important;
}

/* The "Pill" Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Hozzáadva az abszolút középre igazításhoz */
    width: 100%;
    max-width: 1220px;
    height: 100px;
    border-radius: 50.5px;
    padding: 0 40px;
    margin: 0 auto;

    /* Solid White Background */
    background: #ffffff;
    border: 0px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    background-size: cover;
    background-position: center center;
}

/* Sticky State */
.header-container.is-sticky {
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    height: auto;
}

.custom-logo-link {
    display: flex;
}

/* ---------------------------------------------------------
   Desktop Navigation
--------------------------------------------------------- */
.desktop-nav {
    display: none;
}

/* ---------------------------------------------------------
   DESKTOP Polylang
--------------------------------------------------------- */

.pll-switch {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    text-decoration: none;
    position: absolute;
    right: 50px;
    top: 29px;
    /* Glass "pill/circle" like the header container */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 14px;
    line-height: 1;
    transition: all 0.3s ease;
}

/* removed empty ruleset for .pll-switch.is-sticky */

.pll-switch img {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

.pll-switch__code {
    line-height: 1;
    font-size: 22px;
    color: #2D2D2D;
    font-weight: 500;
    font-family: "Montserrat";
}

@media(max-width:1350px) {
    .pll-switch {
        display: none;
    }
}

/* ---------------------------------------------------------
   DESKTOP STYLES (Min-width: 1351px)
--------------------------------------------------------- */
@media (min-width: 1351px) {
    .desktop-nav {
        display: flex;
        flex: 1;
        justify-content: flex-end;
    }

    /* A logó balra igazítása */
    .site-logo {
        margin: 0;
        margin-right: auto;
    }

    .header-menu-list {
        display: flex;
        gap: 25px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .header-menu-list>li {
        position: relative;
    }

    /* Invisible Bridge */
    .header-menu-list>li::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
        pointer-events: auto;
    }

    .header-menu-list li a {
        text-decoration: none;
        color: #2D2D2D;
        font-weight: 400;
        font-size: 17px;
        transition: color 0.3s;
        text-transform: none;
    }

    .header-menu-list li a:hover {
        color: #5FB5BA;
    }

    /* Desktop Dropdown (Hover) */
    .header-menu-list li .sub-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 220px;
        padding: 8px;
        margin: 0;
        list-style: none;

        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.98);
        transform-origin: top left;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
    }

    .header-menu-list li:hover>.sub-menu,
    .header-menu-list li:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .header-menu-list li .sub-menu li {
        margin: 0;
        padding: 0;
    }

    .header-menu-list li .sub-menu li::after {
        display: none;
    }

    .header-menu-list li .sub-menu li+li {
        margin-top: 2px;
    }

    .header-menu-list li .sub-menu a {
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
        text-transform: none;
        font-size: 20px;
        font-weight: 400;
        color: #2D2D2D;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .header-menu-list li .sub-menu a:hover,
    .header-menu-list li .sub-menu a:focus {
        background: rgba(0, 0, 0, 0.05);
        color: #5FB5BA;
        transform: translateX(4px);
        outline: none;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* ---------------------------------------------------------
   MOBILE STYLES (Max-width: 1350px)
--------------------------------------------------------- */
@media (max-width: 1350px) {
    .header-container {
        justify-content: space-between;
        padding: 0 25px;
        width: 100%;
        max-width: none;
    }

    .site-logo {
        flex-grow: 0;
        order: 1;
    }

    .site-logo img {
        max-height: 60px;
        width: auto;
        height: auto;
    }

    .desktop-nav {
        display: none;
    }

    /* Hamburger Button - Visibility Fix with !important to override Elementor Globals */
    .mobile-menu-toggle {
        order: 2;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 1001;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background-color: #2D2D2D !important;
        border-radius: 2px !important;
        transition: all 0.3s ease;
        margin: 0 !important;
    }
}

/* ---------------------------------------------------------
   Mobile Sidebar & Logic
--------------------------------------------------------- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    backdrop-filter: blur(15px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    overflow-y: auto;
z-index:999999!important;
    background-size: cover;
    background-position: center center;
}

.mobile-sidebar.is-open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    max-height: 65px;
    width: auto !important;
}

/* Close Button Fix */
.close-menu {
    background: transparent !important;
    border: none;
    color: #000 !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu List */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav>ul>li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Main Links (Parent Toggles) */
.mobile-nav ul li a {
    color: #000!important;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-weight: 500;
    font-family: "Barlow Condensed", Sans-serif;
}

/* Explicit Arrow Styling */
.mobile-nav ul li.menu-item-has-children>a::after {
    content: '' !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border: 0 !important;
    border-right: 2px solid white !important;
    border-bottom: 2px solid white !important;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 5px;
}

.mobile-nav ul li.menu-item-has-children>a.is-active::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* ---------------------------------------------------------
   Mobile Submenus (Accordion)
--------------------------------------------------------- */
.mobile-nav .sub-menu {
    display: none;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 8px;
}

.mobile-nav .sub-menu.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-nav .sub-menu li {
    border: none;
    margin: 0;
}

.mobile-nav .sub-menu a {
    font-size: 20px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 1);
    justify-content: flex-start;
}

.mobile-nav .sub-menu a::after {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 19, 19, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1350px) {
    .lang-item img {
        width: 18px !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
        border-radius: 35px;
    }
}


.highlightmenu a {
    color: #FFE6B3 !important;
}