/* =============================================================
   میلاد کاوه — وکیل پایه یک دادگستری
   Stylesheet: نسخه‌ی بازپیراسته‌ی سبک فاخر طلایی/سرمه‌ای
   همان کلاس‌های قبلی حفظ شده‌اند؛ فقط اجرای بصری ارتقا یافته.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@500;600;700&display=swap');
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfont/woff2/Vazirmatn-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- توکن‌های طراحی ---------- */
:root{
  /* سرمه‌ای — عمیق‌تر و یکدست‌تر از نسخه‌ی قبلی */
  --navy-950:#081226;
  --navy-900:#0A1730;
  --navy-800:#132A52;
  --navy-700:#1C3763;

  /* طلایی — به‌جای رنگ تخت، طیف گرم با گرادیان */
  --gold-200:#EBD9AC;
  --gold-400:#D2AE68;
  --gold-500:#C6A15B;   /* رنگ پایه طلایی */
  --gold-600:#A9843F;
  --gold-glow:rgba(198,161,91,.35);

  --bg:#FAF8F4;          /* آف‌وایت گرم، نه سفید خام */
  --surface:#FFFFFF;
  --surface-2:#F3F0E9;

  --text:#1B1B1D;
  --text-soft:#4B5160;
  --text-faint:#8A8F9A;

  --line:rgba(198,161,91,.22);
  --line-soft:rgba(10,23,48,.08);

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-pill:999px;

  --shadow-sm:0 2px 10px rgba(10,23,48,.06);
  --shadow-md:0 10px 30px rgba(10,23,48,.10);
  --shadow-gold:0 10px 26px rgba(198,161,91,.28);

  --ease:cubic-bezier(.22,.8,.24,1);
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:40px; --sp-5:64px; --sp-6:96px;

  /* سازگاری با متغیرهای قدیمی که در HTML/PHP احتمالاً استفاده شده */
  --primary:var(--navy-900);
  --gold:var(--gold-500);
  --white:var(--surface);
  --light:var(--surface-2);
  --text-legacy:var(--text);
}

/* ---------- پایه ---------- */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Vazirmatn', Tahoma, Arial, sans-serif;
  direction:rtl;
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.logo-main,.featured-card h3,.service-card-regular h3{
  font-family:'Noto Serif','Vazirmatn',serif;
  font-weight:600;
  letter-spacing:.2px;
}
a{color:inherit;}
.container{max-width:1180px;margin:0 auto;padding:0 20px;}
img{max-width:100%;display:block;}

::selection{background:var(--gold-200);color:var(--navy-900);}
:focus-visible{outline:2px solid var(--gold-500);outline-offset:3px;}

/* ---------- عنصر امضا: جداکننده‌ی الماسی طلایی ---------- */
.gold-divider{
  display:flex;align-items:center;gap:14px;
  margin:0 auto;max-width:220px;
}
.gold-divider::before,.gold-divider::after{content:'';flex:1;height:1px;}
.gold-divider::before{background:linear-gradient(to right, transparent, var(--gold-500));}
.gold-divider::after{background:linear-gradient(to left, transparent, var(--gold-500));}
.gold-divider .mark{
  width:7px;height:7px;background:var(--gold-500);
  transform:rotate(45deg);flex:none;
  box-shadow:0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}

/* ================= نوار آیه ================= */
.top-bar-quran{
  background:linear-gradient(180deg,var(--navy-950),var(--navy-900));
  padding:22px 0;
  text-align:center;
  border-bottom:1px solid var(--line);
}
.quran-verse-large{
  font-family:'Amiri','Scheherazade New','Traditional Arabic',serif;
  font-size:1.7rem;
  color:var(--gold-400);
  font-weight:700;
  letter-spacing:1px;
  margin:0;
  line-height:2;
  display:inline-block;
  padding:0 22px;
  position:relative;
}
.quran-verse-large::before,.quran-verse-large::after{
  content:'';position:absolute;top:50%;width:26px;height:1px;
  background:linear-gradient(to left, var(--gold-500), transparent);
}
.quran-verse-large::before{right:-6px;}
.quran-verse-large::after{left:-6px;transform:scaleX(-1);}

/* ================= نوار تماس بالا ================= */
.top-bar-luxury{
  background:var(--navy-900);
  color:var(--gold-200);
  font-size:.85rem;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}
