/* ─── HHFPP Header Navigation ─────────────────────────────────────────────── */
/* Pure CSS — no Tailwind dependency. Safe to use on any WordPress page.       */

:root {
    --hhfpp-h-primary:      #2b6cee;
    --hhfpp-h-primary-dark: #1d51c7;
    --hhfpp-h-bg:           rgba(10, 18, 38, 0.88);
    --hhfpp-h-bg-solid:     #0b1326;
    --hhfpp-h-border:       rgba(255, 255, 255, 0.06);
    --hhfpp-h-text:         #94a3b8;
    --hhfpp-h-text-hover:   #ffffff;
    --hhfpp-h-height:       64px;
    --hhfpp-h-radius:       8px;
    --hhfpp-h-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --hhfpp-h-max-width:    1280px;
    --hhfpp-h-z:            9999;
}

.max-w-7xl {
    max-width: var(--hhfpp-h-max-width) !important;
    margin: 0 auto;
}

/* ── Wrapper ── */
.hhfpp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--hhfpp-h-z);
    background: var(--hhfpp-h-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hhfpp-h-border);
    font-family: var(--hhfpp-h-font);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.hhfpp-header *,
.hhfpp-header *::before,
.hhfpp-header *::after {
    box-sizing: border-box;
}

.hhfpp-header__inner {
    max-width: var(--hhfpp-h-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--hhfpp-h-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ── Logo ── */
.hhfpp-header__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.hhfpp-header__logo:hover {
    text-decoration: none;
}

.hhfpp-header__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--hhfpp-h-radius);
    background: var(--hhfpp-h-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hhfpp-header__logo-icon .material-symbols-outlined {
    font-size: 18px !important;
    color: #fff;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.hhfpp-header__logo img {
    height: 32px;
    width: auto;
    display: block;
}

.hhfpp-header__logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

/* ── Navigation menu ── */
.hhfpp-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

/* WordPress wp_nav_menu output */
.hhfpp-header__nav .menu,
.hhfpp-header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: nowrap;
}

.hhfpp-header__nav ul li {
    margin: 0;
    padding: 0;
    position: relative;
}

.hhfpp-header__nav ul li a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hhfpp-h-text);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.hhfpp-header__nav ul li a:hover,
.hhfpp-header__nav ul li.current-menu-item > a,
.hhfpp-header__nav ul li.current-page-ancestor > a,
.hhfpp-header__nav ul li.current_page_item > a {
    color: var(--hhfpp-h-text-hover);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

/* Hide sub-menus */
.hhfpp-header__nav ul ul {
    display: none;
}

/* ── CTA area ── */
.hhfpp-header__cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.hhfpp-header__signin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.45rem 1rem;
    border-radius: var(--hhfpp-h-radius);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
    cursor: pointer;
}

.hhfpp-header__signin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    text-decoration: none;
}

.hhfpp-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: var(--hhfpp-h-primary);
    padding: 0.45rem 1rem;
    border-radius: var(--hhfpp-h-radius);
    transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
    border: none;
    cursor: pointer;
}

.hhfpp-header__btn:hover {
    background: var(--hhfpp-h-primary-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hhfpp-header__btn .material-symbols-outlined {
    font-size: 16px !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

/* ── Hamburger toggle ── */
.hhfpp-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hhfpp-header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.15s ease;
}

.hhfpp-header__toggle:hover span {
    background: #ffffff;
}

.hhfpp-header.is-open .hhfpp-header__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hhfpp-header.is-open .hhfpp-header__toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hhfpp-header.is-open .hhfpp-header__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Body offset so page content isn't hidden under the fixed header ── */
body.hhfpp-has-header {
    padding-top: var(--hhfpp-h-height) !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hhfpp-header__toggle {
        display: flex;
    }

    .hhfpp-header__nav {
        display: none;
        position: absolute;
        top: var(--hhfpp-h-height);
        left: 0;
        right: 0;
        background: var(--hhfpp-h-bg-solid);
        border-bottom: 1px solid var(--hhfpp-h-border);
        padding: 0.75rem 0 1rem;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hhfpp-header.is-open .hhfpp-header__nav {
        display: flex;
    }

    .hhfpp-header__nav .menu,
    .hhfpp-header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0 1rem;
    }

    .hhfpp-header__nav ul li a {
        padding: 0.75rem 0.75rem;
        border-radius: var(--hhfpp-h-radius);
    }

    .hhfpp-header__signin {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.875rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        padding: 0.45rem 1rem;
        border-radius: var(--hhfpp-h-radius);
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        white-space: nowrap;
        line-height: 1.4;
        cursor: pointer;
    }

    .hhfpp-header__signin:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.8);
        color: #ffffff;
        text-decoration: none;
    }

    .hhfpp-header__cta {
        gap: 0.4rem;
        margin-left: auto;
    }

    .hhfpp-header__signin {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hhfpp-header__btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Hide arrow icon inside Get Started to save space on mobile */
    .hhfpp-header__btn--signup .material-symbols-outlined {
        display: none;
    }

    .hhfpp-header__btn .material-symbols-outlined {
        font-size: 14px !important;
    }

    .hhfpp-header__inner {
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .hhfpp-header__inner {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .hhfpp-header__inner {
        padding: 0 2.5rem;
    }
}

/* ── Light mode theme ──────────────────────────────────────────────────── */
.hhfpp-header--light {
    --hhfpp-h-bg:          rgba(255, 255, 255, 0.92);
    --hhfpp-h-bg-solid:    #ffffff;
    --hhfpp-h-border:      rgba(0, 0, 0, 0.07);
    --hhfpp-h-text:        #475569;
    --hhfpp-h-text-hover:  #0f172a;
}

.hhfpp-header--light .hhfpp-header__logo-text {
    color: #0f172a;
}

.hhfpp-header--light .hhfpp-header__toggle span {
    background: #64748b;
}

.hhfpp-header--light .hhfpp-header__signin {
    color: var(--hhfpp-h-primary);
    background: transparent;
    border: 1.5px solid var(--hhfpp-h-primary);
}

.hhfpp-header--light .hhfpp-header__signin:hover {
    background: rgba(43, 108, 238, 0.08);
    border-color: var(--hhfpp-h-primary-dark);
    color: var(--hhfpp-h-primary-dark);
}

/* ── Dark mode theme (explicit class, mirrors :root defaults) ──────────── */
.hhfpp-header--dark {
    --hhfpp-h-bg:          rgba(10, 18, 38, 0.88);
    --hhfpp-h-bg-solid:    #0b1326;
    --hhfpp-h-border:      rgba(255, 255, 255, 0.06);
    --hhfpp-h-text:        #94a3b8;
    --hhfpp-h-text-hover:  #ffffff;
}

/* ── Mobile Logo Size (< 430px) ────────────────────────────────────────── */
@media (max-width: 429px) {
    .hhfpp-header__logo img {
        height: 22px !important;
        width: auto;
    }
}
