/* ═══════════════════════════════
   Header Widget
   ═══════════════════════════════ */

.header-widget {
    width: 100%;
}

/* ── Top Bar ── */
.header-topbar {
    border-bottom: 1px solid #eeeeee;
}

.header-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-contact__item:hover {
    opacity: 0.7;
}

.header-contact__item svg {
    flex-shrink: 0;
}

.header-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Social Icons ── */
.header-social {
    display: flex;
    align-items: center;
}

.header-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-social__link:hover {
    opacity: 0.8;
}

/* ── Language Switcher ── */
.header-lang {
    position: relative;
}

.header-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.header-lang__arrow {
    transition: transform 0.2s ease;
}

.header-lang:hover .header-lang__arrow {
    transform: rotate(180deg);
}

.header-lang__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 110;
}

.header-lang:hover .header-lang__dropdown {
    opacity: 1;
    visibility: visible;
}

.header-lang__dropdown a {
    display: block;
    padding: 6px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* ── Main Header ── */
.header-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo img {
    display: block;
}

/* ── Navigation ── */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav__item {
    position: relative;
}

.header-nav__link {
    display: inline-block;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.header-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background-color: transparent;
    transition: width 0.3s ease;
}

.header-nav__item.current-menu-item > .header-nav__link::after,
.header-nav__item.current-menu-ancestor > .header-nav__link::after {
    width: 60%;
}

.header-nav__item:hover > .header-nav__link::after {
    width: 60%;
    background-color: currentColor;
}

/* ── Dropdown ── */
.header-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header-nav__item.has-dropdown:hover > .header-nav__dropdown {
    opacity: 1;
    visibility: visible;
}

.header-nav__dropdown-title {
    padding: 16px 20px 12px;
    font-weight: 700;
    font-size: 16px;
}

.header-nav__dropdown-divider {
    height: 1px;
    margin: 0 20px;
}

.header-nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 10px 0 14px;
}

.header-nav__dropdown-item {
    margin: 0;
}

.header-nav__dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.header-nav__dropdown-arrow {
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease;
}