.top-bar-luxury .container{display:flex;justify-content:flex-end;align-items:center;}
.top-contact{display:flex;align-items:center;gap:18px;}
.contact-item{display:inline-flex;align-items:center;gap:6px;color:#D7D2C4;font-size:.9rem;}
.contact-item .icon{color:var(--gold-500);font-size:1rem;}
.contact-divider{width:1px;height:14px;background:var(--gold-500);opacity:.35;}
.trust-badge-luxury{color:var(--gold-400);font-weight:500;font-style:italic;}

/* ================= هدر اصلی ================= */
.site-header-luxury{
  background:linear-gradient(180deg,var(--navy-800),var(--navy-900));
  padding:22px 0 0;
  position:sticky;top:0;z-index:100;
  box-shadow:0 8px 30px rgba(8,18,38,.35);
}
.site-header-luxury .container{
  display:flex;align-items:center;justify-content:space-between;position:relative;
}
.brand{display:flex;flex-direction:column;align-items:flex-start;}
.logo-main{
  font-size:1.9rem;
  color:var(--gold-400);
  text-decoration:none;
  line-height:1;
  letter-spacing:.5px;
}
.logo-tagline{
  font-family:'Vazirmatn',sans-serif;
  font-size:.8rem;
  color:#A9AEBB;
  letter-spacing:1px;
  margin:6px 0 0;
}
.logo-ornament{
  width:64px;height:2px;
  background:linear-gradient(to left, var(--gold-500), transparent);
  margin-top:9px;
}

.nav-luxury ul{list-style:none;display:flex;gap:36px;margin:0;padding:0;}
.nav-link-luxury{
  color:#D7D9E0;
  text-decoration:none;
  font-size:.96rem;
  font-weight:500;
  padding:10px 0;
  position:relative;
  transition:color .25s var(--ease);
}
.nav-link-luxury::after{
  content:'';position:absolute;bottom:0;right:0;left:auto;width:0;height:1px;
  background:var(--gold-500);transition:width .3s var(--ease);
}
.nav-link-luxury:hover,.nav-link-luxury.active{color:var(--gold-400);}
.nav-link-luxury:hover::after,.nav-link-luxury.active::after{width:100%;}

.btn-luxury{
  background:linear-gradient(135deg,var(--gold-200),var(--gold-500) 60%,var(--gold-600));
  color:var(--navy-900);
  padding:12px 30px;
  border-radius:var(--radius-pill);
  font-weight:700;
  font-size:.98rem;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:10px;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  box-shadow:var(--shadow-gold);
}
.btn-luxury:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 14px 34px var(--gold-glow);}
.btn-luxury:active{transform:translateY(0);}
.btn-arrow{font-size:1.1rem;transition:margin .2s var(--ease);}
.btn-luxury:hover .btn-arrow{margin-left:4px;}

.header-border{
  width:100%;height:2px;margin-top:16px;
  background:linear-gradient(to left, transparent, var(--gold-500), transparent);
}

/* همبرگر */
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:5px;z-index:1001;}
.hamburger span{display:block;width:24px;height:2px;background:var(--gold-500);transition:.3s var(--ease);}

/* ================= دکمه‌های عمومی ================= */
.btn{padding:11px 24px;border-radius:var(--radius-pill);text-decoration:none;display:inline-block;font-weight:600;transition:.25s var(--ease);}
.btn-primary{background:var(--gold-500);color:var(--navy-900);}
.btn-primary:hover{background:var(--gold-400);}
.btn-gold{background:linear-gradient(135deg,var(--gold-200),var(--gold-500));color:var(--navy-900);font-weight:700;}
.btn-outline{border:1.5px solid var(--gold-500);color:var(--gold-600);background:transparent;}
.btn-outline:hover{background:var(--gold-500);color:var(--navy-900);}
.btn-secondary{background:var(--surface-2);color:var(--text-soft);}

