/* Custom styles for Airline Chiropractic Clinic */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
header.nav-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(86, 141, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

header:not(.nav-scrolled) {
    background: transparent;
}

header:not(.nav-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

header:not(.nav-scrolled) .nav-link:hover {
    color: #fefdf8;
    background: rgba(255, 255, 255, 0.1);
}

header:not(.nav-scrolled) .font-serif {
    color: #fefdf8;
}

header:not(.nav-scrolled) .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
}

header:not(.nav-scrolled) #menuIcon {
    color: #fefdf8;
}

/* Mobile nav links */
.mobile-nav-link {
    color: #3f7025;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-dark {
    transition: transform 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #f5f0e0;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9ec685;
}

/* Active nav link */
.nav-link.active {
    background: rgba(86, 141, 51, 0.08);
    color: #3f7025;
}

/* Animation delays for staggered reveals */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }
