/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 58, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled .font-body {
    color: #1a5c3a !important;
}

.nav-scrolled a:not(.bg-forest-700):not(.bg-gold-400) {
    color: #1a5c3a !important;
}

/* ===== HERO ===== */
.hero-stat-card {
    animation: float 6s ease-in-out infinite;
}

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

.hero-stat-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    will-change: transform;
}

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

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

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ===== MOBILE LINKS ===== */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #1a5c3a;
    padding-left: 8px;
}

/* ===== GALLERY ===== */
.grid img {
    aspect-ratio: 1 / 1;
}

.grid .col-span-2 {
    grid-column: span 2;
}

.grid .row-span-2 {
    grid-row: span 2;
}

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

/* ===== BUTTON HOVER EFFECTS ===== */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    display: inline-block;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== SELECTION ===== */
::selection {
    background: #1a5c3a;
    color: #faf9f6;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        border-radius: 16px;
    }

    .service-card .h-52 {
        height: 200px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }
}
