/* Petro Pakhash Diaco — site styles
   Palette 1 "Original Copper" from the Diaco design system.
   Logical properties throughout so one stylesheet serves LTR (en) and RTL (fa). */

@font-face { font-family: 'Albert Sans'; src: url('../fonts/AlbertSans-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-LightD4.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-RegularD4.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-MediumD4.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-DemiBoldD4.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-BoldD4.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IRANSansX'; src: url('../fonts/IRANSansXFaNum-ExtraBoldD4.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --graphite: #15171A;
  --copper: #FF7A1A;
  --copper-600: #E5650A;
  --copper-50: #FFF3EA;
  --slate: #2B3440;
  --paper: #F4F4F2;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --surface-glass: rgba(255,255,255,.97);
  --field-line: #CFCFCA;
  --ink-body: #2E333B;
  --ink: var(--graphite);
  --ink-2: #4A5260;
  --ink-3: #6B7280;
  --line: #E4E4E0;
  --line-dark: rgba(255,255,255,.14);

  --ff-display: 'Albert Sans', system-ui, sans-serif;
  --ff-text: 'Outfit', system-ui, sans-serif;
  --ff-lat: 'Outfit', system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(21,23,26,.06), 0 8px 24px rgba(21,23,26,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
}
:lang(fa) { --ff-display: 'IRANSansX', Tahoma, sans-serif; --ff-text: 'IRANSansX', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--ff-text); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(fa) body, body:lang(fa) { font-size: 16px; line-height: 1.95; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(fa) h4 { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
h4 { font-size: 18px; }
:lang(fa) h1 { font-size: clamp(32px, 4.6vw, 58px); }
:lang(fa) h2 { font-size: clamp(26px, 3vw, 40px); }
ul { padding-inline-start: 1.2em; }
.lat { font-family: var(--ff-lat); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--copper); color: var(--graphite); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--slate { background: var(--slate); color: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.overline { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 18px; }
:lang(fa) .overline { letter-spacing: 0; font-size: 14px; }
.overline::before { content: ''; width: 22px; height: 2px; background: var(--copper); }
.section--dark .overline, .section--slate .overline, .hero .overline { color: var(--copper); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 760px; }
.section--dark .lead, .section--slate .lead { color: rgba(255,255,255,.78); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.head h2 { margin: 0; max-width: 760px; }
.head .lead { margin: 16px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--copper); color: var(--graphite); }
.btn--primary:hover { background: var(--copper-600); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: var(--slate); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(127,127,127,.08); }
.arr { display: inline-block; }
.btn .arr, .link-arrow .arr { transition: transform .2s var(--ease); }
:dir(rtl) .arr, [dir=rtl] .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(3px); }
[dir=rtl] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 1px solid transparent; }
.link-arrow:hover { border-bottom-color: var(--copper); }
.section--dark .link-arrow, .section--slate .link-arrow { color: var(--white); }

/* Utility bar */
.utility { background: var(--paper); font-size: 13px; color: var(--ink-2); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utility nav { display: flex; gap: 22px; align-items: center; }
.utility a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.lang-switch a { padding: 2px 12px; border-radius: 999px; font-weight: 600; }
.lang-switch a:lang(fa), a:lang(fa) { font-family: 'IRANSansX', Tahoma, sans-serif; }
.lang-switch a:lang(en), a:lang(en) { font-family: 'Outfit', system-ui, sans-serif; }
.lang-switch a[aria-current] { background: var(--graphite); color: var(--white); }
@media (max-width: 720px) { .utility .u-hide { display: none; } }

/* Header */
/* Solid background on purpose: backdrop-filter would trap the fixed mobile menu inside the header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm b { font-family: 'Albert Sans', sans-serif; font-weight: 500; font-size: 22px; letter-spacing: .08em; }
.logo .wm small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
:lang(fa) .logo .wm b { font-family: 'IRANSansX'; font-weight: 800; letter-spacing: 0; font-size: 21px; }
:lang(fa) .logo .wm small { letter-spacing: 0; font-size: 11px; text-transform: none; }
.mainnav { flex: 1; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav > ul > li > a, .mainnav > ul > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 26px 14px; font-weight: 500; font-size: 15.5px; background: none; border: 0; font-family: inherit; color: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.mainnav > ul > li > a:hover, .mainnav > ul > li > button:hover, .mainnav > ul > li.open > button, .mainnav a[aria-current=page] { border-bottom-color: var(--copper); }
.mainnav .chev { width: 10px; height: 10px; transition: transform .2s; }
.mainnav li.open .chev { transform: rotate(180deg); }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgba(21,23,26,.10); display: none; }
.mainnav li.open .mega { display: block; }
.mega .wrap { display: grid; grid-template-columns: 1fr 2.6fr; gap: 56px; padding-block: 44px 52px; align-items: start; min-height: 0; }
.mega-intro h3 { font-size: 26px; margin-bottom: 12px; }
.mega-intro p { color: var(--ink-2); font-size: 15px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.mega-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-family: var(--ff-text); font-weight: 600; margin-bottom: 12px; }
:lang(fa) .mega-cols h4 { letter-spacing: 0; font-size: 13px; }
.mega-cols ul { list-style: none; padding: 0; margin: 0; }
.mega-cols li a { display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.mega-cols li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .mainnav { position: fixed; inset: 0; top: 0; background: var(--surface); z-index: 60; overflow-y: auto; padding: 88px var(--gutter) 40px; display: none; }
  .nav-open .mainnav { display: block; }
  .mainnav > ul { flex-direction: column; gap: 0; }
  .mainnav > ul > li { border-bottom: 1px solid var(--line); }
  .mainnav > ul > li > a, .mainnav > ul > li > button { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 20px; border-bottom: 0; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0 0 20px; gap: 16px; }
  .mega-intro { display: none; }
  .mega-cols { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .menu-btn { display: inline-grid; }
  .nav-open .menu-btn { position: fixed; top: 18px; inset-inline-end: var(--gutter); z-index: 61; }
  .header-actions .btn { display: none; }
}
@media (max-width: 520px) { .mega-cols { grid-template-columns: 1fr; } .logo .wm small { display: none; } }

/* Search overlay */
.search-panel { position: fixed; inset: 0; background: rgba(21,23,26,.55); z-index: 80; display: none; }
.search-open .search-panel { display: block; }
.search-box { background: var(--surface); padding: 32px var(--gutter) 40px; }
.search-box .wrap { padding: 0; }
.search-box form { display: flex; gap: 12px; }
.search-box input { flex: 1; font: inherit; font-size: 22px; padding: 14px 0; border: 0; border-bottom: 2px solid var(--graphite); outline: none; background: transparent; min-width: 0; }
.search-results { list-style: none; padding: 0; margin: 20px 0 0; max-height: 60vh; overflow: auto; }
.search-results li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results li small { display: block; color: var(--ink-3); font-size: 13px; }

/* Quick access bar */
.quickbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.quickbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.quickbar li + li { border-inline-start: 1px solid var(--line); }
.quickbar a { display: flex; align-items: center; gap: 14px; padding: 22px 24px; font-weight: 600; font-size: 15px; transition: background .2s; }
.quickbar a:hover { background: var(--paper); }
.quickbar svg { width: 26px; height: 26px; color: var(--copper); flex-shrink: 0; }
@media (max-width: 860px) { .quickbar ul { grid-template-columns: 1fr 1fr; } .quickbar li:nth-child(3) { border-inline-start: 0; } .quickbar li:nth-child(n+3) { border-top: 1px solid var(--line); } .quickbar a { padding: 16px 12px; font-size: 14px; } }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--graphite); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,26,.88) 0%, rgba(21,23,26,.45) 55%, rgba(21,23,26,.1) 100%); }
[dir=rtl] .hero::after { background: linear-gradient(270deg, rgba(21,23,26,.88) 0%, rgba(21,23,26,.45) 55%, rgba(21,23,26,.1) 100%); }
.hero .wrap { position: relative; z-index: 2; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 120px 96px; }
.hero h1 { max-width: 900px; margin-bottom: 24px; }
.hero p { font-size: clamp(18px, 1.6vw, 22px); max-width: 620px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stripe { display: flex; height: 6px; }
.hero-stripe i:first-child { flex: 3; background: var(--copper); }
.hero-stripe i:last-child { flex: 1; background: var(--slate); }
.page-hero { position: relative; background: var(--graphite); color: var(--white); overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,23,26,.85), rgba(21,23,26,.25)); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(96px, 12vw, 160px) clamp(48px, 6vw, 72px); }
.page-hero h1 { max-width: 920px; margin-bottom: 16px; }
.page-hero p { max-width: 680px; font-size: 19px; color: rgba(255,255,255,.82); margin: 0; }
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 960px; }
.page-head .lead { margin-top: 8px; }

