/* =========================================================================
   عدل ایرانیان — سامانه طراحی جدید صفحات داخلی
   طراحی از پایه، بر اساس زبان بصری صفحه اصلی (فونت وزیرمتن، مشکی + گرادیان طلایی)
   این فایل جایگزین کامل استایل‌های قالب قدیمی (style.css / responsive.css) است.
   ========================================================================= */

@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-Light.woff2") format("woff2");
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("../index/src/fonts/vazirmatn/webfonts/Vazirmatn-Black.woff2") format("woff2");
    font-weight: 800; font-style: normal; font-display: swap;
}

:root{
    --ink:#000000;
    --ink-2:#111111;
    --ink-3:#1c1c1c;
    --paper:#ffffff;
    --paper-2:#f7f5f2;
    --line:#e7e3dc;
    --muted:#6b6b6b;
    --gold-1:#c59563;
    --gold-2:#8b5b23;
    --gold-3:#8b6341;
    --gold-grad: linear-gradient(140deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 75%);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 10px 30px rgba(0,0,0,.08);
    --shadow-2: 0 18px 45px rgba(0,0,0,.14);
}

/* ---------- پایه ---------- */
html{ scroll-behavior:smooth; }
body{
    font-family:'Vazirmatn','geo',-apple-system,sans-serif !important;
    color:var(--ink-3);
    background:var(--paper);
    direction:rtl;
}
.aj-container{ max-width:1240px; margin:0 auto; padding:0 20px; }
.aj-section{ padding:70px 0; }
.aj-section--tight{ padding:40px 0; }
.aj-section--paper{ background:var(--paper); }
.aj-section--muted{ background:var(--paper-2); }
.aj-section--ink{ background:var(--ink); }
img{ max-width:100%; }
a{ transition:.2s color, .2s opacity; }

