/* /assets/css/header.css */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background:
        linear-gradient(180deg, rgba(62, 71, 56, 0.96), rgba(48, 56, 44, 0.96)),
        linear-gradient(90deg, rgba(229, 215, 185, 0.26), rgba(194, 178, 140, 0.12));
    border-bottom: 1px solid rgba(182, 160, 110, 0.52);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.header-bar {
    max-width: 1280px;
    min-height: 86px;
    margin: 0 auto;
    padding: 8px 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    transition: min-height 220ms ease, padding 220ms ease, gap 220ms ease;
}

.header-bar__left,
.header-bar__right {
    display: flex;
    align-items: center;
}

.header-bar__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 220ms ease, opacity 220ms ease, width 220ms ease;
}

.header-bar__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.26));
    transition: width 220ms ease, height 220ms ease;
}

.header-bar__menu-toggle {
    display: none;
    width: 54px;
    height: 54px;
    margin-right: 14px;
    border: 1px solid rgba(216, 197, 155, 0.28);
    border-radius: 18px;
    background: rgba(40, 34, 28, 0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    cursor: pointer;
}

.header-bar__menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px auto;
    background: #f8efdc;
    border-radius: 999px;
}

.header-bar__nav {
    min-width: 0;
}

.header-nav,
.header-nav__dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.header-nav__item {
    position: relative;
}

.header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: #f4ead6;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
    background: rgba(116, 78, 37, 0.24);
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.header-nav__item.is-active > .header-nav__link,
.header-nav__link:hover {
    background: linear-gradient(180deg, rgba(138, 97, 47, 0.98), rgba(114, 75, 34, 0.98));
    border-color: rgba(216, 189, 127, 0.34);
    color: #fff7e8;
    transform: translateY(-1px);
}

.header-nav__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    display: inline-block;
    margin-left: 2px;
}

.header-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    padding: 10px;
    background: rgba(36, 29, 23, 0.98);
    border: 1px solid rgba(197, 171, 118, 0.24);
    border-radius: 14px;
    box-shadow: 0 16px 28px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.header-nav__dropdown .header-nav__link {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    border-radius: 12px;
    font-size: 0.98rem;
    background: transparent;
    padding: 0 12px;
}

.header-nav__item:hover > .header-nav__dropdown,
.header-nav__item:focus-within > .header-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-bar__social-link {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #efcb59;
    background: rgba(53, 45, 35, 0.80);
    border: 1px solid rgba(201, 173, 112, 0.36);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, opacity 220ms ease, width 220ms ease;
}

.header-bar__social-link:hover {
    transform: translateY(-1px);
    background: rgba(76, 62, 44, 0.94);
    color: #ffe082;
}

.header-bar__social-icon {
    width: 22px;
    height: 22px;
}

body.is-hero-past .site-header {
    background:
        linear-gradient(180deg, rgba(43, 46, 39, 0.98), rgba(38, 41, 35, 0.98)),
        linear-gradient(90deg, rgba(229, 215, 185, 0.18), rgba(194, 178, 140, 0.08));
    border-bottom-color: rgba(182, 160, 110, 0.38);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

body.is-hero-past .header-bar {
    min-height: 64px;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 14px;
}

body.is-hero-past .header-bar__logo {
    width: 46px;
    height: 46px;
}

body.is-hero-past .header-bar__social-link {
    width: 0;
    height: 36px;
    padding: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
}

body.is-hero-past .header-bar__nav {
    justify-self: center;
}

body.is-hero-past .header-nav__link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.98rem;
}

@media (max-width: 1080px) {
    .header-bar {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-bar__logo {
        width: 64px;
        height: 64px;
    }

    .header-nav {
        gap: 6px;
    }

    .header-nav__link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.98rem;
    }
}

@media (max-width: 900px) {
    .header-bar {
        min-height: 84px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 10px 16px;
    }

    .header-bar__menu-toggle {
        display: inline-block;
    }

    .header-bar__nav {
        display: none;
    }

    .header-bar__brand {
        justify-self: center;
    }

    .header-bar__logo {
        width: 92px;
        height: 92px;
    }

    .header-bar__social-link {
        width: 46px;
        height: 46px;
    }

    body.is-hero-past .header-bar__logo {
        width: 78px;
        height: 78px;
    }

    body.is-hero-past .header-bar__social-link {
        width: 46px;
        height: 46px;
        opacity: 1;
        border-width: 1px;
    }
}
