:root {
  --bg: #0c141a;
  --bg-soft: #111a22;
  --card: #131f28;
  --text: #e6eef5;
  --muted: #9bb0bf;
  --brand: #20c2b9;
  --brand-weak: #13978f;
  --line: #1b2a33;
  --ring: 0 0 0 2px rgba(32, 194, 185, .35);
  --maxw: 1120px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Containers */
.container {
  width: min(var(--maxw), 90%);
  margin-inline: auto
}

.container.narrow {
  width: min(820px, 90%)
}

.container.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(var(--maxw), 90%);
  margin-inline: auto
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* بالاتر از پارالاکس */
  backdrop-filter: saturate(160%) blur(8px);
  background: linear-gradient(180deg, rgba(12, 20, 26, .85), rgba(12, 20, 26, .65) 90%, transparent);
  border-bottom: 1px solid #0f2126;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .4px
}

.brand img {
  display: block;
  height: 44px;
  width: auto
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 10px 4px;
  border-radius: 10px;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-weak));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px;
}

.nav a:hover {
  color: #f2fbff
}

.nav a:hover::after {
  transform: scaleX(1)
}

.nav a.active {
  color: #f2fbff
}

.nav a.active::after {
  transform: scaleX(1)
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #15323c;
  color: #cfe6ea;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #cfe6ea;
  border-radius: 2px;
  margin: 4px 0
}

/* Mobile nav */
@media (max-width:900px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    z-index: 1200;
    /* روی پارالاکس */
    background: #0e171e;
    border-top: 1px solid #0f2126;
    display: none;
    flex-direction: column;
    padding: 12px 20px;
  }

  .nav a {
    padding: 10px 0;
    font-size: 18px
  }

  .nav.show {
    display: flex
  }

  .nav-toggle {
    display: block
  }
}

/* Promo bar */
.promo-bar {
  background: #0a1217;
  color: var(--brand);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid #0f2126;
}

/* Hero + page hero */
.hero,
.split-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 66vh;
  display: grid;
  place-items: center;
  background: #0d151b center/cover no-repeat;
}

/* CONTACT / INTERNAL HERO — base (no overlay, no filter) */
.page-hero {
  min-height: clamp(48vh, 40vh + 8vw, 64vh);
  display: grid;
  place-items: center;
  background-color: #0d151b;
  /* پایه؛ اگر تصویر نیاد */
  background-size: cover;
  background-position: top center;
  /* از بالا قاب بشه */
  background-repeat: no-repeat;
}


/* Sections */
.section {
  padding: 56px 0
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.card {
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  border-color: color-mix(in srgb, var(--brand) 40%, #0f2126)
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.stack {
  background: var(--bg-soft);
  border: 1px solid #0f2126;
  border-radius: 12px;
  padding: 16px
}

/* Buttons */
/* ===== Buttons — Neon Under-Glow (canonical) ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #1d2f39;
  /* فریم تیره */
  background: #0e171c;
  /* بدنهٔ تیره (نه ترنسپرنت) */
  color: #E6EEF5;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, .25),
    /* عمق داخلی */
    0 1px 0 rgba(255, 255, 255, .02);
  /* های‌لایت خیلی ظریف بالایی */
  transition: transform .08s ease,
    background-color .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

/* نوار نئونی زیر دکمه */
/* ===== Buttons — Neon Halo (like screenshot 2) ===== */
.btn {
  position: relative;
  isolation: isolate;
  /* تا pseudo زیرِ خود دکمه بماند */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #1d2f39;
  /* فریم تیره */
  background: #0e171c;
  /* بدنه‌ی تیره */
  color: #E6EEF5;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;

  /* عمقِ خیلی ملایم خود دکمه */
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, .25),
    0 1px 0 rgba(255, 255, 255, .02);

  transition:
    transform .08s ease,
    background-color .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

/* هاله‌ی نئونیِ دَوَرانی (پشت دکمه) */
.btn::before {
  content: "";
  position: absolute;
  inset: -20px -26px;
  /* شعاع هاله؛ در صورت نیاز کم/زیاد کن */
  border-radius: 22px;
  z-index: -1;
  pointer-events: none;

  /* حلقه‌ی درخشان گرد */
  background:
    radial-gradient(ellipse at center,
      rgba(32, 194, 185, .30) 0%,
      rgba(32, 194, 185, .18) 38%,
      rgba(32, 194, 185, .08) 60%,
      rgba(32, 194, 185, 0) 78%);

  filter: blur(18px);
  opacity: .95;

  transition: opacity .25s ease, filter .25s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover::before {
  opacity: 1;
  filter: blur(22px);
  transform: translateY(1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:active::before {
  opacity: .8;
  filter: blur(16px);
  transform: translateY(0);
}

/* حالت ghost (اگر لازم داری) */
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: #1d2f39;
  box-shadow: none;
}

.btn.ghost::before {
  background:
    radial-gradient(ellipse at center,
      rgba(32, 194, 185, .24) 0%,
      rgba(32, 194, 185, .14) 38%,
      rgba(32, 194, 185, .06) 60%,
      rgba(32, 194, 185, 0) 78%);
}



/* Typo bits */
blockquote {
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 600;
  text-align: center
}

.sig {
  opacity: .6;
  margin-top: 8px;
  text-align: center
}

/* Mission split */
.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px
}

#mission .image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  filter: brightness(.96) contrast(1.04)
}

#mission .text h2 {
  margin-top: 0
}

#mission .text p,
.muted {
  color: var(--muted)
}

/* FAQ */
.faq details {
  background: var(--bg-soft);
  border: 1px solid #0f2126;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  transition: border-color .2s ease, box-shadow .2s ease
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  outline: none
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 35%, #0f2126);
  box-shadow: 0 0 0 2px rgba(32, 194, 185, .12)
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted)
}

/* Icon grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.icons-grid .icon-card {
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.icons-grid .icon-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, #0f2126);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .35)
}

.icons-grid .icon-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 10px
}

.icons-grid .icon-card h3 {
  margin: .25rem 0 .35rem
}

.icons-grid .icon-card p {
  margin: 0;
  color: var(--muted)
}

/* Partners */
.partners-row {
  display: flex;
  align-items: center;
  gap: min(6vw, 40px);
  justify-content: center;
  padding: 24px 0;
}

.partners-row img {
  height: 50px;
  width: auto;
  display: block;
  filter: grayscale(0) contrast(1.05)
}

/* Quote overlays */
.split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .52), rgba(0, 0, 0, .38))
}

