/* Custom styles for EZ Pass Tobacco and Vape Drive Thru */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #ffffff;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1c3057;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* Button hover glow effect */
button:focus, a:focus {
    outline: 2px solid rgba(212, 168, 83, 0.5);
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #13223d 0%, #1c3057 100%);
    min-height: 200px;
}

/* Card hover lift effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gold gradient text (if needed) */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a853 0%, #f3d69a 50%, #d4a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 168, 83, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(28, 48, 87, 0.3) 0%, transparent 50%);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Pulse animation for status indicators */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading state for form button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Map container styling */
iframe {
    border-radius: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .rounded-5xl {
        border-radius: 2rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-white\\/60,
    .text-white\\/50 {
        color: black !important;
    }
    
    .text-gold-400 {
        color: #333 !important;
    }
}
