/* Custom styles for G Tax & Driving School */

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

/* Prevent content flash before JS loads for scroll reveals */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(164, 13, 53, 0.08);
}

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

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

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

::-webkit-scrollbar-track {
    background: #f8fafc;
}

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6c1233;
}

/* Subtle animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Form styles */
input, textarea, select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #a40d35;
    box-shadow: 0 0 0 3px rgba(164, 13, 53, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.success-message {
    display: none;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

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

/* Map container responsive */
iframe {
    border-radius: 0.75rem;
}
