/**
 * Header Styles
 *
 * Layout: [LOGO] [LOCATION] [NAV] [CTA BUTTON]
 * Mobile: [BURGER] [LOGO]
 *
 * @package hello-elementor-child
 * @since 1.0.0
 */

/* ============================================
   HEADER WRAPPER
   ============================================ */

.hec-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: var(--color-header-bg, #ffffff);
    height: var(--header-height, 80px);
    /*border-bottom: 1px solid var(--color-header-border, #e8e8e8);*/
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   HEADER INNER CONTAINER
   ============================================ */

.hec-header-container {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 40px);
}

/* ============================================
   LOGO
   ============================================ */

.hec-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}




.hec-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hec-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
}

.hec-site-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    text-decoration: none;
}

/* ============================================
   LOCATION BADGE
   ============================================ */


.hec-header-location {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}


.hec-location-link,
.hec-header-location > span {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-nav-text, #3d3d3d);
    font-size: var(--text-l, 15px);
    font-weight: var(--font-medium, 500);
    text-decoration: none;
    transition: color 0.2s ease;
}



.hec-location-link:hover {
    color: var(--color-accent, ##505E2C);
}

.hec-location-icon {
    flex-shrink: 0;
    color: var(--color-accent, ##505E2C);
    width: 15px;
    height: 20px;
    overflow: visible;
}

.hec-location-text {
    letter-spacing: 0.01em;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */


.hec-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}



.hec-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hec-menu-item {
    margin: 0;
    position: relative;
}

.hec-menu-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: var(--text-l, 15px);
    font-weight: var(--font-medium, 500);
    color: var(--color-nav-text, #3d3d3d);
    text-decoration: none;
    padding: 4px 0;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.hec-menu-link:hover,
.hec-current > .hec-menu-link {
    color: var(--color-accent, ##505E2C);
}

/* Dropdown arrow */
.hec-has-submenu > .hec-menu-link::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.hec-has-submenu:hover > .hec-menu-link::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* ============================================
   DESKTOP DROPDOWN SUBMENU
   ============================================ */

/* ============================================
   DESKTOP DROPDOWN SUBMENU
   ============================================ */

.hec-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;

    list-style: none;
    margin: 0;
    padding: 8px 0;

    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    min-width: 250px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(6px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 10000;
}

.hec-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.hec-has-submenu:hover > .hec-submenu,
.hec-has-submenu:focus-within > .hec-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.hec-has-submenu:hover > .hec-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.hec-submenu .hec-menu-item {
    margin: 0;
}

.hec-submenu .hec-menu-link {
    display: block;
    padding: 9px 18px;
    font-size: var(--text-sm, 14px);
    white-space: nowrap;
    color: var(--color-primary, #1a1a1a);
}

.hec-submenu .hec-menu-link:hover {
    background-color: #f5f5f3;
    color: var(--color-accent, ##505E2C);
}

/* ============================================
   CTA BUTTON (desktop)
   ============================================ */

.hec-header-cta {
    flex-shrink: 0;
    margin-left: auto;
}

.hec-btn--cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-primary);
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-normal, 400);
    color: #FDFCFB;
    background-color: var(--color-primary);
    /*border: 1.5px solid var(--color-primary, #1a1a1a);*/
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.hec-btn--cta:hover {
    background-color: var(--color-primary-light);
}


/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.hec-lang-switcher {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hec-lang-link {
    font-family: var(--font-primary);
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    color: var(--color-text);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
    border-radius: 50%;
    background-color: #FDFCFB;
    padding: 12px;
    /*border: 1px solid #505E2C;*/
}

.hec-lang-link:hover {
    background-color: var(--color-primary-light);
    /*border: 1px solid #505E2C;*/
}

/* ============================================
   BURGER BUTTON (mobile only)
   ============================================ */

.hec-burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 8px;
    flex-shrink: 0;
}

.hec-burger-line {
    display: block;
    width: 32px;
    height: 1.5px;
    background-color: var(--color-primary, #1a1a1a);
    border-radius: 0px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Burger → X */
/*.hec-burger-btn.is-active .hec-burger-line:nth-child(1) {*/
/*    transform: translateY(6.5px) rotate(45deg);*/
/*}*/
/*.hec-burger-btn.is-active .hec-burger-line:nth-child(2) {*/
/*    opacity: 0;*/
/*    transform: scaleX(0);*/
/*}*/
/*.hec-burger-btn.is-active .hec-burger-line:nth-child(3) {*/
/*    transform: translateY(-6.5px) rotate(-45deg);*/
/*}*/

/* ============================================
   SCROLLED STATE
   ============================================ */

.hec-header.is-scrolled {
    height: 64px !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hec-header.is-scrolled .hec-logo-img {
    height: 38px !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.hec-burger-btn:focus-visible {
    outline: 2px solid var(--color-accent, ##505E2C);
    outline-offset: 3px;
    border-radius: 4px;
}

.hec-menu-link:focus-visible,
.hec-btn--cta:focus-visible {
    outline: 2px solid var(--color-accent, ##505E2C);
    outline-offset: 2px;
    border-radius: 4px;
}



@media (max-width: 768px) {
    .hec-logo-img {
        height: 34px;
    }
}


.hec-header.is-scrolled .hec-lang-link {
    background-color: #e4dece;
}

/* ============================================
   HEADER BOTTOM LINE: enabled per page
   ============================================ */

body.hec-show-header-line .hec-header {
    border-bottom: var(--hec-header-line-width, 1px) solid var(--hec-header-line-color, #ede8da);
}

/* ============================================
   HEADER POSITION: disabled fixed per page
   ============================================ */

body.hec-disable-fixed-header .hec-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

body.hec-disable-fixed-header .hec-main {
    padding-top: 0 !important;
}

body.hec-disable-fixed-header .hec-header.is-scrolled {
    height: var(--header-height, 80px) !important;
    box-shadow: none !important;
    background-color: var(--color-header-bg, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.hec-disable-fixed-header .hec-header.is-scrolled .hec-logo-img {
    height: 48px !important;
}

@media (max-width: 1024px) {
    body.hec-disable-fixed-header .hec-header.is-scrolled {
        height: var(--header-height-mobile, 70px) !important;
    }

    body.hec-disable-fixed-header .hec-header.is-scrolled .hec-logo-img {
        height: 38px !important;
    }
}

@media (max-width: 768px) {
    body.hec-disable-fixed-header .hec-header.is-scrolled .hec-logo-img {
        height: 34px !important;
    }
}
/* ============================================
   SMALL SCREENS: reduce nav gap
   ============================================ */

@media (min-width: 1025px) and (max-width: 1280px) {
    .hec-header-container {
        gap: 20px;
        padding: 0 24px;
    }

    .hec-nav-menu {
        gap: 18px;
    }

    .hec-menu-link {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .hec-header {
        height: var(--header-height-mobile, 70px);
    }

    .hec-header-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 20px;
        gap: 0;
    }

    .hec-nav,
    .hec-header-location,
    .hec-header-cta {
        display: none !important;
    }

    .hec-burger-btn {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        order: initial;
    }

    .hec-logo {
        flex: none;
        justify-content: center;
        margin: 0 auto;
    }

    .hec-logo-img {
        height: 38px;
    }

    .hec-lang-switcher {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hec-header-container::after {
        display: none;
        content: none;
    }

    .hec-header.is-scrolled {
        height: 60px !important;
    }

    .hec-header.is-scrolled .hec-logo-img {
        height: 32px !important;
    }
    
    .hec-burger-btn.is-active {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}