/* ============================================
   Rhodes R Scott — Custom Styles
   Classic & Elegant Medical Practice
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(94, 197, 157, 0.2);
    color: #0b1340;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* For browsers that support prefers-reduced-motion, disable animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(11, 19, 64, 0.06), 0 4px 20px rgba(11, 19, 64, 0.06);
}

#navbar.scrolled #nav-logo-text {
    color: #0b1340;
}

#navbar.scrolled #nav-logo-sub {
    color: #1c30a0;
}

#navbar.scrolled a:not(.bg-midnight-900):not(.bg-mint-500) {
    color: #1c30a0;
}

#navbar.scrolled a:not(.bg-midnight-900):not(.bg-mint-500):hover {
    color: #36a87c;
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(11, 19, 64, 0.06);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

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

/* --- Image Loading --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #5ec59d;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fa8ff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu, #contact-form, iframe {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-900, .bg-midnight-950 {
        background: #fff !important;
        color: #000 !important;
    }
}
