/* ==========================================================================
   گروه هورسام — سیستم طراحی سایت
   پالت: بتن و برنج | چیدمان راست‌به‌چپ | فونت وزیر
   ========================================================================== */

@font-face {
  font-family: 'Vazir';
  src: url('/static/fonts/Vazir.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* رنگ‌ها */
  --ink:        #14171c;
  --ink-soft:   #232830;
  --ink-line:   #2e3440;
  --paper:      #ffffff;
  --sand:       #f6f3ee;
  --sand-deep:  #ebe5db;
  /* زرد برند، برداشته‌شده از لوگوی شرکت */
  --accent:     #fbb134;   /* زرد لوگو — برای پرکردن، آیکون و زمینه تیره */
  --accent-hi:  #fbb134;   /* روی زمینه تیره خوانایی ۹.۸:۱ دارد */
  --accent-ink: #9a650a;   /* زرد تیره — برای متنِ زردرنگ روی زمینه روشن (۵:۱) */
  --accent-dark:#e89f1e;   /* حالت هاور دکمه زرد */
  --accent-dim: rgba(251, 177, 52, .16);
  --muted:      #6d7480;
  --line:       rgba(20, 23, 28, .12);
  --line-soft:  rgba(20, 23, 28, .07);

  /* فاصله و اندازه */
  --wrap: 1220px;
  --gap: 28px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(20,23,28,.05), 0 10px 30px -12px rgba(20,23,28,.18);
  --shadow-lg: 0 30px 60px -25px rgba(20,23,28,.35);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-premium: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--ink); }

/* --- ابزارهای چیدمان ----------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 100px 0; }
.section--tight { padding: 70px 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #fff; }

/* جداکننده بصری بین هیرو و بخش تخصص — هر دو تیره‌اند اما نباید در هم ادغام شوند */
.spec-block {
  background: var(--ink-soft);
  position: relative;
}
.spec-block::before {
  content: "";
  position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
}

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* --- تیتر بخش‌ها --------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--ink .eyebrow { color: var(--accent-hi); }
.section--ink .eyebrow::before { background: var(--accent-hi); }

.sec-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; margin-bottom: 16px; }
.sec-lead { color: var(--muted); max-width: 60ch; font-size: 17px; }
.section--ink .sec-lead { color: rgba(255,255,255,.66); }

.sec-head { margin-bottom: 52px; }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-lead { margin-inline: auto; }

/* --- دکمه‌ها ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  transition: background-color .35s var(--ease-premium), color .35s var(--ease-premium),
    border-color .35s var(--ease-premium), transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
  background: var(--accent); color: var(--ink); white-space: nowrap;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--ink); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent-ink); font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(-5px); }

/* --- نوار بالا و منو ----------------------------------------------------- */

.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 46px; }
.topbar-items { display: flex; align-items: center; gap: 26px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 15px; height: 15px; color: var(--accent-hi); flex: none; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a:hover { color: var(--accent-hi); }
.topbar-social svg { width: 16px; height: 16px; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px -12px rgba(20,23,28,.28); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 82px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: 46px; object-fit: contain; flex: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius); flex: none;
  background: var(--ink); color: var(--accent-hi);
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: var(--radius); flex-shrink: 0;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft); transition: color .2s;
  white-space: nowrap;
}
.nav a svg { width: 16px; height: 16px; flex: none; opacity: .65; transition: opacity .2s; }
.nav a:hover svg, .nav a.active svg { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 15px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--accent-ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent-ink); }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; padding: 0;
  place-items: center; color: var(--ink);
}
.burger svg { width: 22px; height: 22px; }

/* --- هدر صفحه (بنر داخلی) ------------------------------------------------ */

.pagehead {
  position: relative; background: var(--ink); color: #fff;
  padding: 92px 0 84px; overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--head-img, none);
  background-size: cover; background-position: center; opacity: .28;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(20,23,28,.95), rgba(20,23,28,.62));
}
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 14px; }
.pagehead p { color: rgba(255,255,255,.7); max-width: 62ch; }