.split-hero>.container {
  position: relative;
  z-index: 1
}

/* === Parallax (simple) === */
/* .parallax{background-size:cover; background-position:center; will-change:background-position} */

/* === Dual-Layer Parallax (hero only) === */
/* .parallax-dual{
  position:relative; min-height:66vh; overflow:hidden; isolation:isolate; background:transparent !important;
}
.parallax-dual .p-bg, .parallax-dual .p-fg{
  position:absolute; inset:-10% -10%; background-size:cover; background-position:center; will-change:transform;
}
.parallax-dual .p-bg{z-index:0}
.parallax-dual .p-fg{z-index:1; opacity:.9}
.parallax-dual::after{
  content:""; position:absolute; inset:0; z-index:2; background:linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.16));
}
.parallax-dual > .container{position:relative; z-index:3} */

/* Footer */
.site-footer {
  border-top: 1px solid #0f2126;
  padding: 18px 0;
  color: var(--muted)
}

.site-footer a {
  color: var(--brand);
  text-decoration: none
}

.site-footer a:hover {
  color: var(--brand-weak);
  text-decoration: underline
}

/* Reveal animation */
[data-animate] {
  opacity: 0;
  transform: translateY(18px) scale(.985)
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1)
}

/* Responsive */
@media (max-width:1100px) {
  .grid-2 {
    grid-template-columns: 1fr
  }
}

@media (max-width:900px) {

  .cards,
  .grid,
  .grid-4 {
    grid-template-columns: 1fr
  }

  .hero,
  .split-hero {
    min-height: 60vh
  }

  .partners-row {
    flex-direction: column
  }
}

@media (max-width:540px) {
  .icons-grid .icon-card img {
    width: 56px;
    height: 56px
  }
}

/* ===== Services: زیگزاگی مثل مرجع ===== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 26px
}

.service-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  overflow: hidden
}

.service-row:nth-child(even) {
  grid-template-columns: 1fr 1.25fr
}

.service-row img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  filter: brightness(.92) contrast(1.06)
}

.service-text {
  padding: 18px
}

.service-text h3 {
  margin: .2rem 0 .4rem
}

.service-text p {
  margin: 0;
  color: var(--muted)
}

@media (max-width:900px) {

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr
  }

  .service-row img {
    max-height: 220px
  }
}

.contact-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--brand-weak);
  text-decoration: underline;
}

/* 1) هم‌تراز شدن دکمه‌ها در سه کارت Contact */
.contact-ways {
  align-items: stretch;
}

/* ستون‌ها هم‌ارتفاع */
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* دکمه می‌ره پایین کارت */
  min-height: 220px;
  /* در صورت نیاز کمی ارتفاع ثابت */
}

