/* Custom styles for Local Option */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1823;
}
::-webkit-scrollbar-thumb {
    background: #273e69;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34518c;
}

/* Selection color */
::selection {
    background: rgba(69, 169, 134, 0.3);
    color: #f0f3f9;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 14, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(39, 62, 105, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal base - always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal.delay-100 { transition-delay: 0.1s; }
    .scroll-reveal.delay-200 { transition-delay: 0.2s; }
    .scroll-reveal.delay-300 { transition-delay: 0.3s; }
}

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

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

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Mobile menu transitions */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #45a986;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Card hover lift */
.rounded-3xl {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.rounded-3xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #45a986;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@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;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-float {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rounded-3xl {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    nav, #specials, .scroll-reveal {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
