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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

a.no-underline {
    text-decoration: none;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(26, 77, 46, 0.08);
}

.nav-brand {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-brand {
    color: #1a4d2e;
}

#navbar.scrolled .nav-brand {
    color: #1a4d2e;
}

/* ── Hero Cards ── */
.hero-card {
    animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: -2s;
}

.hero-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* ── Mobile Menu ── */
.mobile-link {
    text-decoration: none;
}

/* ── Scroll Reveal ── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #72b07e;
}

/* ── Selection ── */
::selection {
    background: #d3e6d8;
    color: #1a4d2e;
}
