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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf8;
}
::-webkit-scrollbar-thumb {
    background: #b5d3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D5A3D;
}

/* ===== NAVBAR ===== */
.navbar-scrolled #navbar {
    background: rgba(253, 252, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #2D5A3D !important;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-animate.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.grid .scroll-animate:nth-child(1) { transition-delay: 0.05s; }
.grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.grid .scroll-animate:nth-child(3) { transition-delay: 0.15s; }
.grid .scroll-animate:nth-child(4) { transition-delay: 0.2s; }
.grid .scroll-animate:nth-child(5) { transition-delay: 0.25s; }
.grid .scroll-animate:nth-child(6) { transition-delay: 0.3s; }

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #2D5A3D;
    transition: width 0.2s ease;
}
.mobile-nav-link:hover::before {
    width: 16px;
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== CARD SHINE EFFECT ===== */
.group:hover .rounded-2xl,
.group:hover .rounded-full {
    transition: background-color 0.3s ease !important;
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
}

/* ===== BACK TO TOP ===== */
#back-to-top.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== TESTIMONIAL CARDS ===== */
.scroll-animate.bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== IMAGE LAZY LOAD PLACEHOLDER ===== */
img {
    background: linear-gradient(135deg, #d9e8dd 0%, #f0f5f1 100%);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
    img:hover {
        transform: none !important;
    }
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
