/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== HEADER ========== */
#header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#header.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #166534;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ========== BUTTONS ========== */
.btn-primary {
    background: #166534;
    color: white;
    border-radius: 1rem;
    padding: 0.75rem 1.75rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover {
    background: #14532d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.3);
}
.btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 1rem;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

/* ========== HERO ========== */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { filter: saturate(1.1); }
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(11, 41, 23, 0.82) 0%,
        rgba(22, 101, 52, 0.72) 50%,
        rgba(53, 131, 48, 0.62) 100%
    );
}
.hero-blob { opacity: 0.15; }
.hero-blob-1 { background: radial-gradient(circle, #87c07e, transparent 70%); }
.hero-blob-2 { background: radial-gradient(circle, #b7dbb3, transparent 70%); }

/* Hero animations */
.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}
.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}
.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}
.hero-stats {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}
.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.4s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scrollDot {
    0%   { top: -12px; }
    100% { top: 100%; }
}
.hero-scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ========== SECTION LABEL ========== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #166534;
    background: linear-gradient(135deg, #d9edda, #b7dbb3);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* ========== AREA CARDS ========== */
.area-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(22, 101, 52, 0.2);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========== INPUT FIELDS ========== */
.input-field {
    border: 1.5px solid #d9edda;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #114025;
    background: #fdfcfa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    width: 100%;
}
.input-field::placeholder { color: #87c07e; }
.input-field:focus {
    border-color: #166534;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
    background: white;
}
select.input-field {
    background-color: #fdfcfa;
    cursor: pointer;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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; }

/* ========== MOBILE MENU ========== */
.mobile-link {
    text-decoration: none;
    display: block;
}

/* ========== DECORATIVE PATTERNS ========== */
.service-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.3) 1px, transparent 0);
    background-size: 32px 32px;
}
.cta-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.2) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-title { font-size: 2.75rem; }
    .hero-stats { gap: 0.5rem; }
    .about-float-card { position: relative; bottom: auto; right: auto; margin-top: 1rem; }
    .about-img-accent { display: none; }
}
