@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* پالت مینیمال: خاکستری گرم + یک رنگ اصلی (قرمز عنابی لوگو) */
:root {
  --brand: #b4232c;
  --brand-d: #8f1b23;
  --brand-l: #fbeceb;
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #faf9f7;
  --card: #ffffff;
  --danger: #b91c1c;
  --r: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 28px rgba(28, 25, 23, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .5rem; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- نوار بالا ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.brand small { color: var(--muted); font-size: .78rem; }
.nav { display: flex; align-items: center; }
.dd { position: relative; }
.dd-menu {
  display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 10px);
  min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(28, 25, 23, .16); padding: .45rem;
  animation: menuIn .18s ease-out;
}
.dd-menu::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.dd.open .dd-menu { display: block; }
@media (hover: hover) { .dd:hover .dd-menu { display: block; } }
.dd-menu a { display: block; padding: .6rem .9rem; border-radius: 9px; color: var(--ink); transition: background .15s, padding .15s; }
.dd-menu a:hover { background: var(--brand-l); color: var(--brand-d); padding-inline-start: 1.2rem; }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: .35rem 0; }
.dd-btn .caret { font-size: .75rem; transition: transform .2s; }
.dd.open .dd-btn .caret { transform: rotate(180deg); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .65rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--brand); color: #fff; transition: background .15s, transform .15s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-130%);
}
.btn:hover::after { transform: translateX(130%); transition: transform .7s ease; }
.btn:hover { background: var(--brand-d); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f5f4f2; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: #f5f4f2; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; color: var(--danger); }
.btn-sm { padding: .3rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- هیرو و اسلایدر ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(720px 380px at 92% 0%, rgba(180, 35, 44, .30), transparent 65%),
    linear-gradient(160deg, #1c1917, #2b2522);
}
.slides { position: absolute; inset: 0; z-index: -1; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.slide.active { opacity: 1; }
.hero.has-slides::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, .5), rgba(28, 25, 23, .85));
}
.hero-inner { position: relative; z-index: 1; padding: 6rem 0 4rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; }
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.35rem); opacity: .85; margin: .5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.captions { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.caption {
  display: none; max-width: 640px; margin-inline: auto; text-align: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); border-radius: var(--r); padding: .9rem 1.2rem;
}
.caption.active { display: block; }
.caption strong { display: block; }
.caption span { font-size: .88rem; opacity: .9; margin-inline: .5rem; }

