/* ═══════════════════════════════════════
   Sticky Header — Single Clean Header
   Logo LEFT | Nav CENTER | Controls+CTA RIGHT
   ═══════════════════════════════════════ */

/* Reserve space for fixed header — prevents CLS */
body {
    padding-top: 80px;
}
@media (max-width: 991px) {
    body { padding-top: 72px; }
}

/* ── Base ── */
.hk-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(216, 174, 122, 0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
}

body.hk-light-mode .hk-sticky-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Admin bar offset */
.admin-bar .hk-sticky-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .hk-sticky-header { top: 46px; }
}

/* ── Inner Container ── */
.hk-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    height: 100%;
    gap: 16px;
}

/* ── Logo ── */
.hk-sticky-logo {
    flex-shrink: 0;
    position: relative;
    width: 150px;
    height: 55px;
    overflow: hidden;
}

.hk-sticky-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    max-width: none;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.hk-sticky-logo .logo-light { display: none; }
.hk-sticky-logo .logo-dark { display: block; }
body.hk-light-mode .hk-sticky-logo .logo-light { display: block; }
body.hk-light-mode .hk-sticky-logo .logo-dark { display: none; }

/* ── Desktop Nav ── */
.hk-sticky-nav-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hk-sticky-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hk-sticky-nav > li > a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.hk-sticky-nav > li > a:hover,
.hk-sticky-nav > li.hk-active > a {
    color: #ffffff;
    background: rgba(216, 174, 122, 0.12);
}

.hk-sticky-nav > li.hk-active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--hk-accent, #c8956c);
    border-radius: 4px;
}

body.hk-light-mode .hk-sticky-nav > li > a {
    color: #333333;
}

/* ── Right Side: Tools ── */
.hk-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Controls Pill ── */
.hk-controls-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.hk-controls-group:hover {
    border-color: rgba(216, 174, 122, 0.3);
}

body.hk-light-mode .hk-controls-group {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Divider */
.hk-controls-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 2px;
}

body.hk-light-mode .hk-controls-divider {
    background: rgba(0, 0, 0, 0.1);
}

/* ── Control Buttons ── */
.hk-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
}

.hk-header-btn:hover {
    background: rgba(216, 174, 122, 0.15);
    color: #d8ae7a;
}

body.hk-light-mode .hk-header-btn {
    color: #333333;
}

body.hk-light-mode .hk-header-btn:hover {
    background: rgba(216, 174, 122, 0.1);
    color: #c8956c;
}

/* ── Dark Mode Toggle Icons ── */
.hk-theme-toggle .hk-icon-moon,
.hk-theme-toggle .hk-icon-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hk-theme-toggle .hk-icon-sun {
    color: #d8ae7a;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
    opacity: 0;
}

.hk-theme-toggle .hk-icon-moon {
    color: #a8b4c8;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

body.hk-light-mode .hk-theme-toggle .hk-icon-moon {
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
    opacity: 0;
}

body.hk-light-mode .hk-theme-toggle .hk-icon-sun {
    color: #1a1a1a !important;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

/* ── Language Switcher ── */
.hk-lang-switch-native {
    width: auto;
    min-width: 56px;
    padding: 0 10px;
    gap: 6px;
}

.hk-lang-switch-native .hk-lang-flag {
    font-size: 16px;
    line-height: 1;
}

.hk-lang-switch-native .hk-lang-code {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: currentColor;
}

/* ── CTA Button ── */
.hk-sticky-cta-wrap {
    flex-shrink: 0;
}

.hk-sticky-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #d8ae7a 0%, #c8956c 100%);
    color: #1a0a00 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 149, 108, 0.3);
    white-space: nowrap;
}

.hk-sticky-cta i {
    color: #1a0a00 !important;
}

.hk-sticky-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 149, 108, 0.45);
}

.hk-sticky-cta .hk-cta-label-mobile { display: none; }

/* ── Hide Elementor Default Header ── */
.elementor-location-header,
header.site-header {
    display: none !important;
}

/* Hide TranslatePress floater */
#trp-floater-ls { display: none !important; }

/* Hide duplicate standalone toggle (the correct one has .hk-header-btn) */
.hk-theme-toggle:not(.hk-header-btn) {
    display: none !important;
}

/* Hide stray FA dark/light icons */
.hk-sticky-header .fa-moon,
.hk-sticky-header .fa-sun {
    display: none !important;
}

