/* Shared V6 tokens, keyframes, header, mobile navigation and footer.
 * Order-preserving selector partition of the original Support stylesheet.
 * Support-only content lives in wwp-support-page.css. */
/**
 * WWP Support Page - V6 Prime Time Design
 * 1:1 port from support-mockup-v6.html
 *
 * @package Kadence_Child_WWP
 * @version 2.6.0
 */

/* ============================================
   WINGED WHEEL PODCAST - SUPPORT PAGE V6
   Design Direction: "Prime Time" + Brand Fonts
   V4's energy with League Gothic + Barlow Condensed
   ============================================ */

:root,
.wwp-site-header,
.wwp-bottom-nav,
.wwp-menu-overlay,
.wwp-footer {
    /* Deep Arena */
    --arena-void: #050507;
    --arena-deep: #0A0A0E;
    --arena-dark: #101014;
    --arena-surface: #18181E;
    --arena-elevated: #202028;
    --arena-line: #2A2A35;
    --arena-muted: #55556A;

    /* WWP Red - Full Range (may switch to #C8102E in future for cooler tone) */
    --wwp-red: #C02026;
    --wwp-red-bright: #D62A30;
    --wwp-red-hot: #FF1744;
    --wwp-red-deep: #8B1A1A;
    --wwp-red-glow: rgba(192, 32, 38, 0.5);
    --wwp-red-subtle: rgba(192, 32, 38, 0.15);

    /* Ice/Light */
    --ice-white: #FFFFFF;
    --ice-cool: #E8EBF0;
    --ice-dim: #A0A5B5;
    --ice-muted: #6A6F80;

    /* Typography - Site Fonts (fallbacks match mockup) */
    --font-display: 'League Gothic', Impact, sans-serif;
    --font-body: 'Barlow Condensed', sans-serif;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* The shared controls must not inherit a page or browser's button geometry. */
.wwp-site-header,
.wwp-bottom-nav,
.wwp-menu-overlay {
    font-family: var(--font-body);
    line-height: 1.5;
}

.wwp-site-header *,
.wwp-bottom-nav,
.wwp-bottom-nav *,
.wwp-menu-overlay,
.wwp-menu-overlay * {
    box-sizing: border-box;
}

.wwp-site-header .header-cta, .wwp-site-header .wwp-header-cta-measure { white-space: nowrap; }

.wwp-site-header :is(a, button, summary):focus-visible,
.wwp-footer :is(a, button, input):focus-visible {
    outline: 2px solid var(--wwp-red-bright);
    outline-offset: 3px;
}

/* ============================================
   V6 DESKTOP HEADER - "THE BROADCAST BAR"
   ============================================ */

.wwp-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: var(--arena-dark);
    border-bottom: 1px solid var(--arena-line);
    transition: box-shadow 0.4s var(--ease-smooth);
}

.wwp-site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Red accent line at top */
.wwp-site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--wwp-red) 20%,
        var(--wwp-red) 80%,
        transparent 100%
    );
}

.wwp-site-header .header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* Logo */
.wwp-site-header .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.wwp-site-header .logo-mark {
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.wwp-site-header .logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wwp-site-header .logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    color: var(--ice-white);
}

.wwp-site-header .logo-text span {
    display: block;
    color: var(--wwp-red);
}

/* Primary Navigation */
.wwp-site-header .primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wwp-site-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-body);
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ice-dim);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
}

.wwp-site-header .nav-link:hover {
    color: var(--ice-white);
}

/* Hover underline animation */
.wwp-site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--wwp-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out-expo);
}

.wwp-site-header .nav-link:hover::after {
    transform: scaleX(1);
}

/* Current page state */
.wwp-site-header .nav-link.current,
.wwp-site-header .header-more.has-current .more-toggle,
.wwp-site-header .header-more-fallback.has-current > summary {
    color: var(--ice-white);
}

.wwp-site-header .nav-link.current::before,
.wwp-site-header .header-more.has-current .more-toggle::before,
.wwp-site-header .header-more-fallback.has-current > summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--wwp-red);
}

