.site-header-offset {
    padding-top: 70px !important;
}
@media(max-width: 991px) {
    .site-header-offset {
        padding-top: 80px !important;
    }
}
html {
    scroll-padding-top: 80px;
}
@media(max-width: 991px) {
    html {
        scroll-padding-top: 70px;
    }
}

@font-face {
    font-family: "Aeonik Fono";
    src: url("../../wp-content/themes/handi_theme/assets/fonts/68ecd804097d058f4fa8.woff2") format("woff2"),
         url("../../wp-content/themes/handi_theme/assets/fonts/345578dfa2e15a600f90.woff") format("woff");
    font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
    font-family: "ABCGintoNordCondensed-Medium";
    src: url("../../wp-content/themes/handi_theme/assets/fonts/1ff4a6b144a167a40f19.woff2") format("woff2"),
         url("../../wp-content/themes/handi_theme/assets/fonts/497047169fe462babd07.woff") format("woff");
    font-weight: normal; font-style: normal; font-display: swap;
}

.site-menu {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999;
    background: transparent;
    color: #f4f0e6;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
    font-family: "Aeonik Fono", 'DM Sans', sans-serif;
}
.site-menu.is-active {
    transform: translateY(0);
    visibility: visible;
}

/* Hide original headers when menu is open to prevent text overlap */
body:has(.site-menu.is-active) .site-header,
body:has(.site-menu.is-active) .hdr,
body:has(.site-menu.is-active) nav.site-nav {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsive grouping for the header navigation on all pages */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-menu-header {
    height: 90px;
    padding: 0 4rem;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header-logo { margin-left: auto; margin-right: 3rem; }
.site-header-right { display: flex; align-items: center; gap: 1.5rem; }
.site-menu-close {
    background: transparent; border: none; color: #fff;
    cursor: pointer; display: flex; align-items: center; gap: 0.8rem;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
}
.site-menu-close-icon {
    display: inline-block; width: 20px; height: 2px; background: #fff;
    position: relative; transform: rotate(45deg);
}
.site-menu-close-icon::after {
    content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: #fff; transform: rotate(-90deg);
}
.site-menu-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.site-menu-main {
    flex: 1; display: flex;
    background-color: #1b4332; /* Match brand green */
}
.site-menu-main-container {
    flex: 1; padding: 4rem; display: flex; flex-direction: column; justify-content: center;
}
.site-menu-nav {
    list-style: none; padding: 0; margin: 0;
}
.site-menu-nav-item {
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    font-family: "ABCGintoNordCondensed-Medium", 'Cormorant Garamond', serif;
    color: #f4f0e6; text-decoration: none;
    line-height: 1.1; display: inline-block;
    transition: color 0.3s, transform 0.3s;
    margin-bottom: 0.5rem;
}
.site-menu-nav-item:hover { color: #ffb703; transform: translateX(10px); }
.site-menu-social {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.5rem; font-size: 1.5rem;
    margin-top: 2rem;
}
.site-menu-social a { color: #f4f0e6; transition: color 0.3s; }
.site-menu-social a:hover { color: #ffb703; }
.site-menu-account-btn { display: none; }
.site-menu-images {
    width: 50vw; position: relative; overflow: hidden;
    background: #081c15;
}
.site-menu-images-item {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    transform: scale(1.1); transition-property: opacity, transform;
}
.site-menu-images-item.active { opacity: 1; transform: scale(1); }
.site-menu-images-item img {
    width: 100%; height: 100%; object-fit: cover;
}
@media(max-width: 960px){
    .site-menu-header { padding: 0 1.5rem; height: 70px; }
    .site-menu-body { flex-direction: column; }
    .site-menu-main-container { padding: 3rem 1.5rem; align-items: center; }
    .site-menu-nav { text-align: center; }
    .site-menu-nav .menu-item { text-align: center; }
    .site-menu-nav-item { font-size: 2.2rem; display: block; text-align: center; transform: none; margin-bottom: 1rem; }
    .site-menu-nav-item:hover { transform: none; }
    .site-menu-images { display: none; }
    .site-header-logo span { font-size: 20px !important; }
    .site-header-logo { margin-right: 0 !important; margin-left: auto; }
    .site-menu-social { justify-content: center; }
    
    .header-left-group { gap: 1rem; }
}
@media(max-width: 480px){
    .site-menu-header { padding: 0 1rem; }
    .site-menu-main-container { padding: 1.5rem 1rem; }
    .site-menu-nav-item { font-size: 1.8rem; }
}

/* Base site-header styles for custom pages */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease);
    border-bottom: 1px solid transparent;
    background: transparent;
}
.site-header.is-scrolled {
    background: rgba(8, 28, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 60px;
}
.site-header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.site-menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0;
}
.site-menu-toggle-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
}
.site-menu-toggle-icon::before,
.site-menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%; height: 100%;
    background: #fff;
}
.site-menu-toggle-icon::before { top: -6px; }
.site-menu-toggle-icon::after { bottom: -6px; }

.logo-font { text-decoration: none; display: flex; align-items: center; }
.logo-font span { line-height: 1; }

.site-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Base button styles since theme CSS is missing or inconsistent */
.btn-inverted {
    background: #ffb703 !important; color: #000 !important; padding: 0.6rem 1.2rem; border-radius: 2rem;
    text-decoration: none; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
    border: 1px solid #ffb703 !important;
}
.btn-inverted:hover {
    background: #fff !important; color: #000 !important; border-color: #fff !important;
}
.site-header-account-btn {
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin-right: 1.5rem;
}

/* Navbar Responsiveness Fixes */
@media(max-width: 991px) {
    .site-header { height: 60px; }
    .site-header.is-scrolled { height: 56px; }
    .site-header-container { padding: 0 1.5rem; }
    .site-header-account-btn { display: none !important; }
    .header-left-group { gap: 0.8rem; }
    .btn-inverted { padding: 0.5rem 1rem !important; font-size: 0.75rem !important; }
    .logo-font span { font-size: 22px !important; }
}

@media(max-width: 480px) {
    .site-header-container { padding: 0 1rem; }
    .site-header-logo span, .logo-font span { font-size: 18px !important; letter-spacing: 1px !important; }
    .header-left-group { gap: 0.5rem; }
    .btn-inverted { padding: 0.4rem 0.8rem !important; font-size: 0.7rem !important; }
    .site-menu-toggle { gap: 0.4rem; }
    .site-menu-toggle span { font-size: 0.7rem; }
}

@media(max-width: 360px) {
    .site-header-logo span, .logo-font span { font-size: 15px !important; letter-spacing: 0px !important; }
    .site-header-right { gap: 0.5rem; }
}
