/**
 * Guidee Header – Desktop + Mobile
 * Version: 1.2.6 (2026-07-23 – Removed duplicate content padding-top; offset now lives only in critical.css)
 * Last modified: 2026-07-23
 */

/* TABLET VERTICAL ALIGNMENT FIX */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-header-visible .elementor-icon-wrapper {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
}

/* TABLET ICON MARGIN FIX */
@media (max-width: 1024px) {
    .guidee-mobile-burger {
        margin-left: 10px;
    }
    .guidee-mobile-search-icon{
        margin-right: 10px;
    }
}

/* HEADER SOLID WHITE + FIXED BEHAVIOUR */
.guidee-header-outer,
.desktop-header-visible,
.mobile-header-visible,
header.elementor-location-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 99999;
    background: var(--color-white);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

body.admin-bar .guidee-header-outer,
body.admin-bar .desktop-header-visible,
body.admin-bar .mobile-header-visible,
body.admin-bar header.elementor-location-header {
    top: 32px;
}

/* NOTE: Content spacing (padding-top for fixed header) lives exclusively in critical.css */

.guidee-header-row1 {
    height: 72px;
    min-height: 72px;
}

/* MOBILE HEADER CONTAINER */
.mobile-header-visible {
    padding: 12px 0;
    background: var(--color-white);
    width: 100vw;
    height: 64px;
    align-items: center;
    transition: height 0.3s ease;
}

/* DESKTOP HEADER – 1200PX UNIFIED WIDTH */
.guidee-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    min-height: 72px;
    width: 100%;
}

.guidee-header-row2 {
    position: relative;
    padding: 0 20px;
    max-width: 1200px;
    margin: -10px auto 0 auto;
    width: 100%;
}

/* DESKTOP LOGO */
@media (min-width: 1024px) {
    .guidee-logo {
        margin-left: -25px;
    }
}

/* DESKTOP SEARCH BAR */
@media (min-width: 1024px) {
    .guidee-custom-search-wrapper {
        flex: 1 1 auto;
        max-width: none;
        margin: 0 55px 0 10px;
    }
}

/* DESKTOP L1 MENU – FORCE VISIBILITY */
@media (min-width: 1024px) {
    .guidee-header-row2 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link,
    .guidee-header-row2 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:hover,
    .guidee-header-row2 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
        color: var(--color-charcoal);
        font-size: 16px;
        opacity: 1;
        visibility: visible;
        display: block;
    }
}

/* DESKTOP OVERRIDES */
@media (min-width: 1024px) {
    .guidee-header-row1 {
        height: 72px;
        min-height: 72px;
    }
}

/* ALL REMAINING RULES */
.guidee-logo {
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    height: 48px;
    width: auto;
}

.guidee-logo img {
    height: 48px;
    width: auto;
    aspect-ratio: 3.5 / 1;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.elementor-widget-button .guidee-subscribe-button .elementor-button,
.elementor-widget-button .guidee-subscribe-button a.elementor-button,
.guidee-subscribe-button .elementor-button,
.guidee-subscribe-button a.elementor-button {
    flex: 0 0 auto;
    background: var(--color-white);
    color: var(--color-charcoal);
    padding: 14px 42px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-charcoal);
    text-decoration: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    width: auto;
}

.elementor-widget-button .guidee-subscribe-button .elementor-button:hover,
.elementor-widget-button .guidee-subscribe-button a.elementor-button:hover,
.guidee-subscribe-button .elementor-button:hover,
.guidee-subscribe-button a.elementor-button:hover {
    background: var(--color-cobalt);
    color: var(--color-white);
    border: 2px solid var(--color-cobalt);
    box-shadow: none;
}

.guidee-mobile-burger {
    font-size: 28px;
    width: 48px;
    height: 48px;
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.guidee-mobile-burger i,
.guidee-mobile-burger svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.guidee-mobile-burger:hover,
.guidee-mobile-burger:active {
    color: var(--color-cobalt);
}

.guidee-mobile-logo-center img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.guidee-mobile-search-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.guidee-mobile-search-icon i,
.guidee-mobile-search-icon svg {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.guidee-mobile-search-icon:hover,
.guidee-mobile-search-icon:active {
    color: var(--color-cobalt);
}

/* TOUCH TARGET IMPROVEMENTS */
@media (max-width: 767px) {
    .guidee-mobile-burger,
    .guidee-mobile-search-icon {
        min-width: 48px;
        min-height: 48px;
    }
}