/* 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;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #8fb88f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #619d61;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #2d5f2d;
    transition: height 0.4s ease;
}
.service-card:hover::before {
    height: 100%;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 95, 45, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(45, 95, 45, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Back to top */
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(20, 41, 20, 0.08);
}

/* Geometric floating shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(10px) rotate(12deg); }
}
@keyframes float-circle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.hero-shape-1 { animation: float 6s ease-in-out infinite; }
.hero-shape-2 { animation: float-reverse 5s ease-in-out infinite; }
.hero-shape-3 { animation: float-circle 7s ease-in-out infinite; }

/* Contact form styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #dce8dc;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #142914;
    background: #fefdf8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #619d61;
    box-shadow: 0 0 0 3px rgba(97, 157, 97, 0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8fb88f;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button[type="submit"] {
    background: #2d5f2d;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.contact-form button[type="submit"]:hover {
    background: #244d24;
    box-shadow: 0 8px 25px rgba(45, 95, 45, 0.3);
    transform: translateY(-2px);
}
.contact-success {
    display: none;
    background: #dce8dc;
    border: 2px solid #8fb88f;
    border-radius: 12px;
    padding: 16px 20px;
    color: #2d5f2d;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}
.contact-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
