/**
 * SarvGroup — owner feedback batch, 21 Oct 2026, FA homepage only.
 *
 * Design system: --sc-fa-radius-surface: 10px for framed cards/media panels;
 * --sc-fa-radius-control: 4px for controls and transient menu-hover surfaces.
 * Never introduce arbitrary isolated border radii. No radius on typographic
 * rules or on the full-bleed evidence band. All hover effects are subtle,
 * keyboard-visible, and disabled for reduced-motion users.
 */
html[lang="fa-IR"] body.home {
  --sc-fa-radius-surface: 10px;
  --sc-fa-radius-control: 4px;
}

/* 1 — Search: original guidance sales copy and CTA removed from the pale-blue
   help panel. Put the owner's EXISTING finder lead and exactly one form-submit
   button inside that panel, keeping one native form per active facet. */
html[lang="fa-IR"] .sc-product-finder .sc-finder__help {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  border-radius: var(--sc-fa-radius-surface);
  padding: clamp(26px,3vw,46px) !important;
}
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-text {
  font-size: clamp(16px,1.22vw,19px) !important;
  line-height: 1.9;
  color: #314b61;
  max-width: 50ch;
  margin: 0;
}
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-submits {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-submit {
  display: none;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: var(--sc-fa-radius-control);
}
html[lang="fa-IR"] .sc-product-finder:has(#sc-finder-mode-industry:checked) .sc-finder__help-submit--industry,
html[lang="fa-IR"] .sc-product-finder:has(#sc-finder-mode-application:checked) .sc-finder__help-submit--application,
html[lang="fa-IR"] .sc-product-finder:has(#sc-finder-mode-product:checked) .sc-finder__help-submit--product {
  display: inline-flex;
}
/* Basic fallback for older embedded browsers without :has — first form works. */
@supports not selector(:has(*)) {
  html[lang="fa-IR"] .sc-product-finder .sc-finder__help-submit--industry { display:inline-flex; }
}

/* Owner refinement: a tighter finder journey, with blue guidance panel
   raised toward the heading. Keep button and native forms fully visible. */
@media (min-width: 1024px) {
  html[lang="fa-IR"] .sc-product-finder {
    padding-block: clamp(24px, 2.1vw, 32px) clamp(19px, 1.8vw, 26px) !important;
  }
  html[lang="fa-IR"] .sc-product-finder__intro {
    margin-bottom: 6px !important;
  }
  html[lang="fa-IR"] .sc-product-finder .sc-finder {
    gap: clamp(22px, 2vw, 32px) !important;
  }
  html[lang="fa-IR"] .sc-product-finder .sc-finder__help {
    position: relative;
    top: -19px;
    padding: 24px !important;
    gap: 16px;
  }
}
@media (max-width: 1023px) {
  html[lang="fa-IR"] .sc-product-finder {
    padding-block: 32px 32px !important;
  }
  html[lang="fa-IR"] .sc-product-finder .sc-finder__help {
    padding: 20px !important;
    gap: 14px;
  }
}

/* 2 — Engineering: accessible H2 moved from above the media to ON the photo. */
html[lang="fa-IR"] .sc-lifecycle--editorial .sc-lifecycle__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--sc-fa-radius-surface);
  min-height: clamp(220px, 20vw, 330px);
}
html[lang="fa-IR"] .sc-lifecycle--editorial .sc-lifecycle__media :is(img,picture) {
  display:block;
  width:100%;
  height:100%;
}
html[lang="fa-IR"] .sc-lifecycle--editorial .sc-lifecycle__media img {
  object-fit: cover;
}
html[lang="fa-IR"] .sc-lifecycle__banner-caption {
  position: absolute;
  z-index: 2;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 30px;
  background:linear-gradient(90deg, rgb(4 25 43 / 42%), rgb(4 25 43 / 14%) 42%, rgb(4 25 43 / 55%));
  pointer-events:none;
}
html[lang="fa-IR"] .sc-lifecycle__banner-caption .sc-section__title {
  max-width:100%;
  color:#fff !important;
  font-size:clamp(27px,3vw,46px);
  text-shadow:0 2px 12px rgb(0 0 0 / 72%);
  line-height:1.4;
  text-align:center;
}

/* 3 — Why Sarv: heading and supporting statement are peers on one row at
   spacious desktop widths, preserving each original font size. */
@media (min-width: 1024px) {
  html[lang="fa-IR"] .sc-stat-band--brand .sc-section-header {
    display: grid;
    grid-template-columns: max-content minmax(0,1fr);
    align-items: baseline;
    max-width:none;
    gap: 14px 24px;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-section-header__eyebrow {
    grid-column:1/-1;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-section-header__heading {
    grid-column:1;
    white-space:nowrap;
  }
  html[lang="fa-IR"] .sc-stat-band--brand .sc-section-header__lead {
    grid-column:2;
    white-space:nowrap;
    max-width:none;
  }
}

/* 4 — CEO: real justified reading measure with pretty last line,
   without any client copy rewriting or a redundant text CTA. */
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__statement p {
  text-align:justify !important;
  text-align-last:right;
  text-wrap:pretty;
  hyphens:none;
}

/* Management: photo now aligns vertically with the message inside the
   panel. Earlier shared art-direction shifted the portrait up by 32px. */
@media (min-width: 1200px) {
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait {
    transform: translateY(0) !important;
    align-self: center;
  }
}

/* 5 — Knowledge introduction: full-width desktop line, not the old 32rem cap. */
html[lang="fa-IR"] .sc-insights__headline .sc-insights__wide-lead {
  display:block;
  width:100%;
  max-width:none;
  margin:0;
}
@media (min-width: 1380px) {
  html[lang="fa-IR"] .sc-insights__headline .sc-insights__wide-lead {
    white-space:nowrap;
  }
}

/* 7 — Persian header nav rules now live in the shared
   assets/css/locale/fa-sitewide-shell.css, for every FA route. */

/* 9 — Partner logo gallery, same 10px surface radius as other major panels.
   Marks are smaller at rest and gently enlarge on mouse/keyboard focus. */
html[lang="fa-IR"] .sc-fa-partners__composition {
  border-radius:var(--sc-fa-radius-surface) !important;
  overflow:hidden;
}
html[lang="fa-IR"] .sc-fa-partners__logo img {
  transform:scale(.82);
  transition:transform 200ms ease,filter 200ms ease,opacity 200ms ease;
}
html[lang="fa-IR"] .sc-fa-partners__logo:is(:hover,:focus-within) img {
  transform:scale(.98);
  opacity:1;
  filter:grayscale(0) contrast(1.04);
}

/* 10 — Newsroom tiles: one radius system for all edge photographs and cards. */
html[lang="fa-IR"] .sc-home-news--editorial-fa :is(.sc-home-news__lead,.sc-home-news__lead-link,.sc-home-news__lead-media,.sc-home-news__entry-media),
html[lang="fa-IR"] .sc-fa-news-clips__item,
html[lang="fa-IR"] .sc-fa-news-clips__link {
  border-radius:var(--sc-fa-radius-surface) !important;
  overflow:hidden;
}

/* 11 — Calls: use the FULL desktop measure; do not shrink the existing copy.
   Below roomy desktop sizes the sentence may wrap naturally (never overflow). */
html[lang="fa-IR"] .sc-calls__intro .sc-section__lead {
  max-width:none;
  width:100%;
}
html[lang="fa-IR"] .sc-calls__empty-text {
  max-width:none !important;
}
@media (min-width: 1450px) {
  html[lang="fa-IR"] .sc-calls__intro .sc-section__lead,
  html[lang="fa-IR"] .sc-calls__empty-text {
    white-space:nowrap;
  }
}

/* 12 — Persian footer typography now lives in the global
   fa-sitewide-shell.css. No homepage-only override remains. */

/* System-wide consistency for prominent FA homepage panel surfaces only.
   10px applies to framed image panels/cards, 4px to interactive controls. */
html[lang="fa-IR"] .sc-leadership__panel,
html[lang="fa-IR"] .sc-finder__help,
html[lang="fa-IR"] .sc-product-card__link,
html[lang="fa-IR"] .sc-insights__featured-media,
html[lang="fa-IR"] .sc-insights__row-media {
  border-radius:var(--sc-fa-radius-surface) !important;
}
@media (max-width:1023px) {
  html[lang="fa-IR"] .sc-lifecycle__banner-caption { padding:16px; }
  html[lang="fa-IR"] .sc-insights__headline .sc-insights__wide-lead {white-space:normal;}
  html[lang="fa-IR"] .sc-calls__intro .sc-section__lead,
  html[lang="fa-IR"] .sc-calls__empty-text {white-space:normal;}
  html[lang="fa-IR"] .sc-product-finder .sc-finder__help {padding:25px 20px !important;}
  html[lang="fa-IR"] .sc-fa-partners__logo img {transform:scale(.9);}
}
@media (prefers-reduced-motion:reduce) {
  html[lang="fa-IR"] .sc-site-header--editorial .sc-primary-nav__list > li > a,
  html[lang="fa-IR"] .sc-fa-partners__logo img {
    transition:none;
  }
}

/* 8 — One proper section-sized heading, with a short brand-blue marker
   starting the title in RTL. The old small eyebrow treatment is replaced. */
html[lang="fa-IR"] .sc-family--band .sc-family__intro {
  text-align: start;
  align-items: flex-start;
}
html[lang="fa-IR"] .sc-family--band .sc-family__eyebrow-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-family: inherit;
  /* Font size/weight deliberately inherit the shared .sc-section__title
     declaration, not the surrounding 16px body text. */
  line-height: 1.32;
  letter-spacing: normal;
  text-align: start;
}
/* Match the editorial headline scale of adjacent FA homepage sections
   rather than inheriting the old small eyebrow font. */
@media (min-width: 1200px) {
  html[lang="fa-IR"] .sc-family--band .sc-family__eyebrow-title {
    font-size: clamp(30px, 2.392vw, 46px);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  html[lang="fa-IR"] .sc-family--band .sc-family__eyebrow-title {
    font-size: clamp(29px, 3.25vw, 35px);
  }
}
@media (max-width: 767px) {
  html[lang="fa-IR"] .sc-family--band .sc-family__eyebrow-title {
    font-size: clamp(24px, 6.5vw, 27px);
  }
}
html[lang="fa-IR"] .sc-family--band .sc-family__eyebrow-title::before {
  content: "";
  display: block;
  flex: 0 0 32px;
  height: 3px;
  background: #0b79be;
}
