/* === Custom Styles for Stephen Nason Medical Practice === */

:root {
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-teal-800: #115e59;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
}

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

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.15);
    color: var(--color-teal-700);
}

/* === Navbar === */
#navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* === Hero === */
#hero {
    background: white;
}

/* === Service Cards === */
.service-card {
    transition: background-color 0.5s ease;
}

/* === Mobile Menu === */
#mobileMenu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* === Buttons === */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* === Form Inputs === */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* === Subtle line animations === */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-teal-600);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::after {
    width: 60%;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Responsive adjustments === */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
