/* ===== Scroll Reveal Animations ===== */
/* Default state: always visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

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

/* ===== Selection Color ===== */
::selection {
    background: #166534;
    color: #fefdf8;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Button Hover Effects ===== */
a[href^="tel"],
button[type="submit"] {
    transition: all 0.2s ease;
}

/* ===== Image Loading ===== */
img {
    loading: lazy;
}

/* ===== Mobile Menu Transitions ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Counter Animation ===== */
.counter {
    display: inline-block;
}

/* ===== Geometric Decorations ===== */
.geo-shape-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(254, 253, 248, 0.05);
    border-radius: 24px;
    transform: rotate(45deg);
}

.geo-shape-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(22, 101, 52, 0.08);
    border-radius: 50%;
}

/* ===== Custom Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #166534, #52a852);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Card Tilt Effect (subtle) ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Print Styles ===== */
@media print {
    nav, #gallery, .reveal-up, .reveal-left, .reveal-right {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
