/* Header layout */
.prt-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.prt-header.prt-header-hidden {
    transform: translateY(-100%);
}

.prt-mainbar {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Certification logos, centered in the same row as the brand */
.prt-header-certs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    pointer-events: none;
}

.prt-header-cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.prt-header-certs img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.prt-header-cert-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .prt-header-certs {
        display: none;
    }
}

.prt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}

.prt-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.prt-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prt-brand:hover .prt-logo-circle {
    border-color: #f43f5e;
    /* Rose theme highlight */
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.45);
    transform: scale(1.04);
}

.prt-logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
    background: #ffffff;
}

.prt-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.prt-brand-sub {
    color: #9ca3af;
    font-size: 0.7rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    line-height: 1.2;
}

.prt-main-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prt-nav-search {
    position: relative;
    width: 230px;
}

.prt-nav-search input {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0.45rem 2.2rem 0.45rem 0.9rem;
    font-size: 0.86rem;
}

.prt-nav-search button {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #cbd5e1;
    padding: 0;
    line-height: 0;
}

.prt-nav {
    display: block;
}

.prt-nav-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
}

.prt-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.prt-nav-item {
    position: relative;
}

.prt-nav-item>a {
    display: inline-flex;
    align-items: center;
    color: #d1d5db;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.prt-nav-item>a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.prt-nav-item.has-children>a::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-left: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.prt-mega,
.prt-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.prt-mega {
    width: min(860px, calc(100vw - 2.5rem));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.prt-mega-wide {
    width: min(1080px, calc(100vw - 2.5rem));
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prt-dropdown {
    min-width: 260px;
    padding: 0.6rem;
}

.prt-nav-item:hover>.prt-mega,
.prt-nav-item:hover>.prt-dropdown,
.prt-nav-item:focus-within>.prt-mega,
.prt-nav-item:focus-within>.prt-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.prt-mega h5 {
    margin: 0 0 0.45rem;
    color: #fda4af;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prt-mega a,
.prt-dropdown a {
    display: block;
    color: #d1d5db;
    font-size: 0.84rem;
    padding: 0.52rem 0.6rem;
    border-radius: 8px;
}

.prt-mega a:hover,
.prt-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.prt-nav-cta {
    margin-left: auto;
}

.prt-nav-cta .prt-button {
    background: #e11d48;
    color: #fff;
    padding: 0.52rem 0.95rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.prt-nav-backdrop {
    display: none;
}

.prt-mobile-search-wrapper {
    display: none !important;
}

.prt-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.prt-hamburger:hover {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.05);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.prt-hamburger span {
    position: absolute;
    left: 12px;
    height: 2px;
    background: #f3f4f6;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9px;
}

.prt-hamburger span:nth-child(1) {
    top: 15px;
    width: 20px;
}

.prt-hamburger span:nth-child(2) {
    top: 21px;
    width: 14px;
    left: 15px;
}

.prt-hamburger span:nth-child(3) {
    top: 27px;
    width: 20px;
}

.prt-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    width: 20px;
    left: 12px;
    background: #f43f5e;
}

.prt-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.prt-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 20px;
    left: 12px;
    background: #f43f5e;
}

@media (max-width: 1180px) {
    .prt-brand-sub {
        display: none;
    }

    .prt-logo-circle {
        width: 52px;
        height: 52px;
    }

    .prt-brand-title {
        font-size: 1.04rem;
    }

    .prt-nav-search {
        width: 180px;
    }

    .prt-nav-item>a {
        font-size: 0.82rem;
        padding: 0.5rem 0.55rem;
    }
}

@media (max-width: 992px) {
    .prt-nav-search {
        display: none;
    }

    .prt-hamburger {
        display: block;
    }

    .prt-nav {
        position: fixed;
        top: 76px;
        right: -100%;
        width: min(360px, 90vw);
        height: calc(100vh - 76px);
        background: #0b1220;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        transition: right 0.25s ease;
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .prt-nav.mobile-open {
        right: 0;
    }

    .prt-nav-inner {
        display: block;
        min-height: unset;
    }

    .prt-nav-list {
        display: block;
        padding: 1rem;
    }

    .prt-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .prt-nav-item>a {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.2rem;
        font-size: 0.94rem;
    }

    .prt-nav-item.has-children>a::after {
        margin-left: auto;
    }

    .prt-mega,
    .prt-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        margin-bottom: 0.9rem;
    }

    .prt-mega {
        grid-template-columns: 1fr;
    }

    .prt-nav-item.mobile-expand>.prt-mega,
    .prt-nav-item.mobile-expand>.prt-dropdown {
        display: grid;
    }

    .prt-nav-item.mobile-expand>.prt-dropdown {
        display: block;
    }

    .prt-nav-cta {
        margin-left: 0;
        border-bottom: 0;
        padding-top: 0.6rem;
    }

    .prt-nav-cta .prt-button {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .prt-nav-backdrop {
        display: block;
        position: fixed;
        inset: 76px 0 0 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .prt-logo-circle {
        width: 48px;
        height: 48px;
    }

    .prt-brand-title {
        font-size: 1rem;
    }

    .prt-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}