/* ---------- بخش‌ها ---------- */
.section { padding: 3.5rem 0; }
.section h2 { font-size: 1.6rem; text-align: center; margin-bottom: .3rem; }
.section h2::after {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 3px;
  background: var(--brand); margin: .6rem auto 0;
}
.section .sub { text-align: center; color: var(--muted); margin: .8rem 0 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .n {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto .8rem;
  display: grid; place-items: center; font-weight: 800;
  background: var(--brand-l); color: var(--brand-d);
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-band { background: var(--ink); color: #e7e5e4; padding: 2rem 0; text-align: center; }
.contact-band span { margin-inline: 1.2rem; }

/* ---------- کارت و فرم ---------- */
.page { padding: 2.5rem 0 4rem; }
.narrow { width: min(760px, 92%); margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.8rem; }
.card + .card { margin-top: 1.2rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.tabs a { flex: 1; text-align: center; padding: .6rem; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.tabs a:hover { border-color: #d6d3d1; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .25rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field label i { color: var(--brand); font-style: normal; }
.field .hint { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=password], input[type=number], input[type=file], select, textarea {
  font: inherit; width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(180, 35, 44, .12); }
.field-error, .validation-summary-errors li { color: var(--danger); font-size: .82rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.birth { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: .5rem; }
.captcha { display: flex; align-items: center; gap: .8rem; }
.captcha .q { background: #f5f4f2; color: var(--ink); font-weight: 800; padding: .55rem 1rem; border-radius: 10px; white-space: nowrap; direction: ltr; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- نشان‌ها و جدول ---------- */
.badge { display: inline-block; padding: .1rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.b-new { background: var(--brand-l); color: var(--brand-d); }
.b-review { background: #fef3c7; color: #92400e; }
.b-meet { background: #dcfce7; color: #166534; }
.b-closed { background: #f0efed; color: #57534e; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { background: #f5f4f2; padding: .7rem .8rem; text-align: center; white-space: nowrap; font-weight: 700; }
.t td { padding: .65rem .8rem; border-top: 1px solid var(--line); text-align: center; }
.t tr:hover td { background: #faf9f7; }
.t td.start { text-align: start; }
.t td.x { font-weight: 800; color: var(--brand-d); }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.pager a { min-width: 36px; text-align: center; padding: .25rem .6rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; align-items: end; margin-bottom: 1.2rem; }
.track-item { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-top: .8rem; }
.track-item .head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.answer { background: #f5f4f2; border-radius: 10px; padding: .8rem 1rem; margin-top: .6rem; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: .35rem .8rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* ---------- پنل ---------- */
.panel { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #d6d3d1; padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; }
.side .logo { color: #fff; font-weight: 800; font-size: 1.1rem; padding: 0 .6rem 1.2rem; border-bottom: 1px solid var(--ink-2); margin-bottom: 1rem; }
.side .logo small { display: block; font-weight: 400; color: #a8a29e; font-size: .78rem; }
.side a, .side button.link { display: block; width: 100%; text-align: start; background: none; border: 0; font: inherit; color: #d6d3d1; padding: .6rem .9rem; border-radius: 10px; cursor: pointer; }
.side a:hover, .side button.link:hover { background: var(--ink-2); color: #fff; }
.side a.on { background: var(--ink-2); color: #fff; box-shadow: inset -3px 0 0 var(--brand); }
.side .who { margin-top: 1.5rem; padding: .8rem; font-size: .82rem; color: #a8a29e; border-top: 1px solid var(--ink-2); }
.main { padding: 2rem; min-width: 0; }
.main h1 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.stat b { display: block; font-size: 1.9rem; line-height: 1.3; color: var(--ink); }
.stat:first-child b { color: var(--brand); }
.stat span { color: var(--muted); font-size: .88rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; align-items: start; }
.tick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }

footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0 2.2rem; border-top: 1px solid var(--line); margin-top: 1rem; }
footer.site .official {
  display: inline-block; margin-bottom: .7rem; padding: .45rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; transition: .2s;
}
footer.site .official:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- موبایل ---------- */
@media (max-width: 860px) {
    .form-grid, .two-col, .tick-grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: .3rem; padding: .8rem; }
  .side .logo, .side .who { display: none; }
  .side a, .side button.link { width: auto; }
  .main { padding: 1rem; }
  .hero-inner { padding: 4rem 0 2.5rem; }
}

/* ---------- چاپ ---------- */
@media print {
  .topbar, .side, .no-print, footer.site { display: none !important; }
  .panel { display: block; }
  .main { padding: 0; }
  body { background: #fff; font-size: 11px; }
  .table-wrap { border: 0; overflow: visible; }
  .t th, .t td { border: 1px solid #94a3b8; padding: .3rem; }
}

/* ---------- منو: آیتم‌های «به‌زودی» ---------- */
.dd-menu .soon {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem .9rem; border-radius: 9px; color: var(--muted); cursor: default;
}
.dd-menu .soon em {
  font-style: normal; font-size: .7rem; font-weight: 600; white-space: nowrap;
  background: var(--brand-l); color: var(--brand-d); padding: .05rem .6rem; border-radius: 999px;
}

/* ---------- دکمه‌های شیشه‌ای روی هیرو ---------- */
.btn-glass {
  --ring: 239, 68, 68;
  background: rgba(255, 255, 255, .14); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 28px rgba(0, 0, 0, .22);
  padding: .8rem 1.8rem; font-size: 1rem;
}
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; transform: translateY(-3px) scale(1.03); }

/* قرمز عنابی: درخواست حقیقی */
.btn-glass-brand { --ring: 239, 68, 68; background: rgba(180, 35, 44, .55); border-color: rgba(255, 255, 255, .5); }
.btn-glass-brand:hover { background: rgba(180, 35, 44, .8); }
/* طلایی ملایم: درخواست حقوقی */
.btn-glass-gold { --ring: 245, 185, 74; background: rgba(245, 185, 74, .30); border-color: rgba(255, 226, 170, .6); }
.btn-glass-gold:hover { background: rgba(245, 185, 74, .5); }
/* آبی آسمانی ملایم: پیگیری */
.btn-glass-sky { --ring: 125, 190, 255; background: rgba(125, 190, 255, .24); border-color: rgba(200, 228, 255, .6); }
.btn-glass-sky:hover { background: rgba(125, 190, 255, .44); }

/* افکت‌های ثابت فقط روی دکمه‌های هیرو (در پنل نیستند تا مزاحم کارمندان نشوند) */
.hero .btn-glass::after { animation: shimmer 4.8s ease-in-out infinite; }
.hero .btn-glass:nth-child(2)::after { animation-delay: .9s; }
.hero .btn-glass:nth-child(3)::after { animation-delay: 1.8s; }
.hero .btn-glass-brand { animation: pulseRing 2.8s ease-out infinite, nudge 7s ease-in-out 3s infinite; }
.hero .btn-glass-gold  { animation: pulseRing 3.4s ease-out 1s infinite, nudgeSoft 7s ease-in-out 5.3s infinite; }
.hero .btn-glass-sky   { animation: pulseRing 3.4s ease-out 2s infinite, nudgeSoft 7s ease-in-out 7.6s infinite; }
.hero .btn-glass:hover { animation: wiggle .55s ease, pulseRing 3s ease-out infinite; }

@keyframes shimmer {
  0%, 55% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}
@keyframes pulseRing {
  0%   { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px rgba(0,0,0,.22), 0 0 0 0 rgba(var(--ring), .45); }
  70%  { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px rgba(0,0,0,.22), 0 0 0 14px rgba(var(--ring), 0); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px rgba(0,0,0,.22), 0 0 0 0 rgba(var(--ring), 0); }
}
@keyframes nudge {
  0%, 87%, 100% { transform: none; }
  89% { transform: translateX(-5px) rotate(-1.2deg); }
  91% { transform: translateX(5px) rotate(1.2deg); }
  93% { transform: translateX(-4px) rotate(-.8deg); }
  95% { transform: translateX(4px) rotate(.8deg); }
  97% { transform: translateX(-1px); }
}
@keyframes nudgeSoft {
  0%, 87%, 100% { transform: none; }
  90% { transform: translateX(-3px) rotate(-.6deg); }
  93% { transform: translateX(3px) rotate(.6deg); }
  96% { transform: translateX(-1.5px) rotate(-.3deg); }
}
@keyframes wiggle {
  0%, 100% { transform: translateY(-3px) scale(1.03) rotate(0); }
  25% { transform: translateY(-3px) scale(1.03) rotate(-2.5deg); }
  50% { transform: translateY(-3px) scale(1.03) rotate(2.5deg); }
  75% { transform: translateY(-3px) scale(1.03) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .dd-menu { animation: none !important; transition: none !important; }
}
