/* ===== Base & Utilities ===== */
:root {
    --forest-50: #f0f7f0;
    --forest-500: #166534;
    --forest-600: #14532d;
    --forest-700: #134e2a;
    --cream-50: #fafaf5;
}

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

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

body {
    overflow-x: hidden;
}

/* ===== Section Padding ===== */
.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 100px 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 120px 0;
    }
}

/* ===== Navbar ===== */
.nav-fixed {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-500);
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* ===== Buttons ===== */
.btn-primary {
    background: var(--forest-500);
    color: white;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--forest-600);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--forest-700);
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-cta {
    background: white;
    color: var(--forest-700);
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Badges ===== */
.badge-green {
    background: rgba(22, 101, 52, 0.08);
    color: var(--forest-600);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(22, 101, 52, 0.12);
}

/* ===== Input Fields ===== */
.input-field {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
}

.input-field:focus {
    border-color: #8ec88e;
    box-shadow: 0 0 0 4px rgba(142, 200, 142, 0.15);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--cream-50) 0%, #e8f5e8 50%, var(--cream-50) 100%);
    position: relative;
}

/* Floating blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #b8dfb8;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #d9ecd9;
    bottom: 10%;
    left: -50px;
    animation-delay: -3s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #8ec88e;
    top: 40%;
    right: 30%;
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating stat cards */
.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

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

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

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

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ===== Focus visible ===== */
*:focus-visible {
    outline: 2px solid var(--forest-500);
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(22, 101, 52, 0.15);
    color: var(--forest-800);
}
