/* ============================================
   SARATOGA WATCH CO. — Header Styles
   Scoped to: .swc-header-*
   ============================================ */

.swc-header-wrapper {
    position: relative;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--swc-transition);
}

.swc-header--sticky {
    position: sticky;
    top: 0;
}

.swc-header--sticky.swc-header--scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* Fix for WP admin bar */
.admin-bar .swc-header--sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .swc-header--sticky {
        top: 46px;
    }
}

.swc-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ── Navigation ── */
.swc-header__nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.swc-header__nav--left {
    justify-content: flex-end;
}

.swc-header__nav--right {
    justify-content: flex-start;
}

.swc-header__link {
    font-family: var(--swc-font-body) !important;
    font-size: 11px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--swc-text) !important;
    text-decoration: none !important;
    margin: 0 20px;
    padding: 6px 0;
    position: relative;
    transition: var(--swc-transition);
    white-space: nowrap;
    opacity: 0.75;
}

.swc-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1.5px;
    background-color: var(--swc-text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.swc-header__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.swc-header__link:hover {
    color: var(--swc-text) !important;
    opacity: 1;
}

/* ── Logo ── */
.swc-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.swc-header__logo-text {
    font-family: var(--swc-font-heading) !important;
    font-size: 20px !important;
    font-weight: 700;
    color: var(--swc-text) !important;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none !important;
}

.swc-header__logo-img {
    object-fit: contain !important;
    display: block;
    max-width: 100%;
}

/* ── Hamburger (Mobile) ── */
.swc-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swc-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--swc-text) !important;
    transition: var(--swc-transition);
}

.swc-header__hamburger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.swc-header__hamburger--open span:nth-child(2) {
    opacity: 0;
}

.swc-header__hamburger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Navigation ── */
.swc-header__mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--swc-bg) !important;
    border-top: 1px solid var(--swc-border-light);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.swc-header__mobile-nav--open {
    max-height: 500px;
}

.swc-header__mobile-link {
    font-family: var(--swc-font-body) !important;
    font-size: 14px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--swc-text) !important;
    text-decoration: none !important;
    padding: 14px 24px;
    display: block;
    transition: var(--swc-transition);
    border-bottom: 1px solid var(--swc-border-light);
}

.swc-header__mobile-link:last-child {
    border-bottom: none;
}

.swc-header__mobile-link:hover {
    background-color: var(--swc-bg-alt) !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .swc-header__nav {
        display: none;
    }

    .swc-header__hamburger {
        display: flex;
    }

    .swc-header__mobile-nav {
        display: flex;
    }

    .swc-header__logo {
        padding: 0;
    }

    .swc-header__inner {
        justify-content: flex-start;
        padding: 0 24px;
    }
}
