/* ─── Base & Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* ─── Navbar ─── */
#navbar {
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 92, 58, 0.08);
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    box-shadow: 0 4px 20px rgba(26, 92, 58, 0.08);
}

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

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

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

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

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

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

/* ─── Service Cards ─── */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(45, 125, 85, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 92, 58, 0.1);
}

/* ─── Mobile Nav ─── */
.mobile-link {
    display: block;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2d7d55;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Utility ─── */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.75rem;
    }
}
