/* Custom styles for BriaStyles */

:root {
    --forest-700: #1a3c24;
    --forest-600: #2d6339;
    --forest-500: #3a7d4a;
    --offwhite: #faf9f6;
    --cream: #f5f3ef;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 36, 0.08);
}

/* Mobile menu animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: translateY(4px) rotate(45deg);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Service card hover */
.service-card {
    transition-property: border-color, box-shadow;
    transition-duration: 500ms;
}

.service-card:hover {
    border-color: rgba(26, 60, 36, 0.3);
    box-shadow: 0 20px 60px -20px rgba(26, 60, 36, 0.12);
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 500ms ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(26, 60, 36, 0.12);
}

/* Floating stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float-delayed 7s ease-in-out infinite; animation-delay: 1s; }
.floating-card-3 { animation: float 5.5s ease-in-out infinite; animation-delay: 2s; }
.floating-card-4 { animation: float-delayed 6.5s ease-in-out infinite; animation-delay: 0.5s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .gallery-item img {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--offwhite);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8bb892;
}

/* Selection color */
::selection {
    background: rgba(26, 60, 36, 0.15);
    color: #1a3c24;
}
