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

:root {
    --primary: #990000;
    --dark: #333;
    --light: #f5f5f5;
    --white: #fff;
    --gray: #ccc;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* Navigation */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background: var(--primary);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Main Content */
main {
    background: var(--white);
    min-height: calc(100vh - 200px);
    padding: 30px 20px;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Homepage */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.car-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card h3 {
    padding: 15px;
    color: var(--primary);
}

.car-card p {
    padding: 0 15px 15px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Restoration Page */
.restoration-header {
    text-align: center;
    margin-bottom: 40px;
}

.restoration-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.restoration-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--light);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-item img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

footer a {
    color: var(--white);
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    nav.active {
        transform: translateY(0);
    }

    .logo h1 {
        font-size: 1.2rem;
    }

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

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

    .hero h2 {
        font-size: 1.5rem;
    }
}

/* Custom Lightbox - Full screen */
#lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.95) !important;
    z-index: 9999 !important;
    display: none;
}
#lightbox img {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: background 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: rgba(255,255,255,0.4);
}
.lb-close { top: 20px; right: 20px; font-size: 30px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Speedster page */
.pad {
    padding: 3px;
    display: inline-block;
}

.thumb {
    max-width: 175px;
    max-height: 200px;
    padding: 3px;
    border: #000 solid 1px;
}

.maxme {
    max-width: 800px;
    max-height: 600px;
}