/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #16a34a;
    --green-800: #15803d;
    --green-900: #064e3b;
    --green-950: #022c22;
    
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream-50);
    color: var(--stone-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--green-900);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--green-900);
}

.logo svg {
    color: var(--green-700);
}

.logo-accent {
    color: var(--stone-500);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--green-700);
}

.nav-btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-700);
}

.btn-outline:hover {
    background: var(--green-700);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

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

/* ========== HERO ========== */
.hero {
    padding: 4rem 0 5rem;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--stone-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
}

.hero-card-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.float-1 {
    top: -1rem;
    right: -0.5rem;
    animation-delay: 0s;
}

.float-2 {
    bottom: 2rem;
    left: -1rem;
    animation-delay: 2s;
}

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

.float-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
}

.float-label {
    display: block;
    font-size: 0.75rem;
    color: var(--stone-500);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== SECTION COMMON ========== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-700);
    background: var(--green-100);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.7;
}

/* ========== FEATURES ========== */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
    background: var(--white);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius-md);
    color: var(--green-700);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--green-700);
    color: var(--white);
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.625rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.65;
}

/* ========== INVENTORY ========== */
.inventory {
    padding: 5rem 0;
    background: var(--cream-50);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.car-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--stone-200);
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-200);
}

.car-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-card-img img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--green-700);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.car-card-body {
    padding: 1.25rem 1.5rem;
}

.car-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
}

.car-card-desc {
    font-size: 0.875rem;
    color: var(--stone-500);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.inventory-cta {
    text-align: center;
    padding: 2rem;
    background: var(--green-900);
    border-radius: var(--radius-xl);
}

.inventory-cta p {
    color: var(--green-200);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}

.inventory-cta .btn-primary {
    background: var(--white);
    color: var(--green-900);
    border-color: var(--white);
}

.inventory-cta .btn-primary:hover {
    background: var(--green-100);
    border-color: var(--green-100);
}

/* ========== PROCESS ========== */
.process {
    padding: 5rem 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-200);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.65;
}

.step-connector {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
}

.step-connector::before {
    content: '';
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--green-300) 0px,
        var(--green-300) 8px,
        transparent 8px,
        transparent 14px
    );
}

/* ========== CONTACT ========== */
.contact {
    padding: 5rem 0;
    background: var(--cream-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.contact-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--stone-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--stone-800);
}

.contact-value:hover {
    color: var(--green-700);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-700);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-md);
    background: var(--cream-50);
    color: var(--stone-800);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--green-100);
}

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

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

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius-full);
    color: var(--green-700);
    margin: 0 auto 1rem;
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--stone-500);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--green-900);
    color: var(--green-200);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand .logo-accent {
    color: var(--green-400);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--green-300);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-100);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: var(--green-300);
    transition: color var(--transition);
}

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

.footer-contact span {
    font-size: 0.9375rem;
    color: var(--green-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--green-400);
}

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream-50);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--stone-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-card-main {
        max-width: 100%;
    }

    .hero-card-main img {
        height: 280px;
    }

    .floating-card {
        display: none;
    }

    .features {
        padding: 3.5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }

    .inventory {
        padding: 3.5rem 0;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process {
        padding: 3.5rem 0;
    }

    .process-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        padding-top: 0;
        align-self: center;
    }

    .step-connector::before {
        width: 2px;
        height: 100%;
        background: repeating-linear-gradient(
            to bottom,
            var(--green-300) 0px,
            var(--green-300) 8px,
            transparent 8px,
            transparent 14px
        );
    }

    .contact {
        padding: 3.5rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info .section-tag {
        display: block;
        text-align: center;
    }

    .contact-desc {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