.wwp-site-header .nav-link.current::after,
.wwp-site-header .header-more.has-current .more-toggle::after,
.wwp-site-header .header-more-fallback.has-current > summary::after {
    transform: scaleX(1);
    opacity: 0.3;
}

/* Secondary destinations share the primary navigation's type and header surface. */
.wwp-site-header .header-more,
.wwp-site-header .header-more-fallback {
    position: relative;
}

.wwp-site-header .more-toggle svg,
.wwp-site-header .header-more-fallback > summary svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 180ms ease;
}

.wwp-site-header .header-more.is-open .more-toggle,
.wwp-site-header .header-more-fallback[open] > summary {
    color: var(--ice-white);
}

.wwp-site-header .header-more.is-open .more-toggle::after,
.wwp-site-header .header-more-fallback[open] > summary::after {
    transform: scaleX(1);
    opacity: 1;
}

.wwp-site-header .header-more.is-open .more-toggle svg,
.wwp-site-header .header-more-fallback[open] > summary svg {
    transform: rotate(180deg);
}

.wwp-site-header .header-more-fallback > summary {
    list-style: none;
}

.wwp-site-header .header-more-fallback > summary::-webkit-details-marker {
    display: none;
}

.wwp-site-header .header-more-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    z-index: 2;
    width: 224px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #34343e;
    border-top: 3px solid var(--wwp-red);
    background: var(--arena-dark);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: scale(.94, .84);
    transform-origin: calc(100% - 30px) -15px;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 180ms;
}

.wwp-site-header .header-more.is-open .header-more-panel,
.wwp-site-header .header-more-fallback[open] .header-more-panel {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.wwp-site-header .more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding: 10px 12px;
    font: 600 13px/1.5 var(--font-body);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ice-dim);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 180ms ease, background-color 180ms ease;
}

.wwp-site-header .more-link + .more-link {
    border-top: 1px solid rgba(255, 255, 255, .035);
}

.wwp-site-header .more-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ice-muted);
}

.wwp-site-header .more-link:hover,
.wwp-site-header .more-link:focus-visible,
.wwp-site-header .more-link.current {
    color: var(--ice-white);
    background: rgba(255, 255, 255, .025);
}

.wwp-site-header .more-link:hover svg,
.wwp-site-header .more-link.current svg {
    color: var(--wwp-red-bright);
}

/* Header Actions (Right side) */
.wwp-site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* The original CTA sizes a single slot; only its internal controls change. */
.wwp-header-cart-slot { position: relative; flex: 0 0 auto; }
.wwp-site-header .wwp-header-cta-measure { visibility: hidden; pointer-events: none; }
.wwp-header-cta-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.wwp-site-header .wwp-header-cta-controls .header-cta { flex: 0 0 auto; }
.wwp-site-header .wwp-header-cart-slot[data-cart-populated="true"] .header-cta { gap: 6px; padding-inline: 15px; }
.wwp-site-header .wwp-header-cta-controls .cta-live-dot { flex: 0 0 8px; }
.wwp-site-header .wwp-header-cta-measure .cta-live-dot { animation: none; }
.wwp-nav-cart[hidden], .wwp-nav-cart-count[hidden] { display: none !important; }
.wwp-nav-cart {
    display: flex; position: relative; flex: 0 0 44px; width: 44px; height: 44px;
    align-items: center; justify-content: center; color: var(--ice-white); text-decoration: none;
}
.wwp-nav-cart:hover { color: var(--ice-white); }
.wwp-nav-cart:focus-visible { outline: 2px solid var(--wwp-red-bright); outline-offset: -2px; }
.wwp-nav-cart > svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.wwp-nav-cart-count {
    position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: var(--wwp-red); color: #fff;
    font: 700 10px/18px var(--font-body); font-variant-numeric: tabular-nums;
    text-align: center; white-space: nowrap;
}
.wwp-nav-cart > .wwp-nav-cart-count { top: 0; right: 0; }
.wwp-bottom-nav .wwp-shop-cart-indicator .nav-icon { position: relative; }

/* Social icons */
.wwp-site-header .header-social {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 0;
    padding-right: 16px;
    border-right: 1px solid var(--arena-line);
}