/* ================= هیرو ================= */
.hero{
  background:
    radial-gradient(60% 100% at 85% 0%, rgba(198,161,91,.14), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color:#F4F1E8;
  padding:110px 0;
  text-align:center;
}
.hero h1{font-size:2.6rem;color:var(--gold-400);margin:0 0 10px;}
.hero h2{font-size:1.35rem;font-weight:400;color:#D7D9E0;margin:0 0 22px;font-family:'Vazirmatn',sans-serif;}
.hero-cta{margin-top:32px;}
.hero-cta .btn{margin:8px;}

/* ================= بخش‌های عمومی ================= */
.services-grid,.about-preview,.testimonials,.articles-preview{padding:var(--sp-5) 0;text-align:center;}
.grid{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;}
.service-item{
  background:var(--surface);
  padding:26px;
  border-radius:var(--radius-md);
  flex:1 1 220px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--line-soft);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-item:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}

/* ================= چرا تحلیل حقوقی ================= */
.why-analyze{background:var(--surface-2);padding:var(--sp-5) 0;text-align:center;}
.why-analyze h2{color:var(--navy-900);font-size:2rem;margin-bottom:12px;}
.why-analyze .intro{font-size:1.05rem;max-width:680px;margin:0 auto 36px;color:var(--text-soft);}
.reasons-grid{display:flex;flex-wrap:wrap;gap:26px;justify-content:center;margin-bottom:36px;}
.reason-item{
  background:var(--surface);border-radius:var(--radius-md);padding:26px 22px;
  flex:1 1 220px;box-shadow:var(--shadow-sm);text-align:right;
  border-top:2px solid transparent;
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.reason-item:hover{border-top-color:var(--gold-500);transform:translateY(-3px);}
.reason-item h3{color:var(--navy-900);margin-bottom:10px;font-size:1.2rem;}
.reason-item p{color:var(--text-soft);line-height:1.85;}
.conclusion{font-size:1.05rem;font-weight:500;max-width:760px;margin:0 auto 26px;line-height:2;}
.conclusion strong{color:var(--navy-900);}
.cta-center{margin-top:18px;}

/* ================= کارت‌های ویژه‌ی خدمات ================= */
.featured-grid{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;margin:40px 0;}
.featured-card{
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:34px 24px;
  flex:1 1 280px;max-width:340px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  text-align:center;
  display:flex;flex-direction:column;align-items:center;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.featured-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-gold);
  border-color:var(--gold-500);
}
.featured-card .icon-featured{font-size:2.4rem;color:var(--gold-500);margin-bottom:14px;}
.featured-card h3{font-size:1.35rem;color:var(--navy-900);margin-bottom:10px;}
.featured-card p{color:var(--text-soft);line-height:1.85;margin-bottom:20px;flex-grow:1;}
.featured-card .btn-gold-featured{
  background:linear-gradient(135deg,var(--gold-200),var(--gold-500));
  color:var(--navy-900);padding:11px 26px;border-radius:var(--radius-pill);
  font-weight:700;text-decoration:none;transition:.25s var(--ease);
}
.featured-card .btn-gold-featured:hover{filter:brightness(1.06);transform:translateY(-1px);}

/* ================= خدمات معمولی ================= */
.regular-services{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;margin:40px 0;
}
.service-card-regular{
  background:var(--surface);border:1px solid var(--line-soft);
  border-radius:var(--radius-md);padding:26px;
  transition:box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card-regular:hover{box-shadow:var(--shadow-md);border-color:var(--line);}
.service-card-regular h3{
  color:var(--navy-900);font-size:1.2rem;margin-bottom:14px;
  border-right:3px solid var(--gold-500);padding-right:12px;
}
.service-card-regular ul,.service-card ul{list-style:none;padding:0;}
.service-card-regular ul li,.service-card li{
  padding:7px 0;color:var(--text-soft);border-bottom:1px dotted var(--line-soft);
}
.service-card-regular ul li:last-child{border-bottom:none;}
.service-card-regular ul li::before,.service-card li::before{
  content:"✓ ";color:var(--gold-500);font-weight:bold;margin-left:6px;
}

/* ================= فرایند آنلاین ================= */
.online-process{background:var(--surface-2);border-radius:var(--radius-lg);padding:36px;margin:44px 0;text-align:center;}
.online-process h2{color:var(--navy-900);margin-bottom:22px;}
.process-steps{display:flex;justify-content:center;flex-wrap:wrap;gap:28px;margin-top:24px;}
.step{
  background:var(--surface);border-radius:50%;width:116px;height:116px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1.5px solid var(--gold-500);font-weight:700;color:var(--navy-900);
  box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover{transform:translateY(-3px) scale(1.03);box-shadow:var(--shadow-gold);}
.step span{font-size:.85rem;font-weight:500;color:var(--text-soft);}

/* ================= فراخوان نهایی ================= */
.final-cta{text-align:center;margin:56px 0;}
.final-cta .btn-cta-huge{
  background:linear-gradient(135deg,var(--gold-200),var(--gold-500) 55%,var(--gold-600));
  color:var(--navy-900);font-size:1.2rem;padding:17px 42px;
  border-radius:var(--radius-pill);text-decoration:none;font-weight:700;
  box-shadow:var(--shadow-gold);transition:.3s var(--ease);display:inline-block;
}
.final-cta .btn-cta-huge:hover{transform:translateY(-3px);filter:brightness(1.05);}

/* ================= یادداشت روز ================= */
.daily-note-section{background:var(--surface-2);padding:52px 0;margin-top:30px;border-top:1px solid var(--line);}
.daily-note-section h2{text-align:center;color:var(--navy-900);margin-bottom:26px;}
.daily-note-content{
  max-width:780px;margin:0 auto;background:var(--surface);padding:28px 32px;
  border-radius:var(--radius-md);box-shadow:var(--shadow-sm);line-height:2;text-align:justify;
  border:1px solid var(--line-soft);
}
.daily-note-date{
  text-align:center;font-size:1.05rem;color:var(--gold-600);
  margin-bottom:16px;border-bottom:1px dashed var(--line);padding-bottom:9px;
}

/* ================= فوتر ================= */
.site-footer{
  background:linear-gradient(180deg,var(--navy-900),var(--navy-950));
  color:#D7D9E0;padding:34px 0;text-align:center;
}
.site-footer p{margin:6px 0;color:#B9BDC8;}
.site-footer a{color:var(--gold-400);margin:0 10px;text-decoration:none;}
.site-footer a:hover{color:var(--gold-200);}
.footer-links{margin-top:10px;}

/* ================= بخش ادمین/فرم‌ها ================= */
.admin-header{background:var(--navy-900);color:#fff;padding:15px;display:flex;justify-content:space-between;}
.admin-header a{color:var(--gold-400);}
table{width:100%;border-collapse:collapse;margin-top:20px;}
th,td{border:1px solid var(--line-soft);padding:10px;text-align:right;}
th{background:var(--surface-2);}
form label{display:block;margin-bottom:16px;color:var(--text-soft);font-weight:500;}
input,textarea,select{
  width:100%;padding:11px;margin-top:6px;border:1px solid var(--line-soft);
  border-radius:var(--radius-sm);font-family:inherit;transition:border-color .2s var(--ease);
}
input:focus,textarea:focus,select:focus{border-color:var(--gold-500);outline:none;}

/* ================= واکنش‌گرایی ================= */
@media screen and (max-width:992px){
  .container{padding:0 16px;}
  .hamburger{display:flex;}
  .nav-luxury{
    position:fixed;top:0;right:-100%;width:82%;max-width:320px;height:100vh;
    background:var(--navy-950);flex-direction:column;padding:90px 30px;
    transition:right .4s var(--ease);box-shadow:-8px 0 30px rgba(0,0,0,.35);z-index:1000;
    display:block;
  }
  .nav-luxury.active{right:0;}
  .nav-luxury ul{flex-direction:column;gap:24px;align-items:flex-start;}
  .nav-link-luxury{font-size:1.15rem;}

  .hero{padding:76px 20px;}
  .hero h1{font-size:2rem;}
  .hero h2{font-size:1.1rem;}
  .hero-cta .btn{display:block;width:82%;margin:10px auto;padding:14px 20px;}

  .why-analyze h2{font-size:1.7rem;}
  .reasons-grid,.featured-grid{flex-direction:column;align-items:center;}
  .reason-item{width:92%;flex:unset;}
  .featured-card{max-width:92%;}
  .regular-services{grid-template-columns:1fr;}
  .process-steps .step{width:98px;height:98px;}
  .quran-verse-large{font-size:1.3rem;padding:0 10px;}
}

@media screen and (max-width:480px){
  .logo-main{font-size:1.6rem;}
  .hero h1{font-size:1.5rem;}
  .hero h2{font-size:.95rem;}
  .final-cta .btn-cta-huge{font-size:1rem;padding:13px 28px;}
  .quran-verse-large{font-size:1.15rem;}
}

/* ================= هیرو صفحات داخلی (درباره من / خدمات) ================= */
.about-hero,.services-hero{
  background:linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color:#F4F1E8;
  text-align:center;
  padding:64px 20px;
  border-bottom:2px solid var(--gold-500);
}
.about-hero h1,.services-hero h1{font-size:2.3rem;color:var(--gold-400);margin-bottom:12px;}
.about-hero .subtitle{font-size:1.1rem;color:#D7D9E0;}
.services-hero p{font-size:1.05rem;max-width:700px;margin:0 auto;color:#D7D9E0;}
.services-hero p + p{margin-top:10px;font-size:.92rem;color:#B9BDC8;}

/* ================= محتوای صفحه‌ی درباره من ================= */
.about-content{max-width:900px;margin:44px auto;padding:0 20px;line-height:2;text-align:justify;color:var(--text-soft);}
.about-content h2{
  font-size:1.6rem;color:var(--navy-900);
  border-right:3px solid var(--gold-500);padding-right:14px;margin-top:44px;
}
.about-content p{margin-bottom:16px;}

.highlight-box{
  background:var(--surface);border-radius:var(--radius-md);padding:26px;margin:32px 0;
  border:1px solid var(--line-soft);box-shadow:var(--shadow-sm);
}
.highlight-box ul{list-style:none;padding:0;}
.highlight-box li{padding:9px 0;border-bottom:1px dotted var(--line-soft);color:var(--text-soft);}
.highlight-box li:last-child{border-bottom:none;}
.highlight-box li::before{content:"✓ ";color:var(--gold-500);font-weight:bold;margin-left:6px;}

.cta-about{text-align:center;margin:44px 0;}
.cta-about .lead{font-size:1.15rem;font-weight:700;color:var(--navy-900);margin-bottom:16px;}
.cta-about .btn{font-size:1.1rem;padding:15px 34px;}

/* ================= هدر صفحه‌ی ارزیابی/داخلی عمومی ================= */
.page-header{
  text-align:center;
  background:linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color:#F4F1E8;padding:64px 0;border-bottom:2px solid var(--gold-500);
}
.page-header h1{color:var(--gold-400);font-size:2.1rem;margin-bottom:14px;}
.page-header p{color:#D7D9E0;}
.page-header .checklist{
  list-style:none;padding:0;max-width:520px;margin:22px auto 0;text-align:right;
}
.page-header .checklist li{padding:6px 0;color:#EDE8DA;}

/* ================= کارت‌های خدمت با قیمت ================= */
.service-card{
  border:1px solid var(--line-soft);border-radius:var(--radius-md);
  padding:28px;margin-bottom:32px;background:var(--surface);box-shadow:var(--shadow-sm);
}
.service-card h2{color:var(--navy-900);margin-top:8px;font-size:1.4rem;}
.service-card > .btn{margin-top:14px;}

.badge-code{
  font-size:.78rem;background:var(--surface-2);color:var(--text-faint);
  padding:3px 10px;border-radius:var(--radius-pill);letter-spacing:.3px;
}
.badge-free{
  background:linear-gradient(135deg,var(--gold-200),var(--gold-500));
  color:var(--navy-900);padding:3px 14px;border-radius:var(--radius-pill);font-size:.85rem;font-weight:700;
}
.badge-price{
  background:var(--surface-2);color:var(--navy-900);padding:5px 14px;
  border-radius:var(--radius-pill);font-size:.92rem;font-weight:700;
}

.note-warning{
  color:#8C3A2B;background:#FBEFEA;border:1px solid rgba(140,58,43,.18);
  padding:10px 14px;border-radius:var(--radius-sm);font-size:.9rem;display:inline-block;
}

/* ================= میان‌مرحله‌های ساده (فرآیند بررسی) ================= */
.mini-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;text-align:center;}
.mini-step{
  flex:1 1 180px;background:var(--surface);padding:20px 16px;border-radius:var(--radius-md);
  border:1px solid var(--line-soft);box-shadow:var(--shadow-sm);color:var(--text-soft);
}
.mini-step strong{color:var(--gold-600);font-size:1.2rem;display:block;margin-bottom:6px;}

/* ================= باکس تیره‌ی پایانی ================= */
.dark-callout{
  background:linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color:#F0EEE6;padding:34px;border-radius:var(--radius-lg);margin-top:44px;text-align:center;
}
.dark-callout h3{color:var(--gold-400);margin-bottom:10px;}
.dark-callout p{max-width:640px;margin:0 auto;color:#D7D9E0;}

/* ================= خدمات داخل .service-item لینک‌شده ================= */
.service-item{text-decoration:none;color:inherit;display:block;}
.btn-service-card{
  display:inline-block;margin-top:10px;color:var(--gold-600);font-weight:600;font-size:.9rem;
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important;scroll-behavior:auto !important;}
}