/* Shared Petro Pendar Pars design tokens.
   UI colours are intentionally limited to the five brand tokens below.
   Transparent values are reserved for decorative lines and shadows only. */
:root {
  --brand: #1A3D77;
  --ink: #102A57;
  --white: #FFFFFF;
  --surface: #F3F5F7;
  --border: #DCE2E8;
  --decor-brand: rgba(26, 61, 119, 0.16);
  --decor-ink: rgba(16, 42, 87, 0.12);

  --font-fa-regular: "iranyekan";
  --font-fa-medium: "iranyekan-med";
  --font-fa-light: "iranyekan-light";
  --font-fa-numbers: "iranyekan-num";
}

:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

html[lang="fa"] {
  font-synthesis: none;
}

html[lang="fa"] body {
  font-family: var(--font-fa-regular), Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  letter-spacing: 0;
}

html[lang="fa"] :is(h1, h2, h3, h4, h5, h6, .section-title, .stage-copy__title) {
  font-family: var(--font-fa-medium), var(--font-fa-regular), Vazirmatn, Tahoma, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

html[lang="fa"] :is(.eyebrow, .kicker, .microcopy, .section-index) {
  font-family: var(--font-fa-light), var(--font-fa-regular), Vazirmatn, Tahoma, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

html[lang="fa"] :is(.stat-number, .step-number, .cv-section__index, .cv-supply-step__number) {
  font-family: var(--font-fa-numbers), var(--font-fa-regular), Vazirmatn, Tahoma, sans-serif;
  letter-spacing: 0;
}

html[lang="fa"] :is([lang="en"], [dir="ltr"], bdi.tech-ltr, .tech-ltr, code, kbd, samp) {
  font-family: Inter, Arial, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

/* One stable, edge-to-edge contact image frame across every site page. */
html body .contact-section.contact-unified .contact-visual {
  box-sizing: border-box !important;
  aspect-ratio: 1535 / 921 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body .contact-section.contact-unified .contact-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
}

/* Global product mega menu: each existing Products link becomes a consistent
   portfolio panel without changing the header structure on individual pages. */
.site-header .nav > a[href="/products/"],
.site-header .nav > a[href="/fa/products/"] {
  position: relative;
}

.site-header .nav > a[href="/products/"]::after,
.site-header .nav > a[href="/fa/products/"]::after {
  position: absolute;
  z-index: 120;
  top: calc(100% + 20px);
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(720px, calc(100vw - 48px));
  height: auto;
  padding: 18px 22px;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 22px 48px rgba(16, 42, 87, 0.16);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -8px) !important;
  transform-origin: top center;
  white-space: pre-line;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
  transition: opacity .2s ease, transform .28s cubic-bezier(.16, 1, .3, 1) !important;
}

.site-header .nav > a[href="/products/"]::after {
  content: "PRODUCT PORTFOLIO\A\AValves, Actuation & Flow Control\AControl · Check · Isolation · Wellhead · Pipeline · Instrumentation Valves\A\AProcess Instrumentation\AFlow · Pressure · Temperature · Level · Analytics · Tank Gauging\A\ARotating Equipment\ACentrifugal Pumps · API Process Pumps · Fire Fighting Pumps · Blowers\A\ASafety Equipment\ARupture Discs · Safety Valves · Breather Valves · Flame Arrestors\A\AExplore all products →";
}

.site-header .nav > a[href="/fa/products/"]::after {
  content: "فهرست محصولات\A\Aشیرآلات، عملگرها و کنترل جریان\Aکنترلی · یک‌طرفه · ایزولاسیون · سرچاهی · خطوط لوله · ابزار دقیق\A\Aابزار دقیق فرایند\Aجریان · فشار · دما · سطح · آنالیز · اندازه‌گیری مخازن\A\Aتجهیزات دوار\Aپمپ سانتریفیوژ · پمپ فرایندی API · پمپ آتش‌نشانی · بلوئر\A\Aتجهیزات ایمنی\Aدیسک انفجاری · شیر اطمینان · شیر تنفسی · شعله‌گیر\A\Aمشاهده همه محصولات ←";
  direction: rtl;
  text-align: right;
  font-family: var(--font-fa-regular), Vazirmatn, Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.site-header .nav > a[href="/products/"]:hover::after,
.site-header .nav > a[href="/products/"]:focus-visible::after,
.site-header .nav > a[href="/fa/products/"]:hover::after,
.site-header .nav > a[href="/fa/products/"]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) !important;
}

@media (max-width: 900px) {
  .site-header .nav > a[href="/products/"]::after,
  .site-header .nav > a[href="/fa/products/"]::after {
    display: none;
  }
}
