/* ==========================================================================
   کارو | Karo — طراحی وب‌سایت و اپلیکیشن
   استایل اصلی سایت
   ========================================================================== */

/* ---------- فونت ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ---------- متغیرهای طراحی ---------- */
:root {
  --green: #0D4235;
  --green-soft: #12594A;
  --green-tint: #F2F7F5;
  --orange: #F2761B;
  --orange-tint: #FFF3E9;
  --ink: #1B2422;
  --muted: #5F6B68;
  --line: #E8EDEB;
  --bg: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 18px rgba(13, 66, 53, .06);
  --shadow-hover: 0 12px 34px rgba(13, 66, 53, .12);
  --ease: cubic-bezier(.2, .8, .3, 1);
  --container: 1160px;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.55; font-weight: 700; }
p { margin: 0 0 1em; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* لینک پرش به محتوا: بالای صفحه پنهان می‌شود تا اسکرول افقی نسازد */
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   صفحه اول (لندینگ آیکن‌ها)
   ========================================================================== */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px 24px;
  background: #fff;
}

/* لوگو در صفحه اول، عنوان اصلی صفحه (h1) هم هست */
.home__logo {
  margin: 0;
  font-size: 0;
  line-height: 0;
}
.home__logo img {
  width: 176px;
  height: auto;
  margin-inline: auto;
}

/* همیشه یک ردیف. همه کادرها هم‌اندازه‌اند و نامتقارنی فقط از
   جابه‌جایی عمودی می‌آید: یکی‌درمیان بالا و پایین می‌نشینند.
   اندازه‌ها سیال‌اند تا روی موبایل هم جا شوند. */
.home__nav {
  /* اندازه جابه‌جایی عمودی؛ هم برای خود کادرها و هم برای فضایی که
     نوار باید بالا و پایین خالی بگذارد، از همین یک متغیر خوانده می‌شود */
  --shift: clamp(14px, 3.4vw, 42px);

  /* گرید یک‌ردیفه: ستون‌ها دقیقاً هم‌عرض‌اند و stretch باعث می‌شود
     ارتفاع همه کادرها با بلندترینشان یکی شود — حتی وقتی عنوان یکی
     دو خط و عنوان دیگری سه خط می‌شود */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-content: center;
  gap: clamp(6px, 1.7vw, 20px);
  width: 100%;
  max-width: 980px;
  padding-block: var(--shift);
}

.home__item {
  min-width: 0;
  /* کف ارتفاع، تا وقتی همه عنوان‌ها یک‌خطی‌اند کادر پهن و کوتاه نشود */
  min-height: clamp(92px, 13.4vw, 126px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.4vw, 14px);
  padding: clamp(14px, 2.6vw, 28px) clamp(4px, 1.1vw, 12px);
  /* کادر هم‌رنگ خود آیکن و متن؛ با تغییر رنگ در هاور، کادر هم همراهش
     تغییر می‌کند و لازم نیست رنگ را دو جا نگه داریم */
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
  /* جابه‌جایی عمودی و بزرگ‌نمایی هاور هر دو در همین یک transform
     جمع شده‌اند؛ اگر هرکدام جداگانه نوشته شود، دیگری را پاک می‌کند */
  transform: translateY(var(--y, 0)) scale(var(--s, 1));
  transition: transform .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease);
  will-change: transform;
}

/* جابه‌جایی عمودی: با transform انجام می‌شود، نه حاشیه، تا ارتفاع
   خودِ کادرها دست‌نخورده و برابر بماند */
.home__item--up   { --y: calc(-1 * var(--shift)); }
.home__item--down { --y: var(--shift); }

.home__item svg {
  width: clamp(30px, 5.8vw, 52px);
  height: clamp(30px, 5.8vw, 52px);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .28s var(--ease);
}

.home__item span {
  font-size: clamp(10px, 1.67vw, 15px);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
  transition: color .28s var(--ease);
}

.home__item:hover,
.home__item:focus-visible {
  --s: 1.06;
  color: var(--orange);
  box-shadow: 0 12px 30px rgba(242, 118, 27, .16);
}

.home__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ==========================================================================
   هدر صفحات داخلی
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.header__logo img { width: 116px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--orange); }

