/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

/* Navigation */
.nav-fixed {
    transition: box-shadow 0.3s ease;
}

.nav-scrolled {
    box-shadow: 0 1px 20px rgba(31, 92, 31, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Hamburger */
#menuBtn.open #line1 {
    transform: translateY(8px) rotate(45deg);
}

#menuBtn.open #line2 {
    opacity: 0;
}

#menuBtn.open #line3 {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Buttons */
.btn-primary {
    background: #1f5c1f;
    color: #faf9f6;
    border-radius: 9999px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: #184718;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(31, 92, 31, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1f5c1f;
    border: 2px solid #b5d4b5;
    border-radius: 9999px;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: #f0f5f0;
    border-color: #2d7a2d;
    transform: translateY(-1px);
}

/* Section Labels & Titles */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #52a352;
    background: #d8e8d8;
    padding: 0.4em 1em;
    border-radius: 9999px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0a210a;
}

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Floating Cards */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

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

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 33, 10, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Input Fields */
.input-field {
    background: #faf9f6;
    border: 1.5px solid #d8e8d8;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #0a210a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #b5d4b5;
}

.input-field:focus {
    border-color: #2d7a2d;
    box-shadow: 0 0 0 3px rgba(45, 122, 45, 0.1);
    background: #ffffff;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Responsive tweaks */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
