/* Custom styles for One Shot Archery */

:root {
    --forest-600: #3D5A3E;
    --forest-500: #4d7f4d;
    --cream-50: #FAFAF6;
    --cream-100: #F5F0E8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-100);
}
::-webkit-scrollbar-thumb {
    background: #b9d0b9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}

/* Selection color */
::selection {
    background: #dce8dc;
    color: #1f2d22;
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.delay-100 { transition-delay: 0.1s; }
    .reveal.delay-200 { transition-delay: 0.2s; }
    .reveal.delay-300 { transition-delay: 0.3s; }
    .reveal.delay-400 { transition-delay: 0.4s; }
}

/* Navbar styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6B8F6B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 45, 34, 0.06);
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(107, 143, 107, 0.15);
}

/* Image hover effect */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* Gallery images */
.grid .rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

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

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Arrow animation for hero */
@keyframes arrow-draw {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    51% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

.hero-underline {
    animation: arrow-draw 2s ease-out forwards;
}

/* Pulse animation for status dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.animate-pulse {
    animation: soft-pulse 2.5s ease-in-out infinite;
}

/* Gradient text effect for special highlights */
.gradient-text {
    background: linear-gradient(135deg, #3D5A3E 0%, #6B8F6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Map container hover */
.rounded-3xl.overflow-hidden {
    transition: box-shadow 0.4s ease;
}

.rounded-3xl.overflow-hidden:hover {
    box-shadow: 0 20px 60px rgba(31, 45, 34, 0.12);
}

/* Mobile menu animation */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3D5A3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
