/* ========================
   ۱. تنظیمات عمومی و متغیرها
   ======================== */
:root {
    --primary-color: #0B2C54; /* آبی تیره */
    --secondary-color: #00C853; /* سبز */
    --text-color: #333333;
    --light-text-color: #f8f9fa;
    --background-color: #FFFFFF;
    --footer-background: #121212;
    --font-family: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #009624;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
}

/* ========================
   ۲. استایل هدر و منو
   ======================== */
.main-header {
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo img {
    height: 40px;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* ========================
   ۳. استایل‌های صفحه اصلی
   ======================== */

/* بخش Hero */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 44, 84, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 25px;
    font-size: 16px;
}

/* بخش معرفی */
.intro-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

/* بخش نمایش ویژگی‌ها */
.advanced-features-section {
    background-color: #f8f9fa;
}

.features-grid-advanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card-advanced {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card-advanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.card-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* بخش "مناسب چه کسانی" */
.who-is-it-for {
    background-color: var(--background-color);
    padding: 60px 0;
}

.target-businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.business-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.business-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.business-card h4 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0;
}

/* بخش نظرات مشتریان */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    border-right: 5px solid var(--secondary-color);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
}

.author-role {
    font-size: 14px;
    color: #777;
}

/* بخش فراخوان نهایی (CTA) */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 18px;
    opacity: 0.9;
}

/* ========================
   ۴. استایل فوتر
   ======================== */
.main-footer {
    background-color: var(--footer-background);
    color: var(--light-text-color);
    padding-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
}

.footer-column p {
    color: #a0a0a0;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-column ul li i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.social-icons a {
    color: #a0a0a0;
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

/* ========================
   ۵. واکنش‌گرایی (Responsive)
   ======================== */
@media (max-width: 992px) {
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .text-content {
        order: 2;
    }
    .image-container {
        order: 1;
    }
    .feature-list {
        text-align: right;
    }
    .features-grid-advanced {
        grid-template-columns: repeat(2, 1fr);
    }
    .target-businesses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .features-grid-advanced { grid-template-columns: 1fr; }
    .target-businesses-grid { grid-template-columns: 1fr; }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: right 0.3s ease-in-out;
        padding-top: 30px;
        gap: 25px;
    }
    .nav-menu.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
}

/* ========================
   استایل صفحه درخواست دمو
   ======================== */
.demo-page-section {
    background-color: #f8f9fa; /* پس‌زمینه ملایم */
    padding: 80px 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون با عرض یکسان */
    gap: 50px;
    align-items: start;
}

/* ستون توضیحات */
.demo-text-content .demo-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.demo-text-content .demo-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.demo-text-content .demo-list-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.demo-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.demo-features-list li {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.demo-features-list li i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.demo-contact-info {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #555;
}

.demo-contact-info span {
    display: block;
    margin-top: 10px;
}

.demo-contact-info span i {
    margin-left: 8px;
}

/* ستون فرم */
.demo-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.demo-form-container h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
}

.form-message-area {
    margin-top: 20px;
    text-align: center;
}

.alert {
    padding: 15px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* واکنش‌گرایی برای صفحه دمو */
@media (max-width: 992px) {
    .demo-grid {
        grid-template-columns: 1fr; /* ستون‌ها روی هم قرار می‌گیرند */
    }
}

/* ========================
   استایل صفحات عمومی (مانند درباره ما و تماس با ما)
   ======================== */
.page-section {
    padding: 80px 0;
}

.page-title {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* ========================
   استایل صفحه درباره ما
   ======================== */
.about-content {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.about-content p {
    margin-bottom: 20px;
}

.team-section {
    padding-top: 40px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member-card {
    text-align: center;
    max-width: 250px;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.member-role {
    font-size: 14px;
    color: #666;
}

/* ========================
   استایل صفحه تماس با ما
   ======================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: right;
}

.contact-info-card i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-info-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.contact-form-column h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-family);
}

.contact-form .btn-submit {
    width: 100%;
}

.map-container {
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   استایل صفحه تعرفه‌ها
   ======================== */
.pricing-section {
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* هم‌تراز کردن کارت‌ها */
}

.pricing-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* استایل پلن محبوب */
.pricing-card.popular {
    position: relative;
    border-color: var(--secondary-color);
    transform: scale(1.05); /* کمی بزرگ‌تر برای جلب توجه */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-description {
    font-size: 14px;
    color: #666;
}

.plan-price {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.plan-price .price {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .currency {
    font-size: 16px;
    color: #666;
    margin-right: 5px;
}

.plan-price .custom-price {
    font-size: 28px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1; /* باعث می‌شود لیست ویژگی‌ها فضا را پر کند */
}

.plan-features li {
    margin-bottom: 15px;
    color: #444;
}

.plan-features li i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.plan-features li.disabled {
    color: #aaa;
    text-decoration: line-through;
}

.plan-features li.disabled i {
    color: #ccc;
}

.btn-select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-select:hover {
    background-color: var(--primary-color);
    color: white;
}

.pricing-card.popular .btn-select {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.pricing-card.popular .btn-select:hover {
    background-color: #009624;
    border-color: #009624;
}

/* واکنش‌گرایی برای صفحه تعرفه‌ها */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1); /* در موبایل بزرگنمایی را حذف می‌کنیم */
    }
}