@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --ink: #081d2a;
  --navy: #28479a;
  --navy-2: #3456ad;
  --blue: #28479a;
  --orange: #f20d2f;
  --paper: #f5f7f8;
  --white: #ffffff;
  --muted: #60717b;
  --line: #dfe7eb;
  --shadow: 0 22px 70px rgba(4, 32, 49, .12);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  direction: rtl;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; right: 20px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8,29,42,.08);
}
.header-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 255px; }
.brand-logo { width: 92px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.brand-mark { width: 92px; height: 50px; flex: 0 0 auto; background: url("images/logo-pfqs.png") center / contain no-repeat; color: transparent; font-size: 0; }
.brand-name { display: grid; line-height: 1.35; }
.brand-name strong { font-size: 1rem; }
.brand-name span { color: var(--muted); font-size: .75rem; }
.main-nav { margin-right: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 12px 11px; font-size: .9rem; color: #2e424e; border-radius: 10px; transition: .25s ease; }
.nav-list a:hover, .nav-list a.is-active { color: var(--navy); background: #edf4f7; }
.has-submenu { position: relative; }
.nav-product { display: flex; align-items: center; }
.nav-product > a { flex: 1; }
.submenu-toggle { width: 28px; height: 38px; border: 0; background: transparent; color: var(--navy); padding: 0; transition: transform .2s ease; }
.submenu-toggle::before { content: "⌄"; font-size: 1.1rem; }
.submenu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 130; width: 285px; list-style: none; margin: 0; padding: 10px; border: 1px solid rgba(40,71,154,.12); border-radius: 16px; background: #fff; box-shadow: 0 22px 60px rgba(18,40,98,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.submenu a { padding: 10px 12px; font-size: .84rem; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.header-cta, .button-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 30px rgba(242,13,47,.22); }
.header-cta:hover, .button-primary:hover { transform: translateY(-2px); background: #cf0827; }
.button-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); }
.button-dark { background: var(--navy); color: #fff; }
.text-link { color: var(--blue); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.text-link::after { content: "←"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(-5px); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: #edf4f7; border-radius: 12px; color: var(--navy); }
.menu-toggle span { display: block; width: 21px; height: 2px; background: currentColor; margin: 5px auto; }

.hero { min-height: 680px; position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .75s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,39,96,.22), rgba(18,39,96,.88) 74%, rgba(18,39,96,.96)); }
.hero-content { position: relative; z-index: 2; min-height: 680px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 720px; padding-block: 100px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 800; font-size: .86rem; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 5.1rem); line-height: 1.24; margin: 18px 0; letter-spacing: -.04em; }
.hero p { font-size: 1.13rem; max-width: 650px; color: rgba(255,255,255,.78); margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slider-controls { position: absolute; z-index: 5; bottom: 44px; right: max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 8px; }
.slider-dot { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); }
.slider-dot.is-active { background: var(--orange); }
.slider-arrow { width: 42px; height: 42px; margin-right: 5px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.2); color: #fff; }

.page-hero { position: relative; min-height: 430px; display: flex; align-items: end; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,39,96,.55), rgba(18,39,96,.96)); }
.page-hero .container { position: relative; z-index: 2; padding-block: 100px 65px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.2; margin: 12px 0 18px; }
.page-hero p { max-width: 700px; color: rgba(255,255,255,.8); font-size: 1.08rem; margin: 0; }

