/* === Navbar (from Navbar.tsx) ===
   Classes: fixed top-0 left-0 right-0 z-50 transition-all
   Scrolled: bg-brand-navy/95 backdrop-blur-md shadow-sm
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
    padding: 1.5rem 0;
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--navy) 95%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media(min-width:1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo: flex items-center gap-2 */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: var(--earth);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Custom Logo WordPress Constraints */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    max-height: 4.5rem;
    width: auto;
    object-fit: contain;
}

.footer-brand .custom-logo-link img {
    max-height: 4.5rem;
}

.logo-fallback-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Light/Dark Logo Toggles */
.logo-dark {
    display: none !important;
}

.dark .logo-dark {
    display: block !important;
}

.dark .logo-light {
    display: none !important;
}

.custom-logo-link img {
    max-height: 4.5rem;
    width: auto;
    object-fit: contain;
}

.footer-logo .custom-logo-link img {
    max-height: 4.5rem;
}

/* Desktop Nav: hidden md:flex items-center gap-8 */
.nav-desktop {
    display: none;
    align-items: center;
}

@media(min-width:768px) {
    .nav-desktop {
        display: flex;
    }
}

/* wp_nav_menu output: ul.nav-menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    font-size: 0.875rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a,
.nav-menu>li.current-menu-parent>a,
.nav-menu>li.current-menu-ancestor>a {
    color: var(--white);
}

/* Dropdown chevron for parent items */
.nav-menu>li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.nav-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown sub-menu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding-left: 0;
    padding-top: 0.5rem;
}

.nav-menu>li:hover>.sub-menu {
    display: block;
    animation: dropdown-fade 0.2s ease;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-menu .sub-menu li {
    background: var(--sand);
    min-width: 12rem;
}

.nav-menu .sub-menu li:first-child,
.nav-menu .sub-menu li:first-child a {
    border-radius: 0.75rem 0.75rem 0 0;
}

.nav-menu .sub-menu li:last-child,
.nav-menu .sub-menu li:last-child a {
    border-radius: 0 0 0.75rem 0.75rem;
}

.nav-menu .sub-menu li:only-child,
.nav-menu .sub-menu li:only-child a {
    border-radius: 0.75rem;
}

.nav-menu .sub-menu li+li {
    border-top: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--cream) 80%, transparent);
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
    color: var(--white);
    background: color-mix(in srgb, var(--white) 5%, transparent);
}

.nav-menu .sub-menu li.current-menu-item a {
    color: var(--earth);
}

/* Nav Link - standalone (Login link) */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--white);
}

/* Actions: hidden md:flex items-center gap-4 */
.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media(min-width:768px) {
    .nav-actions {
        display: flex;
    }
}

/* Theme Toggle: p-2 rounded-lg bg-white/5 border-white/10 text-white/80 */
.theme-toggle-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--white) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    color: color-mix(in srgb, var(--white) 80%, transparent);
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    color: var(--white);
    background: color-mix(in srgb, var(--white) 10%, transparent);
}

.dark .icon-moon {
    display: none;
}

.dark .icon-sun {
    display: block;
}

html:not(.dark) .icon-sun {
    display: none;
}

html:not(.dark) .icon-moon {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    color: var(--white);
}

@media(min-width:768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle .icon-close {
    display: none;
}

.mobile-menu-toggle.is-open .icon-menu {
    display: none;
}

.mobile-menu-toggle.is-open .icon-close {
    display: block;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    padding: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-nav-links {
    margin-bottom: 1.5rem;
}

/* Mobile wp_nav_menu output: ul.mobile-nav-menu */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu>li>a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
}

.mobile-nav-menu>li:last-child>a {
    border-bottom: none;
}

.mobile-nav-menu>li>a:hover,
.mobile-nav-menu>li.current-menu-item>a {
    color: var(--white);
}

/* Mobile parent item with dropdown toggle */
.mobile-nav-menu>li.menu-item-has-children>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-menu>li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.mobile-nav-menu>li.menu-item-has-children.is-open>a::after {
    transform: rotate(180deg);
}

/* Mobile sub-menu (accordion style) */
.mobile-nav-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
}

