/* Evergreen Auto Sales - Professional Design Matching Reference */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-dark: #1a4d2e;
    --forest-medium: #2d6642;
    --forest-light: #4a9b70;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    
    /* Legacy variable names for compatibility */
    --primary-color: #1a4d2e;
    --secondary-color: #2d6642;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gray-50);
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu a:hover {
    color: var(--forest-dark);
}

.btn-nav {
    background: var(--forest-dark);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--forest-medium);
}

.nav-menu a.active {
    color: var(--forest-dark);
    font-weight: 600;
}

/* Page Header (for interior pages) */
.page-header {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 100%);
    color: white;
    padding: 4rem 0 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Hero Section with Cars */
.hero-with-cars {
    position: relative;
    min-height: 600px;
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.95) 0%, rgba(243, 244, 246, 0.95) 100%),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--forest-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--forest-medium);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 77, 46, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--forest-dark);
    color: var(--forest-dark);
}

/* Hero Cars Image */
.hero-cars-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding: 0 2rem;
    z-index: 1;
}

.hero-car {
    width: 32%;
    max-width: 420px;
    height: auto;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.hero-car:hover {
    transform: translateY(-10px);
}

.hero-car-2 {
    margin-top: 20px;
}

/* Value Props Section */
.value-props-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.value-prop-item {
    text-align: center;
}

.value-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.value-prop-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.value-prop-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Featured Inventory */
.featured-inventory {
    padding: 5rem 0;
}

.section-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-header-with-link h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.view-all-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: var(--forest-dark);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gray-100);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.car-info .car-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.car-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.car-details {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.car-detail-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.btn-view-details {
    width: 100%;
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--gray-200);
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-view-details:hover {
    background: var(--forest-dark);
    color: white;
    border-color: var(--forest-dark);
}

/* Footer */
.footer {
    background: var(--forest-dark);
    color: white;
    padding-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-name {
    color: white;
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Other Pages Compatibility */
.hero {
    background: linear-gradient(rgba(26, 77, 46, 0.85), rgba(26, 77, 46, 0.9)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Car Detail Page */
.car-detail-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.car-detail-header {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.car-detail-image {
    flex: 1.2;
    min-width: 350px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.car-detail-image img#mainCarImage {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 77, 46, 0.9);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-nav-arrow:hover {
    background: var(--forest-light);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(26, 77, 46, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: var(--forest-dark);
}

.thumbnail.active {
    border-color: var(--forest-dark);
    box-shadow: 0 0 0 2px rgba(26, 77, 46, 0.2);
}

.car-detail-info {
    flex: 1;
    min-width: 320px;
}

.car-detail-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.car-description {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.car-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-dark);
    margin-bottom: 1rem;
}

.car-description p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Forms */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--forest-dark);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

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

.file-upload-area {
    border: 2px dashed var(--gray-300);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gray-50);
}

.file-upload-area:hover {
    border-color: var(--forest-dark);
    background: rgba(26, 77, 46, 0.03);
}

.file-upload-area input[type="file"] {
    display: none;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest-dark);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.contact-item span:first-child {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--forest-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* About */
.about-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-dark);
    margin: 2rem 0 1rem;
}

.about-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
    border-left: 4px solid var(--forest-dark);
    font-weight: 600;
}

.success-message.show {
    display: block;
}

.no-cars-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-cars-image {
        gap: 1rem;
    }
    
    .hero-car {
        width: 30%;
    }
    
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-cars-image {
        position: relative;
        height: auto;
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-car {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-car-2 {
        margin-top: 0;
    }
    
    .value-props-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid,
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-with-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .car-detail-header {
        flex-direction: column;
    }
}
