/* ========================================
   Homepage — Header (frosted glass sticky)
   ======================================== */

.hp-header {
    position: sticky;
    top: 0;
    padding: 16px 12px;
    z-index: 100;
}

.hp-header__inner {
    background: var(--hp-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--hp-radius-header);
    max-width: var(--hp-max-width);
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    margin: 0 auto;
}

/* Actions (visual left in RTL) */
.hp-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hp-header__cta {
    padding: 8px 16px;
}

/* Hide CTA text on mobile — icon only */
.hp-header__cta-text {
    display: none;
}

.hp-header__login {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #1c1917;
    text-decoration: none;
}

.hp-header__login:hover {
    opacity: 0.7;
}

/* Center nav — hidden on mobile */
.hp-header__nav {
    display: none;
}

.hp-header__nav-link {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--hp-text);
    text-decoration: none;
    position: relative;
}

.hp-header__nav-link:hover {
    opacity: 0.7;
}

.hp-header__nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 50%;
    transform: translateX(50%);
    width: 5px;
    height: 5px;
    background: var(--hp-green-border);
    border-radius: 50%;
}

/* Brand (visual right in RTL — first in DOM) */
.hp-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-header__logo {
    display: flex;
    align-items: center;
}

.hp-header__hamburger {
    width: 42px;
    height: 32px;
    border: 1px solid #dcdcdc;
    border-radius: var(--hp-radius-hamburger);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-header__hamburger:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Mobile menu */
.hp-header__inner {
    position: relative;
}

.hp-header__mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(209, 205, 200, 0.24);
    border-radius: 24px;
    width: 270px;
    position: absolute;
    top: 115%;
    right: 0;
    z-index: 10;
}

.hp-header--menu-open .hp-header__mobile-menu {
    display: flex;
}

.hp-header__mobile-link {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    color: #171717;
    text-decoration: none;
    text-align: center;
}

.hp-header__mobile-link:hover {
    opacity: 0.7;
}

/* Tablet: show CTA text */
@media (min-width: 800px) {
    .hp-header__cta-text {
        display: inline;
    }

    .hp-header__cta {
        padding: 8px 24px;
    }
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 1300px) {
    .hp-header__inner {
        padding: 0 24px;
    }

    .hp-header__nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .hp-header__hamburger {
        display: none;
    }

    .hp-header__mobile-menu {
        display: none !important;
    }
}