/* Breadcrumbs */
.crumbs { font-size: 13.5px; color: var(--ink-3); padding-block: 18px; border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; color: var(--line); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li:last-child { color: var(--ink); }

/* Grids & cards */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--graphite); color: var(--white); aspect-ratio: 4 / 5; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,23,26,.85) 0%, rgba(21,23,26,.1) 60%); z-index: -1; }
.tile:hover img { transform: scale(1.04); }
.tile .tile-body { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; }
.tile h3 { margin: 0 0 6px; font-size: 24px; }
.tile p { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); }
.tile .more { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--copper); }
.tile--wide { aspect-ratio: 16 / 10; }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; height: 100%; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-600); margin-bottom: 10px; }
:lang(fa) .card .tag { letter-spacing: 0; font-size: 13px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.card .link-arrow { margin-top: auto; font-size: 14.5px; }
.card time { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; display: block; }

.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: box-shadow .25s, transform .25s; height: 100%; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard .pack { background: var(--paper); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 28px; }
.pcard .pack > svg { width: 70%; height: 80%; }
.pcard .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.pcard .grade { font-size: 13px; color: var(--copper-600); font-weight: 600; margin-bottom: 6px; }
.pcard h3 { font-size: 19px; margin-bottom: 8px; }
.pcard p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.pcard .chips { margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: 13px; color: var(--ink-2); border: 1px solid transparent; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--copper { background: var(--copper-50); color: #B4500A; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.stat { padding: 36px 28px 8px 0; border-inline-end: 1px solid var(--line-dark); }
[dir=rtl] .stat { padding: 36px 0 8px 28px; }
.stat:last-child { border-inline-end: 0; }
.stat + .stat { padding-inline-start: 28px; }
.stat b { display: block; font-family: var(--ff-display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 500; line-height: 1; color: var(--copper); margin-bottom: 14px; }
.stat span { color: rgba(255,255,255,.75); font-size: 15px; }
.section:not(.section--dark):not(.section--slate) .stats { border-top-color: var(--line); }
.section:not(.section--dark):not(.section--slate) .stat { border-color: var(--line); }
.section:not(.section--dark):not(.section--slate) .stat span { color: var(--ink-2); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-inline-end: 0; } .stat:nth-child(3) { padding-inline-start: 0; } }

/* Finder */
.finder { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.finder-steps { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; }
.finder label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.finder select, .field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--surface); color: var(--ink); appearance: none; }
.finder select, .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2315171A' stroke-width='1.6'/%3E%3C/svg%3E"); background-position: right 16px center; background-size: 12px 8px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir=rtl] .finder select, [dir=rtl] .field select { background-position: left 16px center; }
.finder select:disabled { opacity: .55; }
.finder select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.finder-results { margin-top: 32px; }
.finder-results:empty { display: none; }
@media (max-width: 860px) { .finder-steps { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 14px; color: var(--ink-3); }
.form-ok { display: none; padding: 16px 20px; background: var(--copper-50); border-radius: var(--radius); border-inline-start: 3px solid var(--copper); }
.form.sent + .form-ok { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Prose & spec tables */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-body); }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.prose blockquote { margin: 1.6em 0; padding: 8px 24px; border-inline-start: 3px solid var(--copper); font-size: 20px; font-family: var(--ff-display); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.aside-box h4 { font-size: 15px; margin-bottom: 12px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li a { display: block; padding: 7px 0; color: var(--ink-2); font-size: 15px; border-bottom: 1px solid var(--line); }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover { color: var(--ink); }
.aside-cta { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.aside-cta p { color: rgba(255,255,255,.75); font-size: 15px; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; color: var(--ink-2); font-weight: 500; background: var(--paper); }
.spec td { font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-scroll .spec tr:last-child th, .table-scroll .spec tr:last-child td { border-bottom: 0; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data th, .data td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: start; }
.data thead th { background: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
:lang(fa) .data thead th { letter-spacing: 0; text-transform: none; font-size: 14px; }
.data tbody tr:hover { background: var(--surface-2); }

/* Product detail */
.product-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.product-visual { background: var(--paper); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 10%; }
.product-visual > svg { width: 72%; height: 86%; }
.product-top h1 { font-size: clamp(34px, 4.4vw, 56px); }
.product-top .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px; }
.keyfacts div { background: var(--surface); padding: 16px 18px; }
.keyfacts small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.keyfacts b { font-weight: 600; font-size: 16px; }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; } .keyfacts { grid-template-columns: 1fr 1fr; } }

/* Lists */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { position: relative; padding-inline-start: 32px; }
.check li::before { content: ''; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 8px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); transform-origin: center; margin-top: -3px; }
.feature { padding-top: 24px; border-top: 2px solid var(--graphite); }
.feature .num { font-family: var(--ff-display); color: var(--copper-600); font-weight: 600; font-size: 14px; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.section--dark .feature, .section--slate .feature { border-top-color: var(--copper); }
.section--dark .feature p, .section--slate .feature p { color: rgba(255,255,255,.72); }

.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.az a { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; padding: 0 8px; }
.az a:hover { border-color: var(--ink); }
.term-list { columns: 3 260px; column-gap: 48px; }
.term-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.term-list a:hover { color: var(--copper-600); }
.link-list { columns: 4 200px; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.link-list li { break-inside: avoid; }
.link-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.link-list a:hover { color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-family: var(--ff-display); font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
:lang(fa) .faq summary { font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: 1; color: var(--copper); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 820px; }

.timeline { position: relative; display: grid; gap: 40px; padding-inline-start: 36px; border-inline-start: 2px solid var(--line); }
.timeline .ev { position: relative; }
.timeline .ev::before { content: ''; position: absolute; inset-inline-start: -44px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 5px var(--white); }
.timeline .yr { font-family: var(--ff-display); font-size: 28px; font-weight: 600; color: var(--copper-600); }

/* CTA band */
.cta-band { background: var(--copper); color: var(--graphite); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(56px, 7vw, 88px); flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 720px; }
.cta-band p { margin: 10px 0 0; font-size: 18px; max-width: 640px; }

/* Province / location */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.loc-grid a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; }
.loc-grid a:hover { border-color: var(--ink); }
.loc-grid small { color: var(--ink-3); font-weight: 400; }

/* Footer */
.site-footer { background: var(--graphite); color: rgba(255,255,255,.72); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-block: 88px 64px; }
.footer-top h4 { color: var(--white); font-size: 14px; font-family: var(--ff-text); font-weight: 600; margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li a { display: block; padding: 5px 0; }
.footer-top a:hover { color: var(--white); }
.footer-brand .logo { color: var(--white); margin-bottom: 20px; }
.footer-brand .logo .wm small { color: rgba(255,255,255,.55); }
.footer-brand p { max-width: 320px; }
.footer-contact { display: grid; gap: 6px; margin-top: 18px; }
.footer-links { border-top: 1px solid var(--line-dark); padding-block: 36px; }
.footer-links h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; font-family: var(--ff-text); }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 26px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-made { display: inline-flex; align-items: center; gap: 7px; opacity: .75; transition: opacity .2s ease; }
.footer-made:hover { opacity: 1; }
.footer-made svg { width: 15px; height: 19px; flex: none; }
.footer-made b { font-weight: 700; }
.footer-stripe { display: flex; height: 4px; }
.footer-stripe i:first-child { flex: 3; background: var(--copper); }
.footer-stripe i:last-child { flex: 1; background: var(--slate); }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Utilities */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.pill-nav a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.pill-nav a:hover, .pill-nav a[aria-current] { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound b { font-family: var(--ff-display); font-size: clamp(96px, 16vw, 200px); color: var(--copper); line-height: 1; display: block; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
