/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1f19; }
::-webkit-scrollbar-thumb { background: #1a4237; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #266651; }

/* ─── Selection ─── */
::selection { background: rgba(212, 168, 83, 0.3); color: #faf8f4; }

/* ─── Nav ─── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: #d4a853;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ─── Navbar scroll state ─── */
.navbar-scrolled {
    background: rgba(10, 31, 25, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Service Cards ─── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ─── Wellness Cards ─── */
.wellness-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.wellness-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.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; }

/* ─── Floating animation for hero cards ─── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float-delayed 7s ease-in-out infinite 1s; }
.floating-card-3 { animation: float-slow 8s ease-in-out infinite 2s; }

/* ─── Gold shimmer on CTA ─── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ─── Back to top ─── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Mobile menu ─── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    transition: all 0.2s ease;
}

/* ─── Focus states ─── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    border-radius: 4px;
}

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