/* Custom styles for Deborah I Greaves — Medical & Health */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations — progressive enhancement, respects prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-scrolled .font-serif {
    color: #064e3b !important;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

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

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

::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

/* Map container */
iframe {
    width: 100%;
    height: 100%;
}

/* Ensure all text is readable */
.text-emerald-900,
.text-emerald-800,
.text-emerald-700 {
    color: #064e3b;
}

/* Fix for the emerald-850 used in approach section */
.bg-emerald-850 {
    background-color: #053d2e;
}
