/* ========== BASE & ANIMATIONS ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ========== HERO GRADIENT ========== */
.hero-gradient {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 25%, #047857 50%, #059669 75%, #34d399 100%);
}

/* ========== HERO PATTERN ========== */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ========== FLOATING ORBS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-24px) scale(1.04); }
}

.hero-orb {
    animation: float 7s ease-in-out infinite;
}

/* ========== CTA ORBS ========== */
.cta-orb {
    animation: float 9s ease-in-out infinite;
}

.cta-orb--2 {
    animation-delay: -4.5s;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for service cards */
.service-card[data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }
.patient-card[data-reveal] { transition-delay: calc(var(--i, 0) * 100ms); }

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
    padding: 0;
}

#navbar.scrolled .font-serif {
    color: #064e3b;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
    color: #059669;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 4px;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(28px);
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

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