/* ============================================
   Melissa Heath, MD — Custom Styles
   Classic & Elegant | Charcoal + Coral
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #f76f4e;
    color: #ffffff;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible
   by default; JS adds animation classes.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-scrolled .nav-link {
    color: #374151 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #f76f4e !important;
}

.navbar-scrolled .logo-text {
    color: #111827 !important;
}

.navbar-scrolled .logo-sub {
    color: #6b7280 !important;
}

/* ============================================
   Hero Floating Cards Animation
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .float-slow {
        animation: float 6s ease-in-out infinite;
    }
    .float-medium {
        animation: float 4.5s ease-in-out infinite;
        animation-delay: -1.5s;
    }
    .float-fast {
        animation: float 3.5s ease-in-out infinite;
        animation-delay: -3s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6cb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a5ad;
}

/* ============================================
   Focus States for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f76f4e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Mobile Menu Transition
   ============================================ */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact iframe, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
}