.wwp-site-header .social-icon {
    width: 32px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ice-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth),
                transform 0.2s var(--ease-smooth);
}

.wwp-site-header .social-icon:hover {
    color: var(--ice-white);
    transform: translateY(-2px);
}

.wwp-site-header .social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* CTA Button */
.wwp-site-header .header-cta,
.wwp-site-header .wwp-header-cta-measure {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--wwp-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ice-white);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth);
}

.wwp-site-header .header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s var(--ease-smooth);
}

.wwp-site-header .header-cta:hover {
    background: var(--wwp-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 32, 38, 0.4);
}

.wwp-site-header .header-cta:hover::before {
    left: 100%;
}

.wwp-site-header .header-cta svg,
.wwp-site-header .wwp-header-cta-measure svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Live indicator dot */
.wwp-site-header .cta-live-dot {
    width: 8px;
    height: 8px;
    background: var(--ice-white);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out forwards; /* was infinite */
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Keep every desktop navigation and social control visible before the mobile breakpoint. */
@media (min-width: 1025px) and (max-width: 1180px) {
    .wwp-site-header .header-inner { padding: 0 24px; gap: 10px; }
    .wwp-site-header .site-logo { flex-shrink: 0; gap: 10px; }
    .wwp-site-header .logo-text { white-space: nowrap; }
    .wwp-site-header .primary-nav { gap: 0; }
    .wwp-site-header .nav-link { padding: 8px; }
    .wwp-site-header .nav-link::after { left: 8px; right: 8px; }
    .wwp-site-header .header-actions { gap: 10px; flex-shrink: 0; }
    .wwp-site-header .header-social { gap: 0; margin-right: 0; padding-right: 10px; }
    .wwp-site-header .social-icon { width: 28px; }
    .wwp-site-header .header-cta, .wwp-site-header .wwp-header-cta-measure { padding: 12px 14px; white-space: nowrap; }
    .wwp-site-header .wwp-header-cart-slot[data-cart-populated="true"] .header-cta { padding-inline: 9px; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wwp-site-header,
    .wwp-site-header *,
    .wwp-site-header *::before,
    .wwp-site-header *::after,
    .wwp-bottom-nav,
    .wwp-bottom-nav *,
    .wwp-menu-overlay,
    .wwp-menu-overlay *,
    .wwp-menu-overlay::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
    }
}

@keyframes diagonalSlide {
    from {
        transform: translateX(100%) skewX(-12deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skewX(-12deg);
        opacity: 1;
    }
}

@keyframes revealUp {
    from {
        transform: translateY(110%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   V6-MOBILE: Full mobile transformation
   Matches support-v6-mobile.html mockup
   ============================================ */

@media (max-width: 1024px) {
    /* Hide desktop header on mobile/tablet - replaced by mobile bottom nav */
    .wwp-site-header {
        display: none;
    }
}

/* ============================================
   V6 MOBILE NAVIGATION - "THE PRESS BOX"
   Only visible on mobile/tablet (max-width: 1024px)
   ============================================ */

/* Hide mobile nav on desktop */
.wwp-bottom-nav,
.wwp-menu-overlay {
    display: none;
}

@media (max-width: 1024px) {
    /* Show mobile nav */
    .wwp-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--arena-dark);
        border-top: 1px solid var(--arena-line);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    /* Fade gradient above nav */
    .wwp-bottom-nav::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(to top, var(--arena-void) 0%, transparent 100%);
        pointer-events: none;
    }

    .wwp-bottom-nav .bottom-nav-inner {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: 64px;
    }

    .wwp-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: var(--ice-muted);
        position: relative;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        min-height: 64px;
        appearance: none;
        cursor: pointer;
        font-family: var(--font-body);
        -webkit-tap-highlight-color: transparent;
        transition: color 0.15s var(--ease-smooth);
    }

    /* Tap state - red flash */
    .wwp-bottom-nav .nav-item:active {
        color: var(--wwp-red);
    }

    /* Active/current page state */
    .wwp-bottom-nav .nav-item.active {
        color: var(--ice-white);
    }

    /* Red indicator bar for active item */
    .wwp-bottom-nav .nav-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: var(--wwp-red);
        border-radius: 0 0 2px 2px;
    }

    /* Subtle glow behind active icon */
    .wwp-bottom-nav .nav-item.active .nav-icon {
        filter: drop-shadow(0 0 8px rgba(200, 16, 46, 0.4));
    }

    .wwp-bottom-nav .nav-icon {
        width: 24px;
        height: 24px;
        transition: filter 0.15s var(--ease-smooth);
    }

    .wwp-bottom-nav .nav-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

    .wwp-bottom-nav .nav-label {
        font-size: 10px;
        line-height: 1.5;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    /* Menu button - subtle red tint background */
    .wwp-bottom-nav .nav-item.menu-trigger {
        background: rgba(200, 16, 46, 0.08);
    }

    .wwp-bottom-nav .nav-item.menu-trigger:active {
        background: rgba(200, 16, 46, 0.2);
    }

    /* ============================================
       FULL MENU OVERLAY
       ============================================ */

    .wwp-menu-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: var(--arena-void);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .wwp-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    /* Diagonal accent stripe - hockey rink aesthetic */
    .wwp-menu-overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg,
            var(--wwp-red) 0%,
            var(--wwp-red) 35%,
            transparent 35%);
        z-index: 10;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: opacity 0.3s, transform 0.5s var(--ease-out-expo) 0.1s;
    }

    .wwp-menu-overlay.open::before {
        opacity: 1;
        transform: scaleX(1);
    }

    .wwp-menu-overlay .menu-content {
        min-height: 100%;
        padding: calc(32px + env(safe-area-inset-top, 0px))
                 calc(24px + env(safe-area-inset-right, 0px))
                 calc(40px + env(safe-area-inset-bottom, 0px))
                 calc(24px + env(safe-area-inset-left, 0px));
        display: flex;
        flex-direction: column;
    }

    /* Close button */
    .wwp-menu-overlay .menu-close {
        position: absolute;
        top: calc(16px + env(safe-area-inset-top, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        background: transparent;
        padding: 0;
        border: 1px solid var(--arena-line);
        color: var(--ice-white);
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .wwp-menu-overlay .menu-close:active {
        border-color: var(--wwp-red);
        background: rgba(192, 32, 38, 0.1);
        color: var(--wwp-red);
    }

    .wwp-menu-overlay .menu-close svg {
        width: 18px;
        height: 18px;
    }

    /* Menu header with logo */
    .wwp-menu-overlay .menu-header {
        margin-bottom: 32px;
        padding-top: 8px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s var(--ease-out-expo) 0.15s, transform 0.4s var(--ease-out-expo) 0.15s;
    }

    .wwp-menu-overlay.open .menu-header {
        opacity: 1;
        transform: translateY(0);
    }

    .wwp-menu-overlay .menu-logo-link {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: var(--ice-white);
    }

    .wwp-menu-overlay .menu-logo-img {
        width: 52px;
        height: 52px;
        filter: drop-shadow(0 0 20px rgba(192, 32, 38, 0.3));
        transition: filter 0.3s;
    }

    .wwp-menu-overlay .menu-logo-link:active .menu-logo-img {
        filter: drop-shadow(0 0 24px rgba(192, 32, 38, 0.5));
    }

    .wwp-menu-overlay .menu-logo-text {
        font-family: var(--font-display);
        font-size: 22px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1.1;
    }

    .wwp-menu-overlay .menu-logo-text span {
        color: var(--wwp-red);
    }

    /* Primary navigation */
    .wwp-menu-overlay .menu-nav-primary {
        margin-bottom: 32px;
    }

    .wwp-menu-overlay .menu-nav-primary a {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: var(--font-display);
        font-size: 32px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: var(--ice-white);
        text-decoration: none;
        padding: 10px 0;
        border-bottom: 1px solid var(--arena-line);
        position: relative;
        opacity: 0;
        transform: translateX(-20px);
        transition: color 0.15s;
    }

    .wwp-menu-overlay .menu-nav-primary a:active {
        color: var(--wwp-red);
    }

    /* Staggered entrance */
    .wwp-menu-overlay.open .menu-nav-primary a {
        opacity: 1;
        transform: translateX(0);
    }

    .wwp-menu-overlay .menu-nav-primary a:nth-child(1) { transition: opacity 0.4s var(--ease-out-expo) 0.15s, transform 0.4s var(--ease-out-expo) 0.15s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(2) { transition: opacity 0.4s var(--ease-out-expo) 0.2s, transform 0.4s var(--ease-out-expo) 0.2s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(3) { transition: opacity 0.4s var(--ease-out-expo) 0.25s, transform 0.4s var(--ease-out-expo) 0.25s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(4) { transition: opacity 0.4s var(--ease-out-expo) 0.3s, transform 0.4s var(--ease-out-expo) 0.3s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(5) { transition: opacity 0.4s var(--ease-out-expo) 0.35s, transform 0.4s var(--ease-out-expo) 0.35s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(6) { transition: opacity 0.4s var(--ease-out-expo) 0.4s, transform 0.4s var(--ease-out-expo) 0.4s, color 0.15s; }
    .wwp-menu-overlay .menu-nav-primary a:nth-child(7) { transition: opacity 0.4s var(--ease-out-expo) 0.45s, transform 0.4s var(--ease-out-expo) 0.45s, color 0.15s; }

    /* Current page - red text + left bar */
    .wwp-menu-overlay .menu-nav-primary a.current {
        color: var(--wwp-red);
    }

    .wwp-menu-overlay .menu-nav-primary a.current::before {
        content: '';
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 24px;
        background: var(--wwp-red);
    }

    /* Secondary navigation */
    .wwp-menu-overlay .menu-nav-secondary {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        margin-bottom: 32px;
        opacity: 0;
        transition: opacity 0.4s var(--ease-out-expo) 0.4s;
    }

    .wwp-menu-overlay.open .menu-nav-secondary {
        opacity: 1;
    }

    .wwp-menu-overlay .menu-nav-secondary a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #959BAD;
        text-decoration: none;
        padding: 8px 0;
        transition: color 0.15s;
    }

    .wwp-menu-overlay .menu-nav-secondary a:active {
        color: var(--wwp-red);
    }

    /* Spacer */
    .wwp-menu-overlay .menu-spacer {
        flex: 1;
    }

    /* Social links */
    .wwp-menu-overlay .menu-social {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        opacity: 0;
        transition: opacity 0.4s var(--ease-out-expo) 0.45s;
    }

    .wwp-menu-overlay.open .menu-social {
        opacity: 1;
    }

    .wwp-menu-overlay .menu-social a {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--arena-line);
        color: var(--ice-dim);
        text-decoration: none;
        transition: border-color 0.15s, color 0.15s;
    }

    .wwp-menu-overlay .menu-social a:active {
        border-color: var(--wwp-red);
        color: var(--wwp-red);
    }

    .wwp-menu-overlay .menu-social svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    /* Menu footer */
    .wwp-menu-overlay .menu-footer {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--arena-line);
        opacity: 0;
        transition: opacity 0.4s var(--ease-out-expo) 0.5s;
    }

    .wwp-menu-overlay.open .menu-footer {
        opacity: 1;
    }

    .wwp-menu-overlay .menu-footer p {
        font-size: 12px;
        color: var(--arena-muted);
        letter-spacing: 0.05em;
    }

    /* Focus states */
    .wwp-bottom-nav .nav-item:focus-visible,
    .wwp-menu-overlay .menu-close:focus-visible,
    .wwp-menu-overlay .menu-nav-primary a:focus-visible,
    .wwp-menu-overlay .menu-nav-secondary a:focus-visible,
    .wwp-menu-overlay .menu-social a:focus-visible {
        outline: 2px solid var(--wwp-red);
        outline-offset: 2px;
    }
}

/* ============================================
   V6 FOOTER - 3-column × 2-row Compact Layout
   Labels above icon rows, aligned grid
   ============================================ */

/* Reset inherited styles from Kadence/WordPress */
.wwp-footer,
.wwp-footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
}

.wwp-footer {
    background: var(--arena-dark);
    border-top: 1px solid var(--arena-line);
    position: relative;
    font-family: var(--font-body);
    font-size: 14px;
}

/* Red accent stripe */
.wwp-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 0;
    width: 120px;
    height: 3px;
    background: var(--wwp-red);
}

.wwp-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 40px;
}

/* Main 3-column × 2-row grid for cross-column alignment */
.wwp-footer .footer-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 24px 48px;
    align-items: stretch;
}



/* LEFT COLUMN: Brand (row 1) + Email (row 2) */
.wwp-footer .footer-brand {
    display: contents; /* Let children participate in main grid */
}

.wwp-footer .footer-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ice-white);
    transition: color 0.1s linear;
}

