/* Custom Styles for Bolton Chiropractic Wellness Center */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #d4a574;
    color: #0a1628;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Active State */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu Link Hover */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Navigation Active State */
.navbar.scrolled .nav-text-color {
    color: #ffffff;
}

.navbar.scrolled .nav-line {
    background-color: #ffffff;
}

.navbar.scrolled .nav-line:last-child {
    background-color: #d4a574;
}

/* Hero Image Parallax */
#hero img {
    will-change: transform;
}

/* Form Input Focus Effects */
input:focus,
textarea:focus {
    outline: none;
}

/* Service Card Hover Effect */
.group:hover .group-hover\\:bg-gold-400\\/50 {
    background-color: rgba(212, 165, 116, 0.5);
}

/* Button Hover Effects */
button:hover,
a:hover {
    cursor: pointer;
}

/* Image Loading Placeholder */
img {
    background-color: #f5f5f5;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .text-white,
    .text-navy-900 {
        color: #000 !important;
    }
}
