/* Custom styles for Dr. Mark Moran — Primary Care, Stuart FL */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d9c7b3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a68b6c;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(42, 35, 30, 0.08);
}

.nav-link-color {
    color: #2a231e;
    transition: color 0.3s ease;
}

.nav-link-sub {
    color: #a68b6c;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-link-color {
    color: #2a231e;
}

#navbar.scrolled .nav-link-sub {
    color: #a68b6c;
}

.nav-link-text {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-link-text {
    color: #5f4b3c;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 82, 36, 0.15);
}

/* Button hover lift */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background: rgba(212, 82, 36, 0.2);
    color: #3e1409;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
        transition-delay: 0s;
    }
}
