/* ==========================================
   BAPSANG HEADER — Ember & Steel
========================================== */
:root {
    --bh-charcoal: #1a1714;
    --bh-graphite: #2a2520;
    --bh-ember: #b66d33;
    --bh-brass: #c4a265;
    --bh-ash: #f5f0eb;
    --bh-smoke: #9a9590;
}

/* ==========================================
   TOPBAR
========================================== */
.bh-topbar {
    position: relative;
    z-index: 2;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
    transition: all 0.4s ease;
}

.bh-header--scrolled .bh-topbar {
    margin-top: -48px;
    opacity: 0;
    pointer-events: none;
}

.bh-topbar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}

/* USPs — right side */
.bh-topbar__usps {
    display: flex;
    align-items: center;
    gap: 28px;
}

.bh-topbar__usp {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--bh-ash);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.bh-topbar__usp:hover {
    opacity: 1;
}

.bh-topbar__usp-icon {
    width: 15px;
    height: 15px;
    color: var(--bh-ember);
    flex-shrink: 0;
    opacity: 0.85;
}

.bh-topbar__usp-separator {
    width: 1px;
    height: 10px;
    background: rgba(245, 240, 235, 0.08);
}

/* Contact — right side */
.bh-topbar__contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bh-topbar__contact-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--bh-smoke);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bh-topbar__contact-link:hover {
    color: var(--bh-brass);
}

.bh-topbar__contact-link svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.bh-topbar__divider {
    width: 1px;
    height: 10px;
    background: rgba(245, 240, 235, 0.1);
}

/* ==========================================
   HEADER WRAPPER
========================================== */
.bh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bh-header--transparent {
    background: transparent;
}

.bh-header--scrolled {
    background: rgba(26, 23, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bh-header--scrolled .bh-header__border {
    opacity: 1;
}

/* ==========================================
   MAIN HEADER BAR
========================================== */
.bh-header__main {
    position: relative;
    z-index: 2;
}

.bh-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    transition: height 0.4s ease;
}

.bh-header--scrolled .bh-header__inner {
    height: 64px;
}

/* ==========================================
   LOGO
========================================== */
.bh-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10;
    flex-shrink: 0;
}

.bh-header__logo-img {
    height: 48px;
    width: auto;
    transition: height 0.4s ease;
}

.bh-header--scrolled .bh-header__logo-img {
    height: 38px;
}

.bh-header__logo-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--bh-ash);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    line-height: 1;
}

.bh-header__logo-accent {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bh-brass);
    margin-top: 2px;
}

/* ==========================================
   RIGHT SIDE — Nav + CTA + Toggle
========================================== */
.bh-header__right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

/* ==========================================
   NAVIGATION — right aligned
========================================== */
.bh-header__nav {
    display: flex;
    align-items: center;
}

.bh-header__nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bh-header__nav-item {
    position: relative;
}

.bh-header__nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--bh-ash);
    text-decoration: none;
    padding: 10px 18px;
    position: relative;
    transition: color 0.3s ease;
    opacity: 0.8;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bh-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 1px;
    background: var(--bh-ember);
    transition: transform 0.3s ease;
}

.bh-header__nav-link:hover {
    color: var(--bh-ash);
    opacity: 1;
}

.bh-header__nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.bh-header__nav-link--active {
    opacity: 1;
}

.bh-header__nav-link--active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Chevron icon */
.bh-header__nav-chevron {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.bh-header__nav-trigger[aria-expanded="true"] .bh-header__nav-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* ==========================================
   MEGAMENU
========================================== */
.bh-header__megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 820px;
    background: var(--bh-charcoal);
    border: 1px solid rgba(245, 240, 235, 0.06);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.bh-header__megamenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bh-ember), var(--bh-brass), var(--bh-ember));
    opacity: 0.6;
}

.bh-header__nav-item--has-megamenu:hover .bh-header__megamenu,
.bh-header__nav-item--has-megamenu.is-open .bh-header__megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.bh-header__megamenu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 0;
    padding: 0;
}

.bh-header__megamenu-column {
    padding: 32px 28px;
    border-right: 1px solid rgba(245, 240, 235, 0.04);
}

.bh-header__megamenu-column:last-child {
    border-right: none;
}

.bh-header__megamenu-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bh-brass);
    margin: 0 0 16px;
}

.bh-header__megamenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bh-header__megamenu-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--bh-ash);
    text-decoration: none;
    padding: 9px 0;
    display: block;
    opacity: 0.7;
    transition: all 0.25s ease;
    position: relative;
}

.bh-header__megamenu-link:hover {
    opacity: 1;
    color: var(--bh-ember);
    padding-left: 8px;
}

/* Promo column */
.bh-header__megamenu-column--promo {
    background: rgba(232, 74, 28, 0.04);
    display: flex;
    align-items: center;
}

.bh-header__megamenu-promo {
    display: flex;
    flex-direction: column;
}

.bh-header__megamenu-promo-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bh-ember);
    margin-bottom: 12px;
}

.bh-header__megamenu-promo-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bh-ash);
    margin: 0 0 12px;
}

.bh-header__megamenu-promo-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bh-smoke);
    margin: 0 0 20px;
}

.bh-header__megamenu-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bh-ember);
    transition: gap 0.3s ease;
}

