/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(212, 175, 85, 0.3);
    color: #052e16;
}

/* ===== Hero Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal="left"] {
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    transform: translateX(24px);
}

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

/* ===== Staggered Delays ===== */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== Nav Active State ===== */
.nav-link.active {
    color: #14532d;
}

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

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

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

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .service-card,
    .reveal {
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta {
        animation: none;
        opacity: 1;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4af55;
    outline-offset: 2px;
}

/* ===== Mobile Menu Transitions ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Service Card Hover ===== */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

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

/* ===== Image Hover ===== */
.group img {
    transition: transform 0.7s ease;
}

/* ===== Button Hover ===== */
button,
a {
    transition: all 0.3s ease;
}
