
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* فونت فارسی */
@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb.woff2') format('woff2'),
         url('fonts/IRANSansWeb.woff') format('woff');
}
body {
    font-family: 'IRANSans', sans-serif;
}
body {
    font-family: 'IRANSans',system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050505;
    color: #f5f5f5;
}
#languageSwitcher{
	 font-family: 'IRANSans';
	
}
/* هدر */

.hero {
    position: relative;
    height: 70vh;
    background: url("heder2.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,0.2), rgba(0,0,0,0.9));
    z-index: 1;
}

.top-bar {
    position: relative;
    z-index: 2;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    color: #f5f5f5;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.lang-select {
    position: relative;
}

.lang-select select:hover {
    background: #c9a34f;
    color: #111;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 8% 10%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    color: #f5f5f5;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ddd;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* دکمه‌ها */

.btn {
	font-family:'IRANSans';
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #c9a34f, #e0c36a);
    color: #111;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(201,163,79,0.4);
}

.btn.primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 22px rgba(201,163,79,0.7);
}

.btn.secondary {
    background: rgba(0,0,0,0.4);
    color: #f5f5f5;
    border-color: #c9a34f;
}

.btn.secondary:hover {
    background: #c9a34f;
    color: #111;
}

/* افکت Glow مخصوص دکمه اصلی فرم */

.glow {
    box-shadow: 0 0 15px rgba(201,163,79,0.5);
}

/* سکشن‌ها */
#about{
	text-align:center;
	
	
}
.feature{
	text-align:center;
	
}

.section {
    padding: 120px 8%;
    background-color: #050505;
}

.section:nth-of-type(even) {
    background-color: #0b0b0b;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #d0ac57;
	text-align:center;
}

/* کارت‌ها */

.card {
    background: rgba(15,15,15,0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.8);
    border-color: rgba(201,163,79,0.7);
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature h3 {
    color: #e0c36a;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Cars */

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.car-card {
    padding: 0;
}

.car-image {
    height: auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
	aspect-ratio:1/1;
}

/* این‌ها رو با عکس‌های واقعی دناپلاس/تارا عوض کن */
.car1 {
    background-image: url("car1.jpg");
}
.car2 {
    background-image: url("car2.jpg");
}
.car3 {
    background-image: url("car3.webp");
}

.car-card h3 {
    padding: 12px 15px 5px;
    color: #f5f5f5;
}

.car-card p {
    padding: 0 15px 15px;
    color: #e0c36a;
    font-size: 0.9rem;
}

/* Contact */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-info a {
    color: #e0c36a;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ddd;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #050505;
    color: #f5f5f5;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a34f;
    box-shadow: 0 0 8px rgba(201,163,79,0.5);
}

/* Footer */

.footer {
    text-align: center;
    padding: 15px 8%;
    background: #000;
    font-size: 0.8rem;
    color: #777;
}

/* انیمیشن اسکرول */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .hero-content {
        padding-bottom: 20%;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
}
/* Social Section */

#social {
    text-align: center;
}

.social-wrapper {
    padding: 25px;
    border-radius: 12px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #c9a34f;
    color: #f5f5f5;
    transition: 0.3s;
}

.social-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* سفید کردن آیکون */
    transition: 0.3s;
}

.social-icon:hover {
    background: #c9a34f;
    color: #111;
}

.social-icon:hover img {
    filter: brightness(0); /* آیکون مشکی روی طلایی */
}
.lang-select select {
    background: #111;
    color: #f5f5f5;
    border: 2px solid #c9a34f;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;

    /* برای پرچم */
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 22px;
    padding-left: 40px;
}

#rental-conditions {
    text-align: center;
    margin-top: 60px;
}

#rental-conditions .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #c9a34f;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.condition-card {
    background: #111;
    border: 2px solid #c9a34f;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(201,163,79,0.5);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #c9a34f;
}

.condition-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
}

.condition-card p {
    color: #ccc;
    line-height: 1.7;
    font-size: 0.95rem;
}



/*   سکشن خودروی ایرانی و خارجی     */


.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 100px 0;
}

/* عکس */
.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* متن */
.split-text {
    flex: 1;
    padding: 20px;
}

.split-text h2 {
    font-size: 2rem;
    color: #c9a34f;
    margin-bottom: 15px;
}

.split-text p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

/* متن روی عکس */
.split-image::after {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 10px;
}

/* --- انیمیشن واقعی از چپ و راست --- */

.slide-left, .slide-right {
    opacity: 0;
    transition: 1s ease;
}

.slide-left {
    transform: translateX(-120px);
}

.slide-right {
    transform: translateX(120px);
}

.split-section.active .slide-left,
.split-section.active .slide-right {
    opacity: 1;
    transform: translateX(0);
}



/* ریسپانسیو موبایل */
@media (max-width: 768px) {

    .split-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin: 50px 0;
    }

    .split-image,
    .split-text {
        width: 100%;
        transform: none !important; /* جلوگیری از خراب شدن انیمیشن */
        opacity: 1 !important;
    }

    .split-image img {
        width: 100%;
        border-radius: 15px;
    }

    .split-image::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        font-size: 1rem;
        padding: 6px 12px;
    }

    .split-text h2 {
        font-size: 1.4rem;
    }

    .split-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}



/*---------------پرچم-------*/

.language-select img {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
}

.language-select option img {
    width: 20px !important;
    height: 14px !important;
}



/*--------مودال شرایط----------*/


.conditions-more-wrapper {
    margin-top: 25px;
    text-align: center;
}

.btn-more-conditions {
    background: #c9a34f;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: 'IRANSans';
}

.btn-more-conditions:hover {
    background: #e0b85a;
    transform: translateY(-2px);
}

/* Modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #111;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px 20px;
    border: 1px solid #c9a34f;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    direction: rtl;
    text-align: right;
}

.modal-box h2 {
    color: #c9a34f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-box h3 {
    color: #fff;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.modal-box p {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* موبایل */

@media (max-width: 768px) {
    .modal-box {
        max-width: 100%;
        padding: 20px 15px;
    }
}



/*  ارور ایمیل       */


.form-message {
    display: none;
    margin: 15px auto 0;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
    animation: fadeIn 0.4s ease;
    max-width: 450px;   /* مهم‌ترین خط */
}
.form-message{
    width:100%;
    box-sizing:border-box;
    
    
}
.form-message.success {
    background: #0f5132;
    color: #d1e7dd;
    border: 1px solid #badbcc;
}

.form-message.error {
    background: #842029;
    color: #f8d7da;
    border: 1px solid #f5c2c7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}