/* Suite 4 Salon and Spa — Custom Styles */

/* Base reset and smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5F0E8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1F14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A84C, #A8872E);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF61;
}

/* Scroll line animation */
.scroll-line {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Mobile menu animations */
.mobile-menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobileMenuBtn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .mobile-menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Gold shimmer on hover for specific elements */
.shimmer-hover:hover {
    background: linear-gradient(90deg, #C9A84C 0%, #F0E6B8 50%, #C9A84C 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }

    .scroll-line {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .card-hover {
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    }
}

/* Print styles */
@media print {
    nav,
    #backToTop,
    .marquee-track,
    .scroll-reveal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
    }
}
