/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 2.1.10
Text Domain: hello-elementor-child
*/

/* =========================================================
   BASE HEADER STYLES (Egyedi osztályok)
   ========================================================= */

/* A teljes fejléc befoglalója */
.custom-header-wrapper {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    width: auto !important; 
    max-width: 100vw !important; 
    z-index: 999;
    display: flex;
    flex-direction: column; 
    align-items: center;
    padding: 0;
    pointer-events: none; 
    box-sizing: border-box; 
    overflow: visible !important; 
	background: #0000008c;
    transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   TOP BAR STYLES
   --------------------------------------------------------- */
.custom-header-top-bar {
    width: 100%;
    background: transparent;
    padding: 10px 0;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5px 0px; 
    box-sizing: border-box;
}

/* Elérhetőség lista */
.top-bar-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-contact li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; /* ALAP: Fehér szöveg */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: "Figtree", sans-serif;
    transition: color 0.3s;
}

.top-bar-contact li a:hover {
    color: #ffffff;
}

/* Social ikonok */
.top-bar-social .header-grid {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff!important; /* ALAP: Halvány fehér */
    border-radius: 50%;
    transition: all 0.3s;
}

.top-bar-social a:hover {
    background: #fff;
}

.top-bar-social svg {
    width: 18px;
    height: 18px;
}

.top-bar-social path {
   
    transition: fill 0.3s;
}

/* --- AUTOMATA VILÁGOS HÁTTÉR MÓD (Ha a háttér fehér) --- */
/* Ekkor váltunk sötétre */
.custom-header-wrapper.header-on-light .top-bar-contact li a {
    color: #1C191A;
}


.custom-header-wrapper.header-on-light .top-bar-social a {
    background: #fff;
}

/* ELVÁLASZTÓ VONAL */
.header-divider {
    width: 100%;
    max-width: 1300px;
    height: 1px;
    background-color: rgba(255,255,255,0.2); /* ALAP: Halvány fehér */
    margin: 0 auto;
    transition: background-color 0.3s;
}

/* Elválasztó vonal világos háttéren */
.custom-header-wrapper.header-on-light .header-divider {
    background-color: rgba(0,0,0,0.1); 
}

/* ---------------------------------------------------------
   HEADER INNER - A háttér sáv
   --------------------------------------------------------- */
.custom-header-inner {
    pointer-events: auto; 
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    margin: 0 !important;
    height: 80px;      
    border-radius: 0;
    padding: 0 40px; 
    box-sizing: border-box; 
   
    

}

/* HA A HÁTTÉR VILÁGOS (JS kapcsolja be) */
.custom-header-wrapper.header-on-light .custom-header-inner {
    background: rgba(255, 255, 255, 0.05); /* Maradhat */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Sötét szegély */
    background-image: none; /* Ilyenkor nem kell a pöttyös */
}

/* STICKY STATE (Mindig sötét háttér, fehér szöveg) */
.custom-header-inner.is-sticky {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001; 
    background: rgba(19, 19, 19, 0.95) !important;
  
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: none;
}

/* ---------------------------------------------------------
   HEADER CONTAINER
   --------------------------------------------------------- */
.custom-header-container {
    width: 100%;
    max-width: 1300px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ---------------------------------------------------------
   LOGO STYLES
   --------------------------------------------------------- */
.custom-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    z-index: 10;
}

.custom-header-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    
    /* ALAP: Fehér logó (Nincs filter) */
    filter: none; 
    transition: filter 0.3s ease;
}

.custom-header-logo a {
    display: flex; 
}

/* HA A HÁTTÉR VILÁGOS: Sötét logó (Invertálás) */
.custom-header-wrapper.header-on-light .custom-header-logo img {
    filter: invert(1) brightness(0);
}

