/* Custom Styles for Diane Kloecker Acupuncture */

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

body {
    font-family: 'Lato', sans-serif;
    color: #1A365D;
    background-color: #F9F8F6;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Navbar Scroll State */
#navbar.scrolled {
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.nav-text {
    color: #1A365D;
}

#navbar.scrolled .nav-text {
    color: #1A365D;
}

.nav-link {
    color: #1A365D;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #C5A059;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Animations */
.hero-title {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.hero-desc {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.hero-cta {
    transition: opacity 0.8s ease 0.4s;
}

.hero-image {
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Initial state for animation */
.hero-title, .hero-subtitle, .hero-desc {
    transform: translateY(100%);
}

.hero-cta {
    opacity: 0;
}

.hero-image {
    transform: scale(1);
}

/* Active state for animation */
.hero-loaded .hero-title,
.hero-loaded .hero-subtitle,
.hero-loaded .hero-desc {
    transform: translateY(0);
}

.hero-loaded .hero-cta {
    opacity: 1;
}

.hero-loaded .hero-image {
    transform: scale(1);
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

/* Mobile Menu */
.mobile-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

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

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

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

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

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C5A059;
    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;
    }
}