.contact-card .btn {
  margin-top: 14px;
  display: inline-block;
  /* دکمه جمع‌وجور */
  width: auto;
  /* فقط به اندازه متن */
  align-self: flex-start;
  /* از سمت چپ کارت */
  min-width: 160px;
  /* (اختیاری) همه دکمه‌ها یه اندازه مینیمم داشته باشن */
}

/* مطمئن شو دکمه‌ها هیچ وقت underline نمی‌گیرن */
.btn,
.btn:hover,
.btn:focus,
.contact-card .btn,
.contact-card .btn:hover,
.contact-card .btn:focus {
  text-decoration: none !important;
}

/* === Our Services Images === */
/* --- Our Services Cards & Images --- */
/* === Services Zigzag Cards === */
.services-zigzag {
  display: grid;
  gap: 18px;
}

/* باکس هر ردیف (تصویر + متن) */
.svc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  /* تصویر کمی بزرگ‌تر از متن */
  gap: 18px;
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  padding: 16px;
  align-items: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.svc:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, #0f2126);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .32);
}

/* تصویر */
.svc-media img {
  width: 100%;
  height: 260px;
  /* ارتفاع ثابت و یکدست */
  object-fit: cover;
  /* بدون کشیدگی */
  border-radius: 12px;
  display: block;
  filter: brightness(.96) contrast(1.05);
}

/* متن */
.svc-body h3 {
  margin: 6px 0 6px;
}

.svc-body p {
  margin: 0;
  color: var(--muted);
}

/* زیگزاگ: ردیف‌های زوج جابه‌جا شوند */
.svc:nth-child(even) .svc-media {
  order: 2;
}

/* تصویر می‌رود راست */
.svc:nth-child(even) .svc-body {
  order: 1;
}

/* متن می‌آید چپ  */
.svc:nth-child(even) {
  grid-template-columns: 1fr 1.15fr;
  /* توازن وقتی جابه‌جا شد */
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .svc {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .svc-media img {
    height: 220px;
  }

  .svc:nth-child(even) .svc-media,
  .svc:nth-child(even) .svc-body {
    order: initial;
  }

  /* موبایل، زیگزاگ حذف شود */
}

/* --- Section Divider (Between Partners & Follow) --- */
.divider {
  border: 0;
  height: 2px;
  width: clamp(180px, 40%, 420px);
  /* نه تمام‌عرض */
  margin: 20px auto 26px;
  /* وسط‌چین */
  background: linear-gradient(90deg,
      transparent 0%,
      var(--brand) 18%,
      var(--brand-weak) 82%,
      transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(32, 194, 185, .08);
  /* هاله خیلی لطیف */
  opacity: .95;
}

/* حالت چپ‌چین در صورت نیاز */
.divider.divider--left {
  margin-left: 0;
  margin-right: auto;
}

/* === About intro (text left + photo right) === */
.about-intro {
  padding: 48px 0 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  /* متن کمی عریض‌تر از عکس */
  gap: 28px;
  align-items: center;
}

.about-copy h1 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.headline-hr {
  height: 2px;
  width: clamp(220px, 55%, 520px);
  margin: 10px 0 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand-weak));
  border-radius: 2px;
}

.about-copy p {
  color: var(--muted);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: brightness(.98) contrast(1.03);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* متن اول بیاید، عکس زیرش */
  .about-photo {
    order: 2;
  }
}

/* ===== Dual-Layer Parallax (FINAL, override) ===== */
/* .parallax-dual{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height: 74vh;            
  background: transparent !important;
}
.parallax-dual .p-bg,
.parallax-dual .p-fg{
  position:absolute; inset:-12% -12%;
  background-size: cover; background-position:center;
  transform: translateY(0);        
  will-change: transform;
}
.parallax-dual .p-bg{ z-index:0; }
.parallax-dual .p-fg{ z-index:1; opacity:.92; }


.parallax-dual::after{
  content:""; position:absolute; inset:0; z-index:2;
  background: linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.18));
}


.parallax-dual > .container{ position:relative; z-index:3; }


@media (min-width:901px){
  .parallax-dual .p-bg,
  .parallax-dual .p-fg{ filter:brightness(1.06) contrast(1.03); }
}


@media (max-width:900px){
  .parallax-dual{ min-height: 60vh; }        
  .parallax-dual .p-bg,
  .parallax-dual .p-fg{ transform:none !important; }
}
@media (prefers-reduced-motion: reduce){
  .parallax-dual .p-bg, .parallax-dual .p-fg{ transform:none !important; }
} */

/* ===== Split-Hero (quote) stacking fix ===== */
.split-hero {
  position: relative;
  z-index: 0;
  /* زمینه معمولی */
  overflow: hidden;
  min-height: 46vh;
}

