/* ===========================
   1. CUSTOM PROPERTIES
   =========================== */
:root {
    /* Primary Greens (derived from logo) */
    --green-900: #1a3a08;
    --green-800: #28750f;
    --green-700: #2d6a12;
    --green-600: #40770e;
    --green-500: #4e8c1a;
    --green-400: #6bab2e;
    --green-300: #8dc63f;
    --green-200: #b8db6a;
    --green-100: #d4eda0;
    --green-50:  #e0ffab;
    --green-25:  #f2fbe4;

    /* Neutrals (subtle green undertone) */
    --white:     #ffffff;
    --gray-50:   #f8faf5;
    --gray-100:  #f0f2ed;
    --gray-200:  #dde0d8;
    --gray-300:  #b8bcb0;
    --gray-500:  #6b7060;
    --gray-700:  #3a3f34;
    --gray-900:  #1a1e14;

    /* Functional */
    --error:     #d32f2f;
    --success:   #2e7d32;
    --focus-ring: rgba(64, 119, 14, 0.4);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #28750f 0%, #40770e 40%, #8dc63f 70%, #e0ffab 100%);
    --gradient-subtle: linear-gradient(180deg, #f2fbe4 0%, #ffffff 100%);
    --gradient-dark: linear-gradient(135deg, #1a3a08 0%, #28750f 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Fluid type scale */
    --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm:   clamp(0.8125rem, 0.77rem + 0.2vw, 0.9375rem);
    --text-base: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
    --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
    --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --text-3xl:  clamp(1.875rem, 1.4rem + 2.4vw, 3rem);
    --text-4xl:  clamp(2.25rem, 1.5rem + 3.75vw, 4rem);
    --text-5xl:  clamp(2.75rem, 1.8rem + 4.75vw, 5rem);

    /* Spacing */
    --header-height: 80px;
}

/* ===========================
   2. RESET & BASE
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* ===========================
   3. TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
}

h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; color: var(--green-800); }
h3 { font-size: var(--text-xl); font-weight: 600; }

p {
    font-size: var(--text-base);
    line-height: 1.7;
}

/* ===========================
   4. UTILITIES
   =========================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green-700);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* ===========================
   5. LAYOUT
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    max-width: 600px;
    margin-inline: auto;
}

.section-header p {
    color: var(--gray-500);
    margin-top: 0.75rem;
    font-size: var(--text-lg);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===========================
   6. COMPONENTS
   =========================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 106, 18, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-700);
}

.btn-outline:hover {
    background: var(--green-700);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Focus styles */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green-600);
    outline-offset: 2px;
}

/* ===========================
   7. HEADER & NAV
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    height: var(--header-height);
    background-color: transparent;
}

.header-scrolled {
    background-color: var(--white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-scrolled .nav-links a {
    color: var(--gray-700);
}

.header-scrolled .nav-links a:hover,
.header-scrolled .nav-links a.active {
    color: var(--green-700);
}

.header-scrolled .nav-links .nav-cta {
    color: var(--white);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: filter 0.3s ease;
    filter: brightness(2) saturate(0.7);
}

.header-scrolled .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-300);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--green-700) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--green-600) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.header-scrolled .hamburger,
.header-scrolled .hamburger::before,
.header-scrolled .hamburger::after {
    background: var(--gray-700);
}

/* ===========================
   8. HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

/* Dark green overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26, 58, 8, 0.88) 0%, rgba(40, 117, 15, 0.78) 50%, rgba(26, 58, 8, 0.92) 100%);
    z-index: 1;
}

/* Hide decorative orbs (not needed with photo bg) */
.hero-orb {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* Staggered hero entrance */
.hero-stagger {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger:nth-child(3) { animation-delay: 0.5s; }
.hero-stagger:nth-child(4) { animation-delay: 0.7s; }

.hero-logo {
    width: 280px;
    max-width: 80%;
    margin: 0 auto 2rem;
    filter: brightness(2) saturate(0.8) drop-shadow(0 2px 16px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: var(--text-5xl);
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-lg);
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

/* Hero buttons on dark bg */
.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   9. SERVICES SECTION
   =========================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid transparent;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--green-400);
    border-left-color: var(--green-500);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--green-25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    margin-bottom: 1.5rem;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--green-500);
    color: var(--white);
    transform: scale(1.08);
}

.service-card h3 {
    color: var(--green-800);
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: var(--text-sm);
    color: var(--gray-700);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--green-400);
    border-radius: 50%;
}

/* ===========================
   9b. STATS SECTION
   =========================== */
.stats {
    background: var(--green-900);
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 171, 46, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(141, 198, 63, 0.1) 0%, transparent 40%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 1rem;
}

.stat-value {
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--green-300);
    line-height: 1;
}

.stat-prefix,
.stat-suffix {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--green-400);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Stagger stat items */
.stats-grid .stat-item:nth-child(2) .fade-in,
.stats-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ===========================
   10. ABOUT SECTION
   =========================== */
.about {
    background: var(--green-25);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-lead {
    font-size: var(--text-lg);
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-text p + p {
    margin-top: 1rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    padding-left: 1.5rem;
    border-left: 3px solid var(--green-400);
}

.value-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--green-300);
    opacity: 0.6;
    display: block;
    margin-bottom: 0.25rem;
}

.value-item h3 {
    color: var(--green-800);
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
}

.value-item > p {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* ===========================
   11. CONTACT SECTION
   =========================== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px var(--focus-ring);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-status {
    font-size: var(--text-sm);
    font-weight: 500;
    margin-top: 0.5rem;
    min-height: 1.5em;
}

.form-success {
    color: var(--success);
}

.form-error {
    color: var(--error);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block h3 {
    font-size: var(--text-lg);
    color: var(--green-800);
    margin-bottom: 0.75rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-base);
}

.contact-details li svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.contact-details a:hover {
    color: var(--green-700);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-base);
}

.location-info svg {
    color: var(--green-600);
    flex-shrink: 0;
}

/* ===========================
   12. FOOTER
   =========================== */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(2) saturate(0.7);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--green-200);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    width: 100%;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   13. ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid .fade-in:nth-child(2) {
    transition-delay: 0.15s;
}

.about-values .value-item:nth-child(2) {
    transition-delay: 0.1s;
}

.about-values .value-item:nth-child(3) {
    transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .hero-stagger {
        opacity: 1;
        transform: none;
    }
}

/* ===========================
   14. MEDIA QUERIES
   =========================== */

/* Mobile nav */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        box-shadow: none;
        visibility: hidden;
    }

    .nav-links.nav-open {
        max-height: 300px;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        visibility: visible;
    }

    .nav-links a {
        color: var(--gray-700);
        padding: 0.75rem 0;
        display: block;
        font-size: var(--text-base);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-logo {
        width: 200px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
        align-items: start;
    }

    .contact-grid {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
        align-items: start;
    }

    .service-card {
        padding: 2.5rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        flex-wrap: wrap;
    }

    .footer-brand {
        flex: 1;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-logo {
        width: 320px;
    }

    .hero h1 {
        letter-spacing: -0.03em;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: var(--text-xl);
        max-width: 640px;
    }
}

/* Hamburger animation */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Scrolled state hamburger on mobile */
@media (max-width: 767px) {
    .header-scrolled .nav-toggle .hamburger,
    .header-scrolled .nav-toggle .hamburger::before,
    .header-scrolled .nav-toggle .hamburger::after {
        background: var(--gray-700);
    }

    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
}
