/* Custom styles for JAWS Towing and Recovery */

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

/* Scroll reveal animations - progressive enhancement, content visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is always visible */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 10, 8, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(200, 168, 122, 0.08) !important;
}

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

::-webkit-scrollbar-track {
    background: #1a1412;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5a4235;
}

/* Selection color */
::selection {
    background: rgba(192, 107, 66, 0.3);
    color: #e8d5c0;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1412 inset !important;
    -webkit-text-fill-color: #e8d5c0 !important;
}

/* Subtle glow on terracotta elements */
.glow-terracotta {
    box-shadow: 0 0 40px rgba(192, 107, 66, 0.15);
}

/* Floating animation for hero cards */
@media (prefers-reduced-motion: no-preference) {
    .float-1 {
        animation: float1 6s ease-in-out infinite;
    }
    .float-2 {
        animation: float2 7s ease-in-out infinite;
    }
    .float-3 {
        animation: float3 5s ease-in-out infinite;
    }
    .float-4 {
        animation: float4 8s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Map dark theme override */
iframe[title*="map"] {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

iframe[title*="map"]:hover {
    opacity: 1;
}