.split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .52), rgba(0, 0, 0, .38));
}

.split-hero>.container {
  position: relative;
  z-index: 1;
}

/* اطمینان از اینکه سکشن بعدی روی این نمی‌افتد */
.section {
  position: relative;
  z-index: 1;
}

/* ===== Simple parallax backgrounds (safe default) ===== */
/* .parallax{ background-size: cover; background-position: center; } */

/* ====== Dual-Layer Parallax (final override) ====== */
/* .parallax-dual{
  position: relative;
  isolation: isolate;
  overflow: hidden;                
  min-height: 80vh;                
  background: transparent !important;
  margin-block-end: 26px;        
} */

/* دو لایه تصویر */
/* .parallax-dual .p-bg,
.parallax-dual .p-fg{
  position: absolute;
  inset: -10% -10%;                
  background-size: cover;
  background-position: center;
  transform: translateY(0);        
  will-change: transform;
}
.parallax-dual .p-bg{ z-index: 0; }
.parallax-dual .p-fg{ z-index: 1; opacity: .92; }


  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.18) 45%,
      rgba(12,20,26,.90) 88%,
      rgba(12,20,26,1) 100%);     
}


.parallax-dual > .container{ position: relative; z-index: 3; }


@media (max-width: 900px){
  .parallax-dual{ min-height: 62vh; }
  .parallax-dual .p-bg,
  .parallax-dual .p-fg{ transform: none !important; }
}
@media (prefers-reduced-motion: reduce){
  .parallax-dual .p-bg, .parallax-dual .p-fg{ transform: none !important; }
} */

/* ====== Split-Hero (quote) stacking & bleed fix ====== */
.split-hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 46vh;
  background: #0d151b;
  /* پایه */
}

.split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .52), rgba(0, 0, 0, .38));
}

.split-hero>.container {
  position: relative;
  z-index: 1;
}

/* اطمینان از اینکه همه سکشن‌های عادی روی لایه‌های قبلی می‌نشینند */
.section {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ====== (اختیاری) کمی padding بالای why تا به هیرو نچسبد ====== */
#why {
  padding-top: 14px;
}


/* ===== HOME ONLY (scoped) ===== */
.home-page .section {
  padding: 56px 0;
}

/* Hero ساده با یک تصویر پس‌زمینه و اورلی */
.home-hero {
  position: relative;
  min-height: clamp(52vh, 75vh + 6vw, 72vh);
  /* 56–68vh، قابل تغییر */
  display: grid;
  place-items: center;
  background: #0d151b top center / cover no-repeat;
  /* فریم از بالا، بدون جابه‌جایی */
  background-image: var(--hero);
  isolation: isolate;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .18));
}

.home-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.home-hero h1 {
  margin: 0 0 14px;
  line-height: 1.15;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .55);
}


.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-card {
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.home-card p {
  color: var(--muted);
}

/* Quote banner */
.home-quote {
  position: relative;
  min-height: 44vh;
  display: grid;
  place-items: center;
  background: #0d151b center/cover no-repeat;
  background-image: var(--bg);
  isolation: isolate;
  overflow: hidden;
}

/* .home-quote::before{
  content:""; position:absolute; inset:0; z-index:0;
  background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.38));
}
.home-quote > .container{ position:relative; z-index:1; }
.home-quote blockquote{ text-align:center; } */

/* Services (سه استک) */
.home-services .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack {
  background: var(--bg-soft);
  border: 1px solid #0f2126;
  border-radius: 12px;
  padding: 16px;
}

.stack p {
  color: var(--muted);
}

/* Mission split */
.home-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
}

.home-mission .image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  filter: brightness(.98) contrast(1.03);
}

.home-mission .text p {
  color: var(--muted);
}

/* FAQ */
.home-faq details {
  background: var(--bg-soft);
  border: 1px solid #0f2126;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}

.home-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 35%, #0f2126);
  box-shadow: 0 0 0 2px rgba(32, 194, 185, .12);
}

