/* Custom styles for National Auto Star */

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

/* Smooth focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(194, 112, 78, 0.2);
    color: #1A1614;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(194, 112, 78, 0.1);
}

.nav-scrolled #nav-logo-text {
    color: #1A1614 !important;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #1A1614 !important;
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover glow */
.card-float:hover {
    box-shadow: 0 20px 60px -15px rgba(194, 112, 78, 0.15), 0 8px 20px -10px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile menu animation */
.mobile-menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
}
.mobile-menu-open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, .card-float {
        break-inside: avoid;
    }
    body {
        color: #000;
        background: #fff;
    }
}
