/* Place B Nazanin files in /public/assets/fonts/ and uncomment:
@font-face {
    font-family: 'B Nazanin';
    src: url('../fonts/BNazanin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'B Nazanin';
    src: url('../fonts/BNazanin-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/
@font-face {
    font-family: 'YekanBakh';
    src: url("../fonts/fa/yekanbakh/woff2/YekanBakhFaNum-VF.woff2") format("woff2"),
    url("../fonts/fa/yekanbakh/woff/YekanBakhFaNum-VF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}



:root {
    --primary: #592A85;
    --primary-dark: #432066;
    --magenta: #B83085;
    --blue-accent: #4E84C4;
    --dark: #10172A;
    --muted: #68708A;
    --soft-bg: #FAF8FC;
    --border: #E9E4F0;
    --white: #FFFFFF;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(16, 23, 42, 0.06);
    --shadow-hover: 0 16px 32px rgba(89, 42, 133, 0.1);
    --container: 1320px;
    --font-family: 'YekanBakh', 'YekanBakh', Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.site-body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--dark);
    background: var(--white);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--primary-dark);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 8px;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    inset-inline-start: 12px;
    color: #fff;
}

.container-xl {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 88px 0;
    scroll-margin-top: 96px;
}

.section-soft,
.contact-section {
    background: var(--soft-bg);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-heading h2,
.hero-title,
.content-card h3,
.benefit-item h3,
.form-card h3,
.site-footer h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-kicker {
    display: inline-block;
    color: var(--magenta);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.section-desc,
.hero-lead,
.content-card p,
.benefit-item p {
    color: var(--muted);
    margin-bottom: 0;
}

.btn-mehrtek,
.btn-mehrtek-outline,
.site-cta {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-mehrtek,
.site-cta {
    background: var(--primary);
    color: #fff;
}

.btn-mehrtek:hover,
.btn-mehrtek:focus-visible,
.site-cta:hover,
.site-cta:focus-visible {
    background: var(--primary-dark);
    color: #fff;
}

.btn-mehrtek-outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-mehrtek-outline:hover,
.btn-mehrtek-outline:focus-visible {
    background: var(--soft-bg);
    color: var(--primary-dark);
}

.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    z-index: 1030;
    padding: 0;
}

.site-navbar {
    background: rgba(7, 27, 58, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    padding: 10px 18px;
    transition: all .3s ease;
}

.site-navbar-inner {
    width: min(100%, var(--container));
}

.site-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.site-logo {
    object-fit: contain;
    max-height: 48px;
    width: auto;
}

.site-logo-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.site-slogan {
    font-size: 0.78rem;
    color: #a483c2;
    line-height: 1.4;
}

.site-nav .nav-link {
    color: #ffffff;;
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.dropdown-item:hover,
.dropdown-item:focus-visible {
    color: #a483c2;
    background: rgba(89, 42, 133, 0.06);
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}


.text-brand {
    color: var(--primary);
}

.text-magenta {
    color: var(--magenta);
}

.product-media,
.article-media {
    width: 100%;
    object-fit: contain;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(89, 42, 133, 0.04), rgba(78, 132, 196, 0.05));
    color: var(--primary);
}

.media-placeholder i {
    font-size: 2rem;
    color: var(--blue-accent);
}

.media-placeholder-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.carousel-control-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.25;
}

.carousel-indicators .active {
    opacity: 1;
}

.content-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card {
    text-align: center;
}

.product-media {
    min-height: 160px;
    max-height: 180px;
    margin-bottom: 16px;
    object-fit: contain;
}

.future-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border-radius: var(--radius-sm);
    background: var(--soft-bg);
    color: var(--primary);
    font-size: 2rem;
}

.icon-badge,
.line-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(89, 42, 133, 0.08);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.line-icon {
    background: transparent;
    border: 1.5px solid var(--primary);
}

.details-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    min-height: 44px;
    padding-top: 8px;
}

.why-section {
    background:
        radial-gradient(circle at 80% 20%, rgba(89, 42, 133, 0.06), transparent 30%),
        #fff;
}

.benefit-item {
    padding: 8px 4px;
}

.form-card .form-control,
.form-card .form-select {
    min-height: 44px;
    border-color: var(--border);
    border-radius: 10px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(89, 42, 133, 0.12);
}

.form-label {
    font-weight: 700;
}

.loan-result {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--soft-bg);
    border: 1px solid var(--border);
}

.loan-result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.loan-result-row:last-child {
    border-bottom: 0;
}

.form-error {
    color: #b42318;
    margin-top: 12px;
}

.article-card {
    padding: 0;
    overflow: hidden;
}

.article-media {
    min-height: 180px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.article-body {
    padding: 20px 24px 24px;
}

.article-body time {
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-section {
    background:
        radial-gradient(circle at 12% 80%, rgba(89, 42, 133, 0.07), transparent 26%),
        var(--soft-bg);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 76px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    color: inherit;
}

.contact-info-card i {
    color: var(--blue-accent);
    font-size: 1.25rem;
}

.contact-info-card strong,
.contact-info-card span {
    display: block;
}

.site-footer {
    background: #f7f4fa;
    border-top: 1px solid #e4d8f0;
    padding-top: 56px;
    color: var(--dark);
}

.footer-about,
.footer-links a,
.footer-contact,
.footer-bottom {
    color: var(--muted);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: var(--muted);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.inner-page {
    padding: 48px 0 88px;
}

@media (max-width: 991.98px) {
    .site-header {
        top: 0;
        padding: 0;
    }

    .site-navbar {
        border-radius: 0;
        background: #fff;
        backdrop-filter: none;
    }

    .site-cta {
        width: 100%;
        margin-top: 12px;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 575.98px) {
    .container-xl {
        width: min(100% - 1.25rem, var(--container));
    }

}

.hero-title,
.hero-lead,
.rich-copy {
    overflow-wrap: anywhere;
}

.detail-media,
.service-media {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.service-media {
    max-height: 140px;
    margin-bottom: 16px;
}

.detail-media {
    max-height: min(420px, 60vh);
    margin-bottom: 24px;
}

.rich-copy {
    margin-top: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.hero-section {
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #10172a;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
    height: 600px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-color: #1a1230;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(16, 23, 42, 0.12) 0%,
        rgba(16, 23, 42, 0.38) 42%,
        rgba(16, 23, 42, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-copy {
    width: min(100%, 640px);
    min-width: 0;
    text-align: start;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.hero-section .hero-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.35;
}

.hero-section .hero-lead {
    max-width: 36rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-carousel .carousel-indicators,
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 18px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: #fff;
}

.hero-kicker,
.hero-section .hero-title,
.hero-section .hero-lead,
.hero-actions {
    opacity: 1;
}

.carousel-item.is-hero-playing .hero-slide-bg {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.carousel-item.is-hero-playing .hero-kicker {
    animation: hero-fade-in 0.7s ease both;
}

.carousel-item.is-hero-playing .hero-title {
    animation: hero-title-in 0.8s ease both;
}

.carousel-item.is-hero-playing .hero-lead {
    animation: hero-fade-in 0.8s ease 0.3s both;
}

.carousel-item.is-hero-playing .hero-actions {
    animation: hero-fade-up 0.8s ease 0.6s both;
}

@keyframes hero-title-in {
    from {
        opacity: 0;
        transform: translate3d(3rem, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 1.75rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 767.98px) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-slide {
        height: 520px;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(16, 23, 42, 0.28) 0%,
            rgba(16, 23, 42, 0.72) 100%
        );
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-copy,
    .hero-section .hero-lead {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-kicker,
    .hero-section .hero-title,
    .hero-section .hero-lead,
    .hero-actions {
        opacity: 1;
        animation: none;
    }

    .hero-slide-bg,
    .carousel-item.is-hero-playing .hero-slide-bg {
        transform: none;
        transition: none;
    }
}

.footer-contact-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact-inline > i {
    margin-top: 5px;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-contact-inline > div {
    min-width: 0;
}

.footer-contact-inline strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.footer-contact-inline span,
.footer-contact-inline a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-phone-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-phone-row a {
    direction: ltr;
    unicode-bidi: embed;
}

.footer-phone-row span {
    opacity: .45;
}