.home-faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Icons */
.home-icons .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.icon-card {
  background: var(--card);
  border: 1px solid #0f2126;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.icon-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Partners */
.home-partners .partners-row {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.home-partners img {
  height: 44px;
  width: auto;
  filter: contrast(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .home-hero {
    min-height: 56vh;
  }

  .home-cards,
  .home-services .grid-3,
  .home-icons .grid-4 {
    grid-template-columns: 1fr;
  }

  .home-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .home-page .section {
    padding: 36px 0;
  }

  .icon-card img {
    width: 56px;
    height: 56px;
  }
}

/* لوگوی هدر */
.logo img {
  height: 60px;
  /* ارتفاع دلخواه */
  width: auto;
  /* تناسب تصویر حفظ بشه */
}

/* روی موبایل کمی کوچیک‌تر بشه */
@media (max-width: 768px) {
  .logo img {
    height: 80px;
  }
}

/* ظاهر summary و آیکون +/– */
.home-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  outline: none;
  padding-right: 28px;
  /* جا برای آیکون */
}

.home-faq summary::after {
  content: "＋";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .25s ease, opacity .25s ease;
  opacity: .75;
}

.home-faq details[open] summary::after {
  content: "–";
  opacity: 1;
}

/* تفاوت حالت باز */
.home-faq details {
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  border: 1px solid #0f2126;
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 12px 14px;
}

.home-faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 35%, #0f2126);
  box-shadow: 0 0 0 2px rgba(32, 194, 185, .12);
  background: #131f28;
}

/* محتوای پاسخ با fade کوتاه */
.home-faq details>p {
  margin: 10px 0 0;
  color: var(--muted);
  animation: faq-fade .25s ease;
}

@keyframes faq-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-services .grid-3 .stack:nth-child(4) {
  margin-top: 8px;
}

@media (max-width:900px) {
  .home-services .grid-3 .stack:nth-child(4) {
    margin-top: 0;
  }

  /* موبایل نیاز نیست */
}

/* 1) کنترل طول سطر برای خوانایی بهتر */
:root {
  --measure: 64ch;
}

/* حداکثر طول سطر پیشنهادی */
.home-services .stack p {
  max-width: var(--measure);
}

/* 2) تعادل تیترها (line-breaking هوشمند برای h3) */
.home-services .stack h3 {
  text-wrap: balance;
  /* مرورگرهای جدید */
  margin-bottom: 8px;
}

/* 3) تاکید نرم روی کلمات کلیدی داخل پاراگراف */
.home-services .stack p em {
  font-style: normal;
  color: #cfe6ea;
  /* روشن‌تر از muted */
}

/* 4) جداسازی بصری ردیف‌ها */
.home-services .grid-3 {
  row-gap: 24px;
}

/* فاصله عمودی بیشتر بین ردیف‌ها */

/* 5) ریسپانسیو‌تر کردن کارت‌ها در محدوده‌های متوسط */
@media (max-width: 1200px) and (min-width: 901px) {
  .home-services .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* از 3 → 2 ستون */
}

@media (max-width: 900px) {
  .home-services .grid-3 {
    grid-template-columns: 1fr;
  }

  /* الان هم داری تک‌ستون می‌شی؛ این صریح‌تره */
}

/* 6) جلوگیری از "بیوه" در تیتر (تقریباً) با کم‌و‌زیاد کردن فاصله‌ها */
.home-services .stack h3 {
  letter-spacing: .1px;
}

/* 7) ارتفاع‌های نزدیک به هم، بدون اجبار برابر کامل */
.home-services .stack {
  padding-bottom: 18px;
}

/* Home Services: center-aligned like the reference */
.home-services .grid-3 {
  row-gap: 28px;
}

/* فاصله بین دو ردیف */
.home-services .stack {
  text-align: center;
}

/* وسط‌چین مثل مرجع */
.home-services .stack h3 {
  margin: 0 0 10px;
  text-wrap: balance;
  /* شکست خط تیترها متعادل */
}

.home-services .stack p {
  max-width: 64ch;
  /* طول سطر استاندارد */
  margin: 0 auto;
  /* وسط‌چین واقعی پاراگراف */
  color: var(--muted);
  line-height: 1.7;
}

/* ریسپانسیو بهتر: در عرض‌های متوسط، 2 ستونه تا متن‌ها کشیده نشن */
@media (max-width:1200px) and (min-width:901px) {
  .home-services .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .home-services .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stack:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}


/* =========================================================
   BIPCO — Responsive Override Patch (Safe + Non‑Destructive)
   Version: 1.0
   Usage: Place this file AFTER your main styles.css (as the last stylesheet)
          or paste its contents at the very end of assets/css/styles.css.
   Goal: Fix mobile/tablet behavior without breaking existing desktop styles.
   ========================================================= */

/* 0) Global guards: media/overflow safety */
html,
body {
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* 1) Brand / header logo: desktop larger, mobile smaller (predictable) */
.brand img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .brand img {
    height: 56px;
  }
}

/* 2) Primary container spacing on small screens */
@media (max-width: 900px) {
  .home-page .section {
    padding: 36px 0;
  }
}

/* 3) Home Services (6 cards) — readability & flow */
:root {
  --measure: 64ch;
}

