/*!
Theme Name: Kadence Child
Theme URI: https://bowdenworks.com
Template: kadence
Author: Bowden Works
Author URI: https://bowdenworks.com
Description: Kadence child theme
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Global smooth scrolling for luxury feel */
html {
    scroll-behavior: smooth;
}

/* Optional: Customize scrollbar for luxury aesthetic */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Luxury Scroll Indicator - Merged with existing positioning */
.bw-scroll-indicator {
    position: absolute;
    bottom: -35vh; /* Using your customizer positioning */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Static Text - NEVER MOVES */
.bw-scroll-indicator__text {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Text is completely static - no transform, no animation */
}

/* Link wrapper for arrow */
.bw-scroll-indicator__link {
    position: relative;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

/* Arrow container - ONLY THIS ANIMATES */
.bw-scroll-indicator__arrow {
    position: relative;
    width: 40px;
    height: 40px;
    /* Smooth pulsing animation matching your customizer */
    animation: bw-luxury-pulse 2s infinite ease-in-out;
}

.bw-scroll-indicator__arrow svg {
    width: 100%;
    height: 100%;
    stroke: #ffffff;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

/* Pulse Animation - Only affects the arrow */
@keyframes bw-luxury-pulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Moves up slightly */
    }
}

/* Hover states */
.bw-scroll-indicator:hover .bw-scroll-indicator__text {
    color: rgba(255, 255, 255, 1);
}

.bw-scroll-indicator:hover .bw-scroll-indicator__arrow svg {
    transform: scale(1.1); /* Slightly enlarge on hover */
    opacity: 1;
}

.bw-scroll-indicator:hover .bw-scroll-indicator__arrow {
    animation-play-state: paused;
}

/* Override any conflicting customizer CSS for old structure */
.bw-scroll-down {
    display: none !important;
}