section { padding-block: 100px; }
.section-muted { background: var(--paper); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-head-copy { max-width: 720px; }
.section-title { font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.35; margin: 12px 0 16px; letter-spacing: -.03em; }
.section-lead { color: var(--muted); max-width: 760px; margin: 0; }
.section-dark .section-lead { color: rgba(255,255,255,.68); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.media-frame { position: relative; }
.media-frame img { width: 100%; min-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame::before { content: ""; position: absolute; width: 100px; height: 100px; top: -18px; right: -18px; border-top: 5px solid var(--orange); border-right: 5px solid var(--orange); border-radius: 0 16px 0 0; }
.story-copy p { color: var(--muted); }
.year-stamp { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.year-stamp strong { font-size: 3.4rem; line-height: 1; color: var(--orange); }
.year-stamp span { color: var(--muted); }

.factory-video-section { overflow: hidden; }
.factory-video-grid { display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: 80px; }
.factory-video-copy { max-width: 650px; }
.factory-video-frame { width: min(100%, 410px); justify-self: center; padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 30px; background: rgba(255,255,255,.07); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.factory-video-frame video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #0b1738; object-fit: cover; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(8,29,42,.09); }
.feature-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #e7f3f7; color: var(--blue); font-weight: 900; margin-bottom: 18px; }
.feature-card h3 { margin: 0 0 7px; font-size: 1.08rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { position: relative; min-height: 390px; border-radius: 20px; overflow: hidden; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,39,96,.94), rgba(18,39,96,.06) 75%); }
.product-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px; }
.product-card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.product-card p { color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.75; margin: 0; }
.product-card:hover img { transform: scale(1.05); }
.product-card-wide { grid-column: span 2; }

.industry-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
.industry-item { padding: 28px; background: var(--navy); display: flex; align-items: center; gap: 13px; }
.industry-item::before { content: ""; width: 8px; height: 8px; border: 3px solid var(--orange); transform: rotate(45deg); }

.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 24px; }
.step { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 22px; }
.step::before { content: "0" counter(steps); display: block; font-size: .85rem; color: var(--orange); font-weight: 900; margin-bottom: 16px; }
.step h3 { margin: 0 0 10px; font-size: 1.18rem; }
.step p { margin: 0; color: var(--muted); }

.performance-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.performance-band::before { content: ""; position: absolute; left: -8%; top: -55%; width: 480px; height: 480px; border: 80px solid rgba(255,255,255,.035); border-radius: 50%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.stat { padding: 30px 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.045); }
.stat strong { display: block; font-size: 2rem; color: var(--orange); margin-bottom: 4px; }
.stat span { color: rgba(255,255,255,.68); font-size: .84rem; }
.stat-placeholder strong { font-size: 1.2rem; color: rgba(255,255,255,.45); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; min-height: 310px; background: #fff; }
.article-meta { display: flex; gap: 8px; align-items: center; color: var(--blue); font-size: .8rem; font-weight: 800; }
.article-card h3 { font-size: 1.16rem; line-height: 1.7; margin: 16px 0 10px; }
.article-card p { color: var(--muted); font-size: .91rem; margin: 0 0 22px; }
.article-card .text-link { margin-top: auto; }
.article-full { max-width: 860px; margin-inline: auto; }
.article-full + .article-full { border-top: 1px solid var(--line); padding-top: 72px; margin-top: 72px; }
.article-full h2 { line-height: 1.55; font-size: clamp(1.7rem,3vw,2.6rem); }
.article-full p { color: #40535e; }

.newsletter { padding-block: 55px; background: var(--orange); color: #fff; }
.newsletter-row { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.newsletter h2 { margin: 0 0 7px; font-size: 1.8rem; }
.newsletter p { margin: 0; color: rgba(255,255,255,.78); }
.newsletter-form { display: flex; gap: 8px; min-width: min(100%, 460px); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; padding: 13px 16px; border-radius: 10px; }
.newsletter-form button { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 20px; font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 99px; padding: 9px 17px; }
.filter-button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.catalog-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 132px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 45px rgba(40,71,154,.08); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.catalog-card:hover { transform: translateY(-4px); border-color: rgba(40,71,154,.35); box-shadow: 0 22px 55px rgba(40,71,154,.14); }
.catalog-badge { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: #fee9ed; color: var(--orange); font-weight: 900; font-size: .86rem; }
.catalog-card strong, .catalog-card small { display: block; }
.catalog-card strong { font-size: 1.1rem; margin-bottom: 4px; }
.catalog-card small { color: var(--muted); font-size: .82rem; }
.catalog-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.25rem; }

.product-detail-intro { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; }
.product-detail-copy p { color: var(--muted); }
.product-detail-image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail-image img { width: 100%; min-height: 440px; object-fit: cover; }
.specification-section { padding-top: 35px; }
.specification-frame { margin: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 18px 55px rgba(40,71,154,.1); }
.specification-scroll { overflow-x: auto; overscroll-behavior-inline: contain; padding: 14px; scrollbar-color: var(--blue) #e8edf7; }
.specification-scroll img { width: 100%; min-width: 1060px; height: auto; margin-inline: auto; }
.specification-frame figcaption { padding: 14px 20px 18px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.mobile-table-hint { display: none; color: var(--blue); font-size: .85rem; font-weight: 750; margin: 0 0 12px; }
.product-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: rgba(255,255,255,.7); font-size: .84rem; margin-bottom: 12px; }
.product-crumbs a:hover { color: #fff; }
.product-crumbs span { color: rgba(255,255,255,.35); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-card, .form-card { border-radius: var(--radius); padding: 38px; }
.contact-card { background: var(--navy); color: #fff; }
.contact-card h2, .form-card h2 { margin-top: 0; }
.contact-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-item { border-top: 1px solid rgba(255,255,255,.13); padding-top: 15px; }
.contact-item strong { display: block; color: var(--orange); font-size: .82rem; margin-bottom: 5px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,.82); }
.contact-item a:hover { color: #fff; }
.contact-card-wide { max-width: 920px; margin-inline: auto; }
.contact-card-wide .contact-list { grid-template-columns: 1.8fr .7fr .9fr; }
.form-card { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fff; padding: 13px 14px; border-radius: 10px; color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(40,71,154,.15); border-color: var(--blue); }
.form-note, .form-message { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-message { color: #126b45; font-weight: 700; }

.site-footer { background: #172b67; color: #fff; padding-top: 70px; }
.site-footer .brand-logo, .site-footer .brand-mark { filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 55px; padding-bottom: 54px; }
.footer-about p { color: rgba(255,255,255,.62); max-width: 500px; }
.footer-title { font-size: .95rem; margin: 0 0 18px; color: var(--orange); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: rgba(255,255,255,.67); }
.footer-links address { font-style: normal; line-height: 1.85; }
.footer-links .footer-phone { direction: ltr; text-align: right; unicode-bidi: embed; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; color: rgba(255,255,255,.45); font-size: .78rem; display: flex; justify-content: space-between; gap: 20px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 84px 0 0; background: rgba(28,55,125,.99); padding: 30px 20px; opacity: 0; visibility: hidden; transform: translateY(-15px); transition: .25s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { width: min(100%, 500px); margin-inline: auto; display: grid; gap: 5px; }
  .nav-list a { padding: 13px 15px; color: rgba(255,255,255,.8); font-size: 1rem; }
  .nav-list a:hover, .nav-list a.is-active { color: #fff; background: rgba(255,255,255,.08); }
  .has-submenu { width: 100%; }
  .nav-product { border-radius: 10px; }
  .nav-product > a { width: auto; }
  .submenu-toggle { width: 48px; color: #fff; }
  .has-submenu.submenu-open .submenu-toggle { transform: rotate(180deg); }
  .submenu { position: static; width: 100%; max-height: 0; overflow: hidden; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: max-height .3s ease, padding .3s ease; }
  .has-submenu.submenu-open .submenu { max-height: 380px; padding-block: 8px; }
  .submenu a { color: rgba(255,255,255,.72); padding: 9px 12px; }
  .split { gap: 40px; }
  .factory-video-grid { gap: 45px; }
  .features-grid, .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-wide { grid-column: auto; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 18px; }
  body { font-size: 16px; }
  .header-row { min-height: 74px; }
  .brand { min-width: auto; }
  .brand-name span { display: none; }
  .brand-name strong { font-size: .86rem; }
  .brand-logo { width: 76px; height: 43px; }
  .main-nav { inset-block-start: 74px; height: calc(100dvh - 74px); overflow-y: auto; background: #1c377d; padding-block: 22px 45px; }
  .hero, .hero-content { min-height: 620px; }
  .hero-content { padding-block: 80px 120px; }
  .hero h1 { font-size: 2.65rem; }
  .hero p { font-size: 1rem; }
  .slider-controls { bottom: 28px; right: 14px; }
  section { padding-block: 72px; }
  .page-hero { min-height: 370px; }
  .page-hero .container { padding-block: 90px 45px; }
  .section-head, .newsletter-row { align-items: start; flex-direction: column; gap: 22px; }
  .split { grid-template-columns: 1fr; }
  .media-frame { order: -1; }
  .media-frame img { min-height: 300px; }
  .features-grid, .product-grid, .news-grid, .steps, .industry-strip, .contact-grid, .footer-grid, .factory-video-grid, .catalog-grid { grid-template-columns: 1fr; }
  .factory-video-frame { order: -1; width: min(100%, 360px); }
  .product-detail-intro { grid-template-columns: 1fr; gap: 32px; }
  .product-detail-image { order: -1; }
  .product-detail-image img { min-height: 300px; }
  .mobile-table-hint { display: block; }
  .specification-section { padding-top: 15px; }
  .specification-scroll { padding: 8px; }
  .specification-scroll img { min-width: 980px; }
  .product-card { min-height: 340px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-card, .form-card { padding: 26px; }
  .contact-card-wide .contact-list { grid-template-columns: 1fr; }
  .footer-grid { gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