.wwp-footer .footer-logo-img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    filter: drop-shadow(0 0 20px rgba(192, 32, 38, 0.3));
}

.wwp-footer .footer-logo-text {
    font-family: var(--font-display);
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.wwp-footer .footer-logo-text span {
    color: var(--wwp-red);
}

/* Email form - inline with label */
.wwp-footer .footer-email {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    align-self: start;
}

.wwp-footer .footer-email-label {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--ice-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
}

.wwp-footer .footer-email-fields {
    display: flex;
}

.wwp-footer .footer-email-input {
    width: 180px;
    padding: 12px 16px;
    background: var(--arena-surface);
    border: 1px solid var(--arena-line);
    border-right: none;
    color: var(--ice-white);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.wwp-footer .footer-email-input::placeholder {
    color: var(--arena-muted);
}

.wwp-footer .footer-email-input:focus {
    background: var(--arena-elevated);
    border-color: var(--ice-muted);
}

.wwp-footer .footer-email-submit {
    padding: 12px 20px;
    background: var(--wwp-red);
    border: 1px solid var(--wwp-red);
    color: var(--ice-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.wwp-footer .footer-email-submit:hover {
    background: var(--wwp-red-bright);
}

/* MIDDLE COLUMN: CTA Buttons */
.wwp-footer .footer-ctas {
    display: contents; /* Let children participate in main grid */
}

.wwp-footer .footer-cta {
    /* Center on the footer without changing the outside columns' widths. */
    grid-column: 1 / -1;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    width: 220px;
}

.wwp-footer .footer-cta--primary {
    grid-row: 1;
    align-self: end;
    background: var(--wwp-red);
    border: 1px solid var(--wwp-red);
    color: var(--ice-white);
}

.wwp-footer .footer-cta--secondary {
    grid-row: 2;
    align-self: start;
    background: transparent;
    border: 1px solid var(--arena-line);
    color: var(--ice-dim);
}

.wwp-footer .footer-cta--primary:hover {
    background: var(--wwp-red-bright);
    border-color: var(--wwp-red-bright);
}

.wwp-footer .footer-cta--secondary:hover {
    border-color: var(--ice-muted);
    color: var(--ice-white);
}

.wwp-footer .footer-cta svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    fill: currentColor;
}

/* RIGHT COLUMN: Connect Rows (right-aligned) */
.wwp-footer .footer-connect {
    display: contents; /* Let children participate in main grid */
}

.wwp-footer .footer-row {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Both rows: label above icons */
.wwp-footer .footer-row--subscribe,
.wwp-footer .footer-row--social {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.wwp-footer .footer-row--subscribe {
    grid-row: 1;
    align-self: end;
}

.wwp-footer .footer-row--social {
    grid-row: 2;
    align-self: start;
}

.wwp-footer .footer-row--subscribe .footer-row-label,
.wwp-footer .footer-row--social .footer-row-label {
    font-size: 14px;
}

.wwp-footer .footer-row-label {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ice-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Platform icons */
.wwp-footer .footer-platforms {
    display: flex;
    gap: 8px;
}

.wwp-footer .footer-platforms a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--arena-surface);
    border: 1px solid var(--arena-line);
    color: var(--ice-dim);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.wwp-footer .footer-platforms a:hover {
    background: var(--arena-elevated);
    border-color: var(--ice-muted);
    color: var(--ice-white);
}

.wwp-footer .footer-platforms svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Social icons - no background */
.wwp-footer .footer-social {
    display: flex;
    gap: 4px;
}

.wwp-footer .footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ice-muted);
    transition: color 0.15s;
}

.wwp-footer .footer-social a:hover {
    color: var(--wwp-red);
}

.wwp-footer .footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* BOTTOM ROW: Copyright + Legal */
.wwp-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--arena-line);
}

.wwp-footer .footer-copyright {
    max-width: 650px;
    font-size: 11px;
    color: #959BAD;
    letter-spacing: 0.02em;
}

.wwp-footer .footer-legal {
    display: flex;
    gap: 20px;
}

.wwp-footer .footer-legal a {
    font-size: 11px;
    color: #959BAD;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s;
}

.wwp-footer .footer-legal a.footer-link-bold {
    font-weight: 600;
}

.wwp-footer .footer-legal a:hover {
    color: var(--ice-dim);
}

/* Use the two-column footer before its three desktop columns overflow. */
@media (max-width: 1180px) {
    .wwp-footer .footer-inner {
        padding: 32px 28px;
    }

    .wwp-footer .footer-main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px 28px;
    }

    /* Revert to block layout for columns */
    .wwp-footer .footer-brand,
    .wwp-footer .footer-ctas,
    .wwp-footer .footer-connect {
        display: flex;
        flex-direction: column;
    }

    .wwp-footer .footer-brand {
        grid-column: 1;
        grid-row: 1 / 3;
        gap: 16px;
        align-items: flex-start;
    }

    .wwp-footer .footer-logo {
        grid-column: unset;
        grid-row: unset;
        height: auto;
    }

    .wwp-footer .footer-logo-img {
        width: 48px;
        height: 48px;
    }

    .wwp-footer .footer-logo-text {
        font-size: 26px;
    }

    .wwp-footer .footer-email {
        grid-column: unset;
        grid-row: unset;
        height: auto;
        width: 100%;
    }

    .wwp-footer .footer-email-fields {
        width: 100%;
    }

    .wwp-footer .footer-email-input {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .wwp-footer .footer-ctas {
        grid-column: 2;
        grid-row: 1 / 3;
        justify-self: end;
        align-items: flex-end;
        gap: 12px;
    }

    .wwp-footer .footer-cta {
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        align-self: unset;
        min-width: unset;
        padding: 14px 24px;
    }

    .wwp-footer .footer-connect {
        grid-column: 1 / -1;
        grid-row: 3;
        gap: 18px;
    }

    .wwp-footer .footer-row {
        grid-column: unset;
        grid-row: unset;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    .wwp-footer .footer-row--subscribe,
    .wwp-footer .footer-row--social {
        grid-row: unset;
        align-self: unset;
        flex-direction: row;
        align-items: center;
    }

    .wwp-footer .footer-row--subscribe .footer-row-label,
    .wwp-footer .footer-row--social .footer-row-label {
        font-size: 18px;
    }

    .wwp-footer .footer-platforms,
    .wwp-footer .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* One clearance rule covers all bottom-nav widths, including tablets.
   The persistent player already reserves its own measured dock + nav height. */
@media (max-width: 1024px) {
    .wwp-footer {
        padding-bottom: calc(var(--wwp-player-nav-height, calc(65px + env(safe-area-inset-bottom, 0px))) + 20px);
    }

    body.wwp-player-docked .wwp-footer { padding-bottom: 20px; }

    .wwp-footer .footer-email-input { font-size: 16px; }
    .wwp-footer .footer-email-submit,
    .wwp-footer .footer-cta { min-height: 44px; }

    .wwp-footer .footer-platforms a,
    .wwp-footer .footer-social a { width: 44px; height: 44px; }

    .wwp-footer .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .wwp-footer .footer-copyright { line-height: 1.4; }
    .wwp-footer .footer-legal { justify-content: center; flex-wrap: wrap; gap: 0 16px; }
    .wwp-footer .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ----- FOOTER MOBILE (≤640px) ----- */
@media (max-width: 640px) {
    .wwp-footer .footer-inner {
        padding: 28px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px));
    }

    .wwp-footer .footer-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }

    /* Stack everything in single column */
    .wwp-footer .footer-brand,
    .wwp-footer .footer-ctas,
    .wwp-footer .footer-connect {
        display: flex;
        flex-direction: column;
    }

    .wwp-footer .footer-brand {
        grid-column: 1;
        grid-row: auto;
        align-items: center;
        gap: 14px;
    }

    .wwp-footer .footer-logo {
        grid-column: unset;
        grid-row: unset;
        justify-content: center;
    }

    .wwp-footer .footer-logo-img {
        width: 44px;
        height: 44px;
    }

    .wwp-footer .footer-logo-text {
        font-size: 24px;
    }

    .wwp-footer .footer-email {
        grid-column: unset;
        grid-row: unset;
        align-items: center;
        gap: 8px;
    }

    .wwp-footer .footer-email-label {
        width: 100%;
        text-align: center;
        font-size: 18px;
        margin-bottom: 4px;
    }

    .wwp-footer .footer-email-fields {
        width: 100%;
        display: flex;
    }

    .wwp-footer .footer-email-input {
        flex: 1;
        width: auto;
        min-width: 0;
        border-right: none;
        font-size: 16px; /* Prevent iOS zoom */
        text-align: left;
        padding: 12px 14px;
    }

    .wwp-footer .footer-email-submit {
        padding: 12px 18px;
    }

    .wwp-footer .footer-ctas {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        justify-self: center;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .wwp-footer .footer-cta {
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        align-self: unset;
        flex: 1;
        min-width: 0;
        padding: 14px 20px;
        width: auto;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .wwp-footer .footer-connect {
        grid-column: 1;
        grid-row: auto;
        gap: 20px;
    }

    .wwp-footer .footer-row {
        grid-column: unset;
        grid-row: unset;
        flex-direction: column;
        gap: 10px;
    }

    .wwp-footer .footer-row--subscribe,
    .wwp-footer .footer-row--social {
        grid-row: unset;
        align-self: unset;
        flex-direction: column;
        align-items: center;
    }

    .wwp-footer .footer-row-label {
        text-align: center;
    }

    .wwp-footer .footer-row--subscribe .footer-row-label,
    .wwp-footer .footer-row--social .footer-row-label {
        font-size: 18px;
    }

    .wwp-footer .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .wwp-footer .footer-legal {
        gap: 16px;
    }

    /* Center the red accent line on mobile */
    .wwp-footer::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Hide empty paragraphs from WordPress editor (removes grey bar below footer) */
p:empty {
    display: none !important;
}


/* The legacy signup and paired CTAs otherwise force a wider grid on small phones. */
@media (max-width: 360px) {
    .wwp-footer .footer-main { grid-template-columns: minmax(0, 1fr); }
    .wwp-footer .footer-main > * { min-width: 0; }
    .wwp-footer .footer-email { flex-direction: column; align-items: stretch; }
    .wwp-footer .footer-email-label { white-space: normal; }
    .wwp-footer .footer-email-fields { min-width: 0; }
    .wwp-footer .footer-email-input { flex: 1; width: 0; min-width: 0; }
    .wwp-footer .footer-email-submit { flex-shrink: 0; }
    .wwp-footer .footer-ctas { flex-direction: column; align-items: stretch; }
    .wwp-footer .footer-cta { flex: none; width: 100%; min-width: 0; justify-content: center; }
}

/* The owned form must stay a stacked label + compact input row at every width. */
.wwp-footer .footer-main > * { min-width: 0; }
.wwp-footer .wwp-newsletter { display: block; width: 100%; min-width: 0; }
.wwp-footer .wwp-newsletter .footer-email-fields { display: flex; width: 100%; min-width: 0; }
.wwp-footer .wwp-newsletter .footer-email-input { flex: 1; width: 0; min-width: 0; }
.wwp-footer .wwp-newsletter .footer-email-submit { flex-shrink: 0; }
.wwp-footer .wwp-newsletter .wwp-form-status { white-space: normal; overflow-wrap: anywhere; }
.wwp-footer .wwp-newsletter .footer-email-label { display: block; margin-bottom: 8px; }
