/* ==========================================================================
   پارس حفار — بازسازی قالب company.wbrk.ir/demo3
   ========================================================================== */

/* ---------- fonts (declared exactly as the source site declares them) ---------- */
@font-face { font-family: "YekanBakh"; font-display: auto; src: url("../fonts/YekanBakh-VF.ttf") format("truetype"); }
@font-face { font-family: "Rokh"; font-display: auto; src: url("../fonts/RokhVFGX.ttf") format("truetype"); }
@font-face { font-family: "IRANSansXVF"; font-display: auto; src: local("IRANSansXVF"), url("../fonts/IRANSansXVF.ttf"); }

@font-face { font-family: "Meem"; font-style: normal; font-weight: 100; font-display: auto; src: url("../fonts/Meem-thin.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 200; font-display: auto; src: url("../fonts/Meem-ExtraLight.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 300; font-display: auto; src: url("../fonts/Meem-Light.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 400; font-display: auto; src: url("../fonts/Meem-Regular.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 500; font-display: auto; src: url("../fonts/Meem-Medium.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 600; font-display: auto; src: url("../fonts/Meem-DemiBold.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 600; font-display: auto; src: url("../fonts/Meem-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 700; font-display: auto; src: url("../fonts/Meem-Bold.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 800; font-display: auto; src: url("../fonts/Meem-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: normal; font-display: auto; src: url("../fonts/Meem-Medium.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: 900; font-display: auto; src: url("../fonts/Meem-Black.ttf") format("truetype"); }
@font-face { font-family: "Meem"; font-style: normal; font-weight: bold; font-display: auto; src: url("../fonts/Meem-Bold.ttf") format("truetype"); }

@font-face { font-family: "YekanBakh-FaNum"; font-weight: 300; font-display: auto; src: url("../fonts/YekanBakhFaNum-Light.woff2") format("woff2"); }
@font-face { font-family: "YekanBakh-FaNum"; font-weight: 400; font-display: auto; src: url("../fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); }
@font-face { font-family: "YekanBakh-FaNum"; font-weight: 500; font-display: auto; src: url("../fonts/YekanBakhFaNum-Medium.woff2") format("woff2"); }
@font-face { font-family: "YekanBakh-FaNum"; font-weight: 600; font-display: auto; src: url("../fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "YekanBakh-FaNum"; font-weight: 700; font-display: auto; src: url("../fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --primary: #ef5a3c;
  --secondary: #3d3d3d;
  --text: #43454d;
  --accent: #fcb814;
  --dark: #232323;
  --hero-bg: #de5337;
  --gray-section: #f3f3f3;

  --page-bg: #ffffff;
  --surface: #ffffff;
  --heading: #3d3d3d;
  --muted: #8a8a8a;

  --container: 1300px;
}

html[data-theme="dark"] {
  --page-bg: #292929;
  --surface: #110f0f;
  --heading: #ffffff;
  --text: #ffffff;
  --gray-section: #292929;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "YekanBakh", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--page-bg);
  direction: rtl;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
svg { flex-shrink: 0; }

.container {
  width: var(--container);
  max-width: calc(100% - 32px);
  margin-inline: auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 20;
  height: 106px;
  background: url("../img/demo3-main-color-bg.png") repeat;
}
html[data-theme="dark"] .site-header { background-color: #1c1c1c; background-image: none; }

.header-white-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 320px;
  background: #fff;
  z-index: 0;
}
html[data-theme="dark"] .header-white-panel { background: #1c1c1c; }

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* -- logo -- */
.header-logo {
  width: 148px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 36px 0;
  order: 1;
}
.header-logo img { width: 31px; height: 31px; }
.header-logo .brand {
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

/* -- nav pill -- */
.main-nav {
  order: 2;
  flex: 1 1 auto;
  height: 55px;
  border-radius: 12px;
  background: linear-gradient(#383838 0%, #1e1e1e 70%);
  box-shadow: 0 14px 12px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}
.main-nav ul {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 15px;
  padding: 8px 0;
}
.main-nav .menu-item {
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 0 0 6px;
  margin-left: 10px;
  height: 39px;
  transition: background-color 0.3s;
}
.main-nav li:last-child .menu-item { margin-left: 0; }
.main-nav .menu-item > span {
  margin-right: 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.main-nav .menu-item svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  vertical-align: middle;
}
.main-nav .menu-item svg.arrow-down {
  width: 12px;
  height: 24px;
  margin-left: 0;
  margin-right: 4px;
}
.main-nav .menu-item.active { background: var(--primary); }
.main-nav .menu-item:hover { background: rgba(255, 255, 255, 0.08); }
.main-nav .menu-item.active:hover { background: var(--primary); }
.main-nav .has-mega { padding: 8px 4px 0 6px; margin-left: 14px; cursor: pointer; }
.main-nav .has-mega > span { margin-right: 0; }

/* -- زیرمنوی «خدمات ما» -- */
.main-nav li.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  min-width: 250px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
html[data-theme="dark"] .nav-dropdown { background: #1c1c1c; }
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}
.main-nav li.has-dropdown:hover .nav-dropdown,
.main-nav li.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.nav-dropdown a:hover { color: var(--primary); background: rgba(239, 90, 60, 0.09); }
.nav-dropdown a img { width: 26px; height: 26px; object-fit: contain; }

/* -- left actions -- */
.header-actions {
  position: relative;
  order: 3;
  /* در قالب مرجع یک آیکن سبد خرید هم اینجا بود؛ چون آن را نداریم،
     ۳۵۵px عرض و ۱۰۱px padding یک فضای سفید خالی جا می‌گذاشت. */
  flex: 0 0 278px;
  width: 278px;
  /* باید کل ارتفاع ۱۰۶px هدر را بگیرد، وگرنه سفیدیِ پس‌زمینه و گوهٔ گوشه
     فقط یک نوار ۴۴ پیکسلی وسط را می‌پوشانند و لبه پله‌ای می‌شود. */
  align-self: stretch;
  padding-right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: #fff;
}
/* گوهٔ نارنجی که گوشهٔ پایین پنل سفید هدر را گرد می‌کند (مثل قالب مرجع) */
.header-actions::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/demo3-header-top-edge.png") 100% 100% no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] .header-actions { background: #1c1c1c; }
html[data-theme="dark"] .header-actions::after { display: none; }
.header-actions > * { position: relative; z-index: 1; flex-shrink: 0; }
.header-actions .icon-btn {
  display: flex;
  align-items: center;
  color: var(--text);
}
.header-actions .icon-btn svg path { stroke: #43454d; }
html[data-theme="dark"] .header-actions .icon-btn svg path { stroke: #fff; }
.act-search { padding-right: 17px; }

/* -- دکمهٔ همبرگری و منوی کشویی موبایل -- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--primary);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span:nth-child(2) { width: 70%; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: 0.25s;
}
body.nav-open .nav-overlay { visibility: visible; opacity: 1; }

.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
html[data-theme="dark"] .mobile-nav { background: #1c1c1c; }
body.nav-open .mobile-nav { transform: none; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .mobile-nav-head { border-bottom-color: rgba(255, 255, 255, 0.1); }
.mobile-brand { display: flex; align-items: center; gap: 10px; }
.mobile-brand img { width: 28px; height: 28px; }
.mobile-brand span { font-size: 18px; font-weight: 600; color: var(--heading); }
.mobile-nav-close { font-size: 30px; line-height: 1; color: var(--muted); padding: 0 6px; }
.mobile-nav-close:hover { color: var(--primary); }

.mobile-nav ul { flex: 1; padding: 8px 0; }
.mobile-nav li a {
  display: block;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav li a:hover,
.mobile-nav li a.active { color: var(--primary); background: rgba(239, 90, 60, 0.09); }

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* کلید تم که از هدر موبایل به داخل منو منتقل شده */
.mobile-nav-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 12px;
  border-radius: 10px;
  background: rgba(148, 148, 148, 0.14);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.mobile-nav-theme:hover { color: var(--primary); }
.mobile-nav-theme .ico { display: inline-flex; }
.mobile-nav-theme svg { width: 16px; height: 16px; }
html[data-theme="dark"] .mobile-nav-theme svg path { fill: #fff; }

.mobile-nav-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .mobile-nav-socials { border-top-color: rgba(255, 255, 255, 0.1); }
.mobile-nav-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 90, 60, 0.1);
  color: var(--primary);
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-socials a:hover { background: var(--primary); color: #fff; }
.mobile-nav-socials svg { width: 21px; height: 21px; }

/* -- نوار پایین صفحه در موبایل -- */
.bottom-bar { display: none; }
@media (max-width: 1024px) {
  .bottom-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 55;
    display: flex;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: #232323;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
  }
  html[data-theme="dark"] .bottom-bar { background: #141414; }
  .bottom-bar a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 10px;
    color: #cfcfcf;
    transition: color 0.2s, background-color 0.2s;
  }
  .bottom-bar a.active { color: #fff; background: var(--primary); }
  .bottom-bar a:hover { color: #fff; }
  .bottom-bar .ico { display: inline-flex; }
  .bottom-bar svg { width: 21px; height: 21px; }
  .bottom-bar .txt {
    font-size: 10.5px;
    line-height: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  /* جا برای نوار پایین */
  body { padding-bottom: 74px; }
  /* کلید تم در هدر موبایل نمایش داده نمی‌شود؛ داخل منو است */
  .header-actions .theme-switch { display: none; }
}

.btn-register {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 143px;
  width: 143px;
  margin-left: -55px;
  height: 44px;
  padding: 10px;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  line-height: 22.5px;
  white-space: nowrap;
  transition: filter 0.3s;
}
.btn-register:hover { filter: brightness(1.06); }
/* نام‌های بلند شرکت از دکمه و پنل سفید هدر بیرون می‌زدند */
.btn-register .user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-register svg { width: 25px; height: 24px; }
.btn-register svg path { fill: #fff; }

/* -- theme switch -- */
.theme-switch {
  position: relative;
  width: 48px;
  height: 27px;
  padding: 4px;
  border-radius: 16px;
  background: #e5e7eb;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1) inset;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}
html[data-theme="dark"] .theme-switch { background: #404040; }
.theme-switch .knob {
  position: absolute;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.08);
  transition: right 0.3s;
}
html[data-theme="dark"] .theme-switch .knob { right: 24px; background: #fff; }
.theme-switch .ico {
  position: absolute;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}
.theme-switch .ico-light { right: 7px; }
.theme-switch .ico-light svg { width: 15px; height: 15px; }
.theme-switch .ico-dark { right: 30px; }
.theme-switch .ico-dark svg { width: 10px; height: 10px; }
.theme-switch svg path { fill: #43454d; }
html[data-theme="dark"] .theme-switch .ico-light svg path { fill: #43454d; }
html[data-theme="dark"] .theme-switch .ico-dark svg path { fill: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  background: var(--page-bg);
}
.hero-panel {
  position: relative;
  background-color: var(--hero-bg);
  border-radius: 50px 0 50px 0;
  /* تصویر هیرو عمداً از پایین پنل بیرون می‌زند و روی نارنجیِ
     .stats-strip .spacer می‌افتد — دقیقاً مثل قالب مرجع. */
  overflow: visible;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../img/Isolation_Mode.png") 0 130px / cover repeat-x;
  pointer-events: none;
}
html[data-theme="dark"] .hero-panel { background-color: #e16149; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 72px 0 56px;
}
.hero-copy {
  width: 741px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-title {
  font-family: "Meem", serif;
  /* در ۵۸px متن به ۷۷۶px نیاز داشت و از ستون ۷۴۱ پیکسلی بیرون می‌زد و دو خط می‌شد */
  font-size: 54px;
  line-height: 62px;
  font-weight: 600;
  color: #fff;
}
.hero-subtitle {
  font-family: "Rokh", serif;
  font-size: 36px;
  line-height: 36px;
  font-weight: 500;
  color: #fff;
}
.hero-desc {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 200px;
  height: 60px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px 7px rgba(244, 206, 82, 0.2);
  transition: transform 0.3s;
}
.btn-consult:hover { transform: translateY(-2px); }
.btn-consult span {
  font-size: 17px;
  line-height: 25.5px;
  font-weight: 500;
  color: var(--secondary);
}
.btn-consult .ico {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 50px;
  height: 46px;
  padding: 12px 14px 4px;
  border-radius: 12px;
  background: var(--primary);
}
.btn-consult .ico svg { width: 22px; height: 22px; }
.hero-people { width: 100px; height: 47px; margin-right: 20px; }
.hero-count {
  font-family: "Meem", serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: #fff;
  white-space: pre;
}
.hero-count-label {
  font-size: 19px;
  line-height: 28.5px;
  font-weight: 400;
  color: #fff;
}
.hero-figure {
  position: relative;
  width: 559px;
  align-self: stretch;
}
.hero-figure img {
  position: absolute;
  top: 0;
  right: 0;
  width: 559px;
  height: 458px;
  z-index: 10;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-strip {
  display: flex;
  justify-content: flex-start;
  background: var(--page-bg);
}
/* ناحیهٔ سمت چپِ ردیف آمار در قالب مرجع سفید نیست؛ نارنجی است و لبهٔ راستش
   با تصویر demo3-hero-right-edge-bg2 به شکل منحنی داخل کارت سفید می‌نشیند.
   همین نارنجی است که محو نارنجیِ پایین تصویر هیرو را هم می‌پوشاند. */
.stats-strip .spacer { position: relative; flex: 0 0 784px; }
.stats-strip .spacer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e16047 url("../img/demo3-hero-right-edge-bg2.png") 100% 0 / contain no-repeat;
}
html[data-theme="dark"] .stats-strip .spacer::before {
  background-image: url("../img/demo3-hero-right-edge-bg2-dark.png");
}
.stats-strip .stats-card {
  position: relative;
  /* ردیف آمار ۶۴px به داخل spacer کشیده می‌شود؛ بدون این z-index
     نارنجیِ spacer روی برچسب اول («ساعته پشتیبانی») می‌افتاد. */
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  background: var(--surface);
}
html[data-theme="dark"] .stats-strip .stats-card { background: #292929; }

.stats-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-item {
  position: relative;
  min-width: 120px;
  padding: 24px 0;
  text-align: center;
}
.stat-item .stat-number {
  font-family: "YekanBakh-FaNum", serif;
  font-size: 44px;
  line-height: 66px;
  font-weight: 700;
  color: var(--heading);
}
.stat-item .stat-title {
  white-space: nowrap;
  margin-top: 4px;
  font-family: "YekanBakh-FaNum", serif;
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 600;
  color: var(--heading);
}
.stat-item.featured .stat-number,
.stat-item.featured .stat-title { color: var(--primary); }
.stat-item.with-sep::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: #3d3d3d;
}
html[data-theme="dark"] .stat-item.with-sep::after { background: #ffffff33; }
.stats-wrapper .stat-item:last-child::after { display: none; }

.stats-strip .stats-wrapper { width: 636px; margin-right: 69px; margin-left: -64px; }
.stats-strip .stat-item:nth-child(1) { width: 120px; }
.stats-strip .stat-item:nth-child(2) { width: 120px; }
.stats-strip .stat-item:nth-child(3) { width: 125px; }
.stats-strip .stat-item:nth-child(4) { width: 125px; }

/* ==========================================================================
   shared section titles
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  text-align: center;
}
.fade-title {
  display: inline-block;
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
  background-image: linear-gradient(90deg, #333, #eee);
  background-size: 10% 100%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .fade-title { background-image: linear-gradient(90deg, #fff, #555); }
.section-title {
  font-family: "Meem", serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  position: relative;
  min-height: 720px;
  padding: 60px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.services > .container { display: flex; flex-direction: column; gap: 20px; }
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3f3f3 url("../img/demo3-services-bg.png") bottom center / contain repeat-x;
}
html[data-theme="dark"] .services::before {
  background: #292929 url("../img/Group-1597880445.png") bottom center / cover no-repeat;
}
.services > * { position: relative; z-index: 1; }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 0 130px;
  width: 100%;
}
.service-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 12px 48px;
  border-radius: 12px;
  border-bottom: 2px solid #e5e7eb;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}
.service-box.w-sm { width: 416px; }
.service-box.w-lg { width: 603px; }
.service-box:hover {
  border-bottom-color: rgba(239, 90, 60, 0.5);
  background:
    radial-gradient(67.06% 77.46% at 50% 50%, rgba(239, 90, 60, 0.17) 0%, rgba(239, 90, 60, 0) 100%),
    linear-gradient(90deg, rgba(67, 69, 77, 0.05) 0%, rgba(67, 69, 77, 0.01) 100%);
  box-shadow: 0 8px 40px -20px rgba(255, 255, 255, 0.2),
    1px 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
html[data-theme="dark"] .service-box {
  border-bottom-color: transparent;
  background:
    radial-gradient(67.06% 77.46% at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(153, 153, 153, 0.01) 100%);
  box-shadow: 0 8px 40px -20px rgba(255, 255, 255, 0.2),
    1px 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.service-box .icon-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-bottom: 10px;
}
.service-box .edge {
  width: 32px;
  height: 47px;
  margin-top: -15px;
  order: -1;
  margin-right: auto;
}
.service-box .svc-icon { color: var(--primary); display: block; line-height: 0; }
.service-box .svc-icon svg { width: 1em; height: 1em; }
.service-box .svc-icon img { width: 1em; height: 1em; object-fit: contain; }
.service-box:nth-child(1) .svc-icon { font-size: 57px; }
.service-box:nth-child(2) .svc-icon { font-size: 50px; }
.service-box:nth-child(3) .svc-icon { font-size: 59px; }
.service-box:nth-child(4) .svc-icon { font-size: 49px; }
.service-box h2 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 600;
  color: var(--heading);
  transition: 0.3s;
}
/* کل کارت به صفحهٔ توضیحات همان خدمت می‌رود (service.html) */
.service-box { position: relative; }
.service-box .svc-link { color: inherit; }
.service-box .svc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-box:hover h2 { color: var(--primary); }
.service-box .svc-link:focus-visible { outline: none; }
.service-box:has(.svc-link:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.service-box p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--heading);
  opacity: 0.5;
  transition: 0.3s;
}
.service-box:hover h2 { color: var(--primary); }
.service-box:hover p { opacity: 1; }

.contact-strip-wrap { width: 100%; padding: 0 130px; }
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--primary);
  border-radius: 20px;
}
.contact-strip .left,
.contact-strip .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-strip .lbl { font-size: 16px; line-height: 32px; font-weight: 400; }
.contact-strip .lbl .accent { color: var(--primary); }
.contact-strip .lbl .plain { color: var(--text); }
.contact-strip .phone {
  font-size: 16px;
  line-height: 32px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}
.contact-strip .phone + .phone { padding-right: 12px; }
.contact-strip .chat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  text-align: end;
  color: var(--primary);
}
.contact-strip .chat img { width: 34px; height: 34px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  position: relative;
  min-height: 850px;
  padding: 120px 0 0;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3f3f3 url("../img/demo3-about-bg.png") bottom left / cover no-repeat;
}
/*
 * بخش «درباره ما» عمداً در تم تیره هم روشن می‌ماند — نه پس‌زمینه‌اش عوض می‌شود
 * نه رنگ متن‌هایش. برای همین به‌جای بازنویسی تک‌تک رنگ‌ها، همان توکن‌های تم روشن
 * روی خودِ بخش دوباره تعریف می‌شوند تا همهٔ فرزندها ارثشان را از اینجا بگیرند.
 */
html[data-theme="dark"] .about {
  --heading: #3d3d3d;
  --text: #43454d;
}
html[data-theme="dark"] .about .stat-item.with-sep::after { background: #3d3d3d; }
.about > * { position: relative; z-index: 1; }

.about-inner { display: flex; justify-content: flex-start; }
.about-copy { width: 754px; }
.about-eyebrow {
  font-family: "Meem", serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 600;
  color: var(--primary);
}
.about-title {
  margin-top: 32px;
  font-family: "Meem", serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 600;
  color: var(--heading);
}
.about-text {
  margin-top: 32px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: justify;
  color: var(--text);
}
.about-stats {
  margin-top: 32px;
  width: 603px;
}
.about-stats .stat-item:nth-child(1) { width: 139px; }
.about-stats .stat-item:nth-child(2) { width: 120px; }
.about-stats .stat-item:nth-child(3) { width: 125px; }
.about-stats .stat-item:nth-child(4) { width: 125px; }

.about-buttons {
  display: flex;
  gap: 12px;
  padding: 10px;
  justify-content: flex-start;
}
.btn-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  padding: 0 12px 0 0;
  border-radius: 12px;
  color: #fff;
  transition: filter 0.3s;
}
.btn-pill:hover { filter: brightness(1.08); }
.btn-pill span { font-size: 18px; line-height: 27px; font-weight: 500; }
.btn-pill .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.btn-pill .ico svg { width: 30px; height: 30px; }
.btn-about { width: 130px; background-image: linear-gradient(90deg, #ef5a3c 0%, #230803 100%); }
.btn-contact { width: 152px; background: var(--secondary); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
  position: relative;
  min-height: 720px;
  padding: 60px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.projects > .container { display: flex; flex-direction: column; gap: 20px; }
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/demo3-projects-bg.png") 0 40px / cover no-repeat;
}
html[data-theme="dark"] .projects::before {
  background: url("../img/demo3-projects-bg-dark.png") 0 40px / cover no-repeat;
}
.projects > * { position: relative; z-index: 1; }

.projects-frame {
  width: 100%;
  margin-top: 220px;
  padding: 0 18px 18px;
  border: 1px solid var(--primary);
  border-radius: 12px;
}
.projects-frame { display: flex; }
.projects-box {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: -18px;
  padding: 0 32px 32px;
  border-radius: 12px;
  overflow: visible;
}
.portfolio-grid-wrap { width: 100%; }
.projects-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--primary) url("../img/demo3-projects-box-bg.png") center / cover no-repeat;
}
.projects-box > * { position: relative; z-index: 1; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -180px;
}
.portfolio-item-box {
  border-radius: 15px;
  border: 12px solid rgba(235, 235, 235, 0.2);
  transition: 0.3s;
}
.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: 330px;
  padding: 8px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(61, 64, 67, 0.03);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: 0.3s;
}
.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
}
.portfolio-info {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  margin-bottom: -20px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}
.portfolio-card:hover .portfolio-info { visibility: visible; opacity: 1; margin-bottom: 0; }
.portfolio-title {
  font-family: "YekanBakh-FaNum", serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  color: #fff;
}
.portfolio-date {
  margin-top: 4px;
  font-family: "YekanBakh-FaNum", serif;
  font-size: 14px;
  line-height: 21px;
  font-weight: 300;
  color: #fff;
}
.portfolio-counter {
  position: relative;
  z-index: 9;
  font-family: "IRANSansXVF", serif;
  font-size: 90px;
  line-height: 135px;
  font-weight: 500;
  height: 70px;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  margin-right: 0;
  transition: 0.3s;
}
.portfolio-card:hover .portfolio-counter { margin-right: 35%; }

.projects-quote {
  width: 635px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.projects-quote p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
}
.projects-sign {
  display: flex;
  align-items: center;
  gap: 20px;
}
.projects-sign img.avatar { width: 32px; height: 32px; }
.projects-sign img.sign { width: 135px; height: 36px; }
.projects-sign span { font-size: 16px; line-height: 24px; font-weight: 400; color: #fff; }
.projects-stats { width: 539px; }
.projects-stats .stat-item { width: 120px; padding: 24px 0; }
.projects-stats .stat-number { font-size: 36px !important; line-height: 54px !important; color: #fff !important; }
.projects-stats .stat-title { color: #fff !important; }
.projects-stats .stat-item.with-sep::after { background: #ffffff80; }

/* ==========================================================================
   VIDEO
   ========================================================================== */
.video-band {
  position: relative;
  min-height: 620px;
  background: var(--secondary);
  overflow: hidden;
}
.video-band img.cover {
  width: 100%;
  height: 611px;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  opacity: 0.8;
  transition: 0.3s;
}
.video-play:hover { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 100px; height: 100px; }

/* ویدئو همان‌جا داخل همین قاب پخش می‌شود — بدون باز شدن پنجرهٔ تازه */
.video-band .video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 611px;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  background: #000;
  transition: opacity 0.35s;
}
.video-band.is-playing .video-player { opacity: 1; visibility: visible; }
.video-band.is-playing img.cover,
.video-band.is-playing .video-play { opacity: 0; visibility: hidden; }

/* -- کانال‌های ارتباطی داخل نوار تماس -- */
.contact-strip .socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-strip .social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(239, 90, 60, 0.1);
  color: var(--primary);
  font-family: "YekanBakh-FaNum", serif;
  font-size: 15px;
  font-weight: 600;
  direction: ltr;
  transition: background-color 0.2s, transform 0.2s;
}
.contact-strip .social:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.contact-strip .social svg { width: 20px; height: 20px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  position: relative;
  min-height: 755px;
  padding: 60px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3f3f3;
}
html[data-theme="dark"] .faq::before { background: #292929; }

.faq > * { position: relative; z-index: 1; }
.faq { gap: 20px; }

.faq-col {
  width: 590px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list { width: 570px; }
.faq-item { margin-bottom: 16px; border-radius: 12px; transition: 0.3s; }
.faq-item .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 16px 24px;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: right;
  color: var(--heading);
  transition: 0.3s;
}
.faq-item .faq-q .txt { flex: 1; }
.faq-item .faq-q .ico { order: -1; display: inline-flex; }
.faq-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50px;
  background: #f6f6f6;
  font-size: 21px;
  line-height: 24px;
  font-weight: 400;
  color: #6b6e70;
  transition: 0.3s;
}
.faq-answer {
  display: none;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 10px 0 #eee;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  text-align: right;
  color: var(--secondary);
}
.faq-item.active { box-shadow: 0 10px 10px 0 #eee; }
.faq-item.active .faq-q {
  height: 61px;
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
}
.faq-item.active .faq-symbol {
  width: 37px;
  height: 37px;
  color: var(--primary);
  font-size: 21px;
}
.faq-item.active .faq-answer { display: block; }
html[data-theme="dark"] .faq-item .faq-q { border-color: #3a3a3a; }
html[data-theme="dark"] .faq-answer { background: #1c1c1c; color: #fff; box-shadow: none; }
html[data-theme="dark"] .faq-item.active { box-shadow: none; }

.faq-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 570px;
  padding: 12px 24px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(239, 90, 60, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
  font-size: 18px;
  line-height: 18px;
  font-weight: 600;
  color: var(--primary);
}
.faq-more svg { width: 18px; height: 18px; fill: currentColor; order: 1; }
.faq-more span { text-align: center; }

/* ==========================================================================
   HONORS
   ========================================================================== */
.honors {
  position: relative;
  padding: 0 10px;
  background: url("../img/honors-section-bg.png") 0 160px repeat-x;
}
html[data-theme="dark"] .honors { background-color: #110f0f; }
.honors-inner {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.honors-head {
  margin-top: 64px;
  width: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: url("../img/honors-title-bg.png") center center no-repeat;
}
.honors-head { text-align: center; }
.honors-head .section-title { font-size: 36px; line-height: 36px; }

/* چهار کارت ۳۱۰px زیر ۱۳۰۰px از عرض کانتینر بیرون می‌زدند */
.honors-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.honor-item {
  width: 310px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 2px solid #f3f3f3;
  background: #f3f3f3;
  transition: 0.3s;
}
html[data-theme="dark"] .honor-item { border: none; background: rgba(255, 255, 255, 0.06); }
.honor-item .frame {
  height: 205px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="dark"] .honor-item .frame { background: rgba(255, 255, 255, 0.9); }
.honor-item h2 {
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  color: var(--heading);
  transition: 0.3s;
}
.honor-item:hover h2 { color: var(--primary); }
.honor-item h3 {
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  color: var(--muted);
}

.customer-logos {
  width: 100%;
  margin: 40px 0;
  overflow: hidden;
}
.customer-logos .track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-marquee 30s linear infinite;
}
.customer-logos .slide {
  width: 127px;
  display: flex;
  justify-content: flex-end;
  margin-left: 20px;
}
.customer-logos img {
  height: 56px;
  width: auto;
  opacity: 0.5;
  transition: 0.3s;
}
.customer-logos img:hover { opacity: 1; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(882px); }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog {
  position: relative;
  padding: 0 10px;
}
.blog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/gray-bg.png") repeat;
}
html[data-theme="dark"] .blog::before { background: #292929; }
.blog > * { position: relative; z-index: 1; }
.blog-inner { padding: 10px 0; }
.blog-content {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.blog-head .fade-title { color: var(--heading); -webkit-text-fill-color: currentColor; background: none; }

.blog-carousel {
  position: relative;
  width: 1500px;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-track {
  display: flex;
  padding-bottom: 20px;
  transition: transform 0.45s ease;
}
.blog-card {
  flex: 0 0 357px;
  width: 357px;
  margin-left: 24px;
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #e7e7e7;
  backdrop-filter: blur(16px);
  transition: 0.3s;
}
.blog-card:hover { background: rgba(252, 252, 252, 0.95); box-shadow: 0 0 20px 0 #e3e3e3; }
html[data-theme="dark"] .blog-card { border: 1px solid #292929; background: rgba(255, 255, 255, 0.1); }
.blog-card .thumb {
  height: 345px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}
.blog-card .title {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  color: var(--heading);
}
.blog-card hr {
  height: 0;
  margin: 0 0 10px;
  border: 0;
  border-top: 1px solid #bababa;
}
.blog-card .excerpt {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--heading);
}

.blog-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
}
.blog-nav div {
  width: 86px;
  height: 45px;
  padding: 10px 31px;
  border: 1px solid var(--secondary);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s;
}
html[data-theme="dark"] .blog-nav div { border-color: rgba(255, 255, 255, 0.45); }
.blog-nav div:hover { border-color: #ffbb71; }
.blog-nav div:hover svg path { stroke: #ffbb71; }
.blog-nav svg { width: 24px; height: 25px; }
.blog-nav svg path { stroke: var(--text); transition: 0.3s; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; }
.footer-main {
  position: relative;
  padding-top: 47px;
  overflow: hidden;
}
.footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/gray-bg.png") repeat;
}
html[data-theme="dark"] .footer-main::before { background: #1c1c1c; }
.footer-main > * { position: relative; z-index: 1; }

.footer-map {
  position: absolute;
  top: 90px;
  right: 70px;
  width: 456px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  z-index: 9;
}
.footer-map .map-card {
  padding: 4px;
  border-radius: 20px;
  background: #fff;
}
.footer-map .map-card img {
  width: 358px;
  height: 538px;
  border-radius: 20px;
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.26);
}
.footer-map .addr-strip { padding: 4px; border-radius: 20px; }
.footer-map .addr-strip img { width: 14px; height: 212px; border-radius: 20px; }

.footer-cols { position: relative; padding-right: 142.5px; }

.footer-panel-top,
.footer-panel-bottom {
  position: relative;
  width: calc(100% + 231.5px);
  padding-left: 231.5px;
}
.footer-panel-top { border-radius: 20px 20px 0 0; }
.footer-panel-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
}
html[data-theme="dark"] .footer-panel-top::before { background: #3e3e3e; }
.footer-panel-bottom { border-radius: 0 20px 0 0; padding-bottom: 34.7px; }
.footer-panel-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../img/gray-bg.png") repeat;
  opacity: 0.5;
}
html[data-theme="dark"] .footer-panel-bottom::before { background: #232323; opacity: 1; }
.footer-panel-top > .inner,
.footer-panel-bottom > .inner { position: relative; z-index: 1; }

.footer-panel-top > .inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 42px 280px 36px 0;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 31px; height: 31px; }
.footer-brand p {
  font-family: "Meem", serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text);
}
.footer-about {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
}
.footer-about .dim { opacity: 0.5; }
.footer-badges {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 12px;
  border-radius: 12px;
  background: rgba(148, 148, 148, 0.2);
}
.footer-badges .footer-badge:nth-child(2) { flex: 1; }
.footer-badge .ico { order: 1; display: inline-flex; }
.footer-badge svg { width: 24px; height: 24px; }
.footer-badge svg path { fill: #232323; }
html[data-theme="dark"] .footer-badge svg path { fill: #fff; }
.footer-badge span {
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}

.footer-panel-bottom > .inner {
  display: flex;
  gap: 10px;
  padding: 42px 340px 36px 0;
}
.footer-col { width: 199px; display: flex; flex-direction: column; gap: 10px; }
.footer-col.newsletter { width: 399px; gap: 12px; }
.footer-col-title {
  font-family: "Meem", serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.footer-col-title img {
  display: inline-block;
  width: 44px;
  height: 27px;
  margin-top: 8px;
  vertical-align: top;
}
.footer-col.newsletter .footer-col-title + .footer-newsletter + .footer-col-title { margin-top: 8px; }
.footer-col.newsletter .footer-col-title { font-size: 14px; line-height: 21px; }
.footer-links a {
  display: block;
  font-size: 14px;
  line-height: 37px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }

.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
}
.footer-newsletter .env {
  position: relative;
  display: inline-flex;
  padding: 0 8px 0 12px;
}
.footer-newsletter .env::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: #dedede;
}
.footer-newsletter .env svg { width: 22px; height: 22px; fill: var(--secondary); }
html[data-theme="dark"] .footer-newsletter .env svg { fill: #fff; }
.footer-newsletter form { flex: 1; display: flex; align-items: center; gap: 10px; }
.footer-newsletter input {
  flex: 1;
  height: 40px;
  padding: 5px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.footer-newsletter input::placeholder { color: rgba(67, 69, 77, 0.6); }
html[data-theme="dark"] .footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.6); }
.footer-newsletter button {
  line-height: 16px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: filter 0.3s;
}
.footer-newsletter button:hover { filter: brightness(1.08); }

.trust-badges { display: flex; gap: 10px; padding-left: 12px; }
.trust-badges .badge {
  width: 86px;
  height: 86px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.19);
}
html[data-theme="dark"] .trust-badges .badge { background: rgba(255, 255, 255, 0.1); }
.trust-badges img { width: 62px; height: 62px; }

.footer-bottom {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
}
.footer-bottom p {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
  text-align: center;
}

/* ==========================================================================
   reveal-on-scroll counters
   ========================================================================== */
.count-up { display: inline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1440px) {
  .blog-carousel { width: 100%; }
}

@media (max-width: 1366px) {
  .stats-strip .spacer { flex: 1; width: auto; }
  .stats-strip .stats-card { width: auto; flex: 0 0 auto; padding-left: 20px; }
  .stats-strip .stats-wrapper { width: auto; margin: 0; gap: 8px; }
  .services-grid, .contact-strip-wrap { padding: 0 40px; }
}

@media (max-width: 1200px) {
  .header-actions { width: auto; padding-left: 0; }
  .header-white-panel { width: 280px; }
  /* در این بازه منوی کامل جا نمی‌شد و از عرض کانتینر بیرون می‌زد؛
     آیکن ابتدای هر آیتم حذف می‌شود تا متن‌ها کامل بمانند. */
  .main-nav { min-width: 0; }
  .main-nav ul { margin: 0 8px; }
  .main-nav .menu-item { margin-left: 4px; }
  .main-nav .menu-item > span > svg:first-child { display: none; }
  .hero-copy { width: 55%; }
  .hero-figure { width: 45%; }
  .hero-figure img { width: 100%; height: auto; }
  .hero-title { font-size: 44px; line-height: 46px; }
  .hero-subtitle { font-size: 28px; line-height: 30px; }
  .about-copy, .about-stats { width: 100%; }
  .services-grid { padding: 0 16px; }
  .service-box.w-sm, .service-box.w-lg { width: calc(50% - 8px); }
  .contact-strip-wrap { padding: 0 16px; }
  .projects-footer { flex-wrap: wrap; }
  .projects-quote, .projects-stats { width: 100%; }
  .footer-map { display: none; }
  .footer-panel-top > .inner, .footer-panel-bottom > .inner { padding-left: 24px; }
  .footer-cols { padding-left: 0; }
}

@media (max-width: 1024px) {
  /* چیدمان موبایلِ قالب مرجع: همبرگری راست، برند وسط، دکمه‌های حساب چپ */
  .main-nav { display: none; }
  .nav-toggle { display: flex; order: 0; }
  .header-white-panel { width: 100%; }
  /* هدر در این عرض تمام‌عرض سفید است و دیگر گوشهٔ منحنی معنا ندارد */
  .header-actions {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    padding: 0;
    background: none;
  }
  .header-actions::after { display: none; }
  .header-actions .act-search { display: none; }
  .header-inner { justify-content: space-between; }
  /* دقیقاً وسط خودِ صفحه، نه وسط فضای باقی‌مانده بین همبرگری و دکمه‌ها */
  .header-logo {
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 220px);
    padding: 0;
    gap: 10px;
    justify-content: center;
  }
  .header-logo img { width: 40px; height: 40px; }
  .header-logo .brand { font-size: 17px; white-space: nowrap; }
  .header-logo .brand { color: var(--heading); }
  /* فایل لوگو سفید است و روی هدر سفیدِ این عرض‌ها دیده نمی‌شد */
  .header-logo img { filter: brightness(0) invert(22%); }
  html[data-theme="dark"] .header-logo img { filter: none; }
  .btn-register { margin-left: 0; }
  .btn-register .user-name { max-width: 70px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .projects-frame { margin-top: 40px; }
  .honors-grid { flex-wrap: wrap; justify-content: center; }
  /* عرض ثابت ۵۹۰px این ستون روی موبایل باعث اسکرول افقی کل صفحه می‌شد */
  .faq-col, .faq-list, .faq-more { width: 100%; max-width: 590px; }
  /* رندر کامیون روی گوشی جا ندارد و پشت متن می‌افتد */
  .faq::after { display: none; }
  .faq { min-height: 0; padding: 44px 0 50px; }
  .footer-panel-bottom > .inner { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  /* قالب مرجع در موبایل تصویر هیرو را کامل پنهان می‌کند و متن تمام‌عرض می‌شود */
  .hero-inner { flex-direction: column; padding: 40px 0; }
  .hero-copy { width: 100%; }
  .hero-figure { display: none; }
  .hero-title { font-size: 32px; line-height: 38px; }
  .hero-subtitle { font-size: 22px; line-height: 28px; }
  .hero-cta-row { flex-wrap: wrap; }
  /* ردیف آمار مثل مرجع در یک سطر می‌ماند و فقط برچسب‌ها دو خطی می‌شوند */
  .stats-strip .spacer { display: none; }
  .stats-strip .stats-card { width: 100%; padding: 0 12px; }
  /*
   * سلکتور باید هم‌وزنِ قاعدهٔ ۱۳۶۶ (`.stats-strip .stats-wrapper { width: auto }`)
   * باشد وگرنه آن یکی برنده می‌شود و ردیف آمار به‌جای تمام‌عرض، اندازهٔ محتوا
   * می‌ماند و به لبهٔ راست می‌چسبد و برچسب‌ها روی هم می‌افتند.
   */
  .stats-wrapper,
  .stats-strip .stats-wrapper { width: 100%; margin: 0; gap: 4px; }
  .stat-item { min-width: 0; width: 25% !important; padding: 18px 0; }
  .stat-item .stat-number { font-size: 24px; line-height: 38px; }
  .stat-item .stat-title { white-space: normal; font-size: 12px; line-height: 18px; }
  .service-box.w-sm, .service-box.w-lg { width: 100%; }
  .contact-strip { flex-direction: column; height: auto; padding: 16px; border-radius: 16px; }
  .contact-strip .left, .contact-strip .right { flex-wrap: wrap; justify-content: center; }
  .section-title, .about-eyebrow, .about-title { font-size: 28px; line-height: 32px; }
  /*
   * روی گوشی، `cover` عکس پس‌زمینه را تا پشت کل متن بالا می‌کشد و نوشته‌ها
   * روی ماشین‌آلات تیره می‌افتند. اینجا عکس به یک نوار تمام‌عرض ته بخش تبدیل
   * می‌شود و متن روی زمینهٔ ساده می‌ماند.
   */
  /* ارتفاع نوار عکس با عرض صفحه تغییر می‌کند (نسبت تصویر ۵۷٪)، پس فاصلهٔ
     پایین هم درصدی گرفته می‌شود تا در هیچ عرضی زیر متن نزند. */
  .about { min-height: 0; padding: 60px 0 calc(57% + 20px); }
  .about::before { background-size: 100% auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .projects-box { padding: 0 16px 24px; }
  .projects-frame { padding: 0 8px 8px; }
  /* قاب ویدئو با نسبت ۱۶:۹ ارتفاع می‌گیرد تا نه کشیده شود نه بریده */
  .video-band { min-height: 0; }
  .video-band img.cover,
  .video-band .video-player { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .video-band .video-player { position: absolute; inset: 0; height: 100%; }
  .video-play, .video-play svg { width: 66px; height: 66px; }
  .blog-card { flex-basis: 300px; width: 300px; }
  .blog-card .thumb { height: 260px; }
  .footer-badges { flex-direction: column; }
  /* نشانی طولانی با nowrap از عرض صفحه بیرون می‌زد */
  .footer-badge span { white-space: normal; }
  .footer-badge { align-items: flex-start; }
  .trust-badges { flex-wrap: wrap; }
  .contact-strip .socials { width: 100%; }
  .contact-strip .social { flex: 1 1 auto; justify-content: center; }
}

/* ---------- فوتر ریسپانسیو ---------- */
@media (max-width: 1200px) {
  /* نقشه پنهان می‌شود، پس فضای رزروشدهٔ سمت راست هم باید برداشته شود */
  .footer-cols { padding-right: 0; }
  .footer-panel-top > .inner { padding: 36px 24px 30px; }
  .footer-panel-bottom > .inner { flex-wrap: wrap; gap: 28px; padding: 36px 24px 30px; }
  .footer-col { width: calc(50% - 14px); }
  .footer-col.newsletter { width: 100%; order: -1; }
}

@media (max-width: 700px) {
  .footer-panel-top,
  .footer-panel-bottom { width: 100%; padding-left: 0; border-radius: 20px 20px 0 0; }
  .footer-panel-top > .inner { padding: 28px 18px 24px; }
  .footer-panel-bottom > .inner { gap: 22px; padding: 28px 18px 26px; }
  .footer-col { width: 100%; }
  .footer-newsletter { height: auto; flex-wrap: wrap; padding: 8px; }
  .footer-newsletter form { display: flex; flex: 1 1 100%; gap: 8px; }
  .footer-newsletter input { flex: 1; min-width: 0; }
  .trust-badges { justify-content: flex-start; gap: 10px; }
  .footer-bottom { text-align: center; line-height: 26px; }
}

@media (max-width: 560px) {
  /* هر چهار عدد در یک ردیف می‌مانند؛ فقط اندازه‌ها کوچک می‌شوند و
     برچسب‌ها اجازهٔ شکستن به خط بعد دارند تا روی هم نیفتند. */
  .stats-strip .stats-card { padding: 0 2px; }
  .stats-strip .stats-wrapper { flex-wrap: nowrap; gap: 0; align-items: flex-start; }
  .stats-strip .stat-item { width: 25% !important; min-width: 0; padding: 14px 0; }
  .stats-strip .stat-number { font-size: 19px !important; line-height: 28px !important; }
  /* برچسب باید در یک خط جا شود، وگرنه ستون‌ها ناهم‌تراز می‌شوند */
  .stats-strip .stat-title { white-space: nowrap; font-size: 9.5px; line-height: 16px; }
  .stats-strip .stat-item.with-sep::after { height: 26px; right: 0; }

  /* این عنصر خودش هر دو کلاس را دارد، پس سلکتور نباید descendant باشد */
  .projects-stats { width: 100%; flex-wrap: nowrap; gap: 0; align-items: flex-start; }
  .projects-stats .stat-item { width: 25% !important; min-width: 0; padding: 12px 0; }
  .projects-stats .stat-number { font-size: 19px !important; line-height: 28px !important; }
  /* «مشتری رضایتمند» در یک خط از ستون ۲۵٪ بیرون می‌زد؛ چون ردیف از بالا
     هم‌تراز است، شکستن برچسب به خط دوم عددها را جابه‌جا نمی‌کند. */
  .projects-stats .stat-title { white-space: normal; font-size: 9.5px; line-height: 16px; }
  .projects-stats .stat-item.with-sep::after { height: 26px; right: 0; }
}

@media (max-width: 430px) {
  /* برند وسط می‌ماند؛ فقط کمی کوچک‌تر تا کنار دکمه‌ها جا شود */
  .header-logo { max-width: calc(100% - 150px); }
  .header-logo img { width: 32px; height: 32px; }
  .header-logo .brand { font-size: 15px; }
  .btn-register { flex: 0 0 auto; width: auto; padding: 10px 12px; }
  .btn-register span { display: none; }
  .header-actions { gap: 8px; }
  .hero-title { font-size: 28px; line-height: 34px; }
  .stat-item .stat-number { font-size: 20px; line-height: 32px; }
  .stat-item .stat-title { font-size: 11px; }
}