/* STICKY LOGÓ: Mindig fehér */
.custom-header-inner.is-sticky .custom-header-logo img {
    filter: none !important;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */
.custom-header-nav-desktop {
   display: flex;
   flex-grow: 1; /* Kitölti a rendelkezésre álló helyet */
}

/* =========================================================
   DESKTOP LANG SWITCHER
   ========================================================= */
.custom-header-lang-wrapper {
    display: flex;
    align-items: center;
    margin-left: 25px; 
    z-index: 1002;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.custom-header-lang-wrapper .pll-switch {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 6px;
	text-decoration: none;
	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;
}

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

/* ALAP: Fehér szöveg */
.custom-header-lang-wrapper .pll-switch__code {
	line-height: 1;
	font-size: 22px;
	color: #ffffff; 
	font-weight: 400;
	font-family: "Figtree", sans-serif;
    transition: color 0.3s ease;
}

/* HA A HÁTTÉR VILÁGOS: Sötét szöveg */
.custom-header-wrapper.header-on-light .custom-header-lang-wrapper .pll-switch__code {
    color: #1C191A;
}

/* STICKY NYELV: Mindig fehér */
.custom-header-lang-wrapper.is-sticky .pll-switch__code {
    color: #ffffff !important;
}

.custom-header-lang-wrapper.is-sticky .pll-switch {
    background: rgba(19, 19, 19, 0.9);
}

@media(max-width:1350px) {
    .custom-header-lang-wrapper {
        display: none;
    }
    .custom-header-top-bar {
        display: none;
    }
    .header-divider {
        display: none;
    }
    .custom-header-nav-desktop {
        display: none;
    }
}


/* =========================================================
   DESKTOP STYLES (Min-width: 1201px)
   ========================================================= */
@media (min-width: 1201px) {
    .custom-header-menu-list {
         display: flex;
    gap: 25px;
       list-style: none;
          margin: 0;
          padding: 0;
          align-items: center;
          justify-content: center; /* flex-end helyett középre zárunk */
          width: 100%; /* Teljes szélesség kitöltése */
    }
    
    .custom-header-menu-list > li {
        position: relative;
    }
    
    .custom-header-menu-list > li::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
        pointer-events: auto;
    }

    /* ALAP: Menüpontok fehérek */
    .custom-header-menu-list li a {
        text-decoration: none;
        color: #ffffff; /* Fehér */
        font-weight: 400 !important; /* 400-ra javítva és kényszerítve */
        font-size: 0.9375rem; /* 15px rem-ben */
        transition: color 0.3s;
        text-transform: uppercase;
        font-family: "Figtree", sans-serif !important; /* Figtree kényszerítve */
        white-space: nowrap;
    }
    
    /* HA A HÁTTÉR VILÁGOS: Menüpontok feketék */
    .custom-header-wrapper.header-on-light .custom-header-menu-list li a {
        color: #1C191A;
    }

    /* STICKY MENÜ: Mindig fehér */
    .custom-header-inner.is-sticky .custom-header-menu-list li a {
        color: #ffffff !important;
    }

    /* HOVER FIX: Szülő elemek is zöldek legyenek */
    .custom-header-menu-list li a:hover,
    .custom-header-menu-list li:hover > a,
    .custom-header-menu-list li:focus-within > a {
        color: #f6f6f6 !important; 
    }
    
    /* -----------------------------------------------------
       CTA (GOMB) MENÜPONT STÍLUS
       ----------------------------------------------------- */
    .custom-header-menu-list li.CTA a {
        border: 1px solid #EBEBE6 !important; 
        border-width: 1px !important; 
        color: #2b212a !important;
        padding: 10px 24px !important;
        border-radius: 300px !important; 
        display: inline-flex !important;
        align-items: center;
        gap: 8px; 
        font-weight: 500;
        line-height: 1;
        text-transform: none !important;
        transition: transform 0.2s ease, background 0.2s ease;
    }
	
	
	 .custom-header-menu-list li.CTA.lang a {
        border: 1px solid #A8A292 !important; 
        border-width: 1px !important; /* Kifejezetten kikényszerítjük az 1px-et */
        color: #A8A292 !important; 
        padding: 14px 12px !important;
        border-radius: 300px !important; /* Egyesítve a duplikált border-radius-t */
        display: inline-flex !important;
        align-items: center;
        gap: 8px; 
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        transition: transform 0.2s ease, background 0.2s ease;
    }
	

   .custom-header-menu-list:has(li.CTA)::before {
          content: '';
          margin-left: auto;
    }
   
      /* Az első CTA gombot a jobb szélre toljuk */
       .custom-header-menu-list li.CTA {
         margin-left: auto;
      }

     /* Ha több CTA van (pl. két gomb), a második már ne tolódjon el, hanem maradjon szorosan az első mellett */
      .custom-header-menu-list li.CTA ~ li.CTA {
		  margin-left: 0;}

    .custom-header-menu-list li.CTA a:hover {
        transform: translateY(-3px); 
        filter: brightness(1.1); 
		color: #A8A292 !important;
    }
	
	
	.custom-header-inner.is-sticky .custom-header-menu-list li.CTA a{color: #A8A292 !important;}

    /* ----------------------------------------------------- */
    
    .custom-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: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(19, 19, 19, 0.2);
        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;
    }

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

    .custom-header-menu-list li .sub-menu li {
        margin: 0;
        padding: 0;
    }
    
    .custom-header-menu-list li .sub-menu li::after {
        display: none;
    }

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

    .custom-header-menu-list li .sub-menu a {
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
        text-transform: none;
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.8) !important; 
        transition: all 0.2s ease;
        white-space: nowrap;
        background: transparent !important; 
    }

    .custom-header-menu-list li .sub-menu a:hover,
    .custom-header-menu-list li .sub-menu a:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        transform: translateX(4px);
        outline: none;
    }

    .custom-header-mobile-toggle {
        display: none;
    }
}

/* =========================================================
   MOBILE STYLES (Max-width: 1350px)
   ========================================================= */
