*, html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding-top: 75px;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* هدر ثابت و چسبان */
.fixed-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #212529;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
    display: flex;
    align-items: center;
}

/* دکمه منوی همبرگری */
.btn-hamburger {
    background-color: #ef4444;
    border: none;
    color: #eaeaea;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-hamburger:hover {
    background-color: #920000;
}

/* دکمه تماس متعادل و شکیل */
.btn-emergency-call {
    background-color: #ef4444;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
    white-space: nowrap;
}

.btn-emergency-call:hover {
    background-color: #920000;
    transform: translateY(-1px);
}

/* منوی بازشونده موبایل */
.mobile-nav-panel {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: none;
    animation: slideDown 0.2s ease forwards;
}

.mobile-nav-panel.open {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-item {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
    background-color: #f1f5f9;
    color: #ef4444;
}

/* دکمه‌های بنر اصلی در صفحه اول */
.banner-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.banner-btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* کارت‌های خدمات و نمونه‌کار */
.service-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f1f5f9;
}

/* تب‌ها */
.nav-pills .nav-link {
    color: #475569;
    background-color: #ededed;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

/* تنظیمات موبایل: هم‌اندازه شدن صددرصدی دکمه‌های بنر */
@media (max-width: 767.98px) {
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .banner-btn {
        width: 100% !important;
        min-width: 100% !important;
        padding: 12px 16px;
    }

    .row-cards > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* تنظیم روشنایی و وضوح متون فوتر */
footer.bg-dark .text-secondary {
    color: #6ea9c4 !important;
}

footer.bg-dark .text-secondary div {
    color: #c1c1c1 !important;
}

footer.bg-dark .text-secondary a {
    color: #acacac !important;
    transition: color 0.15s ease;
}

footer.bg-dark .text-secondary a:hover {
    color: #acacac !important;
}