.nav a.is-active { color: var(--green); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--green);
}
.nav__toggle svg { width: 22px; height: 22px; margin-inline: auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ==========================================================================
   Hero صفحات داخلی
   ========================================================================== */
.hero {
  padding: 84px 0 56px;
  text-align: center;
  background: radial-gradient(900px 260px at 50% -40px, var(--green-tint), transparent 70%);
}

.hero__slogan {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.75;
  color: var(--green);
}

.hero__sub {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================================================
   بخش‌ها و اجزای عمومی
   ========================================================================== */
.section { padding: 64px 0; }
.section--tint { background: var(--green-tint); }

.section__title {
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--green);
  text-align: center;
}

.section__lead {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--muted);
  text-align: center;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 118, 27, .35);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--green);
}
.card__icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card__icon { color: var(--orange); }

.card h3 { font-size: 17px; margin-bottom: .4em; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* آمار */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.stat__num {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}
.stat__label { color: var(--muted); font-size: 14px; }

/* چیپ‌های تخصص */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.chip:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--orange); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--green); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* CTA پایانی */
.cta {
  margin: 72px auto 0;
  padding: 48px 32px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(19px, 2.4vw, 26px); }
.cta p { color: rgba(255, 255, 255, .78); max-width: 620px; margin-inline: auto; }
.cta .btn--primary { background: var(--orange); margin-top: 14px; }
.cta .btn--primary:hover { background: #fff; color: var(--green); }

/* ==========================================================================
   پروژه‌ها
   ========================================================================== */
.project {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 118, 27, .35);
  box-shadow: var(--shadow-hover);
}
.project__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-tint); }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.project:hover .project__thumb img { transform: scale(1.04); }

