/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #F8F9FA;
    color: #212529;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* فونت وزیرمتن (در صورت وجود فایل محلی) */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-display: swap;
}

body.rtl {
    font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==================== هدر دو قسمتی (جدید) ==================== */
.main-header {
    background-color: #0A3D62;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0 5px 0;
}

.navbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 12px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* منوی دسکتاپ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.95rem;
}
.nav-menu li a:hover {
    color: #E67E22;
}

/* دکمه همبرگری (موبایل) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

/* انتخابگر زبان - لینک‌های متنی */
.lang-switcher {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.lang-switcher a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}
.lang-switcher a:hover {
    background-color: #E67E22;
    color: white;
}

/* شماره تلفن */
.phone-number {
    font-size: 0.9rem;
    font-weight: bold;
    direction: ltr;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 30px;
}

/* ========== موبایل (Responsive) ========== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: #0A3D62;
        padding: 1rem 0;
        margin-top: 1rem;
        gap: 0.8rem;
        text-align: center;
    }
    .nav-menu.active {
        display: flex;
    }
    .navbar-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .lang-switcher {
        justify-content: center;
    }
    .phone-number {
        display: inline-block;
    }
}

/* ========== اصلاحات برای موبایل‌های خیلی کوچک (عرض کمتر از 576px) ========== */
@media (max-width: 576px) {
    /* ردیف بالا: لوگو در مرکز، دکمه همبرگری در سمت راست */
    .navbar-top {
        justify-content: center;
        position: relative;
    }
    .logo {
        margin: 0 auto;
    }
    .hamburger {
        position: absolute;
        left: 0;  /* در RTL به معنی راست است */
        top: 50%;
        transform: translateY(-50%);
    }
    body.rtl .hamburger {
        left: auto;
        right: 0;
    }
    /* منوی کشویی */
    .nav-menu {
        margin-top: 0.8rem;
        background: #0A3D62;
        border-radius: 16px;
        padding: 0.8rem;
    }
    /* ردیف پایین */
    .navbar-bottom {
        gap: 6px;
        padding-bottom: 8px;
    }
    .lang-switcher a {
        font-size: 0.7rem;
        padding: 4px 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 30px;
    }
    .phone-number {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ==================== MAIN CONTENT ==================== */
main {
    flex: 1;
    padding: 40px 0;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ==================== دکمه دانلود ==================== */
.download-btn {
    display: inline-block;
    background-color: #E67E22;
    color: white;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* ==================== جداول ریسپانسیو ==================== */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: #fff;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}
th, td {
    border: 1px solid #dee2e6;
    padding: 10px 8px;
    text-align: center;
}
th {
    background-color: #0A3D62;
    color: white;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #f8f9fa;
}
.price-table-caption {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #0A3D62;
    border-right: 4px solid #E67E22;
    padding-right: 10px;
}
body.ltr .price-table-caption {
    border-right: none;
    border-left: 4px solid #E67E22;
    padding-right: 0;
    padding-left: 10px;
}

/* ==================== گالری تصاویر ==================== */
.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}
.gallery img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
    cursor: pointer;
}
.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* مودال (بزرگنمایی عکس) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}
.modal-nav {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.modal-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 40px;
    transition: 0.2s;
}
.modal-nav button:hover {
    background: rgba(255,255,255,0.4);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}
body.rtl .modal-close {
    right: auto;
    left: 40px;
}
@media (max-width: 700px) {
    .gallery {
        flex-direction: column;
        align-items: center;
    }
    .gallery img {
        width: 90%;
        height: auto;
    }
    .modal-nav button {
        font-size: 18px;
        padding: 5px 15px;
    }
    .modal-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
    body.rtl .modal-close {
        left: 20px;
    }
}

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-right: 5px solid #E67E22;
    padding-right: 15px;
}
h1 {
    font-size: 1.6rem; /* مقدار دلخواه: 1.5rem، 1.4rem و ... */
}
h3.section-title {
    font-size: 1.2rem;  /* یا هر مقدار دلخواه کوچک‌تر از 1.8rem */
}
body.ltr .section-title {
    border-right: none;
    border-left: 5px solid #E67E22;
    padding-right: 0;
    padding-left: 15px;
}