/* Custom styles for So Well Medicine */

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

/* Navbar transition states */
.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-link {
    color: rgba(26, 77, 46, 0.7);
}

.nav-link:hover {
    color: rgba(26, 77, 46, 1);
}

/* Light navbar (over hero) */
nav.light .nav-logo-text {
    color: white;
}

nav.light .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

nav.light .nav-link:hover {
    color: white;
}

nav.light #menuBtn {
    border-color: rgba(255, 255, 255, 0.3);
}

nav.light #menuBtn svg {
    stroke: white;
}

/* Dark navbar (over white sections) */
nav.dark .nav-logo-text {
    color: #1a4d2e;
}

nav.dark .nav-link {
    color: rgba(26, 77, 46, 0.7);
}

nav.dark .nav-link:hover {
    color: #1a4d2e;
}

nav.dark #menuBtn {
    border-color: rgba(26, 77, 46, 0.3);
}

nav.dark #menuBtn svg {
    stroke: #1a4d2e;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d8243;
}

/* Selection color */
::selection {
    background: #2d6a35;
    color: white;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 106, 53, 0.1);
}

/* Print styles */
@media print {
    nav, .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
