/*
    لایهٔ نوسازی ظاهر سایت عمومی — نسخهٔ ۲ (هویت رزمی: مشکی/قرمز).

    عمداً یک فایل جداست و آخر از همه بارگذاری می‌شود، نه ویرایش قالب اصلی: اگر نتیجه
    پسندیده نشد، با حذف همین یک خط از _SiteLayout همه‌چیز به حالت قبل برمی‌گردد.

    فقط ظاهر عوض می‌شود؛ هیچ ساختار HTML یا رفتاری تغییر نمی‌کند.

    نکتهٔ فارسی: از letter-spacing استفاده نمی‌شود — فاصلهٔ حروف، اتصال حروف فارسی
    را می‌شکند.
*/

:root {
    --hk-radius: 18px;
    --hk-radius-sm: 12px;
    --hk-surface: #ffffff;
    --hk-surface-2: #f5f6f8;
    --hk-ink: #14161a;
    --hk-muted: #5f646c;
    --hk-border: rgba(16, 18, 24, 0.08);
    --hk-accent: #dd0000;
    --hk-accent-2: #ff2d3f;
    --hk-shadow-1: 0 1px 2px rgba(16, 18, 24, 0.05), 0 6px 20px rgba(16, 18, 24, 0.06);
    --hk-shadow-2: 0 10px 18px rgba(16, 18, 24, 0.08), 0 28px 60px rgba(16, 18, 24, 0.14);
    --hk-shadow-red: 0 10px 26px rgba(221, 0, 0, 0.30);
    --hk-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"], .theme-dark {
    /* هم‌رنگ با چیزی که dark.css از قبل به .blog-content می‌دهد، تا کارت یک‌تکه دیده شود */
    --hk-surface: #0e0e0e;
    --hk-surface-2: #17181c;
    --hk-ink: #f3f4f6;
    --hk-muted: #a6abb4;
    --hk-border: rgba(255, 255, 255, 0.10);
    --hk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
    --hk-shadow-2: 0 10px 18px rgba(0, 0, 0, 0.4), 0 28px 60px rgba(0, 0, 0, 0.5);
}

/* ————— پایه ————— */

