/* ============================================
   AFFORDABLE AUTOBODY — Custom Styles
   Classic & Elegant | Charcoal + Coral
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-charcoal: #1a1a1a;
    --color-charcoal-light: #2d2d2d;
    --color-cream: #f5f0e8;
    --color-cream-dark: #e8e0d0;
    --color-coral: #e07a5f;
    --color-coral-dark: #c4624a;
    --color-coral-light: #f0a08a;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.serif-display {
    font-family: var(--font-serif);
}

.sans-serif {
    font-family: var(--font-sans);
}

/* Utility Classes */
.bg-charcoal {
    background-color: var(--color-charcoal);
}

.text-cream {
    color: var(--color-cream);
}

.text-coral {
    color: var(--color-coral);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.025em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-coral {
    background-color: var(--color-coral);
    border-color: var(--color-coral);
    color: #ffffff;
}

.btn-coral:hover {
    background-color: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(245, 240, 232, 0.4);
    color: var(--color-cream);
}

.btn-outline:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Mobile Menu */
.mobile-menu-btn,
.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-link {
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    position: relative;
}

/* Floating Stat Cards */
.stat-card {
    transition: var(--transition-smooth);
}

/* Service Cards */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    height: 100%;
    transition: var(--transition-smooth);
}

/* Testimonial Cards */
.testimonial-card {
    transition: var(--transition-smooth);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

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

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

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 767px) {
    .serif-display {
        font-size: 2rem;
    }
    
    .sans-serif {
        font-size: 0.9375rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .serif-display {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .serif-display {
        font-size: 4rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