/* Standard line length for body copy */
.home-services .grid-3 {
  row-gap: 28px;
}

.home-services .stack {
  text-align: center;
}

.home-services .stack h3 {
  margin: 0 0 10px;
  text-wrap: balance;
  /* modern browsers auto-balance headings */
}

.home-services .stack p {
  max-width: var(--measure);
  margin: 0 auto;
  line-height: 1.7;
  color: var(--muted);
}

/* Breakpoint smoothing: 3 → 2 columns (medium), 2 → 1 column (mobile) */
@media (max-width: 1200px) and (min-width: 901px) {
  .home-services .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-services .grid-3 {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

/* 4) FAQ — affordance (+/– button) & active state */
.home-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  outline: none;
  padding-right: 28px;
  /* space for the button */
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "＋";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  background: rgba(32, 194, 185, .12);
  color: var(--brand);
  transition: all .25s ease;
}

.home-faq details[open] summary::after {
  content: "–";
  background: var(--brand);
  color: #041318;
  transform: translateY(-50%) rotate(180deg);
}

.home-faq details {
  background: var(--bg-soft);
  border: 1px solid #0f2126;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.home-faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 35%, #0f2126);
  box-shadow: 0 0 0 2px rgba(32, 194, 185, .12);
  background: #131f28;
}

.home-faq details>p {
  margin: 10px 0 0;
  animation: faq-fade .25s ease;
}

@keyframes faq-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5) Parallax safety on mobile / reduced‑motion */
/* @media (max-width: 900px), (prefers-reduced-motion: reduce){
  .parallax-dual .p-bg, .parallax-dual .p-fg { transform: none !important; }
} */

/* 6) Minor hover enhancement for cards (optional, subtle) */
.stack:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ===== End of Responsive Override Patch ===== */

/* TEMP: hide any leftover text next to the logo in header */
.site-header .brand> :not(img) {
  display: none !important;
}

.site-header .brand {
  gap: 10px;
}

/* Desktop: همون 3 ستونه بمونه (داری) */

/* Mobile: 2 ستون + کارت سوم تمام‌عرض */
@media (max-width: 540px) {
  .contact-ways {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .contact-ways .contact-card:nth-child(3) {
    grid-column: 1 / -1;
    /* تمام‌عرض */
  }

  /* ریز بهبودهای بصری برای موبایل */
  .contact-card {
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid #0f2126;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    min-height: 180px;
  }

  .contact-card h3 {
    margin: 4px 0 8px;
  }

  .contact-card p {
    margin: 0 0 10px;
    color: var(--muted);
  }

  .contact-card .btn {
    width: 100%;
    /* CTA تمام‌عرض و لمس‌پذیر */
    margin-top: 10px;
  }
}

/* نمایش بیشتر تصویر در دسکتاپ */
.home-quote {
  background-size: cover;
  /* کل سکشن رو با تصویر پر کن */
  background-position: center 35%;
  /* کمی بالا تا سوژه بهتر دیده شه (دلخواه) */
}

@media (min-width: 1200px) {
  .home-quote {
    min-height: 68vh;
    /* ارتفاع بزرگ‌تر در دسکتاپ (60–80vh تست کن) */
    position: relative;
  }

  .home-quote .container {
    padding-block: 6rem;
    /* فاصله عمودی محتوا از لبه‌ها */
  }
}

/* اختیاری: خواناتر کردن متن روی عکس */
/* .home-quote::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
  pointer-events:none;
} */

.home-quote {
  background-image: url("../img/hero-quote.jpg");
  /* مسیر اصلاح شد */
  background-size: cover;
  background-position: center 100%;
  background-repeat: no-repeat;
  min-height: 90vh;
}

.home-quote .quote-box {
  display: inline-block;
  background: rgba(4, 19, 24, .32);
  /* تیره با کمی تُن برند */
  border: 1px solid rgba(32, 194, 185, .28);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  /* اگر مرورگر پشتیبانی کند */
}

.home-quote blockquote {
  margin: 0;
}

/* اگر از این استفاده می‌کنی، blockquote داخل .quote-box باشد */

.quote-box {
  margin-bottom: 1.5rem;
  /* یا 24px */
}

/* === PATCH: Debug / Highlight Overlays (temp) START === */
/* .home-quote::before { background: rgba(255,0,0,.35) !important; }
.home-quote .quote-box { background: rgba(0,255,0,.25) !important; } */
/* بعد از تشخیص، این بلوک دیباگ رو پاک کن */
/* === PATCH: Debug / Highlight Overlays (temp) END === */


/* === PATCH: Home Hero / Title & CTA Polish (v1) START === */
.home-hero .container {
  max-width: 1100px;
  /* پهنای منطقی برای متن */
}

/* Home — Hero */
.home-hero h1 {
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
  font-size: clamp(28px, 2.4vw + 14px, 48px);
  margin: 0 0 18px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* اگر می‌خواهی تیتر و دکمه دقیقاً وسط سکشن باشند: */
.home-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* برای وسط‌چین کامل، بالا را به align-items:center تغییر بده */

.home-hero .btn {
  font-weight: 700;
  padding: 12px 7px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 0 2px rgba(32, 194, 185, .12);
  transform: translateZ(0);
}

/* هوور مختصر برای جذابیت */
.home-hero .btn:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .33), 0 0 0 2px rgba(32, 194, 185, .22);
}

