/* ========================================
   JAKE'S AUTO LLC — Editorial Style
   Palette: Plum (#5D3A5A) + Amber (#D4A017)
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --plum-900: #2D1B2E;
    --plum-800: #3D2540;
    --plum-700: #4E2F52;
    --plum-600: #5D3A5A;
    --plum-500: #7A4D76;
    --plum-400: #9B6B96;
    --plum-100: #F3E8F5;
    --plum-50:  #FBF6FD;
    
    --amber-600: #B8860B;
    --amber-500: #D4A017;
    --amber-400: #E8B828;
    --amber-300: #F0CC5C;
    --amber-100: #FDF6E3;
    
    --neutral-950: #0F0F14;
    --neutral-900: #1A1A24;
    --neutral-800: #2A2A3A;
    --neutral-700: #3A3A4E;
    --neutral-600: #5A5A72;
    --neutral-500: #7A7A92;
    --neutral-400: #9A9AB0;
    --neutral-300: #B8B8CC;
    --neutral-200: #D4D4E4;
    --neutral-100: #ECECF4;
    --neutral-50:  #F8F8FC;
    --white:       #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 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: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Section Label --- */
.section-label {
    display: inline-block;
    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: 16px;
}

.section-label--light {
    color: var(--amber-300);
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--neutral-900);
}

.section-title--light {
    color: var(--white);
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 64px;
}

.section-header--dark {
    background: var(--plum-800);
    padding: 80px 0 72px;
    margin-bottom: 0;
}

.section-header--dark .section-header {
    margin-bottom: 0;
    text-align: center;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 560px;
    line-height: 1.7;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(93, 58, 90, 0.08);
    border-bottom-color: var(--plum-100);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo {
    color: var(--plum-700);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--amber-500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--plum-900);
    font-family: var(--font-serif);
}

.nav-logo:hover .logo-mark {
    background: var(--amber-400);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.navbar.scrolled .nav-link {
    color: var(--neutral-600);
}

.navbar.scrolled .nav-link:hover {
    color: var(--plum-700);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--amber-500);
    color: var(--plum-900) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

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

.nav-cta:hover {
    background: var(--amber-400);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    color: var(--plum-900) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--white);
    transition: background 0.3s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-toggle {
    color: var(--plum-700);
}

.navbar.scrolled .nav-toggle:hover {
    background: var(--plum-100);
}

/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 27, 46, 0.92) 0%,
        rgba(93, 58, 90, 0.85) 50%,
        rgba(78, 47, 82, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 32px;
}

.hero-badge svg {
    color: var(--amber-400);
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 28px;
    max-width: 800px;
}

.text-accent {
    color: var(--amber-400);
}

.text-gradient {
    background: linear-gradient(135deg, var(--amber-300) 0%, var(--amber-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--amber-400);
    flex-shrink: 0;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--plum-900);
}

.btn-primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--amber-500);
    color: var(--plum-900);
}

.btn-accent:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   SERVICES
======================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--plum-600), var(--amber-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

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

.service-card:hover {
    border-color: var(--plum-100);
    box-shadow: 0 12px 40px rgba(93, 58, 90, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--plum-50);
    border: 1px solid var(--plum-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-600);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--plum-600);
    border-color: var(--plum-600);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--neutral-900);
}

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

/* ========================================
   ABOUT
======================================== */
.about {
    padding: 100px 0;
    background: var(--neutral-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(93, 58, 90, 0.15);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--plum-600);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-body {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
}

/* ========================================
   WHY US
======================================== */
.why-us {
    padding: 100px 0;
    background: var(--plum-800);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--amber-500);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ========================================
   CTA
======================================== */
.cta {
    padding: 100px 0;
    background: var(--plum-700);
}

.cta-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner .section-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========================================
   CONTACT
======================================== */
.contact {
    padding: 100px 0 60px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    margin-bottom: 56px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--plum-50);
    border: 1px solid var(--plum-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-600);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--neutral-800);
    line-height: 1.6;
}

.contact-item a {
    color: var(--plum-600);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--neutral-900);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum-500);
    box-shadow: 0 0 0 3px rgba(93, 58, 90, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success svg {
    color: var(--plum-500);
}

.form-success h4 {
    font-size: 1.5rem;
    color: var(--neutral-900);
}

.form-success p {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

/* Map */
.map-wrapper {
    overflow: hidden;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--neutral-950);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--neutral-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-400);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--neutral-400);
    transition: color 0.3s;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.footer-contact a {
    color: var(--neutral-400);
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    text-align: center;
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

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

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        border-top: 1px solid var(--neutral-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        color: var(--neutral-700);
        padding: 16px 0;
        border-bottom: 1px solid var(--neutral-100);
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--plum-700);
    }
    
    .nav-cta {
        margin-top: 8px;
        text-align: center;
        border-bottom: none;
    }
    
    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services, .about, .why-us, .cta, .contact {
        padding: 64px 0;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