.site-theme-shell {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.site-theme-shell ::selection {
    background: var(--hk-accent);
    color: #ffffff;
}

/* نشانگر ماوس سفارشی («کشیدن صفحه») حس قدیمی می‌داد؛ حذف کامل */
.site-theme-shell .mouseCursor {
    display: none !important;
}

.site-theme-shell::-webkit-scrollbar {
    width: 11px;
}

.site-theme-shell::-webkit-scrollbar-track {
    background: var(--hk-surface-2);
}

.site-theme-shell::-webkit-scrollbar-thumb {
    background: #c3c6cc;
    border-radius: 8px;
    border: 3px solid var(--hk-surface-2);
}

.theme-dark.site-theme-shell::-webkit-scrollbar-thumb {
    background: #3a3d44;
}

/* ————— نوار خیلی بالای صفحه ————— */

.site-theme-shell .top-header-area {
    background: #0c0d10;
}

/* ————— منوی اصلی: چسبان و شیشه‌ای ————— */

.site-theme-shell .navbar-area {
    position: sticky;
    top: 0;
    z-index: 1020;
    /* رنگ توپر اول می‌آید تا اگر مرورگر color-mix را نشناسد، نوار بی‌پس‌زمینه نماند */
    background: var(--hk-surface);
    background: color-mix(in srgb, var(--hk-surface) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.7) blur(14px);
    backdrop-filter: saturate(1.7) blur(14px);
    border-bottom: 1px solid var(--hk-border);
    transition: box-shadow 0.25s var(--hk-ease);
}

    /* سایه فقط بعد از اسکرول، تا در بالای صفحه خط اضافه دیده نشود */
    .site-theme-shell .navbar-area.is-scrolled {
        box-shadow: var(--hk-shadow-1);
    }

.site-theme-shell .navbar-area .nav-link {
    border-radius: 10px;
    font-weight: 500;
    transition: color 0.2s var(--hk-ease), background-color 0.2s var(--hk-ease);
}

    .site-theme-shell .navbar-area .nav-link:hover {
        background: var(--hk-surface-2);
        color: var(--hk-accent);
    }

    .site-theme-shell .navbar-area .nav-link.active {
        color: var(--hk-accent);
    }

    .site-theme-shell .navbar-area .nav-link.disabled {
        opacity: 0.5;
        cursor: default;
    }

/* ————— هیرو (اسلایدر) ————— */

.site-theme-shell .banner-slider-item {
    position: relative;
    min-height: clamp(460px, 58vh, 640px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

    /* گرادیان تیره از سمت متن (راست در RTL) تا عکسِ هر رنگی باشد، متن خوانا بماند */
    .site-theme-shell .banner-slider-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to left,
            rgba(8, 9, 12, 0.88) 10%,
            rgba(8, 9, 12, 0.60) 45%,
            rgba(8, 9, 12, 0.22) 75%,
            rgba(8, 9, 12, 0.05));
        pointer-events: none;
    }

    .site-theme-shell .banner-slider-item > .container-fluid {
        position: relative;
        z-index: 1;
    }

.site-theme-shell .banner-content {
    max-width: 780px;
}

    /* متن قرمز کوچک بالای عنوان → چیپ شیشه‌ای با نقطهٔ قرمز */
    .site-theme-shell .banner-content > span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 8px 18px;
        border-radius: 999px;
        background: rgba(221, 0, 0, 0.22);
        border: 1px solid rgba(255, 77, 90, 0.55);
        color: #ffffff;
        font-weight: 600;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        margin-bottom: 18px;
    }

        .site-theme-shell .banner-content > span::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--hk-accent-2);
            box-shadow: 0 0 0 4px rgba(255, 45, 63, 0.25);
        }

    .site-theme-shell .banner-content h1,
    .site-theme-shell .banner-content h2 {
        font-size: clamp(30px, 4.6vw, 58px);
        line-height: 1.25;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    }

        /* روکش قرمز انیمیشن قالب حذف: اسکریپت آن فقط h1 را باز می‌کند، پس روی
           اسلایدهای h2 (و کلون‌های اسلایدر) بسته می‌ماند و عنوان را می‌پوشاند. */
        .site-theme-shell .banner-content h1 .overlay,
        .site-theme-shell .banner-content h2 .overlay {
            display: none !important;
        }

    .site-theme-shell .banner-content p {
        font-size: clamp(15px, 1.4vw, 18px);
        line-height: 1.9;
        color: rgba(255, 255, 255, 0.88);
        max-width: 62ch;
        text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
    }

/* جعبهٔ داخل اسلاید → کارت شیشه‌ای */
.site-theme-shell .banner-content .apply-content {
    background: rgba(12, 13, 17, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--hk-radius);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--hk-shadow-2);
}

    /* قاب خط‌چین قرمز قدیمی قالب، با کارت شیشه‌ای بی‌معناست */
    .site-theme-shell .banner-content .apply-content::before {
        display: none;
    }

    /* رنگ متن قالب #212226 است که روی شیشهٔ تیره دیده نمی‌شود */
    .site-theme-shell .banner-content .apply-content .apply-text span {
        color: #ffffff;
        font-weight: 500;
    }

/* نقطه‌های اسلایدر: خط‌های کوچک، قرمز برای اسلاید فعال */
.site-theme-shell .banner-area .owl-dots .owl-dot span {
    width: 24px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 5px;
    transition: all 0.3s var(--hk-ease);
}

.site-theme-shell .banner-area .owl-dots .owl-dot.active span {
    background: var(--hk-accent-2);
    width: 38px;
}

/* ————— عنوان بخش‌ها ————— */

.site-theme-shell .section-title span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

    .site-theme-shell .section-title span::before {
        content: "";
        width: 26px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--hk-accent), var(--hk-accent-2));
    }

.site-theme-shell .section-title h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.35;
}

/* ————— دکمه‌ها: توپر قرمز، هویت اصلی ————— */

