/* Creative Luxury Header CSS Suffix: a17ac85e */

.ph-header-wrapper.a17ac85e-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Offset top for WP admin bar */
body.admin-bar .ph-header-wrapper.a17ac85e-wrapper {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .ph-header-wrapper.a17ac85e-wrapper {
        top: 46px;
    }
}

.ph-header-container {
    width: 100%;
    padding: 0 4%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Scroll Transformation style adjustments */
.ph-header-container.ph-scrolled {
    background: rgba(10, 10, 11, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Logo Anim styles */
.ph-logo-section.ph-logo-animate {
    opacity: 0;
    transform: translateY(-10px);
    animation: phFadeDown 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes phFadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ph-logo-link {
    display: flex;
    align-items: center;
}

.ph-logo-img {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-header-container.ph-scrolled .ph-logo-img {
    transform: scale(0.9);
}

/* Navigation layout styles */
.ph-desktop-nav-wrap {
    display: flex;
    align-items: center;
}

.ph-main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-menu-item {
    position: relative;
    padding: 25px 0;
}

/* Stable wrapper holding menu item + submenu dropdown to bridge mouse gap */
.ph-menu-item-interactive-wrap {
    position: relative;
    display: inline-block;
}

.ph-menu-link {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-menu-link-txt {
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-arrow-indicator {
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Rotation and Color on Hover State class (triggered by JS for reliability) */
.ph-menu-item.ph-state-hover .ph-arrow-indicator {
    transform: rotate(180deg);
    color: var(--ph-accent, #C94B3C);
}

.ph-menu-item.ph-state-hover .ph-menu-link {
    transform: translateY(-2px);
}

/* NEW STRIPE HOVER EFFECT */
.ph-hover-stripe-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
    overflow: hidden;
}

.ph-stripe-primary,
.ph-stripe-secondary {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--ph-accent, #C94B3C);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-stripe-secondary {
    bottom: 2px;
    height: 1px;
    opacity: 0.5;
    transition-delay: 0.08s;
}

.ph-stripe-block {
    position: absolute;
    left: -10px;
    bottom: 0;
    width: 8px;
    height: 4px;
    background: #FFFFFF;
    opacity: 0;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

/* Active State Hover Stripe Trigger */
.ph-menu-item.ph-state-hover .ph-stripe-primary {
    width: 100%;
}
.ph-menu-item.ph-state-hover .ph-stripe-secondary {
    width: 80%;
}
.ph-menu-item.ph-state-hover .ph-stripe-block {
    left: 100%;
    opacity: 1;
}

/* --- LARGE REDESIGNED FLOATING SUBMENU PANEL --- */
.ph-floating-hub {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.96);
    width: 90vw;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 35px;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1000;
}

/* Add bridge pseudo-element to prevent hover exit gaps */
.ph-floating-hub::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Show Submenu reliably via JS toggle class */
.ph-menu-item.ph-state-hover .ph-floating-hub {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Grid Layout Customizations */
.ph-submenu-grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ph-hub-grid .ph-submenu-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ph-hub-vertical .ph-submenu-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.ph-hub-split .ph-submenu-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ph-hub-minimal .ph-submenu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* STAGGERED REVEAL ANIMATIONS */
.ph-menu-item.ph-state-hover .ph-sub-card {
    opacity: 0;
    transform: translateY(15px);
    animation: phStaggerUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(1) { animation-delay: 0.05s; }
.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(2) { animation-delay: 0.1s; }
.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(3) { animation-delay: 0.15s; }
.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(4) { animation-delay: 0.2s; }
.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(5) { animation-delay: 0.25s; }
.ph-menu-item.ph-state-hover .ph-sub-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes phStaggerUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Navigation Block Card Design */
.ph-sub-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.ph-sub-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.ph-sub-number {
    font-family: monospace;
    font-size: 13px;
    color: var(--ph-accent, #C94B3C);
    letter-spacing: 0.15em;
    font-weight: 600;
}

.ph-sub-line-draw {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.ph-sub-line-draw::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--ph-accent, #C94B3C);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-sub-card:hover .ph-sub-line-draw::after {
    width: 100%;
}

.ph-sub-title {
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ph-sub-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
}

.ph-sub-arrow-slide {
    font-size: 14px;
    color: var(--ph-accent, #C94B3C);
    align-self: flex-start;
    opacity: 0.4;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card Hover Animations */
.ph-sub-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ph-accent, #C94B3C);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.ph-sub-card:hover .ph-sub-title {
    color: var(--ph-accent, #C94B3C);
}

.ph-sub-card:hover .ph-sub-desc {
    color: rgba(255, 255, 255, 0.8);
}

.ph-sub-card:hover .ph-sub-arrow-slide {
    opacity: 1;
    transform: translateX(6px);
}

/* Decorative background gradient movements */
.ph-bg-decor-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    opacity: 0.02;
    z-index: 1;
}

.ph-bg-decor-grid span {
    width: 1px;
    height: 100%;
    background: #FFFFFF;
}

/* --- CTA BUTTON STYLES --- */
.ph-cta-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ph-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: var(--ph-accent, #C94B3C);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ph-cta-icon-wrap {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.ph-cta-btn:hover .ph-cta-icon-wrap {
    transform: translateX(4px);
}

/* --- MOBILE TOGGLE BURGER --- */
.ph-burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.ph-burger-line {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Burger transformed state into X */
.ph-header-wrapper.ph-mobile-active .ph-line-1 {
    transform: translateY(8px) rotate(45deg);
}

.ph-header-wrapper.ph-mobile-active .ph-line-2 {
    opacity: 0;
    transform: scale(0);
}

.ph-header-wrapper.ph-mobile-active .ph-line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- MOBILE NAVIGATION OVERLAY --- */
.ph-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-header-wrapper.ph-mobile-active .ph-mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.ph-mobile-nav-inner {
    width: 85%;
    max-width: 500px;
    margin-top: 50px;
}

.ph-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ph-mobile-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.ph-mob-num {
    font-family: monospace;
    font-size: 12px;
    color: var(--ph-accent, #C94B3C);
}

.ph-mobile-link {
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-grow: 1;
}

.ph-mobile-sub-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.4s ease;
}

.ph-mobile-item.ph-sub-open .ph-mobile-sub-toggle {
    transform: rotate(180deg);
}

.ph-mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ph-mobile-sublist {
    list-style: none;
    padding: 15px 0 0 35px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ph-mobile-subitem a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: color 0.3s ease;
}

.ph-mobile-subitem a:hover {
    color: var(--ph-accent, #C94B3C);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .ph-desktop-nav-wrap {
        display: none;
    }
    .ph-burger-toggle {
        display: flex;
    }
    .ph-header-container {
        padding: 0 6%;
    }
}
