/* ============================================
   Victor's Auto Sales — Custom Styles
   Classic & Elegant | Charcoal + Coral
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #E07A5F;
    color: #1C1C1E;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #E07A5F;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 28, 30, 0.85) 0%,
        rgba(28, 28, 30, 0.6) 50%,
        rgba(28, 28, 30, 0.4) 100%
    );
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden.visible {
        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; }
}

/* ============================================
   Typography refinements
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 500;
}

/* ============================================
   Button hover effects
   ============================================ */
a.bg-coral-500,
button.bg-coral-500 {
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

a.bg-coral-500:hover,
button.bg-coral-500:hover {
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
    transform: translateY(-1px);
}

/* ============================================
   Image hover effects
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Form focus states
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #E07A5F !important;
}

/* ============================================
   Decorative elements
   ============================================ */
.deco-line {
    width: 0;
    transition: width 1s ease;
}

.deco-line.visible {
    width: 80px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #contact-form,
    .reveal-hidden {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