.site-theme-shell .default-btn {
    background: linear-gradient(135deg, #ef1626, #b50d1c);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(221, 0, 0, 0.25);
    transition: transform 0.2s var(--hk-ease), box-shadow 0.2s var(--hk-ease), filter 0.2s var(--hk-ease);
    will-change: transform;
}

    /* لایهٔ پرشوندهٔ قدیمی قالب حذف؛ رنگ از خود دکمه می‌آید */
    .site-theme-shell .default-btn::before {
        display: none;
    }

    .site-theme-shell .default-btn,
    .site-theme-shell .default-btn i,
    .site-theme-shell .default-btn span {
        color: #ffffff;
    }

    .site-theme-shell .default-btn:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: var(--hk-shadow-red);
        filter: saturate(1.1);
    }

    .site-theme-shell .default-btn:active {
        transform: translateY(0);
    }

/* ————— کارت‌ها (خبر، خدمات، گالری) ————— */

.site-theme-shell .single-blog-card,
.site-theme-shell .single-services-box,
.site-theme-shell .single-services-card,
.site-theme-shell .single-gallery-card {
    background: var(--hk-surface);
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius);
    overflow: hidden;
    box-shadow: var(--hk-shadow-1);
    transition: transform 0.28s var(--hk-ease), box-shadow 0.28s var(--hk-ease), border-color 0.28s var(--hk-ease);
    height: 100%;
}

    .site-theme-shell .single-blog-card:hover,
    .site-theme-shell .single-services-box:hover,
    .site-theme-shell .single-services-card:hover,
    .site-theme-shell .single-gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--hk-shadow-2);
        border-color: rgba(221, 0, 0, 0.30);
    }

/* تصویر کارت: نسبت ثابت تا ردیف کارت‌ها هم‌تراز بماند و صفحه هنگام بارگذاری نپرد */
.site-theme-shell .single-blog-card .blog-img,
.site-theme-shell .single-services-box .services-img,
.site-theme-shell .single-services-card .services-img,
.site-theme-shell .single-gallery-card .gallery-img {
    position: relative;
    overflow: hidden;
    background: var(--hk-surface-2);
}

    .site-theme-shell .single-blog-card .blog-img img,
    .site-theme-shell .single-services-box .services-img img,
    .site-theme-shell .single-services-card .services-img img,
    .site-theme-shell .single-gallery-card .gallery-img img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        display: block;
        transition: transform 0.5s var(--hk-ease);
    }

    /* سایهٔ ملایم پایین عکس هنگام hover — عمق بدون شلوغی */
    .site-theme-shell .single-blog-card .blog-img::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 45%;
        background: linear-gradient(to top, rgba(10, 11, 14, 0.35), transparent);
        opacity: 0;
        transition: opacity 0.3s var(--hk-ease);
        pointer-events: none;
    }

.site-theme-shell .single-blog-card:hover .blog-img::after {
    opacity: 1;
}

.site-theme-shell .single-blog-card:hover .blog-img img,
.site-theme-shell .single-services-box:hover .services-img img,
.site-theme-shell .single-services-card:hover .services-img img,
.site-theme-shell .single-gallery-card:hover .gallery-img img {
    transform: scale(1.06);
}

.site-theme-shell .single-blog-card .blog-content,
.site-theme-shell .single-services-box .services-content,
.site-theme-shell .single-services-card .services-content {
    padding: 22px 24px 24px;
}

/* قاب کارت را لایهٔ جدید می‌کشد؛ خط‌چین داخلی قالب روی .blog-content اضافه است */
.site-theme-shell .single-blog-card .blog-content {
    border: none;
    border-radius: 0;
}

    /* شکل قرمز گوشهٔ پایین که هنگام hover بالا می‌آمد، با گوشه‌های گرد کارت
       ناهماهنگ بیرون می‌زد — حذف */
    .site-theme-shell .single-blog-card .blog-content::before {
        display: none;
    }

/* دکمهٔ «بیشتر بخوانید» به لبهٔ پایین سنجاق می‌شود تا وقتی عنوان‌ها یک تا سه خط‌اند،
   فاصلهٔ دکمه از پایین در همهٔ کارت‌های یک ردیف یکسان بماند */