/* === PATCH: Home Hero / Title & CTA Polish (v1) END === */

/* === PATCH: Header Brand / Focus Ring Fix (v1) START === */
/* نسخه‌ی پیشنهادی: رینگ ظریف با رنگ برند، نه کادر سفید پیش‌فرض */
.site-header .brand {
  outline: none;
}

.site-header .brand:focus-visible {
  outline: 2px solid rgba(32, 194, 185, .85);
  outline-offset: 4px;
  border-radius: 10px;
}

/* ==== HOME — Dual-Layer Parallax (only .home-hero) ==== */
/* ===== HOME HERO — Full image (no crop) + Parallax ===== */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;

  /* قاب را هم‌نسبت با تصویر نگه می‌داریم (مقادیر با JS پر می‌شود) */
  --ar-w: 1920;
  /* مقدار واقعی با JS تنظیم می‌شود */
  --ar-h: 1080;
  /* مقدار واقعی با JS تنظیم می‌شود */
  aspect-ratio: var(--ar-w) / var(--ar-h);

  width: 100%;
  max-height: 100svh;
  /* هرگز بلندتر از ویو نباشد، ولی کوتاه هم نشود */
}

/* دو لایهٔ داخل هیرو */
.home-hero .p-bg,
.home-hero .p-fg {
  position: absolute;
  inset: 0;
  background-size: 100% auto;
  /* تصویر کامل در عرض، بدون بریدگی */
  background-position: top center;
  /* قاب از بالا */
  background-repeat: no-repeat;
  transform: translateY(0);
  will-change: transform;
  pointer-events: none;
  filter: none !important;
}

/* اگر لایهٔ جلو کاملاً مات است و لایهٔ پشت دیده نمی‌شود، کمی شفافیت بده */
.home-hero .p-fg {
  opacity: .92;
}

/* محتوا روی لایه‌ها */
.home-hero>.container {
  position: relative;
  z-index: 3;
}

/* مسیر تصاویر (اسم‌هایی که خودت استفاده می‌کنی) */
.home-hero.parallax-dual .p-bg {
  background-image: url("../img/hero2x.jpg");
}

.home-hero.parallax-dual .p-fg {
  background-image: url("../img/hero-22x.jpg");
}

/* پارالاکس فقط روی موبایل خیلی کوچک خاموش شود */
@media (max-width: 720px),
(prefers-reduced-motion: reduce) {

  .home-hero .p-bg,
  .home-hero .p-fg {
    transform: none !important;
  }
}

/* Kill all hero overlays/filters */
.home-hero::before,
.home-hero::after,
.parallax-dual::after{ content:none !important; background:none !important; }
.parallax-dual .p-bg,
.parallax-dual .p-fg{ filter:none !important; }

/* ==== PATCH: Home Pillars (4 cards) ==== */
.home-pillars{ 
  padding: 56px 0 32px; /* فاصله مثل اسکرین‌شات */
}

.pillars-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar-card{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}

.pillar-icon{
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pillar-icon img{
  width: 56px; height: 56px; object-fit: contain;
  /* درخشش خیلی ظریف برای هماهنگی با تم */
  filter: drop-shadow(0 6px 14px rgba(32,194,185,.18));
}

.pillar-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;        /* Uppercase هدرها */
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text);
}

.pillar-card p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.pillar-card:hover,
.pillar-card:focus-within{
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow:
    0 10px 30px -12px rgba(32,194,185,.14),
    0 2px 0 rgba(0,0,0,.18);
}

/* دسترس‌پذیری: حلقهٔ فوکوس */
.pillar-card:focus-within{
  outline: 2px solid color-mix(in srgb, var(--brand) 70%, transparent);
  outline-offset: 2px;
}

/* ریسپانسیو مطابق سیستم پروژه */
@media (max-width: 1200px){
  .pillars-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .home-pillars{ padding: 40px 0 20px; }
  .pillars-grid{ grid-template-columns: 1fr; }
  .pillar-card{ padding: 26px 22px; }
}
/* ==== /PATCH: Home Pillars ==== */