.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.6); margin-top: 20px; }
.crumbs a:hover { color: var(--accent-hi); }
.crumbs span.sep { opacity: .5; }
.crumbs .now { color: var(--accent-hi); }

/* --- هیرو صفحه نخست ------------------------------------------------------ */

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset-inline: 0; inset-block: -70px; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .84; transform: scale(1.04); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(20,23,28,.80) 8%, rgba(20,23,28,.32) 58%, rgba(20,23,28,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 130px 0 110px; max-width: 840px; }
.hero-slide.is-active .hero-inner > * {
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .9s var(--ease-premium) forwards;
}
.hero-slide.is-active .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-slide.is-active .hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-slide.is-active .hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-slide.is-active .hero-inner > *:nth-child(4) { animation-delay: .35s; }
@keyframes heroFadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-inner > * { animation: none; opacity: 1; transform: none; }
}
.hero .eyebrow {
  color: var(--accent-hi); text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.hero .eyebrow::before { background: var(--accent-hi); }
.hero .hero-title {
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.32; margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35); text-wrap: balance;
}
.hero .hero-title em { font-style: normal; color: var(--accent-hi); }
.hero p { font-size: 18px; color: rgba(255,255,255,.86); max-width: 56ch; margin-bottom: 34px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { min-width: 232px; }
@media (max-width: 520px) { .hero-actions .btn { min-width: 0; } }

.hero-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip div { padding: 26px 30px; border-inline-start: 1px solid rgba(255,255,255,.1); }
.hero-strip div:first-child { border-inline-start: 0; }
.hero-strip b { display: block; font-size: 30px; color: var(--accent-hi); line-height: 1.3; }
.hero-strip span { font-size: 14px; color: rgba(255,255,255,.6); }

/* --- اسلایدر هیرو -------------------------------------------------------- */

.hero-slides { position: relative; min-height: clamp(560px, 82vh, 760px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1s var(--ease); }
.hero-slide .wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-slide .hero-inner { padding: 0; }
.hero-slide .hero-bg img { transition: transform 7s var(--ease); }
.hero-slide.is-active .hero-bg img { transform: scale(1.08); }

.hero-controls {
  position: absolute; inset-inline: 0; inset-block-end: 30px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; display: grid; place-items: center; transition: all .2s var(--ease);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero-arrow svg { width: 19px; height: 19px; }
.hero-prev svg { transform: scaleX(-1); }
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; flex: none;
  background: rgba(255,255,255,.35); border: 0; transition: all .25s var(--ease);
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { background: var(--accent); width: 26px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero-slides { min-height: 520px; }
  .hero-slide { position: relative; min-height: 520px; opacity: 1; visibility: visible; display: none; }
  .hero-slide.is-active { display: block; }
  .hero-slide .wrap { height: auto; }
  .hero-inner, .hero-slide .hero-inner { padding: 74px 0 60px; }
  .hero-controls { position: relative; inset: auto; margin-top: -6px; padding-bottom: 22px; }
  /* روی موبایل متن روی کل عرض تصویر می‌نشیند، پس گرادیان باید یکنواخت و تیره‌تر باشد تا هیچ بخشی کم‌کنتراست نماند */
  .hero-bg::after {
    background: linear-gradient(to top, rgba(20,23,28,.78) 0%, rgba(20,23,28,.6) 45%, rgba(20,23,28,.68) 100%);
  }
  .hero-bg img { opacity: .8; }
}

/* --- کارت خدمات --------------------------------------------------------- */

.svc-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 30px;
  transition: transform .5s var(--ease-premium), box-shadow .5s var(--ease-premium), border-color .3s; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.svc-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 58px; height: 58px; border-radius: var(--radius); margin-bottom: 22px;
  background: var(--accent-dim); color: var(--accent-ink);
  display: grid; place-items: center; transition: all .3s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--accent); color: var(--ink); }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 20px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 15px; }
.svc-num {
  position: absolute; inset-block-start: 22px; inset-inline-end: 26px;
  font-size: 42px; font-weight: 800; color: var(--line-soft); line-height: 1;
}

/* --- کارت پروژه --------------------------------------------------------- */