.site-theme-shell .single-blog-card {
    display: flex;
    flex-direction: column;
}

    .site-theme-shell .single-blog-card .blog-content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .site-theme-shell .single-blog-card .blog-content .default-btn {
            margin-top: auto;
        }

        /* عنوان تا دکمه نفس بکشد؛ margin-top:auto از بعدِ همین فاصله عمل می‌کند */
        .site-theme-shell .single-blog-card .blog-content h2 {
            margin-bottom: 16px;
        }

.site-theme-shell .blog-content h2 a,
.site-theme-shell .services-content h3 a {
    font-weight: 700;
    transition: color 0.2s var(--hk-ease);
}

    .site-theme-shell .blog-content h2 a:hover,
    .site-theme-shell .services-content h3 a:hover {
        color: var(--hk-accent);
    }

/* فرادادهٔ بالای کارت خبر: کوچک و کم‌رنگ تا عنوان جلو بیفتد */
.site-theme-shell .blog-content > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0;
    margin-bottom: 10px;
    list-style: none;
    font-size: 13px;
    color: var(--hk-muted);
}

    .site-theme-shell .blog-content > ul li {
        margin: 0;
    }

/* ————— نوار بخش خدمات: زمینهٔ متمایز برای ریتم صفحه ————— */

.site-theme-shell .services-area {
    background: var(--hk-surface-2);
}

/* ————— دکمه‌های فیلتر گالری: قرصی، فعال = قرمز ————— */

.site-theme-shell .gallery-tab-btn button,
.site-theme-shell .shoting-btn button {
    border-radius: 999px;
    border: 1px solid var(--hk-border);
    background: var(--hk-surface);
    padding: 8px 20px;
    transition: all 0.2s var(--hk-ease);
}

    .site-theme-shell .gallery-tab-btn button:hover,
    .site-theme-shell .shoting-btn button:hover {
        border-color: rgba(221, 0, 0, 0.45);
        color: var(--hk-accent);
    }

    .site-theme-shell .gallery-tab-btn button.active,
    .site-theme-shell .shoting-btn button.active {
        background: var(--hk-accent);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(221, 0, 0, 0.30);
    }

/* ————— فوتر ————— */

.site-theme-shell .footer-area {
    background: linear-gradient(180deg, #121317, #0b0c0f);
    border-top: 3px solid var(--hk-accent);
}

    .site-theme-shell .footer-area h3 {
        color: #ffffff;
        position: relative;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }

        /* خط قرمز کوچک زیر عنوان هر ستون فوتر (راست‌چین) */
        .site-theme-shell .footer-area h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 34px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--hk-accent), var(--hk-accent-2));
        }

    .site-theme-shell .footer-area a {
        transition: color 0.2s var(--hk-ease);
    }

        .site-theme-shell .footer-area a:hover {
            color: var(--hk-accent-2) !important;
        }

/* دکمهٔ بازگشت به بالا */
.site-theme-shell .go-top {
    background: var(--hk-accent);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(221, 0, 0, 0.35);
}

/* ————— دسترس‌پذیری ————— */

.site-theme-shell a:focus-visible,
.site-theme-shell button:focus-visible,
.site-theme-shell input:focus-visible,
.site-theme-shell textarea:focus-visible {
    outline: 2px solid var(--hk-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
    /* لنگرها زیر هدر چسبان پنهان نشوند */
    scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-theme-shell *,
    .site-theme-shell *::before,
    .site-theme-shell *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ————— ریسپانسیو ————— */

@media (max-width: 991px) {
    .site-theme-shell .banner-slider-item {
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    /* منوی موبایل (meanmenu) با حالت چسبان تداخل دارد */
    .site-theme-shell .navbar-area {
        position: static;
    }

    .site-theme-shell .banner-slider-item {
        min-height: 430px;
    }

    .site-theme-shell .banner-content > span {
        padding: 6px 14px;
        font-size: 13px;
        margin-bottom: 14px;
    }

    .site-theme-shell .single-blog-card .blog-content,
    .site-theme-shell .single-services-box .services-content,
    .site-theme-shell .single-services-card .services-content {
        padding: 18px 18px 20px;
    }

    html {
        scroll-padding-top: 16px;
    }
}