/* === Compact hero-to-next-section gap on mobile (no visual change) === */
@media (max-width: 600px){
  /* 1) هیرو کوتاه‌تر؛ از بالا قاب می‌ماند و فقط از پایین کمتر دیده می‌شود */
  .home-hero{
    /* مقدار را بین 40–50svh تنظیم کن تا به دلخواهت برسد */
    min-height: 39svh !important;
    padding-bottom: 0px; /* اگر هنوز کمی فاصله خواستی، 0–12px بازی کن */
  }

  /* 2) سکشن بعدی: پدینگ/مارجین معقول */
  .home-why.section{ padding-top: 16px !important; }
  .home-why h2{ margin-top: 0 !important; }
}

/* fallback برای مرورگرهایی که svh ندارند */
@supports not (height: 1svh){
  @media (max-width: 600px){
    .home-hero{ min-height: 44vh !important; }
  }
}

/* ==== FIX: Services mobile = uniform stacked cards (no zigzag) ==== */
@media (max-width: 900px){
  /* ظرف هر کارت */
  .svc{
    display: grid !important;
    grid-template-columns: 1fr !important;  /* تک‌ستونه */
    align-items: start;
    row-gap: 12px;
  }

  /* اجزای کارت */
  .svc-media,
  .svc-body{
    order: initial !important;
    width: auto !important;   /* اگر جایی 50% داده شده باشد، خنثی می‌شود */
    float: none !important;   /* اگر جایی float بوده باشد */
  }

  /* تصویر همیشه تمام‌عرض و سالم */
  .svc-media{ margin: 0 0 12px !important; }
  .svc-media img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px;
    object-fit: cover;        /* اگر ابعاد ظرف متفاوت شد */
  }

  /* هر قانون even/row-reverse را بی‌اثر کن */
  .svc:nth-child(even) .svc-media,
  .svc:nth-child(even) .svc-body{
    order: initial !important;
  }
}

/* === NUKE: remove any focus ring on the logo link === */
.site-header .brand:focus,
.site-header .brand:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}
.site-header .brand{ -webkit-tap-highlight-color: transparent; }

/* ==== FINAL: Contact cards stable across phones ==== */

/* گوشی‌های خیلی باریک (≤380px): تک‌ستونه تا هیچ چیز نشکند */
@media (max-width: 380px){
  .contact-ways{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact-ways .contact-card{
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    flex: initial !important;
  }
  .contact-ways .contact-card:nth-child(3){
    grid-column: auto !important; /* سومی هم مثل بقیه تک‌ستونه */
  }
  .contact-ways .btn{ width: 100% !important; }
}

/* گوشی‌های معمول (381px–900px): ۲ تا کنارهم + سومی تمام‌عرض */
@media (min-width: 381px) and (max-width: 900px){
  .contact-ways{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start;
  }
  .contact-ways .contact-card{
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    flex: initial !important;
  }
  .contact-ways .contact-card:nth-child(3){
    grid-column: 1 / -1 !important; /* سومی تمام‌عرض زیر دو تا */
  }
  .contact-ways .btn{ width: 100% !important; }
}

/* جلوگیری از درشت‌کردن خودکار متن در بعضی مبایل‌ها */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* Mobile: justify text inside the glass quote box */
@media (max-width: 600px){
  .home-quote .quote-box blockquote{
    text-align: justify !important;
    text-align-last: center;          /* آخرین خط وسط بماند */
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

/* === FAQ: remove tap/text highlight on mobile, keep keyboard focus === */
.home-faq summary{
  -webkit-tap-highlight-color: transparent; /* حذف هایلایت تاچ iOS/Android */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;                        /* متن هدر انتخاب نشود */
  -webkit-touch-callout: none;              /* منوی copy/callout نیاید */
  touch-action: manipulation;               /* حذف تاخیر 300ms */
  outline: none;                            /* فوکوس عادی خاموش (برای ماوس) */
  cursor: pointer;
}

/* اجازه بده فقط با کیبورد رینگ ظریف ببینیم (دسترس‌پذیر) */
.home-faq summary:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--brand) 70%, transparent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* اگر می‌خوای حتی متن داخل summary هم موقع لمس انتخاب نشه */
.home-faq summary *{
  -webkit-user-select: none;
  user-select: none;
}

/* (اختیاری) اگر هنوز یک چشمک انتخاب رنگی می‌بینی، انتخاب را شفاف کن — فقط برای FAQ */
.home-faq summary *::selection{ background: transparent; }
