/* Custom Styles for Manno's Automotive Center */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a1f0a;
    color: #faf9f6;
    overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navigation */
.nav-scrolled {
    background-color: rgba(10, 31, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

.nav-scrolled .menu-line {
    background-color: #d4a853 !important;
}

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

/* Mobile Menu Button Animation */
.menu-btn-active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

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

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(212, 168, 83, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Service Card Hover Glow */
.group:hover .group-hover\:bg-gold-500\/20 {
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.1);
}

/* Image Hover Zoom */
img {
    transition: transform 0.6s ease;
}

/* Button Focus */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
