*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064e3b;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar ── */
.nav-fixed {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #064e3b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-btn.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-btn.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    opacity: 0.5;
}

/* ── Menu Items ── */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: transform 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover h4 {
    color: #064e3b;
    transition: color 0.2s ease;
}

/* ── Contact Form ── */
.contact-form {
    border: 1px solid rgba(6, 78, 59, 0.08);
}

.contact-input {
    font-size: 0.9375rem;
}

.contact-input::placeholder {
    color: #9a9a9a;
}

/* ── Utility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}
