/* ───────────────────────────────────────────────────────────
   Valley Health — Custom Styles
   Forest Green + Off-White · Vibrant Geometric Modern
─────────────────────────────────────────────────────────── */

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ── Navbar scroll state ──────────────────────────────────── */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(45, 95, 45, 0.08);
}

/* ── Mobile menu ──────────────────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 95, 45, 0.08);
    transition: color 0.2s;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Floating card animations ─────────────────────────────── */
.floating-card {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

.floating-card-4 {
    animation: float4 5.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-6px) rotate(-0.5deg); }
}

/* ── Service cards ────────────────────────────────────────── */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ── Testimonial cards ────────────────────────────────────── */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

/* ── Scroll reveal (progressive enhancement) ──────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .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; }
}

/* If JS is disabled, content is always visible (no .reveal class applied) */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed; without JS, the default state is visible */
}

/* ── Button focus rings ───────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5a9e5a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
    background-color: #aed0ad;
    color: #1c3a1c;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7bb87b;
}
