/* =============================================================================
   MOBILE MENU - Slide-out Navigation (Squarespace Parity)
   ============================================================================= */

/* Mobile menu overlay */
.sw-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sw-mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile slide-out panel - White overlay with blue glow (matches live Squarespace) */
.sw-mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    padding: 80px 30px 40px;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Blue glow border effect like live site */
    box-shadow:
        -10px 0 60px rgba(100, 149, 237, 0.4),
        -5px 0 30px rgba(65, 105, 225, 0.3),
        inset 0 0 0 3px rgba(65, 105, 225, 0.2);
}

.sw-mobile-nav.active {
    right: 0;
}

/* Mobile close button - Orange like live site */
.sw-mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ff6a00;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-mobile-close span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
}

.sw-mobile-close span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.sw-mobile-close span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile nav links - Black text on white */
.sw-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Regular nav item links */
.sw-mobile-nav-item>a {
    display: block;
    padding: 18px 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sw-mobile-nav-item>a:hover {
    color: #ff6a00;
}

/* Dropdown toggle container - matches regular items */
.sw-mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 18px 0;
    cursor: pointer;
}

/* Links inside dropdown toggle - same style as regular items */
.sw-mobile-dropdown-toggle a {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sw-mobile-dropdown-toggle a:hover {
    color: #ff6a00;
}

/* Animated triple chevron arrow indicator */
.sw-mobile-dropdown-arrow {
    display: inline-flex;
    gap: 1px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.sw-mobile-dropdown-arrow span {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    opacity: 0;
    animation: blink-sequence 1.2s ease-in-out infinite;
}

.sw-mobile-dropdown-arrow span:nth-child(1) {
    animation-delay: 0s;
}

.sw-mobile-dropdown-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.sw-mobile-dropdown-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink-sequence {

    0%,
    100% {
        opacity: 0.2;
    }

    30%,
    70% {
        opacity: 1;
    }
}

.sw-mobile-dropdown-arrow.open {
    transform: rotate(90deg);
}

.sw-mobile-dropdown-arrow.open span {
    animation: none;
    opacity: 1;
}

/* Mobile sub-menu - No background, subtle indent */
.sw-mobile-dropdown {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.sw-mobile-dropdown.open {
    display: block;
}

/* Dropdown items - EXACTLY same as main nav */
.sw-mobile-dropdown li a {
    display: block;
    padding: 18px 0 18px 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sw-mobile-dropdown li a:hover {
    color: #ff6a00;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Hamburger animation when open */
.sw-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sw-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sw-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================================================
   BACK TO TOP BUTTON - Stylish orange glow
   ============================================================================= */
.sw-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00 0%, #ff9500 100%);
    color: #fff;
    cursor: pointer;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Start invisible */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);

    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Orange glow */
    box-shadow:
        0 4px 15px rgba(255, 106, 0, 0.4),
        0 0 30px rgba(255, 106, 0, 0.2);
}

/* Visible state */
.sw-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover state - bigger glow, lift up */
.sw-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow:
        0 8px 25px rgba(255, 106, 0, 0.5),
        0 0 50px rgba(255, 106, 0, 0.4);
    background: linear-gradient(135deg, #ff7a1a 0%, #ffa500 100%);
}

/* Active state - click feedback */
.sw-back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Arrow icon */
.sw-back-to-top svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* Pulse animation on hover */
@keyframes sw-btn-pulse {

    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(255, 106, 0, 0.4),
            0 0 30px rgba(255, 106, 0, 0.2);
    }

    50% {
        box-shadow:
            0 6px 20px rgba(255, 106, 0, 0.5),
            0 0 40px rgba(255, 106, 0, 0.3);
    }
}

.sw-back-to-top.visible {
    animation: sw-btn-pulse 2s ease-in-out infinite;
}

.sw-back-to-top:hover {
    animation: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sw-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .sw-back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Inverted state for when overlaying the orange footer */
.sw-back-to-top.sw-inverted {
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sw-back-to-top.sw-inverted svg {
    stroke: #ff6a00;
}