/* Delta Regional Cardiovascular Specialists — Custom Styles */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1823;
}
::-webkit-scrollbar-thumb {
    background: #f5c550;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e9a510;
}

/* Selection */
::selection {
    background: #f5c550;
    color: #0d1823;
}

/* Navbar transitions */
.nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #f5c550;
}

/* Light navbar state */
.navbar-scrolled .nav-link {
    color: rgba(13, 24, 35, 0.7);
}
.navbar-scrolled .nav-link:hover {
    color: #c48608;
}
.navbar-scrolled .nav-text-primary {
    color: #0d1823;
}
.navbar-scrolled .nav-text-secondary {
    color: rgba(13, 24, 35, 0.5);
}
.navbar-scrolled .nav-light-bg {
    display: none;
}
.navbar-scrolled .nav-dark-bg {
    display: block;
}
.navbar-scrolled #mobile-menu-btn {
    color: #0d1823;
}

/* Dark navbar state (default) */
.nav-light-bg {
    display: block;
}
.nav-dark-bg {
    display: none;
}

/* Mobile menu link */
.mobile-link {
    display: block;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5c550;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print */
@media print {
    nav, #contact-form, .fade-in {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
