/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
    height: var(--nav-height);
    background-color: var(--color-bg-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-heading);
    text-decoration: none;
}

/* Header right side */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Desktop nav links */
.header-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-text-heading);
}

.header-nav a + a::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: var(--color-border);
    margin-right: 32px;
    vertical-align: middle;
}

.header-cta {
    display: none;
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
    margin-left: 12px;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header-cta {
        display: inline-flex;
    }
}

/* Hamburger — always visible */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 8px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-heading);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* ==========================================================================
   Fullscreen Navigation Overlay
   ========================================================================== */

.fullscreen-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-nav.is-open {
    opacity: 1;
    visibility: visible;
}

/* Background image with overlay */
.fullscreen-nav__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fullscreen-nav__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.fullscreen-nav__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(2px);
}

/* Nav header bar (mirrors site-header) */
.fullscreen-nav__header {
    position: relative;
    z-index: 1;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo--nav img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-logo--nav .site-title {
    color: var(--color-white);
}

.fullscreen-nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.fullscreen-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-nav__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.fullscreen-nav__close:hover {
    opacity: 0.7;
}

/* Navigation content */
.fullscreen-nav__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--nav-height));
    gap: var(--space-lg);
}

.fullscreen-nav__primary {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.fullscreen-nav__primary li a {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    letter-spacing: var(--ls-heading);
}

.fullscreen-nav__primary li a:hover {
    opacity: 0.7;
}

.fullscreen-nav__secondary {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.fullscreen-nav__secondary li a {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fullscreen-nav__secondary li a:hover {
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 767px) {
    .fullscreen-nav__primary li a {
        font-size: 28px;
    }

    .fullscreen-nav__secondary li a {
        font-size: var(--text-sm);
    }

    .fullscreen-nav__login {
        display: none;
    }
}

@media (max-width: 479px) {
    .fullscreen-nav__primary li a {
        font-size: 24px;
    }
}
