/* ============================================
   Affordable Auto Sales and Service
   Classic & Elegant — Midnight Blue + Mint
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-midnight: #0a1628;
    --color-midnight-light: #132240;
    --color-midnight-dark: #060f1d;
    --color-mint: #7fbfae;
    --color-mint-light: #a8d4c4;
    --color-mint-pale: #e8f4f0;
    --color-cream: #f7f5f2;
    --color-warm-white: #faf9f7;
    --color-text-dark: #1a1a1a;
    --color-text-body: #3d3d3d;
    --color-text-muted: #6b6b6b;
    --color-border: #e2e0db;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.16);
}

/* --- 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);
    color: var(--color-text-body);
    background-color: var(--color-warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-midnight);
    line-height: 1.2;
    font-weight: 700;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(127, 191, 174, 0.15);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-warm-white);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.logo-icon {
    color: var(--color-mint);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    color: rgba(250, 249, 247, 0.75);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-mint);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-warm-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-mint) !important;
    color: var(--color-midnight) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-mint-light) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-warm-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-midnight);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url('https://images.pexels.com/photos/8478259/pexels-photo-8478259.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    opacity: 0.35;
    filter: saturate(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 15, 29, 0.92) 0%,
        rgba(10, 22, 40, 0.85) 40%,
        rgba(19, 34, 64, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-warm-white);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title em {
    font-style: italic;
    color: var(--color-mint-light);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(250, 249, 247, 0.7);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-mint);
    color: var(--color-midnight);
    border-color: var(--color-mint);
}

.btn-primary:hover {
    background: var(--color-mint-light);
    border-color: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 191, 174, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-warm-white);
    border-color: rgba(250, 249, 247, 0.35);
}

.btn-secondary:hover {
    border-color: var(--color-warm-white);
    background: rgba(250, 249, 247, 0.08);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--color-warm-white);
    color: var(--color-midnight);
    border-color: var(--color-warm-white);
}

.btn-light:hover {
    background: var(--color-mint-pale);
    border-color: var(--color-mint-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-warm-white);
    border-color: rgba(250, 249, 247, 0.5);
}

.btn-outline-light:hover {
    background: rgba(250, 249, 247, 0.1);
    border-color: var(--color-warm-white);
    transform: translateY(-2px);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(250, 249, 247, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(127, 191, 174, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* --- Services --- */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-warm-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-warm-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-mint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-mint-pale);
    color: var(--color-midnight);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-serif);
}

.service-card p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* --- Why Us --- */
.why-us {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.why-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-content {
    padding: var(--space-lg) 0;
}

.why-intro {
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.85;
    margin-bottom: var(--space-xl);
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.why-feature {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-mint-pale);
    color: var(--color-midnight);
    margin-top: 2px;
}

.why-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.why-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-warm-white);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content .section-title {
    margin-bottom: var(--space-xl);
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-midnight);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: var(--space-3xl) 0;
    background: var(--color-midnight);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(127, 191, 174, 0.06);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(127, 191, 174, 0.04);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-warm-white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(250, 249, 247, 0.65);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-mint-pale);
    color: var(--color-midnight);
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-item a {
    color: var(--color-midnight);
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-item a:hover {
    color: var(--color-mint);
    border-color: var(--color-mint);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.contact-map iframe {
    display: block;
}

/* --- Footer --- */
.footer {
    background: var(--color-midnight-dark);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(250, 249, 247, 0.08);
}

.footer-brand p {
    color: rgba(250, 249, 247, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: var(--space-md);
    max-width: 280px;
}

.footer-logo {
    font-size: 1.05rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(250, 249, 247, 0.55);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-warm-white);
}

.footer-contact p {
    color: rgba(250, 249, 247, 0.55);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(250, 249, 247, 0.55);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--color-mint);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(250, 249, 247, 0.3);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

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

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

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        border-bottom: 1px solid rgba(127, 191, 174, 0.15);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .service-card {
        padding: var(--space-lg);
    }
}