.bh-header__megamenu-promo-cta:hover {
    gap: 12px;
}

.bh-header__megamenu-promo-cta svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   NAV DIVIDER
========================================== */
.bh-header__nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(245, 240, 235, 0.1);
    margin: 0 16px;
    flex-shrink: 0;
}

/* ==========================================
   CTA BUTTON
========================================== */
.bh-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bh-ash);
    background: var(--bh-ember);
    border: 1px solid var(--bh-ember);
    padding: 12px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.bh-header__cta:hover {
    background: transparent;
    color: var(--bh-ember);
    transform: translateY(-1px);
}

.bh-header__cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.bh-header__cta:hover svg {
    transform: translateX(3px);
}

/* ==========================================
   BOTTOM BORDER LINE
========================================== */
.bh-header__border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ==========================================
   MOBILE TOGGLE
========================================== */
.bh-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(245, 240, 235, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    margin-left: 16px;
}

.bh-header__toggle:hover {
    border-color: var(--bh-ember);
}

.bh-header__toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--bh-ash);
    transition: all 0.3s ease;
    display: block;
}

.bh-header__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bh-header__toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.bh-header__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   MOBILE MENU
========================================== */
.bh-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.bh-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.bh-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--bh-charcoal);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bh-mobile.is-active {
    right: 0;
}

.bh-mobile__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
    flex-shrink: 0;
}

.bh-mobile__logo {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--bh-ash);
    text-decoration: none;
}

.bh-mobile__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(245, 240, 235, 0.1);
    cursor: pointer;
    color: var(--bh-ash);
    transition: all 0.3s ease;
}

.bh-mobile__close:hover {
    border-color: var(--bh-ember);
    color: var(--bh-ember);
}

.bh-mobile__close svg {
    width: 18px;
    height: 18px;
}

.bh-mobile__nav {
    padding: 16px 0;
    flex-grow: 1;
}

.bh-mobile__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--bh-ash);
    text-decoration: none;
    padding: 16px 28px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.bh-mobile__link:hover,
.bh-mobile__link--active {
    color: var(--bh-ember);
    border-left-color: var(--bh-ember);
    background: rgba(232, 74, 28, 0.04);
}

.bh-mobile__link-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bh-smoke);
    opacity: 0.5;
}

/* Mobile submenu toggle */
.bh-mobile__link--has-submenu {
    width: 100%;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    cursor: pointer;
    text-align: left;
}

.bh-mobile__link-chevron {
    width: 14px;
    height: 14px;
    color: var(--bh-smoke);
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.bh-mobile__link--has-submenu[aria-expanded="true"] .bh-mobile__link-chevron {
    transform: rotate(180deg);
}

.bh-mobile__submenu {
    display: none;
    flex-direction: column;
    padding: 0 28px 12px 44px;
}

.bh-mobile__submenu[aria-hidden="false"] {
    display: flex;
}

.bh-mobile__submenu-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bh-brass);
    padding: 12px 0 6px;
    opacity: 0.7;
}

.bh-mobile__submenu-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--bh-ash);
    text-decoration: none;
    padding: 8px 0;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.bh-mobile__submenu-link:hover {
    opacity: 1;
    color: var(--bh-ember);
}

.bh-mobile__divider {
    height: 1px;
    background: rgba(245, 240, 235, 0.04);
    margin: 8px 28px;
}

.bh-mobile__usps {
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(245, 240, 235, 0.04);
    border-bottom: 1px solid rgba(245, 240, 235, 0.04);
    margin: 0 0 8px;
}

.bh-mobile__usp {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--bh-smoke);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-mobile__usp-icon {
    width: 15px;
    height: 15px;
    color: var(--bh-ember);
    flex-shrink: 0;
    opacity: 0.7;
}

.bh-mobile__footer {
    padding: 24px 28px;
    border-top: 1px solid rgba(245, 240, 235, 0.06);
    flex-shrink: 0;
}

.bh-mobile__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bh-ash);
    background: var(--bh-ember);
    border: 1px solid var(--bh-ember);
    padding: 18px 28px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
}

.bh-mobile__cta:hover {
    background: transparent;
    color: var(--bh-ember);
}

.bh-mobile__cta svg {
    width: 14px;
    height: 14px;
}

.bh-mobile__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bh-mobile__contact-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--bh-smoke);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-mobile__contact-link:hover {
    color: var(--bh-brass);
}

.bh-mobile__contact-link svg {
    width: 13px;
    height: 13px;
    opacity: 0.4;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .bh-header__nav {
        display: none;
    }

    .bh-header__megamenu {
        display: none;
    }

    .bh-header__cta {
        display: none;
    }

    .bh-header__nav-divider {
        display: none;
    }

    .bh-header__toggle {
        display: flex;
    }

    .bh-header__inner {
        padding: 0 24px;
        height: 64px;
    }

    .bh-header--scrolled .bh-header__inner {
        height: 58px;
    }

    .bh-topbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .bh-mobile {
        max-width: 100%;
    }

    .bh-header__logo-text {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .bh-mobile__link {
        padding: 14px 16px;
    }

    .bh-mobile__footer {
        padding: 20px 16px;
    }

    .bh-mobile__header {
        padding: 16px 16px;
    }

    .bh-mobile__usps {
        padding: 12px 16px;
    }

    .bh-header__inner {
        height: 56px;
    }
}
