/*
 * Shared site header for standalone layouts (e.g. layouts/product) that do NOT
 * load the template style.css. Faithfully reproduces the home page header
 * (pill logo/nav, orange hovers, dark dropdown, rr-btn text-swap animation).
 *
 * Everything is scoped under .header-area so it cannot leak into the
 * surrounding page (pd-/pi- product design). Dark theme, RTL, sticky.
 */
.header-area {
    --hz-fg: #fff;
    --hz-border: rgba(255, 255, 255, 0.16);
    --hz-theme: #FF6A3A;
    --hz-muted: #9a9a9a;
    position: sticky;
    top: 0;
    inset-inline: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-area .container.large {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 32px;
}

.header-area .header-area__inner {
    display: flex;
    align-items: center;
    position: relative;
    height: 88px;
}

.header-area .header-area__inner > *:nth-child(2) {
    margin-inline-end: auto;
}

/* ── Logo pill ─────────────────────────────────────────────────────── */
.header-area .header__logo {
    display: flex;
    align-items: center;
    border: 1px solid var(--hz-border);
    padding: 12px 26px;
    border-radius: 60px;
}

.header-area .header__logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

/* ── Nav pill ──────────────────────────────────────────────────────── */
.header-area .header__nav {
    border: 1px solid var(--hz-border);
    border-radius: 60px;
    padding: 0 12px;
    margin-inline-start: 22px;
}

.header-area .main-menu > ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-area .main-menu li {
    position: relative;
    list-style: none;
}

.header-area .main-menu > ul > li > a {
    display: flex;
    align-items: center;
    color: var(--hz-fg);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    padding: 19px 16px;
    white-space: nowrap;
    transition: color .3s ease;
}

.header-area .main-menu > ul > li > a:hover {
    color: var(--hz-theme);
}

.header-area .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-start: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .85;
}

/* ── Dropdown ──────────────────────────────────────────────────────── */
.header-area .dp-menu {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    width: 250px;
    background: #232529;
    padding: 14px 0;
    border-radius: 16px;
    list-style: none;
    margin: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: all .35s ease;
    z-index: 20;
}

.header-area .dp-menu.col-2 {
    width: 480px;
    columns: 2;
}

.header-area .menu-item-has-children:hover > .dp-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-area .dp-menu li {
    padding: 0 24px;
}

.header-area .dp-menu li a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--hz-muted);
    padding: 9px 0;
    text-decoration: none;
    transition: color .25s ease, letter-spacing .25s ease;
}

.header-area .dp-menu li a:hover {
    color: #fff;
    letter-spacing: .4px;
}

/* ── CTA button — rr-btn hover-bg-theme text-swap ──────────────────── */
.header-area .header__button {
    margin-inline-start: 22px;
}

.header-area .rr-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 100px;
    padding: 18px 34px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    text-decoration: none;
}

.header-area .rr-btn::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: var(--hz-theme);
    transition: all .5s ease;
    z-index: -1;
}

.header-area .rr-btn:hover::before {
    height: 100%;
}

.header-area .rr-btn .btn-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.header-area .rr-btn .btn-wrap .text-one {
    display: block;
    color: #111;
    transition: all .5s ease;
}

.header-area .rr-btn .btn-wrap .text-two {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    display: block;
    color: #fff;
    white-space: nowrap;
    transition: all .5s ease;
}

.header-area .rr-btn:hover .btn-wrap .text-one {
    transform: translateY(-150%);
}

.header-area .rr-btn:hover .btn-wrap .text-two {
    top: 50%;
    transform: translateY(-50%);
}

/* ── Mobile toggle ─────────────────────────────────────────────────── */
.header-area .header__navicon {
    display: none;
}

.header-area .header__navicon .side-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--hz-fg);
    font-size: 22px;
    line-height: 1;
    padding: 6px;
}

/* ── Responsive: drawer under ~1200px ──────────────────────────────── */
@media (max-width: 1199px) {
    .header-area .header-area__inner {
        height: 70px;
    }

    .header-area .header__logo {
        border: 0;
        padding: 0;
    }

    .header-area .header__nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        margin: 0;
        padding: 12px 24px 18px;
        border: 0;
        border-radius: 0;
        background: #161616;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        display: none;
    }

    .header-area.nav-open .header__nav {
        display: block;
    }

    .header-area .main-menu > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .header-area .main-menu > ul > li > a {
        padding: 13px 6px;
    }

    .header-area .menu-item-has-children > a::after {
        margin-inline-start: auto;
        transition: transform .25s ease;
    }

    .header-area .menu-item-has-children.open > a::after {
        transform: rotate(-135deg) translateY(2px);
    }

    .header-area .dp-menu {
        position: static;
        width: auto;
        columns: 1;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        padding: 6px 0;
        margin: 2px 0 8px;
        display: none;
    }

    .header-area .menu-item-has-children.open > .dp-menu {
        display: block;
    }

    .header-area .dp-menu li {
        padding: 0 16px;
    }

    .header-area .header__button {
        display: none;
    }

    .header-area .header__navicon {
        display: block;
        margin-inline-start: auto;
    }
}
