/* تنظیمات عمومی */
body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
    color: #333;
    direction: rtl;
}

h1, h2 {
    margin: 0;
}

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

/* --- هدر --- */
.header {
    background: #000;
    color: #fff;
    padding: 15px 10px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.header-text {
    text-align: center;
    flex: 1;
}

.header-text h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.phone {
    font-size: 14px;
}

/* منوی همبرگری */
.hamburger {
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    padding: 5px;
    display: block;
}

.menu {
    display: none;
    list-style: none;
    background: #111;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 0;
    top: 100%;
    width: 180px;
}

.menu li {
    border-bottom: 1px solid #333;
}

.menu li a {
    color: #fff;
    display: block;
    padding: 12px;
}

.menu li a:hover {
    background: #222;
}

/* بخش معرفی */
.intro {
    margin-top: 130px;
    padding: 20px;
    background: #fff;
    text-align: center;
    font-size: 18px;
    line-height: 2;
}

/* --- اسلایدشو --- */
.slideshow {
    width: 100%;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    margin: auto;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.fade {
    animation: fadeEffect 1.5s ease;
}

@keyframes fadeEffect {
    from {opacity: .4;}
    to {opacity: 1;}
}

.dot {
    height: 12px;
    width: 12px;
    background: #bbb;
    display: inline-block;
    border-radius: 50%;
    margin: 5px;
}

.active {
    background: #333;
}

/* --- لیست خودروها --- */
.cars-section {
    padding: 20px;
    text-align: center;
}

.cars-section h2 {
    margin-bottom: 20px;
}

.cars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.car {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    transition: 0.3s;
}

.car img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.car:hover {
    box-shadow: 0 0 10px #aaa;
}

/* تخفیف */
.discount {
    background: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

/* --- فرم‌ها --- */
.form-box {
    background: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-box input,
.form-box select,
.form-box textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.form-box button {
    padding: 12px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* شرایط */
.rules {
    background: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
}

.rules ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* فوتر */
.footer {
    background: #000;
    color: #fff;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

/* ریسپانسیو */
@media(max-width: 768px) {
    .header-content {
        flex-direction: row;
    }

    .header-text {
        font-size: 14px;
    }

    .logo {
        width: 55px;
        height: 55px;
    }
}
