/* Header & Navigation Styles */

/* Header Base */
.headroom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: var(--transition-fast);
    transition-property: height, background, color, padding;
    width: 100vw;
}

/* Navbar */
.navbar {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 25px 20px;
    position: relative;
    transition: var(--transition-fast);
    transition-property: background, color, padding;
    z-index: var(--z-header);
}

.headroom--not-top .navbar {
    padding: 15px 20px;
    box-shadow: var(--shadow-header);
}

.navbar .menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    position: relative;
}

/* Logo */
.navbar-brand {
    display: inline-block;
    height: 80px;
    margin-right: 2rem;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    color: inherit !important;
    text-decoration: none;
    transition: var(--transition-fast);
    transition-property: transform, opacity, height;
}

.headroom--not-top .navbar-brand {
    height: 60px;
}

.navbar-brand .logo {
    height: 80px;
    width: auto;
    color: var(--color-dark);
    transition: height 0.4s ease-out;
}

.headroom--not-top .navbar-brand .logo {
    height: 55px;
}

/* Nav Trigger (Hamburger) */
.nav-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-family-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    z-index: 1000;
    transition: color 0.3s ease;
}

.nav-trigger:hover {
    color: var(--color-primary);
}

.nav-trigger:hover .bar {
    width: 100% !important;
}

.menu-text {
    margin-left: 10px;
    font-weight: var(--font-weight-medium);
}

/* Hamburger Animation */
.hamburger {
    box-sizing: content-box;
    height: 22px;
    width: 25px;
    padding: 20px;
    margin: -20px;
    position: relative;
}

.position-relative {
    position: relative;
    height: 100%;
}

.bar {
    background: currentColor;
    border-radius: 9px;
    display: block;
    height: 2px;
    position: absolute;
    transition: var(--transition-slow);
    transition-property: width, transform, opacity;
    width: 100%;
}

.bar:first-child {
    top: 0;
    width: 100%;
}

.bar:nth-child(2) {
    top: 10px;
    width: 75%;
}

.bar:nth-child(3) {
    top: 20px;
    width: 75%;
}

/* Active State (X) */
.nav-active .bar:first-child {
    animation: none;
    transform: translateY(10px) rotate(45deg);
}

.nav-active .bar:nth-child(2) {
    animation: none;
    opacity: 0;
    transform: translateX(20px) !important;
}

.nav-active .bar:nth-child(3) {
    animation: none;
    transform: translateY(-10px) rotate(-45deg);
    width: 100%;
}

/* Header Icons */
.icons {
    display: flex;
    align-items: center;
    height: 27px;
    text-align: right;
    transition: var(--transition-fast);
    transition-property: width, margin;
    user-select: none;
    white-space: nowrap;
}

.icons > * {
    display: inline-block;
    margin-left: 20px;
    transition: var(--transition-fast);
    transition-property: width, margin-left, margin-right, opacity;
    cursor: pointer;
}

.icons svg {
    font-size: 25px;
    width: 24px;
    height: 24px;
    color: var(--color-dark);
    transition: color 0.3s ease;
    cursor: pointer;
}

.language-toggle {
    background: none;
    border: 1px solid var(--color-dark);
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-dark);
    min-width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-toggle:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.language-code {
    font-family: var(--font-family-base);
    letter-spacing: 0.5px;
}

.icons svg:hover {
    color: var(--color-primary);
}

.icon-search,
.icon-globe {
    stroke: currentColor;
}

.icon-globe-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.icon-globe-link:hover {
    color: var(--color-primary);
}

.nav-active .icon-globe-link {
    color: var(--color-white);
}

/* Facebook Icon */
.icon-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-dark);
    transition: color 0.3s ease;
    cursor: pointer;
}

.icon-facebook:hover {
    color: #1877f2;
}

.icon-facebook svg {
    width: 20px;
    height: 20px;
}

/* Phone Icon with Tooltip */
.icon-phone-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.icon-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-dark);
    transition: color 0.3s ease;
    cursor: pointer;
}

.icon-phone svg {
    width: 24px;
    height: 24px;
}

.icon-phone:hover {
    color: var(--color-primary);
}

.phone-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.phone-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--color-dark);
}

.icon-phone-wrapper:hover .phone-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Dark navigation state for new icons */
.nav-active .icon-facebook,
.nav-active .icon-phone {
    color: var(--color-white);
}

/* Body offset for fixed header */
body {
    padding-top: 0;
}

@media (max-width: 1399.98px) {
    body {
        padding-top: 0;
    }
}

/* Dark navigation state */
.nav-active .navbar {
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: none;
}

.nav-active .navbar-brand svg {
    fill: var(--color-white);
}

.nav-active .icons svg {
    color: var(--color-white);
}
