.soh-sticky-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background 0.3s ease;
    --soh-grad-color: #100C0A;
    --soh-grad-opacity-initial: 0.4;
    --soh-grad-opacity-scrolled: 0.9;
}

body.admin-bar .soh-sticky-header-wrapper {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .soh-sticky-header-wrapper {
        top: 46px;
    }
}

/* Gradient backdrop extending below header */
.soh-gradient-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to bottom, var(--soh-grad-color) 0%, transparent 100%);
    opacity: var(--soh-grad-opacity-initial);
    transition: opacity 0.3s ease;
}

.soh-sticky-header-wrapper.is-scrolled .soh-gradient-backdrop {
    opacity: var(--soh-grad-opacity-scrolled);
}

/* Header main flex container */
.soh-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}

.soh-header-left, .soh-header-right {
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.soh-header-right {
    gap: 20px;
}

/* Logo Image styling */
.soh-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.soh-logo-img {
    height: auto;
    max-width: 100%;
    display: block;
    transition: width 0.3s ease;
}

/* CTA Button Styling */
.soh-cta-button {
    text-decoration: none;
    font-weight: 600;
    border: 1px solid currentColor;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

/* Hamburger button reset */
.soh-hamburger {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
    z-index: 10001;
    display: block;
    overflow: visible !important; /* Ensure X rotating lines are never clipped */
}

.soh-hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: currentColor;
}

/* Position lines dynamically using percentage ratios for scalability */
.soh-hamburger span:nth-child(1) {
    top: 0%;
}

.soh-hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.soh-hamburger span:nth-child(3) {
    bottom: 0%;
}

/* Active X state - perfect center crossing */
.soh-hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.soh-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
    left: 50%;
}

.soh-hamburger.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Cinematic Parallax Squeeze/Expand Hover animations for normal hamburger state */
.soh-hamburger:not(.is-active):hover span:nth-child(1) {
    transform: translateX(-4px);
}

.soh-hamburger:not(.is-active):hover span:nth-child(2) {
    transform: translateY(-50%) translateX(4px);
}

.soh-hamburger:not(.is-active):hover span:nth-child(3) {
    transform: translateX(-4px);
}

/* Luxurious Clockwise Rotational Spin Hover animation for active close X state */
.soh-hamburger.is-active:hover span:nth-child(1) {
    transform: translateY(-50%) rotate(225deg);
}

.soh-hamburger.is-active:hover span:nth-child(3) {
    transform: translateY(50%) rotate(-135deg);
}

/* Full Screen / Full Height Overlay navigation panel */
.soh-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
}

body.admin-bar .soh-overlay-wrapper {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .soh-overlay-wrapper {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.soh-overlay-wrapper.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Page Veiling Layer */
.soh-overlay-veil {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.soh-overlay-wrapper.is-open .soh-overlay-veil {
    opacity: 1;
}

/* Drawer / Panel slide out from right */
.soh-overlay-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.soh-overlay-wrapper.is-open .soh-overlay-panel {
    transform: translateX(0);
}

/* Drawer inner scroll styling */
.soh-overlay-inner {
    flex-grow: 1;
    overflow-y: auto;
    padding: 120px 40px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

/* Center menu vertically and style lists */
.soh-overlay-nav {
    width: 100%;
}

.soh-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.soh-nav-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soh-nav-item-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.soh-nav-item-link {
    text-decoration: none;
    text-transform: uppercase;
    font-family: inherit;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.soh-nav-item-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.soh-nav-item-toggle.is-active {
    transform: rotate(180deg);
}

/* Submenu layout styling */
.soh-submenu {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.soh-submenu li {
    margin-bottom: 10px;
}

.soh-submenu-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

/* Secondary brandmark and social links */
.soh-overlay-secondary-logo {
    margin: 40px 0;
}

.soh-overlay-secondary-logo img {
    max-width: 120px;
    height: auto;
}

.soh-overlay-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
}

.soh-overlay-socials a {
    color: inherit;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.soh-overlay-socials a:hover {
    opacity: 1;
    color: #A83232;
}

.soh-overlay-socials svg {
    width: 100%;
    height: 100%;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .soh-overlay-panel {
        width: 100% !important;
    }
}
