/* Custom styles for Beaver Therapy and Wellness */

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

/* Custom selection color */
::selection {
    background-color: #2d602f;
    color: #FAFAF8;
}

/* Reveal animations - progressive enhancement with reduced motion support */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Fallback for no-JS: ensure content is visible */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(45, 96, 47, 0.08);
}

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

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6a9d6b;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #427d44;
    outline-offset: 2px;
}

/* Gradient text effect for hero */
.gradient-text {
    background: linear-gradient(135deg, #e3ebe5 0%, #97bc98 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for sections */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 96, 47, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Thin decorative lines */
.decorative-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #2d602f, transparent);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ensure all images have smooth loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .reveal-up {
        display: block !important;
        opacity: 1 !important;
    }
    
    footer {
        background: #163017 !important;
        color: #FAFAF8 !important;
    }
}