/* ══════════════════════════════════
   RESPONSIVE — Tablet (992-1240px)
   ══════════════════════════════════ */
@media (max-width: 1240px) and (min-width: 992px) {
    .hk-sticky-inner { width: calc(100% - 24px); gap: 10px; }
    .hk-sticky-logo { width: 130px; height: 48px; }
    .hk-sticky-logo img { width: 180px; height: 180px; }
    .hk-sticky-nav > li > a { padding: 7px 10px; font-size: 12.5px; }
    .hk-header-tools { gap: 8px; }
    .hk-header-btn { width: 32px; height: 32px; }
    .hk-sticky-cta { padding: 8px 16px; font-size: 12px; }
}

/* ══════════════════════════════════
   RESPONSIVE — Mobile (<992px)
   ══════════════════════════════════ */
@media (max-width: 991px) {
    .hk-sticky-header { height: 64px; }
    .hk-sticky-inner { width: calc(100% - 24px); gap: 8px; }

    /* Hide desktop nav */
    .hk-sticky-nav-wrap { display: none; }

    /* Mobile logo */
    .hk-sticky-logo { width: 110px; height: 40px; }
    .hk-sticky-logo img { width: 150px; height: 150px; }

    /* Controls */
    .hk-header-tools { gap: 6px; }
    .hk-controls-group { padding: 3px; }
    .hk-header-btn { width: 30px; height: 30px; }
    .hk-theme-toggle .hk-icon-moon,
    .hk-theme-toggle .hk-icon-sun { width: 13px; height: 13px; }
    .hk-controls-divider { height: 14px; }

    .hk-lang-switch-native { min-width: 48px; padding: 0 8px; gap: 5px; }
    .hk-lang-switch-native .hk-lang-code { font-size: 10px; }
    .hk-lang-switch-native .hk-lang-flag { font-size: 14px; }

    /* CTA */
    .hk-sticky-cta { padding: 7px 12px; font-size: 11px; gap: 5px; }
    .hk-sticky-cta .hk-cta-label-full { display: none; }
    .hk-sticky-cta .hk-cta-label-mobile { display: inline; }
}

/* ══════════════════════════════════
   RESPONSIVE — Small phones (<400px)
   ══════════════════════════════════ */
@media (max-width: 400px) {
    .hk-sticky-logo { width: 90px; height: 36px; }
    .hk-sticky-logo img { width: 130px; height: 130px; }
    .hk-header-btn { width: 28px; height: 28px; }
    .hk-theme-toggle .hk-icon-moon,
    .hk-theme-toggle .hk-icon-sun { width: 12px; height: 12px; }
    .hk-lang-switch-native { min-width: 40px; padding: 0 6px; }
    .hk-lang-switch-native .hk-lang-flag { display: none; }
    .hk-sticky-cta { padding: 6px 10px; font-size: 10px; gap: 4px; }
}

/* ══════════════════════════════════
   Bottom App Navigation (Mobile)
   ══════════════════════════════════ */
.hk-bottom-nav { display: none; }

@media (max-width: 767px) {
    .elementor-menu-toggle { display: none !important; }

    .hk-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 68px;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 999999;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
        border-top: 1px solid rgba(255,255,255,0.05);
        justify-content: space-around;
        align-items: center;
        padding: 0 6px env(safe-area-inset-bottom);
        direction: ltr;
    }

    .hk-bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #8a92a3;
        width: 16.66%;
        min-width: 55px;
        height: 100%;
        transition: all 0.3s ease;
    }

    .hk-bn-item i { font-size: 18px; margin-bottom: 3px; }
    .hk-bn-item span { font-size: 9px; font-weight: 600; white-space: nowrap; }

    .hk-bn-item.active,
    .hk-bn-item:hover { color: #c8956c; }

    body.hk-light-mode .hk-bottom-nav {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        border-top-color: rgba(0,0,0,0.05);
    }

    body.hk-light-mode .hk-bn-item { color: #777; }
    body.hk-light-mode .hk-bn-item.active { color: #c8956c; }
}

/* ══════════════════════════════════
   HIDE UNWANTED CACHED/OLD ELEMENTS
   ══════════════════════════════════ */
.hk-sticky-mobile-drawer,
#hk-sticky-drawer,
.elementor-location-footer,
footer.site-footer:not(.custom-site-footer),
.custom-site-footer + .site-footer {
    display: none !important;
}
