@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --gold: #e5a900;
    --gold-dark: #c98f00;
    --black: #171a1f;
    --gray: #f5f5f5;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* Header */

.header {
    height: 85px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 95px;
    height: 70px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    color: var(--gold);
}


/* Buttons */

.btn {
    background: var(--gold);
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    transition: .3s;
}

.btn:hover {
    background: var(--gold-dark);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 9px 22px;
    border-radius: 5px;
    font-size: 14px;
}


/* Hero */

.hero {
    min-height: 600px;

    background:
        linear-gradient(
            90deg,
            rgba(23,26,31,.95),
            rgba(23,26,31,.75),
            rgba(23,26,31,.3)
        ),
        url("images/hero.jpg") center/cover;

    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    color: white;
    max-width: 650px;
}

.hero-text span,
.section-title span {
    color: var(--gold);
    font-weight: 600;
}

.hero h1 {
    font-size: 48px;
    margin: 10px 0;
}

.hero h2 {
    font-size: 28px;
    font-weight: 500;
}

.hero p {
    margin: 20px 0 30px;
    color: #ddd;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}


/* Sections */

.section {
    padding: 80px 0;
}

.gray {
    background: var(--gray);
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 30px;
    color: var(--black);
}


/* About */

.about-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
    color: #666;
}


/* Cars */

.cars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.car-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.car-card:hover {
    transform: translateY(-7px);
}

.car-image {
    height: 220px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    color: var(--black);
}

.car-info p {
    color: #888;
    font-size: 13px;
}

.more {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold-dark);
    font-size: 13px;
}


/* Services */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: .3s;
}

.service:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.service h3 {
    color: var(--black);
    font-size: 18px;
}

.service p {
    color: #888;
    font-size: 13px;
}


/* Contact */

.contact {
    padding: 70px 0;
    background: var(--black);
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    color: #ddd;
}


/* Footer */

footer {
    background: #0d0f12;
    color: #999;
}

.footer {
    min-height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}


/* Responsive */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .cars {
        grid-template-columns: 1fr 1fr;
    }

    .services {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 600px) {

    .cars,
    .services {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .nav > .btn {
        display: none;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        padding: 15px;
    }
}