/* ============================================
   SALESHIVE HEADER STYLES - REBUILT
   Zero-flicker, solid, predictable layout
   ============================================ */

/* ===========================================
   CORE HEADER - Fixed dimensions, no transitions
   =========================================== */
.sh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 9999;
}

.sh-header-inner {
    height: 80px;
    background: #0a0a0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 40px;
}

/* Removed scroll effect - clean solid header */

.sh-header-container {
    max-width: 1400px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* WordPress Admin Bar */
.admin-bar .sh-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .sh-header {
        top: 46px;
    }
}

/* ===========================================
   LOGO - Fixed dimensions
   =========================================== */
.sh-logo {
    display: block;
    width: 190px;
    height: 55px;
    flex-shrink: 0;
}

.sh-logo img,
.sh-logo-img {
    display: block;
    width: 190px;
    height: 55px;
}

/* ===========================================
   NAVIGATION - Simple flexbox
   =========================================== */
.sh-nav {
    display: flex;
    align-items: center;
    height: 80px;
}

.sh-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 80px;
}

.sh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
    margin: 0;
}

.sh-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
}

.sh-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sh-nav-item-active > .sh-nav-link {
    color: #ffb347;
}

.sh-nav-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sh-has-dropdown:hover .sh-nav-arrow {
    transform: rotate(180deg);
}

/* ===========================================
   DROPDOWNS
   =========================================== */
.sh-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.sh-has-dropdown:hover .sh-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Simple Dropdown */
.sh-dropdown-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-dropdown-simple li {
    margin: 0;
}

.sh-dropdown-simple a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
}

.sh-dropdown-simple a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ff8c1a;
}

.sh-dropdown-simple a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Mega Dropdown */
.sh-dropdown-mega {
    min-width: 520px;
    left: 0;
    transform: none;
    padding: 20px;
}

.sh-dropdown-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sh-dropdown-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sh-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-dropdown-menu li {
    margin: 0;
}

.sh-dropdown-menu a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 8px;
}

.sh-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sh-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 140, 26, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.sh-dropdown-icon svg {
    width: 18px;
    height: 18px;
    color: #ff8c1a;
}

.sh-dropdown-menu a:hover .sh-dropdown-icon {
    background: rgba(255, 140, 26, 0.2);
}

.sh-dropdown-menu a div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-dropdown-menu a strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.sh-dropdown-menu a span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.sh-dropdown-menu a:hover strong {
    color: #ff8533;
}

/* ===========================================
   HEADER CTA
   =========================================== */
.sh-header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 80px;
}

.sh-header-login {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    text-decoration: none;
    border-radius: 6px;
}

.sh-header-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sh-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    font-size: 12px;
}

.sh-header-btn .sh-btn-icon {
    width: 16px;
    height: 16px;
}

/* ===========================================
   MOBILE TOGGLE
   =========================================== */
.sh-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.sh-mobile-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.sh-mobile-toggle.active .sh-mobile-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sh-mobile-toggle.active .sh-mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.sh-mobile-toggle.active .sh-mobile-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================================
   MOBILE MENU
   =========================================== */
.sh-mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.99);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.sh-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.sh-mobile-menu-inner {
    padding: 30px 30px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sh-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-mobile-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-mobile-nav a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.sh-mobile-nav a:hover {
    color: #ffb347;
}

/* Mobile Nav Sections */
.sh-mobile-nav-section {
    margin-bottom: 8px;
    border-bottom: none;
    padding-top: 24px;
}

.sh-mobile-nav-section:first-child {
    padding-top: 0;
}

.sh-mobile-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-mobile-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-mobile-nav-section ul li {
    border-bottom: none;
    margin-bottom: 0;
}

.sh-mobile-nav-section ul a {
    display: block;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.sh-mobile-nav-section ul a:hover {
    color: #ff8533;
}

.sh-mobile-cta {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-mobile-cta .sh-btn {
    width: 100%;
    justify-content: center;
}

.sh-mobile-cta .sh-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Spacer for floating CTA button */
.sh-mobile-menu-spacer {
    height: 100px;
    flex-shrink: 0;
    margin-top: auto;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .sh-nav {
        display: none;
    }
    
    .sh-header-cta {
        display: none;
    }
    
    .sh-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .sh-header,
    .sh-header-inner,
    .sh-header-container {
        height: 70px;
    }
    
    .sh-nav,
    .sh-nav-menu,
    .sh-nav-item,
    .sh-header-cta {
        height: 70px;
    }
    
    .sh-header-inner {
        padding: 0 20px;
    }
    
    .sh-logo {
        width: 150px;
        height: 43px;
    }
    
    .sh-logo img,
    .sh-logo-img {
        width: 150px;
        height: 43px;
    }
}

/* ===========================================
   MAIN CONTENT SPACING
   =========================================== */
.sh-main {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .sh-main {
        padding-top: 70px;
    }
}

/* Pages with hero sections handle their own spacing */
.home .sh-main,
.page-template .sh-main,
.single-calendar .sh-main {
    padding-top: 0;
}

/* Blank template pages */
.sh-main.full-width,
.sh-main.sh-has-hero,
.sh-template-blank .sh-main {
    padding-top: 0;
}

/* ===========================================
   FOOTER LOGO (keep for compatibility)
   =========================================== */
.sh-footer-logo-img {
    max-height: 40px;
    width: auto;
    margin-bottom: 20px;
}