/* ---------- هدر / ناوبری ---------- */
.aj-header{
    position:sticky; top:0; z-index:1000;
    background:var(--ink);
    border-bottom:1px solid #262626;
}
.aj-header__bar{
    max-width:1300px; margin:0 auto; padding:0 20px;
    display:flex; align-items:center; justify-content:space-between;
    height:82px; gap:24px;
}
.aj-header__logo{ display:flex; align-items:center; flex-shrink:0; }
.aj-header__logo img{ width:60px; }
.aj-nav{ display:flex; align-items:center; gap:6px; flex:1; }
.aj-nav > ul{ list-style:none; display:flex; align-items:center; gap:2px; margin:0; padding:0; flex-wrap:wrap; }
.aj-nav a.aj-nav__link{
    display:flex; align-items:center; gap:6px;
    color:#f2f2f2; text-decoration:none; font-size:15px; font-weight:500;
    padding:12px 14px; border-radius:8px; white-space:nowrap;
}
.aj-nav a.aj-nav__link:hover{ color:#fff; background:#161616; }
.aj-nav .aj-has-drop{ position:relative; }
.aj-nav .aj-drop{
    position:absolute; top:calc(100% + 10px); right:0;
    background:#0d0d0d; border:1px solid #262626; border-radius:12px;
    min-width:230px; padding:10px; box-shadow:var(--shadow-2);
    opacity:0; visibility:hidden; transform:translateY(6px);
    transition:.18s ease; z-index:50;
}
.aj-nav .aj-has-drop:hover > .aj-drop,
.aj-nav .aj-has-drop.is-open > .aj-drop{
    opacity:1; visibility:visible; transform:translateY(0);
}
.aj-drop a{ display:block; color:#e9e9e9; text-decoration:none; font-size:14px; padding:9px 12px; border-radius:8px; }
.aj-drop a:hover{ background:#1a1a1a; color:var(--gold-1); }
.aj-drop .aj-drop__group-title{ color:#8a8a8a; font-size:12px; padding:8px 12px 2px; }

.aj-header__right{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.aj-header__phone{
    display:flex; align-items:center; gap:8px; color:#f2f2f2; text-decoration:none;
    font-size:14px; font-weight:500;
}
.aj-header__phone img{ width:22px; }
.aj-btn-cta{
    display:inline-flex; align-items:center; gap:8px;
    background:var(--gold-grad); color:#fff !important; text-decoration:none;
    font-size:14px; font-weight:600; padding:11px 20px; border-radius:999px;
    white-space:nowrap; border:none;
}
.aj-btn-cta:hover{ opacity:.9; color:#fff; }

.aj-burger{
    display:none; width:44px; height:44px; border-radius:10px; border:1px solid #333;
    background:transparent; color:#fff; font-size:20px; align-items:center; justify-content:center;
    cursor:pointer;
}

/* منوی موبایل */
.aj-mobile-nav{
    position:fixed; inset:0; z-index:1200;
    background:rgba(0,0,0,.55);
    opacity:0; visibility:hidden; transition:.25s;
}
.aj-mobile-nav.is-open{ opacity:1; visibility:visible; }
.aj-mobile-nav__panel{
    position:absolute; top:0; right:0; height:100%; width:min(340px,86vw);
    background:#0a0a0a; padding:22px; overflow-y:auto;
    transform:translateX(100%); transition:.3s;
    display:flex; flex-direction:column; gap:4px;
}
.aj-mobile-nav.is-open .aj-mobile-nav__panel{ transform:translateX(0); }
.aj-mobile-nav__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.aj-mobile-nav__head img{ width:52px; }
.aj-mobile-nav__close{ background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }
.aj-mobile-nav a{ color:#eee; text-decoration:none; font-size:15px; padding:12px 8px; border-bottom:1px solid #1c1c1c; }
.aj-mobile-nav a:hover{ color:var(--gold-1); }
.aj-mobile-nav__sub{ padding-right:16px; }
.aj-mobile-nav__sub a{ font-size:13.5px; color:#b8b8b8; border-bottom:none; padding:8px; }

@media (max-width:1180px){
    .aj-nav{ display:none; }
    .aj-header__phone{ display:none; }
    .aj-burger{ display:flex; }
}
@media (max-width:576px){
    .aj-btn-cta{ padding:9px 14px; font-size:13px; }
}

/* ---------- هیرو تیره (باند بالای صفحات داخلی) ---------- */
/* گرادیان مشکی-طلایی ملایم (به‌جای بک‌گراند یک‌دست) — سیاه در بیشتر سطح، با یک ریزش نرم طلایی از گوشه پایین برای عمق و برند */
.aj-hero{
    background-color:#000;
    background-image:
        radial-gradient(1100px 320px at 15% 0%, rgba(197,149,99,.16), transparent 60%),
        linear-gradient(135deg, rgba(197,149,99,0) 0%, rgba(197,149,99,0) 55%, rgba(139,91,35,.55) 85%, rgba(197,149,99,.65) 100%);
    background-repeat:no-repeat, no-repeat;
    padding:64px 0 54px;
    position:relative;
}
.aj-hero::after{
    content:""; position:absolute; right:0; bottom:0; left:0; height:3px;
    background:var(--gold-grad);
}
/* بنر با بک‌گراند فیکس (مثل هیروی صفحه main) — روی موبایل/تبلت background-attachment:fixed مشکل رندر و اسکرول ایجاد می‌کنه (خصوصاً iOS)، پس غیرفعالش می‌کنیم */
.aj-hero--fixedbg{ background-attachment:fixed; }
@media (max-width:900px){ .aj-hero--fixedbg{ background-attachment:scroll; } }
.aj-crumbs{ display:flex; gap:8px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.aj-crumbs a, .aj-crumbs span{ color:#a8a8a8; font-size:13.5px; text-decoration:none; }
.aj-crumbs a:hover{ color:var(--gold-1); }
.aj-crumbs .sep{ color:#555; }
.aj-hero h1{ color:#fff; font-weight:700; font-size:clamp(24px,3.4vw,36px); margin:0 0 10px; }
.aj-hero p{ color:#b9b9b9; font-size:15.5px; max-width:680px; margin:0; }

/* ---------- عنوان بخش ---------- */
.aj-eyebrow{ color:var(--gold-2); font-weight:600; font-size:13px; letter-spacing:.02em; margin-bottom:8px; display:block; }
.aj-section-title{ font-weight:700; font-size:clamp(20px,2.4vw,28px); color:var(--ink); margin:0 0 12px; }
.aj-section-lead{ color:var(--muted); font-size:15px; max-width:640px; }

/* ---------- دکمه‌ها ---------- */
.aj-btn{
    display:inline-flex; align-items:center; gap:8px; text-decoration:none;
    font-size:14.5px; font-weight:600; border-radius:999px; padding:13px 26px; border:none; cursor:pointer;
}
.aj-btn-gold{ background:var(--gold-grad); color:#fff !important; }
.aj-btn-gold:hover{ opacity:.9; color:#fff; }
.aj-btn-outline{ background:transparent; color:var(--ink) !important; border:1.5px solid var(--ink); }
.aj-btn-outline:hover{ background:var(--ink); color:#fff !important; }
.aj-btn-outline-light{ background:transparent; color:#fff !important; border:1.5px solid rgba(255,255,255,.4); }
.aj-btn-outline-light:hover{ background:#fff; color:#000 !important; }
.aj-btn-block{ width:100%; justify-content:center; }
.aj-btn-sm{ padding:9px 18px; font-size:13.5px; }

/* ---------- کارت‌ها / گرید ---------- */
.aj-grid{ display:grid; gap:22px; }
.aj-grid--2{ grid-template-columns:repeat(2,1fr); }
.aj-grid--3{ grid-template-columns:repeat(3,1fr); }
.aj-grid--4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:992px){ .aj-grid--3,.aj-grid--4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:576px){ .aj-grid--2,.aj-grid--3,.aj-grid--4{ grid-template-columns:1fr; } }
/* گریدهای دوستونهٔ با نسبت سفارشی (مثلاً 1.3fr 1fr) که مستقیم با style اینلاین ست شدن — روی موبایل/تبلت باید زیر هم بیفتن، وگرنه فشرده و بی‌ریسپانسیو می‌مونن */
@media (max-width:900px){ .aj-grid--stack{ grid-template-columns:1fr !important; } }

.aj-card{
    background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:30px 26px; text-align:center; transition:.25s;
}
.aj-card:hover{ box-shadow:var(--shadow-1); transform:translateY(-3px); border-color:transparent; }
.aj-card__icon{
    width:60px; height:60px; border-radius:16px; margin:0 auto 16px;
    display:flex; align-items:center; justify-content:center; font-size:26px; color:#fff;
    background:var(--gold-grad);
}
.aj-card h3, .aj-card h4, .aj-card h5{ margin:0 0 8px; color:var(--ink); font-weight:700; }
.aj-card p{ color:var(--muted); font-size:14.5px; margin:0; }

.aj-card--dark{ background:#111; border:1px solid #1f1f1f; }
.aj-card--dark h3,.aj-card--dark h4,.aj-card--dark h5{ color:#fff; }
.aj-card--dark p{ color:#a9a9a9; }

/* کارت خدمت با تصویر */
.aj-service-card{ display:block; text-decoration:none; border-radius:var(--radius-md); overflow:hidden; background:#fff; border:1px solid var(--line); transition:.25s; height:100%; }
.aj-service-card:hover{ box-shadow:var(--shadow-1); transform:translateY(-3px); }
.aj-service-card__img{ height:180px; overflow:hidden; }
.aj-service-card__img img{ width:100%; height:100%; object-fit:cover; }
.aj-service-card__body{ padding:18px 20px; }
.aj-service-card__body h6{ margin:0; color:var(--ink); font-weight:700; font-size:15.5px; }

/* کارت وبلاگ */
.aj-blog-card{ display:block; text-decoration:none; border-radius:var(--radius-md); overflow:hidden; background:#fff; border:1px solid var(--line); height:100%; transition:.25s; }
.aj-blog-card:hover{ box-shadow:var(--shadow-1); transform:translateY(-3px); }
.aj-blog-card__img{ height:180px; overflow:hidden; }
.aj-blog-card__img img{ width:100%; height:100%; object-fit:cover; }
.aj-blog-card__body{ padding:18px 20px; }
.aj-blog-card__cat{ color:var(--gold-2); font-size:12.5px; font-weight:600; }
.aj-blog-card__title{ color:var(--ink); font-size:16px; font-weight:700; margin:8px 0; line-height:1.6; }
.aj-blog-card__meta{ color:#8c8c8c; font-size:12.5px; }

/* لیست ردیفی وبلاگ (صفحه اصلی لیست) */
.aj-blog-row{ display:flex; gap:24px; align-items:center; padding:22px 0; border-bottom:1px solid var(--line); }
.aj-blog-row__img{ flex-shrink:0; width:260px; border-radius:var(--radius-md); overflow:hidden; }
.aj-blog-row__img img{ width:100%; height:170px; object-fit:cover; }
.aj-blog-row__body h2{ font-size:19px; margin:6px 0 10px; }
.aj-blog-row__body h2 a{ color:var(--ink); text-decoration:none; }
.aj-blog-row__body h2 a:hover{ color:var(--gold-2); }
.aj-blog-row__meta{ display:flex; align-items:center; gap:10px; color:#8c8c8c; font-size:13px; }
.aj-blog-row__meta img{ width:26px; height:26px; border-radius:50%; }
@media (max-width:650px){ .aj-blog-row{ flex-direction:column; align-items:flex-start; } .aj-blog-row__img{ width:100%; } }

/* ---------- CTA بند تیره ---------- */
.aj-cta{
    background-color:#000; border-radius:var(--radius-lg); padding:56px 40px; text-align:center;
    background-image:
        radial-gradient(900px 260px at 85% 0%, rgba(197,149,99,.14), transparent 60%),
        linear-gradient(315deg, rgba(197,149,99,0) 0%, rgba(197,149,99,0) 55%, rgba(139,91,35,.5) 85%, rgba(197,149,99,.6) 100%);
    background-repeat:no-repeat, no-repeat;
}
.aj-cta h3{ color:#fff; font-weight:700; font-size:clamp(19px,2.2vw,25px); margin:0 0 10px; }
.aj-cta p{ color:#b9b9b9; margin:0 0 22px; }
.aj-cta .aj-btn{ margin:4px; }

/* ---------- فرم‌ها ---------- */
.aj-form-box{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:40px; box-shadow:var(--shadow-1); }
.aj-form-box h4{ font-weight:700; margin-bottom:22px; color:var(--ink); }
.aj-field{ margin-bottom:18px; }
.aj-field label{ display:block; font-size:13.5px; font-weight:600; color:var(--ink-3); margin-bottom:8px; }
.aj-form-box .form-control,
.aj-form-box textarea,
.aj-auth-box .form-control{
    width:100%; border:1.5px solid var(--line); border-radius:10px; padding:13px 16px;
    font-family:inherit; font-size:14.5px; background:#fbfaf8; color:var(--ink-3);
}
.aj-form-box .form-control:focus,
.aj-form-box textarea:focus,
.aj-auth-box .form-control:focus{ outline:none; border-color:var(--gold-1); background:#fff; }
.aj-form-box textarea{ resize:vertical; }
.aj-alert{ padding:14px 16px; border-radius:10px; font-size:14px; margin-bottom:16px; }
.aj-alert-success{ background:#62dc4422; color:#0a7d1e; }
.aj-alert-error{ background:#dc444422; color:#b31313; }
.aj-alert-info{ background:#4465dc22; color:#26399e; }
.aj-alert-warn{ background:#dcd24422; color:#7e7e00; }
.aj-field-error{ color:#c0392b; font-size:12.5px; display:block; margin-top:6px; }

/* ---------- صفحه ورود / ثبت‌نام ---------- */
.aj-auth-wrap{
    background-color:#000; padding:70px 0;
    background-image:
        radial-gradient(1000px 300px at 50% 0%, rgba(197,149,99,.14), transparent 60%),
        linear-gradient(135deg, rgba(197,149,99,0) 0%, rgba(197,149,99,0) 55%, rgba(139,91,35,.5) 85%, rgba(197,149,99,.6) 100%);
    background-repeat:no-repeat, no-repeat;
}
.aj-auth-box{ max-width:480px; margin:0 auto; background:#fff; border-radius:var(--radius-lg); padding:42px 36px; box-shadow:var(--shadow-2); }
.aj-auth-box h2{ text-align:center; font-weight:700; margin-bottom:6px; color:var(--ink); }
.aj-auth-box .aj-auth-sub{ text-align:center; color:var(--muted); font-size:14px; margin-bottom:22px; }
.aj-auth-switch{ text-align:center; font-size:13.5px; color:var(--muted); margin-bottom:20px; }
.aj-auth-switch a{ color:var(--gold-2); font-weight:600; text-decoration:none; }

/* ---------- آکاردئون سوالات متداول ---------- */
.aj-faq .accordion-item{ border:1px solid var(--line); border-radius:12px !important; margin-bottom:14px; overflow:hidden; }
.aj-faq .accordion-button{ font-family:inherit; font-weight:600; font-size:15px; color:var(--ink); background:#fff; box-shadow:none !important; }
.aj-faq .accordion-button:not(.collapsed){ color:var(--gold-2); background:#fbf6ef; }
.aj-faq .accordion-button::after{ margin-inline-start:0; margin-inline-end:auto; }
.aj-faq .accordion-body{ color:#4a4a4a; font-size:14.5px; line-height:2; }

/* ---------- تب‌های بوت‌استرپ (خدمات صفحه اصلی) ---------- */
.aj-pills .nav-link{ border-radius:999px !important; font-size:14px; padding:10px 18px; color:var(--ink) !important; background:#f2efe9; margin:4px; }
.aj-pills .nav-link.active{ background:var(--gold-grad) !important; color:#fff !important; }

/* ---------- صفحه‌بندی (کامپوننت paginate مشترک) ---------- */
.page_navigation{ list-style:none; display:flex; gap:8px; justify-content:center; padding:0; margin:30px 0 0; flex-wrap:wrap; }
.page_navigation .page-link{
    display:flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 10px;
    border-radius:10px; border:1px solid var(--line); color:var(--ink-3); text-decoration:none; font-size:13.5px;
}
.page_navigation .page-item.active .page-link{ background:var(--gold-grad); color:#fff; border-color:transparent; }
.page_navigation .page-item.disabled .page-link{ opacity:.4; }

/* ---------- فوتر ---------- */
.aj-footer{ background:var(--ink); color:#d8d8d8; padding:60px 0 0; position:relative; }
.aj-footer__top{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:30px; padding-bottom:40px; border-bottom:1px solid #232323; }
@media (max-width:900px){ .aj-footer__top{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .aj-footer__top{ grid-template-columns:1fr; } }
.aj-footer h5{ color:#fff; font-size:15px; font-weight:700; margin-bottom:16px; }
.aj-footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.aj-footer a{ color:#b7b7b7; text-decoration:none; font-size:13.5px; }
.aj-footer a:hover{ color:var(--gold-1); }
.aj-footer__logo img{ width:150px; margin-bottom:16px; }
.aj-footer__enamad img{ margin-top:14px; max-width:110px; }
.aj-footer__bottom{ padding:20px 0; text-align:center; color:#7d7d7d; font-size:12.5px; }

/* ---------- دکمه‌های شناور (واتساپ / تماس) — هماهنگ با نسخه صفحه اصلی ---------- */
.aj-float{ position:fixed; width:55px; height:55px; bottom:90px; right:30px; background-color:#25d366; color:#fff; border-radius:50px; text-align:center; box-shadow:2px 2px 3px #999; z-index:1000; display:flex; }
.aj-float img{ width:38px; margin:auto; }
.aj-float2{ bottom:155px !important; background-image:var(--gold-grad) !important; }
.aj-float3{ bottom:215px !important; background-image:var(--gold-grad) !important; width:fit-content; height:fit-content; padding:8px 14px; }
.aj-float3 p{ font-size:13px; color:#fff; white-space:nowrap; margin:0; }
.aj-scrolltop{ position:fixed; left:24px; bottom:24px; width:44px; height:44px; border-radius:50%; background:var(--gold-grad); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; box-shadow:var(--shadow-1); opacity:0; visibility:hidden; transition:.2s; z-index:900; }
.aj-scrolltop.is-visible{ opacity:1; visibility:visible; }
@media (max-width:479px){
    .aj-float{ right:13px; }
    .aj-float2{ bottom:210px !important; }
    .aj-float3{ bottom:270px !important; }
}

/* ---------- محتوای متنی صفحات (قوانین/حریم خصوصی/وبلاگ) ---------- */
.aj-prose{ color:#3a3a3a; font-size:15px; line-height:2.1; text-align:justify; }
.aj-prose img{ border-radius:12px; max-width:100%; height:auto; }
.aj-prose h2,.aj-prose h3{ color:var(--ink); font-weight:700; }

/* ---------- تصویر/متن دوستونه (درباره ما و تیم حقوقی) ---------- */
.aj-split{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
@media (max-width:900px){ .aj-split{ grid-template-columns:1fr; gap:24px; } }
.aj-split img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-1); width:100%; object-fit:cover; }

/* ---------- ابزارک عمومی ---------- */
.aj-text-center{ text-align:center; }
.aj-mt-lg{ margin-top:40px; }