/* 
 * Font: Vazirmatn (Optimized with unicode-range)
 * Description: فقط برای حروف فارسی و عربی لود می‌شود
 */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+08A0-08FF;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+08A0-08FF;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+08A0-08FF;
}

/* اعمال فونت به کل سایت */
body {
    /* ابتدا وزیرمتن برای فارسی، سپس فونت‌های استاندارد برای انگلیسی */
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}


/* اعمال فونت
/* =======================================================
   Responsive & Modular Base Styles - LEGCO
   File: assets/css/style.css
======================================================= */

/* ریست و تنظیمات پایه برای جلوگیری از هرگونه سرریز در موبایل */
*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* قفل اسکرول افقی */
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    direction: rtl;
}

/* کانتینر اصلی تمام بخش‌های بدنه */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

img, svg, video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* =======================================================
   1. Hero Section (بخش معرفی اصلی و فرم پذیرش)
======================================================= */
.hero-section {
    background: linear-gradient(135deg, #06111f 0%, #0f2744 100%);
    color: #ffffff;
    padding: 60px 0;
    width: 100%;
    position: relative;
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    min-width: 0; /* جلوگیری از شکستن فلکس */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 106, 0, 0.15);
    color: #ff6a00;
    border: 1px solid rgba(255, 106, 0, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
    color: #ffffff;
}

.hero-title span {
    color: #ff6a00;
}

.hero-description {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary {
    background-color: #ff6a00;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary:hover {
    background-color: #e65c00;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* کارت فرم پذیرش */
.hero-request-card {
    flex: 0.9;
    background: #ffffff;
    color: #1e293b;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 0;
}

.hero-request-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0b1a2d;
}

.hero-request-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.service-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6a00;
}

/* =======================================================
   2. Features Bar (ویژگی‌ها و آمار)
======================================================= */
 /*
 * Section: Features & Benefits Bar
 * File: assets/css/style.css
 * Description: Clean spacing and alignment for service feature boxes
 */

.features-bar {
    background: #ffffff;
    padding: 20px 24px;
    margin-top: -30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px; /* فاصله مناسب و تنفس بین آیکون و متن */
    padding: 6px 0;
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: rgba(255, 106, 0, 0.12);
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #ff6a00;
    color: #ffffff;
    transform: translateY(-2px);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.feature-content p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ریسپانسیو اختصاصی باکس‌ها */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .features-bar {
        padding: 16px;
        margin-top: 15px;
    }
}

/* =======================================================
   3. Services Section (کارت خدمات)
======================================================= */
.services-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    color: #ff6a00;
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: #0b1a2d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-icon {
    font-size: 30px;
    color: #ff6a00;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0b1a2d;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card-link {
    color: #ff6a00;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =======================================================
   4. Branches Section (شعب ۱ و ۲)
======================================================= */
.branches-section {
    background: #e2e8f0;
    padding: 50px 0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.branch-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #0b1a2d;
}

.branch-card.accent {
    border-top-color: #ff6a00;
}

.branch-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.branch-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

/* =======================================================
   RESPONSIVE (موبایل و تبلت)
======================================================= */
@media screen and (max-width: 992px) {
    .hero-grid {
        flex-direction: column;
        gap: 35px;
    }
    
    .hero-content, .hero-request-card {
        width: 100%;
        flex: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-outline {
        width: 100%;
    }

    .features-bar {
        margin-top: 20px;
        border-radius: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-request-card {
        padding: 18px 14px;
    }

    .hero-title {
        font-size: 21px;
    }
}
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px !important;
    }
    .feature-item {
        margin-bottom: 16px;
    }
}
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

