/* Custom styles for Southern Auto Glass */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f9f5f7;
}
::-webkit-scrollbar-thumb {
    background: #d4adba;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a35a72;
}

/* Selection */
::selection {
    background: #d4adba;
    color: #271118;
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service item hover */
.service-item {
    transition: background-color 0.3s ease;
}
.service-item:hover {
    background: linear-gradient(to right, rgba(212, 173, 186, 0.05), transparent);
}

/* Mobile menu animations */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Mobile links fade in */
#mobile-menu.active .mobile-link {
    animation: fadeIn 0.4s ease forwards;
}
#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.25s; }

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

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar solid background on scroll */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(111, 54, 70, 0.08);
}

/* Form 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='%23d4adba' 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 0 center;
    padding-right: 2rem;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}
img[data-src] {
    opacity: 0;
}

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