/* ═══════════════════════════════════════════
   پیروز گاز — Homepage Premium Layout
   ═══════════════════════════════════════════ */

/* ── Hero ───────────────────────────── */
.hero {
  background: var(--navy);
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(200,73,14,.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  z-index: 4;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transform: scale(1.02);
}
.hero__sign {
  position: absolute;
  left: 3%;
  bottom: 6%;
  z-index: 2;
  width: min(34vw, 380px);
  aspect-ratio: 5 / 4;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 48%, #000 32%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 74% at 50% 48%, #000 32%, transparent 76%);
}
.hero__sign img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
  filter: saturate(1.05);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(10,15,24,.92) 0%, rgba(15,23,36,.72) 38%, rgba(18,27,40,.35) 68%, rgba(15,23,36,.45) 100%),
    linear-gradient(to top, rgba(10,15,24,.55) 0%, transparent 45%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  padding-block: clamp(64px, 10vw, 96px) clamp(48px, 8vw, 72px);
  width: 100%;
  max-width: 680px;
  /* FA/CKB (rtl): سمت راست | EN (ltr): سمت چپ */
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--copper);
  margin-bottom: 20px;
  padding: 6px 14px 6px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(200,73,14,.6);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(.85); }
}
.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.hero__brand-fa {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero__brand-en {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .12em;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.hero__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin-bottom: 18px;
  max-width: 560px;
}
.hero__title em {
  font-style: normal;
  color: var(--copper);
  font-weight: 700;
}
.hero__text {
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  color: rgba(255,255,255,.58);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__text strong { color: rgba(255,255,255,.82); font-weight: 600; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.hero__actions .btn-outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.hero__actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ── Trust / Stats Strip ───────────────── */
.trust-strip {
  background: var(--navy-mid);
  border-block: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 5;
  margin-top: 0;
}
.hero + .trust-strip {
  border-top: none;
  box-shadow: 0 -1px 0 rgba(255,255,255,.04);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px) clamp(16px, 3vw, 28px);
  border-left: 1px solid rgba(255,255,255,.06);
  transition: background .25s;
}
.trust-stat:last-child { border-left: none; }
.trust-stat:hover { background: rgba(255,255,255,.03); }
.trust-stat__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: rgba(200,73,14,.12);
  border: 1px solid rgba(200,73,14,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
}
.trust-stat__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-stat__num {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-stat__num .accent { color: var(--copper); }
.trust-stat__lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

/* ── Section headers ───────────────────── */
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__text { margin-inline: auto; }
.sec-head__text {
  max-width: 560px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.85;
  font-size: 1.02rem;
}

/* ── Services ──────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--copper));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,73,14,.18);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--orange-mute);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 20px;
  transition: background .3s, color .3s, transform .3s;
}
.service-card:hover .service-card__icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.05);
}
.service-card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Products ──────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prod-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.prod-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,73,14,.15);
}
.prod-item__popular {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(200,73,14,.3);
}
.prod-item__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.prod-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.prod-item__icon {
  width: 48px; height: 48px;
  background: var(--orange-mute);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 18px;
}
.prod-item__media--parts {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  padding: 8px;
  aspect-ratio: auto;
  min-height: 200px;
  background: var(--gray-100);
}
.prod-item__media--parts img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.prod-item__media--parts img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.prod-item__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.prod-item__name { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.prod-item__desc { font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; flex: 1; }
.prod-item__price { font-size: 1.05rem; font-weight: 700; color: var(--orange); }

/* ── Why us ──────────────────────────── */
.why-section {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--bg) 100%);
}
[data-theme="dark"] .why-section {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--bg) 100%);
}
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.why-frame {
  background: linear-gradient(145deg, var(--navy) 0%, #0A1018 100%);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}
.why-frame::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 80px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  border-radius: 0 0 0 4px;
}
.why-frame::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(200,73,14,.08) 0%, transparent 70%);
  pointer-events: none;
}
.why-frame__num {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  color: rgba(255,255,255,.04);
  line-height: 1;
  margin-bottom: -16px;
  position: relative;
  z-index: 1;
}
.why-frame__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.why-frame__title span { color: var(--copper); }
.why-frame__text {
  color: rgba(255,255,255,.55);
  line-height: 1.85;
  font-size: .98rem;
  position: relative;
  z-index: 1;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transition: background .2s;
}
.why-item:nth-child(odd) { border-left: none; }
.why-item:nth-last-child(-n+2) { border-bottom: none; }
.why-item:hover { background: var(--gray-50); }
[data-theme="dark"] .why-item:hover { background: rgba(255,255,255,.02); }
.why-item__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--orange-mute);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-top: 2px;
  font-size: .85rem;
  font-weight: 800;
}
.why-item__title { font-size: .925rem; font-weight: 600; line-height: 1.5; }

/* ── Testimonials ────────────────────── */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 28px;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange-mute);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testi-card__text {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-top: 8px;
}
.testi-card__author { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--orange-mute);
}
.testi-stars { color: var(--gold); font-size: .9rem; margin-top: 4px; letter-spacing: 2px; }

/* ── CTA ─────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0A1018 100%);
  padding-block: clamp(72px, 10vw, 100px);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(200,73,14,.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section__inner {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.cta-section__text {
  color: rgba(255,255,255,.58);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.85;
  font-size: 1.02rem;
}
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-section__actions .btn-outline {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}
.cta-section__actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ── Contact cards ───────────────────── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .25s, box-shadow .25s;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.contact-card:hover {
  border-color: rgba(200,73,14,.2);
  box-shadow: var(--shadow);
}
.contact-card__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--orange-mute);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.contact-card__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.contact-card__value a,
.contact-card__value [data-setting],
.footer-contact a[href^="tel:"],
.footer-contact [data-setting="phone"],
.footer-contact [data-setting="phone3"],
.footer-contact [data-setting="phone4"],
.footer-contact [data-setting="phone5"],
.footer-contact [data-setting="mobile"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: start;
}
.contact-card__value a:hover { color: var(--orange); }

/* ── Grid helpers ────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Responsive ──────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-layout { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-item { border-left: none !important; }
  .why-item:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    align-items: flex-end;
  }
  .hero__inner {
    padding-block: 48px 40px;
    max-width: none;
  }
  .hero__sign {
    width: min(48vw, 220px);
    left: 2%;
    bottom: 4%;
    opacity: .85;
  }
  .hero__veil {
    background: linear-gradient(to top, rgba(10,15,24,.94) 0%, rgba(15,23,36,.72) 50%, rgba(18,27,40,.35) 100%);
  }
}

@media (max-width: 700px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-stat {
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 20px 16px;
  }
  .trust-stat:nth-child(odd) { border-left: none; }
  .trust-stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 560px) {
  .services-grid,
  .prod-grid,
  .grid-3 { grid-template-columns: 1fr; }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .trust-stat { border-bottom: 1px solid rgba(255,255,255,.06); }
  .trust-stat:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow-dot { animation: none; }
}
