/* =============================================
   THE MECHANISTS - Curating Automotive Excellence
   ============================================= */

:root {
    --primary-black: #1a1a1a;
    --secondary-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent-gold: #c9a962;
    --border-color: #e0e0e0;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--primary-black);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--secondary-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ============ NAVIGATION - FIXED ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-black);
}

.logo:hover {
    color: var(--accent-gold);
}

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

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-black);
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.btn-contact {
    background: var(--primary-black);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
}

.btn-contact:hover {
    background: var(--secondary-gray);
}

/* ============ HERO SECTION ============ */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content .hero-logo {
    height: 300px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.3));
}

.hero-content .tagline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #f5f5f5; /* off-white */
}

/* ============ SECTIONS ============ */
section {
    padding: 5rem 0;
}

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ============ FEATURED CAR ============ */
.featured-car {
    background: var(--light-gray);
}

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

.featured-image img {
    width: 100%;
    height: auto;
}

.featured-details h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.featured-details .subtitle {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.featured-details .description {
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-black);
    color: var(--white);
    padding: 0.9rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-gray);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
    padding: 0.9rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: var(--white);
}

/* ============ ABOUT SECTION ============ */
.about-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* ============ ACCESSORIES PREVIEW ============ */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.accessory-item {
    text-align: center;
}

.accessory-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1rem;
}

.accessory-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* ============ INSTAGRAM SECTION ============ */
.instagram-section {
    background: var(--light-gray);
    text-align: center;
}

.instagram-subtitle {
    color: var(--secondary-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============ NEWSLETTER ============ */
.newsletter-section {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 0;
}

.newsletter-section h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: none;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.newsletter-form button {
    background: var(--accent-gold);
    color: var(--primary-black);
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #b8994f;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand img {
    height: 35px;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer h4 {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ============ PAGE HEADERS ============ */
.page-header {
    padding: 7rem 0 3rem;
    text-align: center;
    background: var(--light-gray);
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--secondary-gray);
}

/* ============ SOLD GALLERY (3 per row) ============ */
.sold-gallery {
    padding: 3rem 0;
}

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

.sold-card {
    position: relative;
    overflow: hidden;
}

.sold-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.sold-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.sold-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.sold-card-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.sold-card-overlay p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-black);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============ CARS FOR SALE ============ */
.cars-gallery {
    padding: 3rem 0;
}

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

.car-card-gallery {
    background: var(--white);
    border: 1px solid var(--border-color);
}

.car-card-gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.car-card-content {
    padding: 1.5rem;
}

.car-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.car-card-content .subtitle {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.car-card-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* ============ INDIVIDUAL CAR PAGE ============ */
.car-hero {
    margin-top: 70px;
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.car-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.car-hero-content {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    color: var(--white);
}

.car-hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.car-hero-content .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.car-story {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.car-story h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.car-story p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.car-specs {
    background: var(--light-gray);
    padding: 3rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.spec-item h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-gray);
    margin-bottom: 0.5rem;
}

.spec-item p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-black);
}

.car-gallery-section {
    padding: 3rem 0;
}

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

.car-gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.car-inquiry {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.car-inquiry h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.car-inquiry p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.car-inquiry .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-black);
}

/* ============ ACCESSORIES PAGE ============ */
.accessories-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.accessories-intro p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.accessories-category {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.accessories-category:last-of-type {
    border-bottom: none;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.category-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.bespoke-cta {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.bespoke-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.bespoke-cta p {
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    margin: 0 auto 2rem;
}

.bespoke-cta .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-black);
}

/* ============ ABOUT PAGE ============ */
.about-content-full {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-content-full h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.about-content-full h2:first-child {
    margin-top: 0;
}

.about-content-full p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 3rem 0;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-gray);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--primary-black);
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.contact-form h3 {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--secondary-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-black);
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .featured-grid,
    .about-section .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sold-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-content h1 { font-size: 2.25rem; }
    .hero-content .tagline { font-size: 1rem; }
    
    .nav-menu {
        display: none;
    }
    
    .accessories-grid,
    .category-grid,
    .car-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cars-grid-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sold-grid,
    .accessories-grid,
    .category-grid,
    .car-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}