.proj-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink);
  aspect-ratio: 4 / 3.4;
}
.proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-premium), opacity .5s;
  opacity: .85;
}
.proj-card:hover img { transform: scale(1.07); opacity: .55; }
.proj-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,23,28,.92) 8%, rgba(20,23,28,.25) 55%, transparent);
}
.proj-body {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 28px;
  color: #fff; z-index: 2;
}
.proj-tag {
  display: inline-block; padding: 5px 13px; border-radius: 100px;
  background: var(--accent); color: var(--ink); font-size: 12.5px; font-weight: 700; margin-bottom: 12px;
}
.proj-body h3 { font-size: 20px; margin-bottom: 8px; }
.proj-meta { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta svg { width: 14px; height: 14px; color: var(--accent-hi); }
.proj-card .proj-go {
  position: absolute; inset-block-start: 22px; inset-inline-start: 22px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-8px); transition: all .3s var(--ease);
}
.proj-card:hover .proj-go { opacity: 1; transform: none; }
.proj-go svg { width: 18px; height: 18px; }

/* --- فیلترها ------------------------------------------------------------ */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: all .22s var(--ease); background: #fff;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip b { font-weight: 700; opacity: .55; margin-inline-start: 4px; font-size: 12.5px; }

[data-project-grid] { transition: opacity .25s var(--ease), transform .25s var(--ease); }
[data-project-grid].is-loading { opacity: .35; transform: scale(.99); pointer-events: none; }
.proj-more { display: flex; justify-content: center; margin-top: 36px; }
.proj-more .btn svg { transform: rotate(-90deg); transition: transform .25s var(--ease); }
.proj-more .btn:hover svg { transform: rotate(-90deg) translateX(-3px); }
.proj-more .btn[disabled] { opacity: .6; pointer-events: none; }

.searchbar { display: flex; gap: 10px; margin-bottom: 32px; max-width: 520px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.searchbar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.searchbar input::-webkit-search-decoration,
.searchbar input::-webkit-search-cancel-button,
.searchbar input::-webkit-search-results-button,
.searchbar input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; }

/* --- آمار --------------------------------------------------------------- */

.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-size: clamp(32px, 4vw, 46px); color: var(--accent-hi); line-height: 1.2; }
.stat span { color: rgba(255,255,255,.62); font-size: 15px; }

/* --- نظرات کارفرمایان ---------------------------------------------------- */

.testi-section { position: relative; overflow: hidden; }
.testi-section::before {
  content: ""; position: absolute; inset-block-start: -140px; inset-inline-end: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: .12; pointer-events: none;
}
.testi-slider { max-width: 760px; margin: 0 auto; }
.testi-viewport { position: relative; }

.testi-card {
  display: none; flex-direction: column; align-items: center; text-align: center;
  margin: 0; opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .5s var(--ease-premium), transform .5s var(--ease-premium);
}
.testi-card.active { display: flex; }
.testi-card.active.show { opacity: 1; transform: none; }
.testi-quote { width: 36px; height: 36px; color: var(--accent-hi); margin-bottom: 20px; animation: testi-pop .6s var(--ease-premium); }
.testi-text {
  font-size: clamp(17px, 2vw, 20px); line-height: 2; color: rgba(255,255,255,.92);
  max-width: 60ch; margin: 0 0 30px;
}
.testi-person { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.testi-person img, .testi-initial {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent-hi);
}
.testi-initial {
  display: grid; place-items: center; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 22px;
}
.testi-person b { display: block; font-size: 16px; }
.testi-person span { font-size: 13.5px; color: rgba(255,255,255,.6); }

.testi-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.testi-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: all .25s var(--ease);
}
.testi-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.testi-btn svg { width: 17px; height: 17px; }
.testi-btn--next svg { transform: rotate(180deg); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28);
  border: 0; padding: 0; cursor: pointer; transition: all .3s var(--ease);
}
.testi-dot:hover { background: rgba(255,255,255,.5); }
.testi-dot.active { background: var(--accent-hi); width: 24px; border-radius: 5px; }

