/* ============================================
   Dr. Joanne Waeltermann MD — Custom Styles
   Classic & Elegant Medical Website
   ============================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    color: #FDFCF9;
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(27, 67, 50, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    color: #FDFCF9;
}

.nav-link {
    color: rgba(253, 252, 249, 0.8);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #D4A373;
}

#navbar.scrolled .nav-link {
    color: rgba(253, 252, 249, 0.85);
}

#navbar.scrolled .nav-link:hover {
    color: #D4A373;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #D4A373;
    color: #1B4332;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #D4A373;
}

.btn-primary:hover {
    background: #C4956A;
    border-color: #C4956A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #FDFCF9;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: 2px solid rgba(253, 252, 249, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(253, 252, 249, 0.7);
    background: rgba(253, 252, 249, 0.1);
    transform: translateY(-2px);
}

/* ---------- Service Cards ---------- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Scroll Reveal ---------- */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is disabled or before JS runs, all content is visible */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

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

/* ---------- Selection ---------- */
::selection {
    background: rgba(27, 67, 50, 0.2);
    color: #1B4332;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2a4a34;
}
