/* Custom styles for El Camino Upholstery */

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #FFF8F0;
    color: #500724;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #9d174d;
    color: #fff;
}

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(80, 7, 36, 0.1);
}

/* Service card accent borders */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9d174d, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2rem 2rem 0 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(80, 7, 36, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Process step hover */
.process-step:hover .step-number {
    transform: scale(1.1);
    background-color: #f59e0b;
}

/* Button press effect */
.btn-shine:active {
    transform: scale(0.98);
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.1);
}

/* Mobile menu animation */
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Hamburger animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .btn-shine { display: none; }
    body { background: white; }
    section { page-break-inside: avoid; }
}

/* Very small screens */
@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Large screens */
@media (min-width: 1920px) {
    .max-w-7xl { max-width: 80rem; }
}