.mobile-nav-menu>li.menu-item-has-children.is-open>.sub-menu {
    display: block;
    animation: mobile-submenu-slide 0.25s ease;
}

@keyframes mobile-submenu-slide {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 20rem;
    }
}

.mobile-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: color-mix(in srgb, var(--cream) 60%, transparent);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-menu .sub-menu a:hover {
    color: var(--white);
}

.mobile-nav-menu .sub-menu li.current-menu-item a {
    color: var(--earth);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}

.mobile-theme-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mobile-login-link {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    padding: 0.5rem;
}

/* === Hero Section (from Hero.tsx) ===
   Classes: relative w-full bg-brand-navy text-white overflow-hidden pt-24 pb-32 lg:pt-32 lg:pb-40
*/
.hero-section {
    position: relative;
    width: 100%;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    padding: 6rem 0 8rem;
}

@media(min-width:1024px) {
    .hero-section {
        padding: 8rem 0 10rem;
    }
}

/* Background: absolute inset-0 pointer-events-none */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #80808012 1px, transparent 1px),
        linear-gradient(to bottom, #80808012 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-glow-blue {
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.1);
}

.hero-glow-earth {
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: color-mix(in srgb, var(--earth) 10%, transparent);
}

/* Hero Layout: max-w-7xl mx-auto px-6 lg:px-8 relative z-10 */
.hero-container {
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media(min-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Content: max-w-2xl */
.hero-content {
    max-width: 42rem;
}

/* H1: text-5xl lg:text-6xl font-semibold tracking-tight mb-6 leading-[1.1] */
.hero-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media(min-width:1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* p: text-lg text-brand-cream/70 mb-8 leading-relaxed max-w-xl */
.hero-description {
    font-size: 1.125rem;
    color: color-mix(in srgb, var(--cream) 70%, transparent);
    margin-bottom: 2rem;
    line-height: 1.625;
    max-width: 36rem;
}

/* Offer box: bg-brand-earth/10 border-brand-earth/20 rounded-xl p-4 */
.hero-offer-box {
    background: color-mix(in srgb, var(--earth) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--earth) 20%, transparent);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 36rem;
}

.hero-offer-icon {
    background: color-mix(in srgb, var(--earth) 20%, transparent);
    padding: 0.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    color: var(--earth);
}

.hero-offer-title {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.hero-offer-text {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--cream) 70%, transparent);
}

/* CTA buttons: flex flex-col sm:flex-row gap-4 items-start sm:items-center */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media(min-width:640px) {
    .hero-cta-group {
        flex-direction: row;
        align-items: center;
    }
}

/* Trust: mt-10 pt-10 border-t border-white/10 */
.hero-trust {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--cream) 60%, transparent);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Hero Orbit Graphic ===
   Outer: relative lg:ml-auto w-full max-w-[500px] aspect-square
*/
.hero-graphic {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media(min-width:1024px) {
    .hero-graphic {
        margin: 0 0 0 auto;
    }
}

/* Center logo: absolute z-20 w-24 h-24 rounded-3xl bg-brand-earth */
.hero-center-logo {
    position: absolute;
    z-index: 20;
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    background: var(--earth);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 25px 50px color-mix(in srgb, var(--earth) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    transition: all 0.5s;
    cursor: pointer;
}

.hero-center-logo:hover {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 25px 50px color-mix(in srgb, var(--earth) 40%, transparent);
}

/* Center glow: absolute z-10 w-32 h-32 rounded-full bg-brand-earth/30 blur-2xl */
.hero-center-glow {
    position: absolute;
    z-index: 10;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--earth) 30%, transparent);
    filter: blur(24px);
    transition: all 0.5s;
}

.hero-graphic:hover .hero-center-glow {
    background: color-mix(in srgb, var(--earth) 40%, transparent);
    transform: scale(1.1);
}

/* Orbit tracks: absolute inset-8 rounded-full border-white/10 border-dashed */
.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border-style: dashed;
    transition: border-color 0.5s;
}

