/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    background: #1e0f0a; /* Made solid color across the entire site */
}

.site-header.scrolled {
    background: #1e0f0a;
    box-shadow: 0 2px 16px rgba(30, 15, 10, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align menu to the right */
    padding: 0 5vw;
    height: 288px; /* Header is 4x larger (72px * 4) */
    position: relative; /* Added relative for absolute logo centering */
    transition: height 0.25s ease; /* Transition for scroll shrinking */
}

/* ── SCROLL STATE: Shrink to normal size ── */
.site-header.scrolled .header-inner {
    height: 72px;
}

/* ── HEADER LOGO ── */
.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 102; /* Ensures logo stays on top */
}

.header-logo img {
    height: 240px; /* increased from 192px */
    width: auto;
    transition: height 0.25s ease;
}

/* ── SCROLL STATE: Shrink to normal size ── */
.site-header.scrolled .header-logo img {
    height: 60px; /* increased from 48px */
}
/* ── DESKTOP NAV ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-link {
    font-family: 'CONDENSO FONT', sans-serif;
    font-size: clamp(1.4rem, 1.5vw, 1.5rem);
    letter-spacing: 0.05em; /* Reduced from 0.3em for a tight, condensed look */
    text-transform: uppercase; /* Condensed fonts look best in all caps */
    color: #ede8d8;
    text-decoration: none;
    position: relative;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--coral);
}

/* nav links stay parchment on scroll */
.site-header.scrolled .nav-link {
    color: #ede8d8;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link:focus {
    color: var(--coral);
}

/* ── HAMBURGER ── */
.header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
    z-index: 101;
}

.header-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ede8d8;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* burger spans stay white always */
.site-header.scrolled .header-burger span {
    background: #ede8d8;
}

/* Burger → X animation */
.site-header.menu-open .header-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .header-burger span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.site-header.menu-open .header-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── MOBILE DRAWER ── */
.header-drawer {
    display: flex;
    flex-direction: column;
    background: rgba(20, 8, 4, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0;
    gap: 0;
    border-top: 1px solid rgba(139, 99, 71, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    /* always display:flex so transition works */
}

.site-header.menu-open .header-drawer {
    max-height: 400px;
}

.drawer-link {
    font-family: 'CONDENSO FONT', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    letter-spacing: 0.05em; /* Reduced from 0.1em */
    text-transform: uppercase; /* Keep consistent with desktop */
    color: #ede8d8;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
    padding: 1rem 6vw;
    border-bottom: 1px solid rgba(139, 99, 71, 0.15);
    display: block;
    width: 100%;
}

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

.drawer-link:hover,
.drawer-link:focus {
    color: var(--coral);
    padding-left: 8vw;
    background: rgba(139, 99, 71, 0.08);
}

/* ── DESKTOP (hide burger + drawer) ── */
@media (min-width: 769px) {
    .header-burger {
        display: none !important;
    }

    .header-drawer {
        max-height: 0 !important;
        overflow: hidden !important;
    }
}

/* ── TABLET (769px and below) ── */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 5vw;
    }

    .header-nav {
        display: none;
    }

    .header-burger {
        display: flex;
    }
}

/* ── SMALL PHONES ── */
@media (max-width: 400px) {
    .header-inner {
        padding: 0 4vw;
    }

    .drawer-link {
        font-size: 1.5rem;
        padding: 0.85rem 5vw;
    }
}