/* ===================== HEADER (premium) ===================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; }

/* ---------- Top bar slide-in ---------- */
@keyframes topBarSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes badgePulseGlow {
    0%,100% { box-shadow: 0 2px 10px rgba(201,168,76,0.35); }
    50%      { box-shadow: 0 2px 22px rgba(201,168,76,0.75), 0 0 0 4px rgba(201,168,76,0.12); }
}
@keyframes badgeShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes iconBounceIn {
    0%   { transform: translateY(-8px); opacity: 0; }
    60%  { transform: translateY(2px);  opacity: 1; }
    100% { transform: translateY(0); }
}
@keyframes topLinkFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.top-bar {
    background: linear-gradient(90deg, #111111 0%, #1c1a16 50%, #111111 100%);
    color: #E9DFC8;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(201,168,76,0.35);
    animation: topBarSlideDown 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; }

/* contact links stagger in */
.top-bar__left { display: flex; gap: 26px; }
.top-bar__left a {
    display: inline-flex; align-items: center; gap: 7px;
    color: #E9DFC8; transition: color 0.2s ease;
    opacity: 0;
    animation: topLinkFadeIn 0.5s ease forwards;
}
.top-bar__left a:nth-child(1) { animation-delay: 0.25s; }
.top-bar__left a:nth-child(2) { animation-delay: 0.38s; }
.top-bar__left a:hover { color: var(--gold-light); }
.top-bar__left .icon { width: 14px; height: 14px; color: var(--gold-light); }

/* right side */
.top-bar__right { display: flex; align-items: center; gap: 22px; }

/* social icons stagger bounce in */
.top-bar__social { display: flex; gap: 14px; }
.top-bar__social a {
    color: #E9DFC8;
    opacity: 1;
    animation: iconBounceIn 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.top-bar__social a:nth-child(1) { animation-delay: 0.45s; }
.top-bar__social a:nth-child(2) { animation-delay: 0.53s; }
.top-bar__social a:nth-child(3) { animation-delay: 0.61s; }
.top-bar__social a:nth-child(4) { animation-delay: 0.69s; }
.top-bar__social .icon { width: 14px; height: 14px; transition: all 0.25s ease; }
.top-bar__social a:hover { color: var(--gold-light); }
.top-bar__social a:hover .icon { transform: translateY(-3px) scale(1.2); }

/* badge — shimmer + pulse glow */
.top-bar__badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(
        110deg,
        var(--gold-dark) 0%,
        var(--gold) 30%,
        #f5d97a 50%,
        var(--gold) 70%,
        var(--gold-dark) 100%
    );
    background-size: 200% auto;
    color: #1A1A1A; padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: 11.5px;
    letter-spacing: 0.3px;
    opacity: 0;
    animation:
        topLinkFadeIn   0.5s ease         0.75s forwards,
        badgePulseGlow  2.4s ease-in-out  1.3s infinite,
        badgeShimmer    3s  linear        1.3s infinite;
}
.top-bar__badge .icon { width: 13px; height: 13px; animation: none; }

.hamburger { display: none; color: var(--text-primary); background: none; border: none; cursor: pointer; }

.main-nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 1px 0 rgba(201,168,76,0.5), 0 12px 30px rgba(17,17,17,0.06);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled .main-nav { box-shadow: 0 1px 0 rgba(201,168,76,0.6), 0 18px 40px rgba(17,17,17,0.12); }
.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    transition: padding 0.3s ease;
}
.main-nav__logo { flex-shrink: 0; }
.main-nav__logo img { height: 64px; width: auto; display: block; transition: height 0.3s ease, filter 0.3s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08)); }

.site-header.is-scrolled .main-nav__inner { padding: 9px 0; }
.site-header.is-scrolled .main-nav__logo img { height: 44px; }

.main-nav__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.main-nav__cta {
    flex-shrink: 0; white-space: nowrap; padding: 13px 24px; font-size: 13.5px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
    color: #1A1A1A; border: none; position: relative; overflow: hidden;
    box-shadow: 0 8px 20px rgba(201,168,76,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.main-nav__cta::before { content: none; }
.main-nav__cta::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.main-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,168,76,0.48); }
.main-nav__cta:hover::after { left: 130%; transition: left 0.7s ease; }

