/* ===== Molavi public site theme layer (dark + gold) ===== */
:root {
    --site-font: 'IranSans', Tahoma, sans-serif;
    --site-bg: #141414;
    --site-bg-elevated: #1b1b1b;
    --site-surface: #222;
    --site-surface-2: #2a2a2a;
    --site-gold: #f5b754;
    --site-gold-soft: rgba(245, 183, 84, 0.14);
    --site-gold-border: rgba(245, 183, 84, 0.32);
    --site-text: #ffffff;
    --site-text-muted: rgba(255, 255, 255, 0.72);
    --site-text-dim: rgba(255, 255, 255, 0.55);
    --site-radius: 22px;
    --site-radius-sm: 14px;
    --site-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    --site-shadow-gold: 0 10px 28px rgba(245, 183, 84, 0.28);
    --site-section-pad: 90px;
    --bs-font-sans-serif: 'IranSans', Tahoma, sans-serif;
    --bs-body-font-family: 'IranSans', Tahoma, sans-serif;
}

html,
body {
    font-family: var(--site-font) !important;
}

body {
    background-color: var(--site-bg-elevated);
    color: var(--site-text-muted);
    font-weight: 400;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, ul, ol, td, th,
label, button, input, textarea, select,
small, strong, em, b, div, section, article, aside,
blockquote, figcaption, legend, caption,
.section-title, .section-subtitle, .intro-title, .intro-text, .intro-badge,
.button-1, .button-2, .btn-site, .btn-outline-custom, .navbar, .footer {
    font-family: var(--site-font) !important;
}

/* متن‌های ادیتور (خدمات، اخبار، مقالات، درباره ما) */
.intro-text *,
.intro-content *,
.service-card *,
.service-card__desc *,
.news-card *,
.news-card__excerpt *,
.news-details-article *,
.news-details-article__content *,
.blog-card *,
.blog-details-article *,
.blog-details-article__content *,
.home-about *,
.home-services *,
.home-feed *,
.about-page-intro *,
.services-page-intro *,
.branch-card *,
.branch-card__desc * {
    font-family: var(--site-font) !important;
}

/* آیکون‌ها باید فونت اختصاصی خودشان را نگه دارند */
.fa, .fas, .far, .fal, .fat, .fab, .fad,
[class^="fa-"]::before,
[class*=" fa-"]::before {
    font-family: "Font Awesome 6 Pro" !important;
}

[class^="ti-"]::before,
[class*=" ti-"]::before {
    font-family: "themify" !important;
}

[class^="flaticon"]::before,
[class*=" flaticon"]::before {
    font-family: Flaticon !important;
}

[class^="omfi-"]::before,
[class*=" omfi-"]::before {
    font-family: omFont !important;
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

.section-padding,
.pt-120 {
    padding-top: var(--site-section-pad) !important;
}

.section-padding,
.pb-120 {
    padding-bottom: var(--site-section-pad) !important;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--site-gold-soft);
    border: 1px solid var(--site-gold-border);
    color: var(--site-gold) !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.section-title {
    color: var(--site-text) !important;
    font-weight: 700 !important;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 18px;
}

.section-title span {
    color: var(--site-gold) !important;
}

.button-1 {
    font-weight: 700 !important;
    box-shadow: var(--site-shadow-gold);
}

.button-1:hover {
    box-shadow: 0 14px 32px rgba(245, 183, 84, 0.4);
}

.button-2 {
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    background: transparent !important;
}

.button-2:hover {
    border-color: var(--site-gold) !important;
    color: var(--site-gold) !important;
}

/* Shared utilities */
.site-section {
    position: relative;
    padding: var(--site-section-pad) 0;
}

.site-section--alt {
    background:
        radial-gradient(900px 320px at 100% 0%, rgba(245, 183, 84, 0.08), transparent 55%),
        linear-gradient(180deg, #181818 0%, #1b1b1b 100%);
}

.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--site-gold-soft);
    border: 1px solid var(--site-gold-border);
    color: var(--site-gold);
    font-size: 13px;
    font-weight: 500;
}

.site-card {
    background: var(--site-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--site-radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-card:hover {
    transform: translateY(-8px);
    border-color: var(--site-gold-border);
    box-shadow: var(--site-shadow);
}

.site-cta-band {
    position: relative;
    padding: 70px 0;
    background:
        radial-gradient(700px 260px at 20% 50%, rgba(245, 183, 84, 0.16), transparent 60%),
        linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    border-top: 1px solid var(--site-gold-border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-cta-band h3 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 10px;
}

.site-cta-band p {
    color: var(--site-text-muted);
    margin: 0;
    line-height: 1.9;
}

.btn-site,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid var(--site-gold);
    background: transparent;
    color: var(--site-gold) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-site:hover,
.btn-outline-custom:hover {
    background: var(--site-gold);
    color: #1b1b1b !important;
    transform: translateY(-3px);
    box-shadow: var(--site-shadow-gold);
}

/* Empty states */
.empty-article-message h3 {
    color: var(--site-text-dim) !important;
}

/* Footer polish */
.footer {
    background:
        radial-gradient(900px 360px at 50% 0%, rgba(245, 183, 84, 0.1), transparent 55%),
        linear-gradient(180deg, #161616 0%, #101010 100%) !important;
    border-top: 1px solid rgba(245, 183, 84, 0.16);
    padding-top: 20px;
}

.footer .first-footer {
    margin-bottom: 30px;
}

.footer .links.dark,
.footer .links.dark.footer-contact-links {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.footer .footer-contact-links-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--site-radius);
    padding: 22px !important;
}

.footer .footer-contact-links-divider {
    display: none !important;
}

.footer .footer-contact-link-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
}

.footer .icon-footer {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--site-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-gold);
    background: var(--site-gold-soft);
}

.footer .footer-contact-link-content h6 {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer .footer-contact-link-content p,
.footer .footer-contact-link-content a {
    color: var(--site-text-muted) !important;
}

.footer .second-footer {
    padding: 36px 0 18px;
}

.footer .widget-title {
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 18px !important;
}

.footer .usful-links ul li a {
    color: var(--site-text-muted) !important;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer .usful-links ul li a:hover {
    color: var(--site-gold) !important;
    padding-right: 6px;
}

.footer .widget-text p {
    color: var(--site-text-muted) !important;
    line-height: 1.95;
}

.footer .bottom-footer-text {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0 8px;
    text-align: center;
}

.footer .bottom-footer-text p,
.footer .copyright,
.footer .copyright p {
    text-align: center;
}

.footer .bottom-footer-text p {
    color: var(--site-text-dim) !important;
    margin: 0;
}

.footer .footer-copy-sep {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.22);
}

.footer .site-designer-trigger {
    background: none;
    border: 0;
    padding: 0;
    color: var(--site-gold);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 183, 84, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer .site-designer-trigger:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.site-designer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(8, 8, 8, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.site-designer-overlay.is-open {
    opacity: 1;
}

.site-designer-popup {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 9999;
    width: min(420px, calc(100% - 32px));
    transform: translate(-50%, 24px);
    opacity: 0;
    pointer-events: none;
    padding: 28px 24px 26px;
    border-radius: 22px;
    background:
        radial-gradient(420px 160px at 50% 0%, rgba(245, 183, 84, 0.16), transparent 60%),
        linear-gradient(180deg, #222 0%, #161616 100%);
    border: 1px solid rgba(245, 183, 84, 0.32);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
    text-align: center;
    color: #fff;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-designer-popup.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.site-designer-popup__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-designer-popup__close:hover {
    background: var(--site-gold);
    color: #1b1b1b;
}

.site-designer-popup__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-gold);
    background: var(--site-gold-soft);
    border: 1px solid var(--site-gold-border);
    font-size: 20px;
}

.site-designer-popup__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-designer-popup__text {
    margin: 0 0 18px;
    color: var(--site-text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.site-designer-popup__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--site-gold);
    color: #1b1b1b !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    box-shadow: var(--site-shadow-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-designer-popup__phone:hover {
    color: #1b1b1b !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 183, 84, 0.38);
}

@media (max-width: 991.98px) {
    :root {
        --site-section-pad: 70px;
    }

    .footer .footer-contact-links-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Header polish */
.navbar .customer-login-btn {
    animation: siteLoginPulse 2.8s ease-in-out infinite;
}

@keyframes siteLoginPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(245, 183, 84, 0.35); }
    50% { box-shadow: 0 10px 28px rgba(245, 183, 84, 0.55); }
}

.nav-scroll .customer-login-btn {
    animation: none;
}

.service-card {
    height: 100%;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 183, 84, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.service-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.06);
}

.service-card__index {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 27, 27, 0.82);
    border: 1px solid rgba(245, 183, 84, 0.55);
    color: #f5b754;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.service-card__fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

.service-card__body {
    padding: 24px 24px 26px;
}

.service-card__title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.service-card__title a:hover {
    color: #f5b754;
}

.service-card__desc {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 18px;
}

.service-card__desc p:last-child {
    margin-bottom: 0;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5b754;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.service-card__link:hover {
    color: #fff;
    gap: 12px;
}

