/* =================================================================
 * Reserva - index.css - نسخه فارسی و راست‌چین شده
 * ================================================================= */

/* === 1. تعریف فونت و متغیرهای سراسری === */
/* استفاده از فونت وزیرمتن به صورت لوکال طبق درخواست */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary-color: #2a9d8f;
    --secondary-color: #264653;
    --accent-color: #e9c46a;
    --background-color: #f8f9fa;
    --text-color: #34495e;
    --text-color-light: #7f8c8d;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --border-radius-md: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(41, 51, 61, 0.1);
    --transition: 0.3s ease-in-out;
}

/* === 2. ریست اولیه و استایل بدنه === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* تغییر فونت برای فارسی‌سازی */
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8; /* افزایش فاصله خطوط برای خوانایی بهتر فارسی */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.8;
}

/* === 3. هدر === */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 18px;
    font-weight: 500;
}
.header-buttons .btn {
    text-decoration: none;
    padding: 10px 22px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-login {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-login:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
.btn-register {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-register:hover {
    background-color: #217a6f; /* primary-color-dark */
}

/* === 4. بخش هیرو و فرم جستجو === */
.hero-section {
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(rgba(38, 70, 83, 0.75), rgba(38, 70, 83, 0.75)), url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}
.hero-title {
    font-size: 3.5rem;
    color: var(--white-color);
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}
.search-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    justify-content: center;
}
.form-group {
    flex: 1 1 200px;
    /* تغییر جهت متن برای RTL */
    text-align: right;
}
.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif; /* اعمال فونت فارسی به فیلدها */
}
.btn-search {
    background: var(--accent-color);
    border: none;
    padding: 12px;
    height: 48px;
    width: 48px;
    border-radius: var(--border-radius-md);
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color var(--transition);
}
.btn-search:hover {
    background: #d8b45a; /* accent-color-dark */
}

/* === 5. بخش نظرات === */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white-color);
}
.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    min-height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-align: center;
    display: none; 
    flex-direction: column;
    align-items: center;
}
.testimonial-card.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.testimonial-profile {
    margin-bottom: 1.5rem;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-lg);
}
.testimonial-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white-color);
}
.testimonial-comment {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 90%;
}
.testimonial-comment::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 0;
    position: relative;
    top: 20px;
    /* تغییر جهت margin برای RTL */
    margin-left: 5px;
    margin-right: 0;
}
.testimonial-meta {
    margin-top: auto;
}
.testimonial-meta .stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.testimonial-meta strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.testimonial-meta .review-date {
    font-size: 0.85rem;
    color: var(--text-color-light);
}
.dots {
    text-align: center;
    margin-top: 2rem;
}
.dots span {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all var(--transition);
}
.dots span.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* === 6. بخش ویژگی‌ها === */
.features-section {
    padding: 80px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}
.feature-card {
    text-align: center;
    padding: 2rem;
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-color-light);
}

/* === 7. فوتر === */
/* ... استایل‌های فوتر شما ... */

/* === 8. Media Queries واکنش‌گرا === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .search-form-container {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-search {
        width: 100%;
    }
    .section-title {
        font-size: 2rem;
    }
    .main-nav {
        display: none; /* برای سادگی در این مثال، منو در موبایل مخفی می‌شود */
    }
}