.main-nav__list { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a { display: flex; align-items: center; gap: 5px; padding: 16px 13px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.2px; color: var(--text-primary); position: relative; white-space: nowrap; border-radius: 8px; transition: color 0.2s ease, background 0.2s ease; }
.main-nav__list > li > a:hover { background: rgba(201,168,76,0.08); }
.main-nav__list > li > a .icon-sm { width: 14px; height: 14px; transition: transform 0.25s ease; color: var(--gold-dark); }
.main-nav__list > li > a::after {
    content: ''; position: absolute; left: 20px; right: 20px; bottom: 9px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.main-nav__list > li > a:hover, .main-nav__list > li > a.is-active, .main-nav__list > li > a:focus-visible { color: #7A5E1C; }
.main-nav__list > li > a:hover::after, .main-nav__list > li > a.is-active::after, .main-nav__list > li > a:focus-visible::after { transform: scaleX(1); }
.main-nav__list > li > a:focus-visible { background: rgba(201,168,76,0.08); outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.mega-menu:focus-within, .card-dropdown:focus-within { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu__link:focus-visible, .card-dropdown__card:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; color: #7A5E1C; }
.main-nav__list > li.has-mega:hover > a .icon-sm, .main-nav__list > li.has-dropdown:hover > a .icon-sm { transform: rotate(180deg); }


/* Standard Card Dropdowns */
.card-dropdown {
    position: absolute; top: 100%; left: 50%;
    background: #fff;
    border: 1px solid rgba(17,17,17,0.08);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 16px rgba(17,17,17,0.06), 0 40px 70px rgba(17,17,17,0.22);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    width: min(460px, calc(100vw - 24px));
    z-index: 400;
    overflow: hidden;
}
.card-dropdown::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
}
/* Positioning handled dynamically by JS (smartPosition) — no hardcoded overrides needed */
.has-dropdown:hover .card-dropdown, .card-dropdown.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.card-dropdown__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px 14px 12px; }
.card-dropdown__card {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid transparent; position: relative;
    text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease;
}
.card-dropdown__card:hover { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.28); }
.card-dropdown__icon {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.06) 100%);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark); transition: background 0.2s ease, border-color 0.2s ease;
}
.card-dropdown__icon .icon { width: 18px; height: 18px; }
.card-dropdown__card:hover .card-dropdown__icon {
    background: linear-gradient(135deg, rgba(201,168,76,0.28) 0%, rgba(201,168,76,0.12) 100%);
    border-color: rgba(201,168,76,0.5);
}
.card-dropdown__name {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    line-height: 1.3; flex: 1; min-width: 0;
    transition: color 0.2s ease;
}
.card-dropdown__card:hover .card-dropdown__name { color: #7A5E1C; }
.card-dropdown__arrow {
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%) translateX(-4px);
    opacity: 0; color: var(--gold-dark); transition: all 0.2s ease;
    flex-shrink: 0;
}
.card-dropdown__card:hover .card-dropdown__arrow { opacity: 1; transform: translateY(-50%) translateX(0); }
.card-dropdown__grid { padding-bottom: 14px; }
.card-dropdown--row { width: 260px; }
.card-dropdown--row .card-dropdown__grid { grid-template-columns: 1fr; }

/* Shopfronts — vertical single-column dropdown */
#ddShopfronts { width: min(300px, calc(100vw - 24px)); }
#ddShopfronts .card-dropdown__grid { grid-template-columns: 1fr; }

/* Mobile menu */
.mobile-menu {
    position: fixed; top: 0; left: -100%; bottom: 0; width: min(90vw, 380px);
    background: #fff; z-index: 700; transition: left 0.4s ease;
    display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: 0 0 60px rgba(0,0,0,0.25);
}
.mobile-menu.is-open { left: 0; }
.mobile-menu__overlay { position: fixed; inset: 0; background: rgba(17,17,17,0.6); backdrop-filter: blur(2px); z-index: 650; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.mobile-menu__overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu__head {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
    background: linear-gradient(90deg, #111111, #1c1a16);
    border-bottom: 2px solid var(--gold);
}
.mobile-menu__head img { height: 40px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.mobile-menu__head button { color: var(--gold-light); background: none; border: none; cursor: pointer; }
.mobile-menu__list { padding: 10px 20px; flex: 1; }
.mobile-menu__list > li > a { display: block; padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.mobile-accordion__trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.mobile-accordion__trigger .icon { transition: transform 0.3s ease; }
.mobile-accordion.is-open .mobile-accordion__trigger .icon { transform: rotate(180deg); }
.mobile-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.mobile-accordion__panel a { display: block; padding: 10px 0 10px 14px; font-size: 14px; color: var(--text-secondary); }
.mobile-menu__cta { margin: 20px; }
