/* Forrest Creations — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ef;
}
::-webkit-scrollbar-thumb {
    background: #9dc18a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74a35c;
}

/* Reveal animations — progressive enhancement, hidden by default, shown via JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Ensure revealed elements are visible without JS */
@supports not selector(.reveal.revealed) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #4d4438 !important;
}

.nav-scrolled .nav-link:hover {
    color: #3d6a2e !important;
}

.nav-scrolled .brand-text {
    color: #284320 !important;
}

/* Hero text selection */
::selection {
    background: #c6dbb8;
    color: #21371b;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #52853d;
    outline-offset: 2px;
}

/* Image hover containers */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
