/*
 * Trust: Google rating badge + reviews section, footer trust marks (Enamad & co.) and social icons.
 * Global file because the ribbon badge and footer appear on every page. Persian digits are never
 * styled with tabular figures (they space apart).
 */

/* Stars ------------------------------------------------------------------- */
.p136-stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 0.08em; white-space: nowrap; vertical-align: middle; }
.p136-stars__base { color: #d2d2d7; }
.p136-stars__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--fill, 100%);
  overflow: hidden;
  color: #f5a623;
}

.p136-gword { display: inline-flex; font-weight: 700; letter-spacing: 0; unicode-bidi: isolate; }

/* Compact badge (ribbon, footer) ------------------------------------------------- */
.p136-gbadge { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 0.75rem; }
.p136-gbadge:hover { text-decoration: none; }
.p136-gbadge:hover .p136-gbadge__meta { text-decoration: underline; text-underline-offset: 3px; }
.p136-gbadge__score { font-weight: 800; color: var(--p136-ink); }
.p136-gbadge .p136-stars { font-size: 0.8125rem; }
.p136-gbadge__meta { color: var(--p136-muted); }
@media (max-width: 734px) { .p136-gbadge--ribbon .p136-stars { display: none; } }

/* Testimonials slider (home): the title and the cards, nothing else ---------------------- */
.p136-testi { background: var(--p136-surface); overflow: clip; }
.p136-testi .p136-headline { margin-block-end: var(--p136-s6); }
/* The scroller is never wider than the content column (--p136-wide). On wide or zoomed-out screens the
   cards that cross the column border are hidden behind the page colour and slide into view as the row
   moves; on narrower screens it stays full-bleed. Edges fade so cards glide in and out. */
.p136-testi__viewport {
  width: min(100%, var(--p136-wide));
  margin-inline: auto;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.p136-testi__track {
  display: flex;
  gap: 16px;
  padding-block: 4px;
  padding-inline: max(var(--p136-gutter), calc((min(100vw, var(--p136-wide)) - var(--p136-page)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--p136-gutter), calc((min(100vw, var(--p136-wide)) - var(--p136-page)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.p136-testi__track::-webkit-scrollbar { display: none; }
.p136-testi__card {
  display: flex;
  flex: 0 0 min(340px, 82vw);
  flex-direction: column;
  gap: 14px;
  min-height: 236px;
  padding: 22px;
  border-radius: var(--p136-r-lg);
  background: #fff;
  scroll-snap-align: start;
}
.p136-testi__card .p136-stars { font-size: 0.9375rem; }
.p136-testi__card blockquote {
  margin: 0;
  color: var(--p136-ink-2);
  font-size: 0.9375rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p136-testi__card footer { display: flex; align-items: center; gap: 12px; margin-block-start: auto; }
.p136-review__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--p136-surface); color: var(--p136-ink-2); font-weight: 700; font-size: 0.9375rem; }
.p136-testi__card footer strong { display: block; font-size: var(--p136-fs-small); }
.p136-testi__card footer small { display: block; color: var(--p136-muted); font-size: var(--p136-fs-tiny); }
@media (max-width: 734px) {
  .p136-testi__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* Footer: trust marks + social icons ---------------------------------------------- */
.p136-trustzone { display: grid; gap: 18px; padding-block: 28px; border-block-start: 1px solid var(--p136-line); }
.p136-trustzone__title { font-size: 0.75rem; font-weight: 700; color: var(--p136-muted); }
.p136-badges { display: grid; grid-template-columns: repeat(auto-fill, 132px); justify-content: start; gap: 12px; }
.p136-badges > li { min-width: 0; display: flex; }
.p136-badge-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid var(--p136-line-soft);
  border-radius: var(--p136-r-md);
  background: #fff;
  color: var(--p136-ink-2);
  text-align: center;
  transition: border-color var(--p136-t-fast) var(--p136-ease), box-shadow var(--p136-t-fast) var(--p136-ease), transform var(--p136-t-fast) var(--p136-ease);
}
.p136-badge-tile:hover { text-decoration: none; border-color: var(--p136-line); box-shadow: var(--p136-shadow-md); transform: translateY(-2px); }
.p136-badge-tile__logo { display: grid; place-items: center; min-height: 96px; width: 100%; background: var(--fallback, none) center / 64px no-repeat; }
.p136-badge-tile__logo img { width: auto; max-width: 100%; max-height: 96px; object-fit: contain; }
.p136-badge-tile__cap { font-size: 0.6875rem; line-height: 1.6; color: var(--p136-muted); }
.p136-badge-tile--google { align-content: center; gap: 6px; }
.p136-badge-tile--google strong { font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--p136-ink); }
.p136-badge-tile--google .p136-stars { font-size: 0.9375rem; }
.p136-badge-tile--google > span:last-child { font-size: 0.6875rem; color: var(--p136-muted); line-height: 1.7; }

.p136-social { display: flex; flex-wrap: wrap; gap: 10px; }
.p136-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--p136-line-soft);
  border-radius: var(--p136-r-pill);
  background: #fff;
  color: var(--p136-ink-2);
  font-size: var(--p136-fs-small);
  font-weight: 600;
  transition: border-color var(--p136-t-fast) var(--p136-ease), background-color var(--p136-t-fast) var(--p136-ease);
}
.p136-social a:hover { text-decoration: none; border-color: var(--p136-ink); }
.p136-social img { width: 22px; height: 22px; }

@media (max-width: 734px) {
  /* two even columns; every tile the same width, tall enough for its caption */
  .p136-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p136-badge-tile__logo { min-height: 84px; }
  .p136-badge-tile__logo img { max-height: 84px; }
  .p136-social a span { display: none; }
  .p136-social a { padding: 8px; min-width: 44px; justify-content: center; }
}