@media (max-width: 1350px) {
    .custom-header-wrapper {
        width: 100% !important; 
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow-x: hidden !important; 
        position: fixed; 
    }

    .custom-header-inner {
        padding: 0 25px;
        border-radius: 0;
    }
    
    .custom-header-container {
        width: 100%;
        justify-content: space-between;
    }

    .custom-header-logo {
        flex-grow: 0;
        order: 1;
    }
    
    .custom-header-logo img {
        max-height: 60px;
        width: auto;
        height: auto;
    }
    
    .custom-nav-left, .custom-nav-right {
        display: none;
    }

    .custom-header-mobile-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: transparent !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;
    }

    /* ALAP HAMBURGER: Fehér */
    .custom-header-mobile-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background-color: #ffffff !important; 
        border-radius: 2px !important;
        transition: all 0.3s ease;
        margin: 0 !important;
    }
    
    /* HA HÁTTÉR VILÁGOS: Sötét hamburger */
    .custom-header-wrapper.header-on-light .custom-header-mobile-toggle span {
        background-color: #1C191A !important;
    }

    /* STICKY HAMBURGER: Fehér */
    .custom-header-inner.is-sticky .custom-header-mobile-toggle span {
        background-color: #ffffff !important;
    }
}

/* =========================================================
   MOBILE SIDEBAR (Off-canvas)
   ========================================================= */
.custom-header-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0; 
    width: 80vw; 
    max-width: 350px;
    height: 100vh;
    background: rgba(19, 19, 19, 0.9); 
    backdrop-filter: blur(15px);
    z-index: 9999; 
    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;
  
}

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

.custom-header-sidebar-top {
    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);
}

.custom-header-menu-list li.icon-download a::after  {
content: url('https://hellovendeg.freedomdev.hu/wp-content/uploads/2026/02/SVG.svg');
 display: flex;
   align-items: center;
     width: 20px;  /* Ikon szélessége */
    height: 20px; /* Ikon magassága */
}

.custom-header-sidebar-logo img {
    max-height: 50px !important;
    width:auto !important;
    filter: none !important; 
}

.custom-header-sidebar-close {
    background: transparent !important;
    border: none;
    color: #fff !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-header-mobile-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-header-mobile-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-weight: 500;
}

.custom-header-mobile-list 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;
}

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

/* =========================================================
   MOBILE SUBMENUS (Accordion)
   ========================================================= */
.custom-header-mobile-list .sub-menu {
    display: none;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 8px;
}

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

.custom-header-mobile-list .sub-menu li {
    border: none;
    margin: 0;
}

.custom-header-mobile-list .sub-menu a {
    font-size: 15px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    justify-content: flex-start; 
}

.custom-header-mobile-list .sub-menu a::after {
    display: none !important;
}

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

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

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

@media (max-width: 768px) {
    .custom-header-inner {
        height: 70px;
        border-radius: 0; 
    }
}


/* =========================================================
   TELJES LETÁMADÁS A LOGÓ LEKEREKÍTÉSE ELLEN
   ========================================================= */
.custom-header-logo,
.custom-header-logo a.custom-logo-link,
.custom-header-logo a.custom-logo-link img.custom-logo,
.custom-header-sidebar-logo,
.custom-header-sidebar-logo a,
.custom-header-sidebar-logo img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    clip-path: none !important;      /* Maszkolás kikapcsolása */
    -webkit-clip-path: none !important;
    overflow: visible !important;    /* Ne vágja le a sarkokat a szülő elem */
}



/* =====================================================
   KAPCSOLAT GOMB (Világos háttér) - ID: 81
   ===================================================== */
body .custom-header-wrapper ul.custom-header-menu-list li#menu-item-81 > a {
    background-color: #EBEBE6 !important;
    background: #EBEBE6 !important;
    border: 1px solid #EBEBE6 !important; 
    color: #2b212a !important;
    padding: 10px 24px !important;
    border-radius: 300px !important; 
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important; 
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
}

body .custom-header-wrapper ul.custom-header-menu-list li#menu-item-81 > a:hover {
    transform: translateY(-3px) !important; 
    filter: brightness(0.95) !important; 
    background-color: #EBEBE6 !important;
}

/* =====================================================
   EN NYELVVÁLASZTÓ (Átlátszó háttér) - ID: 655
   ===================================================== */
body .custom-header-wrapper ul.custom-header-menu-list li#menu-item-655 > a {
    background-color: transparent !important;
    background: none !important;
    border: 1px solid #A8A292 !important; 
    color: #A8A292 !important; 
    padding: 10px 16px !important;
    border-radius: 300px !important; 
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body .custom-header-wrapper ul.custom-header-menu-list li#menu-item-655 > a:hover {
    transform: translateY(-3px) !important; 
    color: #ffffff !important; 
    border-color: #ffffff !important;
    background-color: transparent !important; 
}

/* Elrendezés */
ul.custom-header-menu-list:has(li.CTA)::before {
    content: '';
    margin-left: auto;
}
ul.custom-header-menu-list li#menu-item-655 {
    margin-left: auto;
}
ul.custom-header-menu-list li#menu-item-81 {
    margin-left: 0 !important;
}