/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* Default menu link colour at top of page (over hero aurora) */
header .elementor-688 .elementor-element.elementor-element-eae6747 .menu-item a.hfe-menu-item {
    color: #fff !important;
}

/* === Liquid-glass header — top-of-page state (full-width, faint frost) === */
.ehf-header #masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    z-index: 1000;
    padding: 0 !important;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: url(#container-glass) blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition:
        background .6s cubic-bezier(0.32, 0.72, 0, 1),
        backdrop-filter .6s cubic-bezier(0.32, 0.72, 0, 1),
        -webkit-backdrop-filter .6s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow .6s cubic-bezier(0.32, 0.72, 0, 1),
        border-color .6s cubic-bezier(0.32, 0.72, 0, 1),
        border-bottom-color .6s cubic-bezier(0.32, 0.72, 0, 1);
}

/* === Liquid-glass header — scrolled state (full-width, punchier frost, no bubble) === */
.ehf-header #masthead.scrolled {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: url(#container-glass) blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 20px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, .07);
}

/* Remove Elementor default section padding inside header */
.ehf-header #masthead .elementor-section,
.ehf-header #masthead .e-con {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Topbar default + smooth-collapse on any scroll (decoupled from .scrolled) */
.ehf-header #masthead .elementor-688 .elementor-element.elementor-element-dde777e {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
    overflow: hidden;
    max-height: 80px;
}
body.has-any-scroll.ehf-header #masthead .elementor-688 .elementor-element.elementor-element-dde777e {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* Menu link colour flip on scroll */
.ehf-header #masthead.scrolled .menu-item a.hfe-menu-item {
    color: #0f172a !important;
}

/* === Logo swap: white at top, colour on scroll (desktop AND mobile) === */
#masthead .logo-color { display: none; }
#masthead .logo-white { display: block; }
#masthead.scrolled .logo-color { display: block; }
#masthead.scrolled .logo-white { display: none; }

/* === Override WP admin-bar bump (admin bar is hidden on this site) === */
html { margin-top: 0 !important; }

/* === Header tightening: cap logo size === */
#masthead .logo-white img,
#masthead .logo-color img,
#masthead .clr-logo img {
    max-width: 100px !important;
    height: auto !important;
    width: auto !important;
}
@media (max-width: 768px) {
    #masthead .logo-white img,
    #masthead .logo-color img,
    #masthead .clr-logo img {
        max-width: 80px !important;
    }
}

/* Tighten main bar wrapper widget padding */
.ehf-header #masthead .elementor-688 .elementor-element.elementor-element-eae6747 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

/* Nav item spacing (constant across all states) */
#masthead .hfe-nav-menu .menu-item {
    margin-left: 12px !important;
    margin-right: 12px !important;
}
@media (max-width: 768px) {
    #masthead .hfe-nav-menu .menu-item {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }
}

/* Main-bar inner padding */
.ehf-header #masthead [data-id="587d4bc"] > .e-con-inner {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
@media (max-width: 768px) {
    .ehf-header #masthead [data-id="587d4bc"] > .e-con-inner {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}