/* Stylesheet for Premium Hero Header Background (e7df6cff) */

.phh-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px; /* Strong responsive fallback height so it never collapses */
    overflow: visible; /* Support dropdown menus extending beyond header constraints */
    background-color: #060913;
    display: flex;
    flex-direction: column;
}

/* Background canvas and maps */
.phh-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.phh-network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* World Map overlay with high performance low opacity */
.phh-world-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1008 651"><path fill="%23ffffff" d="M150 150h5v5h-5zm10 10h5v5h-5zm20-10h5v5h-5zm-5 20h5v5h-5zm40 10h5v5h-5zm20-20h5v5h-5zm100 100h5v5h-5zm10-15h5v5h-5zm50 20h5v5h-5zm20 10h5v5h-5zm200-80h5v5h-5zm20 30h5v5h-5zm10-10h5v5h-5zm150 150h5v5h-5zm10-20h5v5h-5zm20 10h5v5h-5zm-100-200h5v5h-5zm-20 10h5v5h-5zm20 30h5v5h-5z" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Soft roaming clouds styling */
.phh-clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.phh-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
    animation: drift linear infinite;
    mix-blend-mode: screen;
}

@keyframes drift {
    0% {
        transform: translate(-100%, 0) scale(1);
    }
    50% {
        transform: translate(50vw, 15%) scale(1.15);
    }
    100% {
        transform: translate(120vw, 0) scale(1);
    }
}

/* Beautiful Elegant Seamless Header Layout (Unified Single Background style) */
.phh-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 24px 40px;
    background: transparent; /* Seamless blend, no background gap */
    transition: background-color 0.3s ease;
}

.phh-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phh-logo-col {
    display: flex;
    align-items: center;
    z-index: 105;
}

.phh-logo-link {
    display: inline-block;
}

.phh-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.phh-logo-link:hover .phh-logo-img {
    transform: scale(1.02);
}

.phh-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* WordPress Navigation */
.phh-menu-col {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    z-index: 12;
}

.phh-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.phh-menu-list li {
    position: relative;
    margin: 0;
    padding: 0;
}

.phh-menu-list a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 12px 0;
    display: inline-block;
}

.phh-menu-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #0072ff, #00d2ff);
    transition: width 0.3s ease;
}

.phh-menu-list > li:hover > a::after {
    width: 100%;
}

/* Elegant CSS dropdown sub menus */
.phh-menu-list ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 999;
}

/* Nested submenus */
.phh-menu-list ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px) translateY(0);
}

.phh-menu-list li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.phh-menu-list ul.sub-menu li:hover > ul.sub-menu {
    transform: translateX(0) translateY(0);
}

.phh-menu-list ul.sub-menu li {
    width: 100%;
    padding: 0;
}

.phh-menu-list ul.sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 6px;
}

/* Premium Dynamic Action Button */
.phh-cta-col {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 105;
}

.phh-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--cta-grad-l, #0072ff) 0%, var(--cta-grad-r, #00d2ff) 100%);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phh-cta-btn-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.phh-cta-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.phh-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.35), 0 0 12px rgba(0, 210, 255, 0.2);
}

.phh-cta-btn:hover .phh-cta-btn-glow {
    transform: scale(1);
}

/* Mobile Toggle Hamburger Button */
.phh-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.phh-toggle-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    display: block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

.phh-mobile-toggle.phh-active .line-1 {
    transform: rotate(45deg) translate(2px, -2px);
}

.phh-mobile-toggle.phh-active .line-2 {
    width: 0%;
    opacity: 0;
}

.phh-mobile-toggle.phh-active .line-3 {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* Sliding Mobile Menu Overlay fitted perfectly with 100% bounds */
.phh-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 24px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.phh-mobile-menu-overlay.phh-active {
    left: 0;
}

.phh-mobile-menu-content {
    width: 100%;
    max-width: 450px;
    margin: auto 0;
}

.phh-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phh-mobile-menu-list li {
    position: relative;
    width: 100%;
}

.phh-mobile-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Sub-menus - Hidden by default, expands only after clicking parent menu item */
.phh-mobile-menu-list ul.sub-menu {
    display: none;
    list-style: none;
    padding: 4px 0 4px 20px;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.phh-mobile-menu-list ul.sub-menu a {
    font-size: 15px;
    font-weight: 500;
    border: none;
    padding: 8px 0;
    color: #a0aec0;
}

/* Add an indicator icon on items with submenus */
.phh-mobile-menu-list .menu-item-has-children > a::after {
    content: '+';
    font-family: monospace;
    font-size: 18px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.phh-mobile-menu-list .menu-item-has-children.sub-menu-open > a::after {
    content: '-';
    transform: rotate(180deg);
}

/* Aesthetic Content Area */
.phh-hero-inner-spacer {
    flex-grow: 1;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

/* Mobile & Tablet support styling (Responsive strictly under 1025px viewport width) */
@media (max-width: 1024px) {
    .phh-hero-wrapper {
        min-height: 400px; /* Fallback on smaller devices */
    }
    .phh-header {
        padding: 16px 24px;
    }
    .phh-menu-col {
        display: none !important; /* Hide standard menu row */
    }
    .phh-cta-btn {
        display: none !important; /* STRICTLY REMOVE Opportunity Board CTA on mobile and tablet */
    }
    .phh-mobile-toggle {
        display: flex !important; /* Show hamburger toggle */
    }
    /* Stop any external document body scrolling when mobile menu fits 100% screen */
    body.phh-menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .phh-header {
        padding: 16px;
    }
    .phh-logo-img {
        max-height: 38px; /* Fit beautifully on small mobile screens */
    }
    .phh-logo-text {
        font-size: 18px;
    }
}
