/* ============================================
   Jimmy's Automotive — Editorial Style Stylesheet
   Plum + Amber Palette
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --plum-50:  #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #581c87;
    --plum-900: #3b0764;
    --plum-950: #1e0538;

    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    --neutral-50:  #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum-950);
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
    color: var(--neutral-600);
    line-height: 1.7;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: var(--space-md);
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--amber-500);
    color: var(--neutral-900);
    border: 2px solid var(--amber-500);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--amber-600);
    border-color: var(--amber-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-full {
    width: 100%;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--plum-900);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--plum-800);
    color: var(--amber-400);
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
    font-family: var(--font-serif);
}

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

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.main-nav a:hover {
    color: var(--plum-700);
}

.nav-cta {
    background: var(--plum-800);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta:hover {
    background: var(--plum-700);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: var(--neutral-100);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(30, 5, 56, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #fff;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--plum-900);
    border-bottom: 1px solid var(--neutral-200);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--amber-600);
}

.mobile-nav-cta {
    margin-top: var(--space-lg);
}

.mobile-nav-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-800);
    color: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 5, 56, 0.92) 0%,
        rgba(88, 28, 135, 0.85) 50%,
        rgba(30, 5, 56, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), 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); }
}

/* ---------- Services ---------- */
.services {
    padding: var(--space-5xl) 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-4xl);
}

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

.service-card {
    padding: var(--space-2xl);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: #fff;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--plum-700);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--plum-900);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: var(--space-5xl) 0;
    background: var(--plum-50);
}

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

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

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

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

.about-content > p {
    margin-bottom: var(--space-md);
    color: var(--neutral-600);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--neutral-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--plum-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    letter-spacing: 0.05em;
}

/* ---------- Why Us ---------- */
.why-us {
    padding: var(--space-5xl) 0;
    background: var(--plum-900);
}

.why-us .section-eyebrow {
    color: var(--amber-400);
}

.why-us .section-title {
    color: #fff;
}

.why-us .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-4xl);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: background 0.3s ease;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--amber-500);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.why-item h3 {
    color: #fff;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.why-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* ---------- Testimonial ---------- */
.testimonial-strip {
    padding: var(--space-5xl) 0;
    background: var(--amber-50);
    border-top: 1px solid var(--amber-100);
    border-bottom: 1px solid var(--amber-100);
}

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

.quote-mark {
    width: 48px;
    height: 48px;
    color: var(--amber-400);
    margin: 0 auto var(--space-lg);
    opacity: 0.6;
}

.testimonial-content blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--plum-900);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.testimonial-source {
    font-size: 0.875rem;
    color: var(--neutral-500);
    font-weight: 500;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-5xl) 0;
    background: #fff;
}

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

.contact-info .section-title {
    margin-bottom: var(--space-md);
}

.contact-intro {
    margin-bottom: var(--space-2xl);
    color: var(--neutral-500);
}

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

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

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-50);
    border-radius: var(--radius-md);
    color: var(--plum-700);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin-bottom: var(--space-xs);
}

.contact-item a {
    color: var(--plum-800);
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--amber-600);
}

/* Form */
.contact-form-wrap {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-900);
    margin-bottom: var(--space-xs);
}

.form-note {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background: #fff;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--plum-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.form-success span {
    font-size: 0.9375rem;
    color: #166534;
    font-weight: 500;
}

/* ---------- Map Strip ---------- */
.map-strip {
    height: 360px;
    background: var(--neutral-200);
}

.map-strip iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(30%);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--plum-950);
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-links nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber-400);
}

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

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xl) 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

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

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

@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);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline br {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

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

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .contact-form-wrap {
        padding: var(--space-lg);
    }
}
