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

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

body {
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 31, 15, 0.08);
}

.nav-text-color {
    color: #faf8f4;
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-text-color {
    color: #2c2820;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    margin-top: 2px;
}

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

/* ===== HERO ANIMATIONS ===== */
.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== TRUST BAR ===== */
.trust-item {
    opacity: 0;
    transform: translateY(15px);
}

/* ===== SECTION LABELS ===== */
.section-label {
    opacity: 0;
    transform: translateY(10px);
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
}

.section-text {
    opacity: 0;
    transform: translateY(15px);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== GALLERY ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.97);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    opacity: 0;
    transform: translateY(25px);
}

/* ===== REVEAL ANIMATIONS ===== */
.revealed .section-label,
.revealed .section-title,
.revealed .section-text {
    animation: fadeUp 0.6s ease forwards;
}

.revealed .section-label { animation-delay: 0.05s; }
.revealed .section-title { animation-delay: 0.15s; }
.revealed .section-text { animation-delay: 0.25s; }

.revealed .service-card {
    animation: fadeUp 0.6s ease forwards;
}

.revealed .service-card:nth-child(1) { animation-delay: 0.1s; }
.revealed .service-card:nth-child(2) { animation-delay: 0.2s; }
.revealed .service-card:nth-child(3) { animation-delay: 0.3s; }
.revealed .service-card:nth-child(4) { animation-delay: 0.4s; }
.revealed .service-card:nth-child(5) { animation-delay: 0.5s; }
.revealed .service-card:nth-child(6) { animation-delay: 0.6s; }

.revealed .gallery-item {
    animation: scaleIn 0.6s ease forwards;
}

.revealed .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.revealed .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.revealed .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.revealed .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.revealed .gallery-item:nth-child(5) { animation-delay: 0.5s; }

.revealed .testimonial-card {
    animation: fadeUp 0.6s ease forwards;
}

.revealed .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.revealed .testimonial-card:nth-child(2) { animation-delay: 0.25s; }
.revealed .testimonial-card:nth-child(3) { animation-delay: 0.4s; }

.revealed .trust-item {
    animation: fadeUp 0.5s ease forwards;
}

.revealed .trust-item:nth-child(1) { animation-delay: 0.05s; }
.revealed .trust-item:nth-child(2) { animation-delay: 0.15s; }
.revealed .trust-item:nth-child(3) { animation-delay: 0.25s; }
.revealed .trust-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== MOBILE NAV LINKS ===== */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(15px);
}

#mobile-menu.open .mobile-nav-link {
    animation: fadeUp 0.4s ease forwards;
}

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
    /* Animations handled via JS reveal classes */
}

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

/* ===== FORM FOCUS STYLES ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: #1e4a28;
    color: #faf8f4;
}
</style>
