/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

::selection {
    background-color: rgba(22, 101, 52, 0.2);
    color: #052e16;
}

/* ========== NAVIGATION ========== */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
    transition: all 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(20, 83, 45, 0.08);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* ========== SECTION HEADER ========== */
.section-header {
    max-width: 640px;
}

.section-header:not(:last-child) {
    margin-bottom: 0;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 0;
    border: 1px solid rgba(20, 83, 45, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(20, 83, 45, 0.1);
    border-color: rgba(20, 83, 45, 0.12);
}

/* ========== GALLERY ========== */
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item.col-span-2 {
    aspect-ratio: auto;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

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

/* ========== MOBILE MENU ========== */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 83, 45, 0.06);
}

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9f0;
}

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(22, 101, 52, 0.2);
    color: #052e16;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title span {
        font-size: 2.5rem !important;
    }
    
    .hero-stats {
        gap: 1.5rem !important;
    }
    
    .hero-stats > div > div {
        font-size: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem !important;
    }
    
    .hero-title span {
        font-size: 4rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem !important;
    }
    
    .hero-title span {
        font-size: 5rem !important;
    }
}
