/*
Header Styles - Converted from Elementor
Updated: 2024-12-27
*/

/* Hide elements by device */
.hidden-desktop {
    display: none !important;
}

@media (max-width: 1024px) {
    .hidden-tablet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
    .hidden-desktop {
        display: block !important;
    }
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Header Container */
.site-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.site-header-wrapper {
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Layout */
.header-layout {
    display: flex;
    flex-direction: column;
}

.header-content {
    display: flex;
    flex-direction: column;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 80px;
}

/* Logo */
.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-header-logo-svg {
    width: 180px;
    height: 55px;
    max-width: 100%;
    height: auto;
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Styles */
.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-label {
    position: absolute;
    left: -9999px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 45px 8px 15px;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #c42031;
    box-shadow: 0 0 0 2px rgba(196, 32, 49, 0.2);
}

.search-submit {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #c42031;
}

.search-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.search-text {
    display: none;
}

.search-clear-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    position: absolute;
    right: 35px;
    cursor: pointer;
    color: #999;
}

.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results-container.show {
    display: block;
}

.search-results {
    padding: 10px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-button {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: #c42031;
    color: white;
    border-color: #c42031;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Navigation */


.primary-menu li,
.overflow-menu li {
    position: relative;
}

.primary-menu a,
.overflow-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.primary-menu a:hover,
.overflow-menu a:hover {
    color: #c42031;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c42031;
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menus */
.primary-menu .sub-menu,
.overflow-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.primary-menu li:hover .sub-menu,
.overflow-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a,
.overflow-menu .sub-menu a {
    padding: 8px 20px;
    font-weight: 400;
    border-bottom: none;
}

.primary-menu .sub-menu a:hover,
.overflow-menu .sub-menu a:hover {
    background: #f8f8f8;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.mobile-menu-nav {
    list-style: none;
    margin: 60px 0 0 0;
    padding: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-menu-nav a:hover {
    color: #c42031;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-header-wrapper {
        padding: 0 15px;
    }

    .header-tools {
        gap: 15px;
    }

    .search-input {
        width: 150px;
    }

    .primary-menu {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-navigation {
        display: none;
    }

    .header-inner {
        padding: 10px 0;
        min-height: 60px;
    }

    .site-header-logo-svg {
        width: 140px;
        height: 43px;
    }

    .header-tools {
        gap: 10px;
    }

    .language-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .site-header-wrapper {
        padding: 0 10px;
    }

    .site-header-logo-svg {
        width: 120px;
        height: 37px;
    }
}

#main-nav {
    flex: 0 1 auto;
}

#main-nav ul ul {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

#main-nav ul ul a {
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
}

#main-nav ul {
    flex-wrap: nowrap;
}

#overflow-nav ul {
    padding-left: 1rem;
}

#overflow-nav ul ul {
    padding-left: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

#overflow-nav ul ul a {
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
}

.header-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.header-nav::before, .header-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid;
    left: 50%;
    display: block;
    width: 100%;
    transform: translateX(-50%);
    transition-property: width, opacity;
    transition-duration: 250ms;
}

.header-nav::before {
    top: 0;
}

.header-nav::after {
    bottom: 0;
}

@media(max-width: 1024px) {
    .header-nav::before {
        content: none;
    }
}