.hero-orbit-outer {
    inset: 2rem;
    border-width: 1px;
    border-color: color-mix(in srgb, var(--white) 10%, transparent);
}

.hero-orbit-inner {
    inset: 6rem;
    border-width: 1px;
    border-color: color-mix(in srgb, var(--white) 5%, transparent);
}

.hero-graphic:hover .hero-orbit-outer {
    border-color: color-mix(in srgb, var(--white) 20%, transparent);
}

.hero-graphic:hover .hero-orbit-inner {
    border-color: color-mix(in srgb, var(--white) 10%, transparent);
}

/* Spinning container */
.hero-orbit-items {
    position: absolute;
    inset: 0;
    animation: spin 40s linear infinite;
}

.hero-graphic:hover .hero-orbit-items {
    animation-play-state: paused;
}

/* Each orbit item: absolute w-24 h-24 -ml-12 -mt-12 + computed left/top */
.orbit-item {
    position: absolute;
    width: 6rem;
    height: 6rem;
    margin-left: -3rem;
    margin-top: -3rem;
    left: calc(50% + cos(var(--angle)) * 42%);
    top: calc(50% + sin(var(--angle)) * 42%);
    cursor: pointer;
}

.orbit-item-inner {
    width: 100%;
    height: 100%;
    animation: spin 40s linear infinite reverse;
}

.hero-graphic:hover .orbit-item-inner {
    animation-play-state: paused;
}

/* Card: w-full h-full rounded-2xl bg-brand-sand border shadow-xl backdrop-blur-md */
.orbit-card {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: var(--sand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}

.orbit-card:hover {
    transform: scale(1.1) translateY(-0.5rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Per-color border variants matching React: border border-xxx-400/20 */
.orbit-card-blue {
    border-color: rgba(96, 165, 250, 0.2);
}

.orbit-card-blue:hover {
    border-color: rgba(96, 165, 250, 0.5);
}

.orbit-card-green {
    border-color: rgba(74, 222, 128, 0.2);
}

.orbit-card-green:hover {
    border-color: rgba(74, 222, 128, 0.5);
}

.orbit-card-amber {
    border-color: rgba(251, 191, 36, 0.2);
}

.orbit-card-amber:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.orbit-card-purple {
    border-color: rgba(192, 132, 252, 0.2);
}

.orbit-card-purple:hover {
    border-color: rgba(192, 132, 252, 0.5);
}

.orbit-card-pink {
    border-color: rgba(244, 114, 182, 0.2);
}

.orbit-card-pink:hover {
    border-color: rgba(244, 114, 182, 0.5);
}

.orbit-card-earth {
    border-color: color-mix(in srgb, var(--earth) 20%, transparent);
}

.orbit-card-earth:hover {
    border-color: color-mix(in srgb, var(--earth) 50%, transparent);
}

/* Icon wrap: p-2.5 rounded-xl bg-xxx/10 */
.orbit-icon-wrap {
    padding: 0.625rem;
    border-radius: 0.75rem;
    transition: transform 0.3s;
}

.orbit-card:hover .orbit-icon-wrap {
    transform: rotate(12deg) scale(1.1);
}

/* Label: text-[11px] font-medium text-white/80 */
.orbit-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    text-align: center;
    line-height: 1.2;
}

/* Color variants for orbit icons */
.orbit-icon-blue {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.orbit-icon-green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.orbit-icon-amber {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.orbit-icon-purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.orbit-icon-pink {
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.orbit-icon-earth {
    background: color-mix(in srgb, var(--earth) 10%, transparent);
    color: var(--earth);
}

/* === Waitlist Modal === */
.waitlist-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease;
}

.waitlist-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.waitlist-modal-container {
    position: relative;
    width: 100%;
    max-width: 32rem;
    background: var(--navy);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(1rem);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.waitlist-modal-overlay.is-open .waitlist-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.waitlist-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: color-mix(in srgb, var(--white) 60%, transparent);
    background: color-mix(in srgb, var(--white) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.waitlist-modal-close:hover {
    color: var(--white);
    background: color-mix(in srgb, var(--white) 15%, transparent);
    transform: rotate(90deg);
}