/* === Base === */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(26, 77, 46, 0.15);
    color: #1a4d2e;
}

/* === Hero Gradient === */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0a1f13 0%,
        #11331f 20%,
        #1a4d2e 40%,
        #2d6b3f 60%,
        #3a8a4e 75%,
        #1a4d2e 90%,
        #0a1f13 100%
    );
}

/* === Hero Subtle Pattern === */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.02) 0%, transparent 45%);
}

/* === CTA Gradient === */
.cta-gradient {
    background: linear-gradient(
        135deg,
        #11331f 0%,
        #1a4d2e 50%,
        #0a1f13 100%
    );
}

/* === Scroll Animation === */
@keyframes scrollDown {
    0% {
        top: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 150%;
        opacity: 0;
    }
}

.scroll-line {
    animation: scrollDown 1.8s ease-in-out infinite;
}

/* === Navbar === */
#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.08);
}

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

#navbar.scrolled .nav-link:hover {
    color: #3a6238;
}

/* === Hero Buttons === */
.hero-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* === CTA Buttons === */
.cta-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.cta-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* === Mobile Menu === */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal-up {
        transform: translateY(30px);
    }

    .reveal-left {
        transform: translateX(-30px);
    }

    .reveal-right {
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* === Focus Styles === */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

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

/* === Select Arrow === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b8f6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* === Mobile Menu Link Hover === */
.mobile-link {
    position: relative;
}

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

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

/* === Card hover subtle lift === */
.reveal-up > div:hover {
    transform: translateY(-2px);
}

/* === Print === */
@media print {
    #navbar,
    #mobile-menu,
    .hero-gradient,
    .cta-gradient {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
