/* Custom styles for Hunter Auto Rentals */

:root {
    --color-charcoal-900: #1a1a1a;
    --color-charcoal-800: #2d2d2d;
    --color-coral-500: #ff6b4f;
    --color-coral-400: #ff7e67;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Hero gradient overlay fix */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.3) 0%, transparent 40%, transparent 60%, rgba(26, 26, 26, 0.5) 100%);
    z-index: 1;
}

#hero > *:not(.absolute) {
    position: relative;
    z-index: 2;
}

/* Smooth focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: var(--color-coral-500);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-coral-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-400);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Counter animation */
.counter-value {
    display: inline-block;
    transition: none;
}
