/* =====================================
   NEW FLOATING GLASS HEADER
===================================== */

.floating-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    width: calc(100% - 40px);
    max-width: 1320px;

    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;

    background: rgba(245,242,233,.78);

    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);

    box-shadow:
        0 12px 35px rgba(20,47,45,.10),
        inset 0 1px 0 rgba(255,255,255,.65);

    transition: background .25s ease, box-shadow .25s ease;
}

.floating-header__inner {
    min-height: 82px;
    padding: 10px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.floating-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.floating-header__brand .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
}

.floating-header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

.floating-header__brand-text strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.floating-header__brand-text small {
    color: var(--muted);
    font-size: 10px;
}

.floating-header__desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 32px);
}

.floating-header__desktop-nav a {
    position: relative;
    color: #65736f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.floating-header__desktop-nav a:hover,
.floating-header__desktop-nav a.active {
    color: var(--green);
}

.floating-header__desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 5px;
    background: var(--green-light);
    transition: width .2s ease;
}

.floating-header__desktop-nav a:hover::after,
.floating-header__desktop-nav a.active::after {
    width: 100%;
}

.floating-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 17px;
    border-radius: 13px;
    color: white;
    background: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.floating-header__contact:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.floating-header__contact span {
    font-size: 17px;
}

.floating-header__toggle,
.floating-header__mobile-menu {
    display: none;
}

/* MOBILE HEADER */

@media (max-width: 900px) {
    .floating-header {
        top: 10px;
        width: calc(100% - 24px);
        border-radius: 21px;
    }

    .floating-header__inner {
        min-height: 72px;
        padding: 8px 14px;
        gap: 12px;
    }

    .floating-header__desktop-nav,
    .floating-header__contact {
        display: none;
    }

    .floating-header__toggle {
        width: 43px;
        height: 43px;
        flex: 0 0 43px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        border: 1px solid rgba(23,100,94,.12);
        border-radius: 14px;
        background: rgba(255,255,255,.62);
        cursor: pointer;
    }

    .floating-header__toggle span {
        width: 19px;
        height: 2px;
        border-radius: 3px;
        background: var(--ink);
        transition: transform .25s ease;
    }

    .floating-header__toggle.is-open span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .floating-header__toggle.is-open span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .floating-header__mobile-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;

        display: flex;
        flex-direction: column;

        padding: 0 20px;
        max-height: 0;
        overflow: hidden;

        border: 1px solid transparent;
        border-radius: 19px;
        background: rgba(245,242,233,.94);

        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);

        opacity: 0;
        visibility: hidden;

        box-shadow: 0 12px 30px rgba(20,47,45,.10);

        transition:
            max-height .3s ease,
            padding .3s ease,
            opacity .25s ease,
            visibility .25s ease;
    }

    .floating-header__mobile-menu.is-open {
        max-height: 360px;
        padding-top: 10px;
        padding-bottom: 12px;
        border-color: rgba(255,255,255,.65);
        opacity: 1;
        visibility: visible;
    }

    .floating-header__mobile-menu a {
        padding: 11px 5px;
        border-bottom: 1px solid rgba(23,100,94,.10);
        color: var(--ink-soft);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }

    .floating-header__mobile-menu a:last-child {
        border-bottom: 0;
    }
}

/* SMALL MOBILE */

@media (max-width: 600px) {
    .floating-header {
        top: 9px;
        width: calc(100% - 20px);
        border-radius: 19px;
    }

    .floating-header__inner {
        min-height: 68px;
        padding: 7px 12px;
    }

    .floating-header__brand {
        gap: 10px;
    }

    .floating-header__brand .brand-mark {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 13px;
    }

    .floating-header__brand-text strong {
        font-size: 14px;
    }

    .floating-header__brand-text small {
        font-size: 9px;
    }

    .floating-header__toggle {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
    }
}