.project__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project__tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 12px;
}
.project h3 { font-size: 17px; margin-bottom: .3em; }
.project p { color: var(--muted); font-size: 14.5px; }
.project__result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.project__link {
  margin-top: 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project__link:hover { text-decoration: underline; }

/* ==========================================================================
   تیم طراحان (صفحه درباره ما)
   با هاور روی تصویر، رزومه در پایین همان تصویر باز می‌شود
   ========================================================================== */
.team {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.member {
  flex: 0 1 320px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.member:hover,
.member:focus-visible,
.member.is-open {
  border-color: rgba(242, 118, 27, .4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.member__photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green-tint);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member:hover .member__photo,
.member:focus-visible .member__photo,
.member.is-open .member__photo { border-color: var(--orange); transform: scale(1.04); }

.member__name { font-size: 18px; margin-bottom: .2em; color: var(--green); }
.member__role { color: var(--muted); font-size: 14.5px; margin-bottom: .4em; }

.member__hint {
  display: inline-block;
  font-size: 13px;
  color: var(--orange);
  opacity: .85;
}
.member:hover .member__hint,
.member.is-open .member__hint { opacity: 0; }

/* پنل رزومه — با هاور باز می‌شود */
.member__resume {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
  text-align: start;
}
.member:hover .member__resume,
.member:focus-visible .member__resume,
.member:focus-within .member__resume,
.member.is-open .member__resume { max-height: 520px; }

.member__resume-inner {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.member__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.member__facts span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 12.5px;
}

.member__resume ul { margin: 0 0 10px; padding-inline-start: 18px; }
.member__resume li { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 4px; }

.member__quote {
  margin: 0;
  padding-top: 8px;
  color: var(--green);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ==========================================================================
   بخش‌های کناری صفحه درباره ما
   عناوین در سمت راست، متن با هاور در کنارشان باز می‌شود
   ========================================================================== */
.about-panels {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  /* ردیف‌های عنوان به اندازه محتوا؛ ردیف آخر فضای اضافیِ پنل بلند را می‌گیرد
     تا عنوان‌ها از هم فاصله نگیرند */
  grid-template-rows: repeat(5, min-content) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ap__item { display: contents; }

.ap__title {
  grid-column: 1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.ap__title svg {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .45;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.ap__title:hover { border-color: rgba(242, 118, 27, .45); color: var(--orange); }
.ap__title.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateX(-6px);
}
.ap__title.is-active svg { opacity: 1; transform: translateX(-4px); }

.ap__panel {
  grid-column: 2;
  grid-row: 1 / -1;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.ap__panel.is-active { opacity: 1; visibility: visible; transform: none; }

.ap__panel h3 { font-size: 19px; color: var(--green); }
.ap__panel p { color: var(--muted); }
.ap__panel .btn { margin-top: 6px; }

.ap__list-items { margin: 0; padding-inline-start: 18px; }
.ap__list-items li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.ap__list-items strong { color: var(--ink); font-weight: 500; }

/* بدون جاوااسکریپت: همه متن‌ها باز و پشت‌سرهم نمایش داده می‌شوند */
html:not(.js) .about-panels { display: block; }
html:not(.js) .ap__item { display: block; margin-bottom: 18px; }
html:not(.js) .ap__panel { opacity: 1; visibility: visible; transform: none; margin-top: 10px; }
html:not(.js) .member__resume { max-height: none; }

/* ==========================================================================
   تایم‌لاین روند پروژه
   ========================================================================== */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: 27px;
  width: 2px;
  background: linear-gradient(var(--line), var(--green-tint));
}

.step { position: relative; padding-inline-start: 82px; padding-bottom: 38px; }
.step:last-child { padding-bottom: 0; }

.step__num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover .step__num { background: var(--orange); color: #fff; border-color: var(--orange); }

.step h3 { font-size: 18px; margin-bottom: .35em; }
.step p { color: var(--muted); margin-bottom: .6em; }

.step__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.step__meta span {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 13px;
}

/* ==========================================================================
   پرسش‌های متداول
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--orange); }
.faq details > p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ==========================================================================
   اطلاعات تماس و فرم‌ها
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }

.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.info-item:hover { border-color: rgba(242, 118, 27, .35); transform: translateY(-2px); }
.info-item__icon { flex: none; width: 40px; height: 40px; color: var(--green); }
.info-item__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info-item:hover .info-item__icon { color: var(--orange); }
.info-item__label { font-size: 13px; color: var(--muted); line-height: 1.8; }
.info-item__value { font-weight: 500; line-height: 1.8; word-break: break-word; }
.info-item__value:hover { color: var(--orange); }

/* هر شماره تماس در یک ردیف، کنارش دکمه واتس‌اپ */
.info-item__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.info-item__row + .info-item__row { margin-top: 6px; }
.info-item__wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #1FA855;
  padding: 3px 10px;
  border: 1px solid rgba(31, 168, 85, .3);
  border-radius: 999px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.info-item__wa svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-item__wa:hover { background: rgba(31, 168, 85, .09); border-color: rgba(31, 168, 85, .55); }

.footer__wa {
  font-size: 12.5px;
  color: #1FA855;
  margin-inline-start: 8px;
}
.footer__wa:hover { text-decoration: underline; }

.form {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field > span i { color: var(--orange); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 118, 27, .12);
}
.field input.has-error,
.field select.has-error,
.field textarea.has-error { border-color: #D14343; }
.field .error-msg { display: block; margin-top: 6px; color: #D14343; font-size: 13px; }

/* فیلد تله ربات‌ها: کاملاً پنهان، بدون ایجاد سرریز صفحه */
.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.form__note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--green-tint); color: var(--green); border: 1px solid rgba(13, 66, 53, .15); }
.form-status.is-error { background: #FDECEC; color: #B03232; border: 1px solid rgba(176, 50, 50, .18); }

/* ==========================================================================
   فوتر
   ========================================================================== */
.footer {
  margin-top: 80px;
  padding: 54px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--green-tint);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
}
.footer__logo img { width: 128px; margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 14.5px; }
.footer h4 { font-size: 15px; color: var(--green); margin-bottom: .8em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--muted); font-size: 14.5px; transition: color .2s var(--ease); }
.footer li a:hover { color: var(--orange); }

.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

/* صفحه تشکر */
.thanks {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 60px 24px;
}
.thanks__icon { width: 84px; height: 84px; color: var(--green); }
.thanks__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   انیمیشن ورود عناصر
   ========================================================================== */
/* فقط وقتی جاوااسکریپت فعال است عناصر مخفی می‌شوند؛
   در غیر این صورت محتوا همیشه دیده می‌شود. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   ریسپانسیو
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }

  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(13, 66, 53, .07);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active::after { inset-inline: auto; inset-inline-start: 8px; width: 18px; bottom: 8px; }

  .header__inner { position: relative; min-height: 66px; }

  .hero { padding: 56px 0 40px; }
  .section { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta { margin-top: 52px; padding: 34px 22px; }

  .home { gap: 34px; }
  .home__logo img { width: 148px; }

  .step { padding-inline-start: 66px; }
  .step__num { width: 46px; height: 46px; }
  .timeline::before { inset-inline-start: 22px; }

  /* بخش‌های درباره ما روی موبایل: آکاردئون ساده */
  .about-panels { display: block; }
  .ap__item { display: block; margin-bottom: 10px; }
  .ap__title { margin-bottom: 0; }
  .ap__title.is-active { transform: none; border-radius: var(--radius) var(--radius) 0 0; }
  .ap__title svg { transform: rotate(-90deg); }
  .ap__title.is-active svg { transform: rotate(90deg); }
  .ap__panel {
    display: block;
    max-height: 0;
    padding: 0 20px;
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .4s var(--ease), padding .4s var(--ease), border-color .3s var(--ease);
    border-color: transparent;
  }
  .ap__panel.is-active {
    max-height: 900px;
    padding: 20px;
    border-color: var(--line);
  }

  .member { flex: 1 1 100%; max-width: 420px; }
}

@media (max-width: 480px) {
  .form { padding: 22px 18px; }
  /* اندازه آیکن‌ها و لیبل‌ها با clamp تنظیم می‌شود تا هر پنج‌تا در یک
     ردیف جا شوند؛ اینجا فقط حاشیه دو طرف کم می‌شود */
  .home { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  /* فقط بزرگ‌نمایی هاور برداشته می‌شود؛ جای عمودی کادرها سر جایش می‌ماند */
  .home__item:hover, .home__item:focus-visible { --s: 1; }
  html.js .reveal, html.js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .nav__toggle, .cta { display: none; }
}

/* ==========================================================================
   بخش پشتیبانی مشتریان
   ========================================================================== */
.support { max-width: 780px; margin-inline: auto; }

.support__title { font-size: 20px; color: var(--green); margin: 0 0 .5em; }

.support__hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: -4px 0 20px;
}
.support__hint a { color: var(--green); text-decoration: underline; }
.support__hint a:hover { color: var(--orange); }

.support__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.support__head .support__title { margin: 0; }

.support__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: var(--green-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.support__who { font-weight: 500; color: var(--green); }
.support__project { color: var(--muted); font-size: 13.5px; margin-inline-start: 8px; }

.support__empty {
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.support__empty a { color: var(--green); text-decoration: underline; }

.support__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- فهرست تیکت‌ها ---------- */
.ticket-list { display: grid; gap: 12px; }

.ticket-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.ticket-row:hover { border-color: rgba(242, 118, 27, .4); transform: translateY(-2px); }

/* تیکتی که پاسخ خوانده‌نشده دارد */
.ticket-row.is-new { border-inline-start: 3px solid var(--orange); }

.ticket-row__main { display: grid; gap: 4px; }
.ticket-row__subject { font-weight: 500; color: var(--ink); }
.ticket-row__meta { color: var(--muted); font-size: 13px; }

/* ---------- برچسب وضعیت ---------- */
.tstatus {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tstatus--open     { background: #FFF4E8; color: #B4600F; border-color: rgba(242, 118, 27, .28); }
.tstatus--answered { background: var(--green-tint); color: var(--green); border-color: rgba(13, 66, 53, .18); }
.tstatus--closed   { background: #F1F3F2; color: var(--muted); border-color: var(--line); }

/* ---------- گفت‌وگوی تیکت ---------- */
.thread { display: grid; gap: 14px; margin-bottom: 24px; }

.bubble {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
/* پاسخ پشتیبانی با رنگ برند از پیام مشتری جدا می‌شود */
.bubble--admin { background: var(--green-tint); border-color: rgba(13, 66, 53, .16); }

.bubble__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bubble__head b { font-size: 14px; color: var(--green); font-weight: 500; }
.bubble__head time { color: var(--muted); font-size: 12.5px; }
.bubble p { margin: 0; line-height: 2; word-break: break-word; }

/* ==========================================================================
   نمای ورود صفحه اول

   یک کادر کوچک که اول دو حلقه در آن می‌چرخند و لوگو کوچک وسطشان
   نشسته، بعد حلقه‌ها باز می‌شوند و لوگو به اندازه اصلی می‌رسد؛ حدود دو
   ثانیه بعد کنار می‌رود. بدون جاواسکریپت هرگز نمایش داده نمی‌شود (کلاس js
   روی <html>)، پس اگر اسکریپت اجرا نشود بازدیدکننده پشت یک صفحه سفید
   نمی‌ماند و موتورهای جستجو هم مستقیم محتوای صفحه را می‌بینند.
   ========================================================================== */
.splash { display: none; }

html.js .splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  cursor: pointer;
  /* فاصله دید؛ بدون این، چرخش‌های زیر تخت دیده می‌شوند */
  perspective: 1100px;
  perspective-origin: 50% 46%;
}

/* تا وقتی نمای ورود باز است، صفحه پشتش اسکرول نخورد */
html.splash-on, html.splash-on body { overflow: hidden; }

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s var(--ease), visibility .42s var(--ease);
}

/* «پنجره کوچک» */
.splash__card {
  position: relative;
  width: min(330px, 78vw);
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1.5px solid var(--green);
  box-shadow: 0 26px 60px rgba(13, 66, 53, .16);
  transform-style: preserve-3d;
  animation: splash-card .72s var(--ease) both;
}

@keyframes splash-card {
  0%   { opacity: 0; transform: rotateY(-58deg) rotateX(8deg) translateZ(-110px) scale(.9); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) rotateX(0) translateZ(0) scale(1); }
}

/* صحنه: دو حلقه چرخان و لوگو، هر سه روی یک مرکز.
   ارتفاع ثابت است تا وقتی لوگو از کوچک به اندازه اصلی می‌رسد،
   کادر بالا و پایین نپرد. */
.splash__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 162px;
  transform-style: preserve-3d;
}

/* حلقه‌ها: یک کمان از دایره رنگی است و بقیه نامرئی، پس چرخش دیده
   می‌شود. rotateX آن‌ها را کمی می‌خواباند تا مثل یک حلقه در فضا
   بچرخند، نه یک دایره تخت. */
.splash__ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: splash-ring 1.9s both;
}

.splash__ring--in {
  width: 108px;
  height: 108px;
  border-width: 1.5px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--orange);
  border-left-color: var(--orange);
  animation-name: splash-ring-rev;
}

/* چرخش تند، بعد باز شدن و محو شدن تا لوگو جای آن را بگیرد */
@keyframes splash-ring {
  0%   { opacity: 0; transform: rotateX(16deg) rotate(-140deg) scale(.42); animation-timing-function: var(--ease); }
  16%  { opacity: 1; transform: rotateX(16deg) rotate(40deg) scale(1); animation-timing-function: linear; }
  58%  { opacity: 1; transform: rotateX(16deg) rotate(700deg) scale(1); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  92%  { opacity: 0; transform: rotateX(16deg) rotate(820deg) scale(1.3); }
  100% { opacity: 0; transform: rotateX(16deg) rotate(820deg) scale(1.3); }
}

@keyframes splash-ring-rev {
  0%   { opacity: 0; transform: rotateX(-18deg) rotate(140deg) scale(.42); animation-timing-function: var(--ease); }
  16%  { opacity: 1; transform: rotateX(-18deg) rotate(-40deg) scale(1); animation-timing-function: linear; }
  58%  { opacity: 1; transform: rotateX(-18deg) rotate(-620deg) scale(1); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  92%  { opacity: 0; transform: rotateX(-18deg) rotate(-720deg) scale(1.22); }
  100% { opacity: 0; transform: rotateX(-18deg) rotate(-720deg) scale(1.22); }
}

/* لایه‌ای که لوگو را جلوتر از کادر نگه می‌دارد تا عمق حس شود.
   حاشیه داخلی هست تا وقتی لوگو کمی از اندازه نهایی رد می‌شود،
   لبه‌اش بریده نشود. */
.splash__inner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 8px 10px;
  transform: translateZ(30px);
  transform-style: preserve-3d;
}

/* لوگو اول کوچک و داخل حلقه‌هاست، بعد از پایان چرخش بزرگ می‌شود */
.splash__logo {
  display: block;
  width: 176px;
  height: auto;
  margin-inline: auto;
  animation: splash-logo 1.9s var(--ease) both;
}

@keyframes splash-logo {
  0%   { opacity: 0; transform: rotateY(66deg) scale(.26); }
  18%  { opacity: 1; transform: rotateY(0) scale(.4); }
  58%  { opacity: 1; transform: rotateY(0) scale(.4); }
  86%  { opacity: 1; transform: rotateY(0) scale(1.05); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

/* برق نوری که یک بار از روی لوگوی بزرگ‌شده رد می‌شود */
.splash__shine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(242, 118, 27, .22), transparent);
  transform: translateX(-160%) skewX(-16deg);
  animation: splash-shine .72s var(--ease) 1.45s both;
}

@keyframes splash-shine {
  0%   { transform: translateX(-160%) skewX(-16deg); }
  100% { transform: translateX(340%) skewX(-16deg); }
}

/* نوار باریک زیر لوگو، به‌اندازه همان مدتی که نما باز است پر می‌شود */
.splash__bar {
  display: block;
  height: 2px;
  margin: 18px auto 0;
  width: 108px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.splash__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--orange);
  transform-origin: right center;
  animation: splash-bar 2.1s linear both;
}

@keyframes splash-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* کسی که حرکت کمتر خواسته، نمای ورود را اصلاً نمی‌بیند */
@media (prefers-reduced-motion: reduce) {
  html.js .splash { display: none; }
}