@keyframes testi-pop {
  0% { opacity: 0; transform: scale(.5) rotate(-8deg); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .testi-card { transition: opacity .3s linear, visibility 0s linear .3s; }
  .testi-card.active { transition: opacity .3s linear, visibility 0s; }
  .testi-quote { animation: none; }
}

/* --- درباره ما ---------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }
.split-media .frame {
  position: absolute; inset-block-start: -18px; inset-inline-start: -18px;
  width: 55%; height: 55%; border: 2px solid var(--accent); border-radius: var(--radius-lg);
  z-index: -1;
}
.badge-float {
  position: absolute; inset-block-end: 28px; inset-inline-end: -22px;
  background: var(--ink); color: #fff; padding: 22px 28px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.badge-float b { display: block; font-size: 34px; color: var(--accent-hi); line-height: 1.2; }
.badge-float span { font-size: 14px; color: rgba(255,255,255,.66); }

.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; }
.check-list svg { width: 21px; height: 21px; color: var(--accent-ink); flex: none; margin-top: 4px; }

/* --- فرآیند کار --------------------------------------------------------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 52px; font-weight: 800; color: var(--sand-deep); line-height: 1; display: block; margin-bottom: 12px;
}
.section--ink .step::before { color: rgba(255,255,255,.1); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.section--ink .step p { color: rgba(255,255,255,.6); }
.step::after {
  content: ""; position: absolute; inset-block-start: 34px; inset-inline-end: -14px;
  width: 28px; height: 1px; background: var(--line);
}
.step:last-child::after { display: none; }

/* --- نظرات -------------------------------------------------------------- */

.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; position: relative;
}
.quote-card .qmark { font-size: 60px; color: var(--accent); line-height: .8; font-weight: 800; opacity: .5; }
.quote-card p { font-size: 15.5px; color: var(--ink-soft); margin: 8px 0 22px; }
.quote-who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.quote-who img, .quote-who .avatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--sand-deep); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800;
}
.quote-who b { display: block; font-size: 16px; }
.quote-who span { font-size: 13.5px; color: var(--muted); }

/* --- تیم ---------------------------------------------------------------- */

.member { text-align: center; }
.member-photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 3.6; background: var(--sand-deep); margin-bottom: 18px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.06); }
.member-social {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 16px;
  display: flex; justify-content: center; gap: 10px;
  background: linear-gradient(to top, rgba(20,23,28,.85), transparent);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.member:hover .member-social { transform: none; }
.member-social a {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: all .2s;
}
.member-social a:hover { background: var(--accent); color: var(--ink); }
.member-social svg { width: 16px; height: 16px; }
.member h3 { font-size: 18px; }
.member span { font-size: 14px; color: var(--accent-ink); }

/* --- کارت مطلب ---------------------------------------------------------- */

.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-premium), box-shadow .5s var(--ease-premium), border-color .3s;
}
.post-card:hover { transform: translateY(-7px) scale(1.01); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 14px; height: 14px; color: var(--accent-ink); }
.post-card h3 { font-size: 19px; line-height: 1.5; }
.post-card:hover h3 { color: var(--accent-ink); }
.post-card p { color: var(--muted); font-size: 14.5px; }
.post-card .link-arrow { margin-top: auto; padding-top: 8px; }
.chip-cat {
  align-self: flex-start; padding: 4px 12px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent-ink); font-size: 12.5px; font-weight: 700;
}

/* --- صفحه جزئیات -------------------------------------------------------- */

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }

.prose { font-size: 16.5px; line-height: 2.05; color: var(--ink-soft); }
.prose h2 { font-size: 26px; margin: 34px 0 14px; color: var(--ink); }
.prose h3 { font-size: 21px; margin: 28px 0 12px; color: var(--ink); }
.prose img { border-radius: var(--radius-lg); margin: 22px 0; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote {
  margin: 26px 0; padding: 20px 26px; border-inline-start: 3px solid var(--accent);
  background: var(--sand); border-radius: var(--radius); color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: right; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.spec-table tr + tr { border-top: 1px solid var(--line-soft); }
.spec-table th { text-align: right; padding: 14px 20px; color: var(--muted); font-weight: 600; font-size: 14.5px; width: 42%; background: var(--sand); }
.spec-table td { padding: 14px 20px; font-weight: 700; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sand-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }

.hero-figure { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; aspect-ratio: 16/9; background: var(--sand-deep); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* --- ستون کناری --------------------------------------------------------- */

.side-box {
  background: var(--sand); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px;
}
.side-box h3 { font-size: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.side-list a:hover { color: var(--accent-ink); }
.side-list a span { color: var(--muted); font-size: 13px; }
.side-list a.active { color: var(--accent-ink); font-weight: 700; }

.side-post { display: flex; gap: 14px; align-items: center; }
.side-post img { width: 68px; height: 62px; object-fit: cover; border-radius: var(--radius); flex: none; }
.side-post b { font-size: 14.5px; font-weight: 600; line-height: 1.6; display: block; }
.side-post span { font-size: 12.5px; color: var(--muted); }
.side-post:hover b { color: var(--accent-ink); }

.cta-box {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px; text-align: center;
}
.cta-box h3 { font-size: 20px; margin-bottom: 10px; border: 0; padding: 0; }
.cta-box p { color: rgba(255,255,255,.65); font-size: 14.5px; margin-bottom: 20px; }

/* --- فرم‌ها ------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.field .err { color: #c0392b; font-size: 13px; }

.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 22px; font-size: 15px; font-weight: 600; }
.alert-success { background: #e9f6ee; color: #1c6b3d; border: 1px solid #bfe3cd; }
.alert-error { background: #fdecea; color: #a3271b; border: 1px solid #f5c6c1; }
.alert-info { background: #eaf1fb; color: #1e4c8f; border: 1px solid #c6d8f2; }

/* --- کارت اطلاعات تماس -------------------------------------------------- */

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; text-align: center; transition: all .3s var(--ease);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card .ic {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent-ink); display: grid; place-items: center;
}
.info-card .ic svg { width: 25px; height: 25px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p, .info-card a { color: var(--muted); font-size: 15px; line-height: 1.9; }
.info-card a:hover { color: var(--accent-ink); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; height: 420px; background: var(--sand-deep); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- نوار فراخوان ------------------------------------------------------- */

.cta-band {
  background: var(--accent); color: var(--ink); border-radius: var(--radius-lg);
  padding: 48px 54px; display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { color: rgba(20,23,28,.72); margin: 0; }

/* --- صفحه‌بندی ---------------------------------------------------------- */

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: #fff; transition: all .2s;
}
.pager a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .disabled { opacity: .4; }

/* --- حالت خالی ---------------------------------------------------------- */

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: var(--sand-deep); margin: 0 auto 18px; }
.empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* --- پاورقی ------------------------------------------------------------- */

.footer { background: var(--ink); color: rgba(255,255,255,.62); padding-top: 76px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; width: 34px; height: 2px; background: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 46px; padding-bottom: 60px; }
.footer p { font-size: 15px; line-height: 2; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 15px; transition: color .2s, padding .2s; display: inline-block; }
.footer ul a:hover { color: var(--accent-hi); padding-inline-start: 5px; }
.footer .brand-name { color: #fff; }
.footer .brand-mark { background: rgba(255,255,255,.08); }
.footer .brand img { height: 52px; width: 52px; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.footer-contact svg { width: 19px; height: 19px; color: var(--accent-hi); flex: none; margin-top: 5px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius); background: rgba(255,255,255,.07);
  display: grid; place-items: center; color: #fff; transition: all .25s;
}
.footer-social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 24px 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px;
}
.footer-bottom a:hover { color: var(--accent-hi); }

/* --- دکمه بازگشت به بالا ------------------------------------------------ */

.to-top {
  position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 20px; height: 20px; }

/* --- لایت‌باکس گالری ---------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,23,28,.94);
  display: none; place-items: center; padding: 40px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); object-fit: contain; }
.lightbox button {
  position: absolute; inset-block-start: 24px; inset-inline-end: 24px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--accent); color: var(--ink); }
.lightbox svg { width: 22px; height: 22px; }

/* --- انیمیشن ورود ------------------------------------------------------- */

.reveal {
  opacity: 0; transform: translateY(30px) scale(.96);
  transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }

/* تنوع جهت حرکت — برای گرید‌ها و فهرست‌ها استفاده می‌شود تا حرکت‌ها یکنواخت نباشند */
.reveal--left  { transform: translateX(-64px) translateY(14px) scale(.97); }
.reveal--right { transform: translateX(64px) translateY(14px) scale(.97); }
.reveal--scale { transform: scale(.78) translateY(14px); }
.reveal--zoom  { transform: scale(1.22); }
.reveal--pop {
  transform: scale(.4);
  transition: opacity .6s var(--ease-premium), transform .85s cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--scale, .reveal--zoom, .reveal--pop {
    opacity: 1; transform: none; transition: none;
  }
  html { scroll-behavior: auto; }
}

/* --- واکنش‌گرایی -------------------------------------------------------- */

@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n)::after { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip div:nth-child(-n+2) { border-block-end: 1px solid rgba(255,255,255,.1); }
  .hero-strip div:nth-child(odd) { border-inline-start: 0; }
}

/* منوی موبایل زودتر از هم‌ریختگی نوار بالا فعال می‌شود */
@media (max-width: 1220px) {
  .topbar { display: none; }
  .header .wrap { height: 70px; }
  .burger { display: grid; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset-block-start: 70px; inset-inline: 0; z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-block-end: 1px solid var(--line);
    padding: 10px 20px 22px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-block-end: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media .frame, .badge-float { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 34px 28px; }
  .hero-inner { padding: 84px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head--split { align-items: flex-start; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { border-inline-start: 0; border-block-end: 1px solid rgba(255,255,255,.1); }
  .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* --- بخش تخصص (بونکر) -------------------------------------------------- */

.spec-band {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.spec-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.2; }
.spec-figure img { width: 100%; height: 100%; object-fit: cover; }
.spec-stamp {
  position: absolute; inset-block-end: 22px; inset-inline-start: 22px;
  background: var(--accent); color: var(--ink); padding: 16px 22px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.spec-stamp b { display: block; font-size: 30px; line-height: 1.2; }
.spec-stamp span { font-size: 13.5px; font-weight: 700; }

.spec-points { display: grid; gap: 18px; margin: 26px 0 30px; }
.spec-point { display: flex; gap: 16px; align-items: flex-start; }
.spec-point .n {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.spec-point b { display: block; font-size: 16.5px; margin-bottom: 3px; }
.spec-point p { color: var(--muted); font-size: 15px; margin: 0; }
.section--ink .spec-point p { color: rgba(255,255,255,.62); }
.section--ink .spec-point .n { background: rgba(251,177,52,.18); color: var(--accent); }

/* --- فهرست کارفرمایان --------------------------------------------------- */

.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px;
}
.client-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; transition: all .25s var(--ease);
}
.client-chip:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.client-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
}
.client-chip b { font-size: 15px; font-weight: 700; line-height: 1.5; }
.client-chip span { display: block; font-size: 12.5px; color: var(--muted); }

.section--ink .client-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--ink .client-chip:hover { border-color: var(--accent); background: rgba(255,255,255,.08); }
.section--ink .client-chip span { color: rgba(255,255,255,.5); }

/* --- نوار اعتماد -------------------------------------------------------- */

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item {
  padding: 26px 28px; border-inline-start: 1px solid var(--line);
  display: flex; gap: 15px; align-items: flex-start;
}
.trust-item:first-child { border-inline-start: 0; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent-ink); flex: none; margin-top: 3px; }
.trust-item b { display: block; font-size: 16px; margin-bottom: 4px; }
.trust-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.75; }

@media (max-width: 1024px) {
  .spec-band { grid-template-columns: 1fr; gap: 40px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(odd) { border-inline-start: 0; }
  .trust-item:nth-child(-n+2) { border-block-end: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-inline-start: 0; border-block-end: 1px solid var(--line); }
  .clients-grid { grid-template-columns: 1fr; }
}

/* حالت بدون عکس برای اعضای تیم */
.member-initial {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 62px; font-weight: 800; color: var(--accent);
  background: var(--ink);
}
.member-bio { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
