/* Custom styles for Urgent Rent-a-car */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Selection color */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

/* Navbar transition */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobileMenu.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobileMenu.open #bar2 {
    opacity: 0;
}
#mobileMenu.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Card hover lift */
.group {
    will-change: transform;
}
.group:hover {
    transform: translateY(-2px);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #EAE5D4 0%, #F3F0E4 100%);
}

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

/* Form styles */
input, textarea {
    background: #F9F7F0;
    border: 1.5px solid #EAE5D4;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: #064E3B;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
input::placeholder, textarea::placeholder {
    color: #064E3B40;
}

/* Contact form success message */
.form-success {
    display: none;
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-top: 16px;
}
.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

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