/* ==========================================================================
   Shafa Darou Tabib — the public website.
   Plain CSS, no framework, no build step. Right-to-left first: every rule uses
   logical properties (inline-start/end), so the layout is designed for Persian
   rather than an LTR template with the text flipped.
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"), url("../fonts/Vazirmatn-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"), url("../fonts/Vazirmatn-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"), url("../fonts/Vazirmatn-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* deep pharmaceutical green, with honey as the single warm accent (the company's own products) */
  --brand: #0f5f52;
  --brand-700: #0a473d;
  --brand-500: #157f6d;
  --brand-100: #d7e8e3;
  --brand-50: #eef5f3;
  --honey: #c8862a;
  --honey-100: #f7ecd8;
  --ink: #12241f;
  --body: #41534e;
  --muted: #5d6e6a;
  --bg: #ffffff;
  --soft: #f5f8f7;
  --line: #e2eae7;
  --line-strong: #cfdcd8;
  --ok: #1d7a4c;
  --warn: #9a6b12;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 31, .06), 0 2px 8px rgba(18, 36, 31, .04);
  --shadow: 0 10px 30px rgba(18, 36, 31, .08);
  --shadow-lg: 0 24px 60px rgba(18, 36, 31, .14);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px; line-height: 2; font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 36px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 0; top: -200px; z-index: 99; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px; transition: top .2s var(--ease); }
.skip:focus { top: 0; color: #fff; }
/* English names and numbers inside a Persian sentence keep their own direction */
.ltr { direction: ltr; unicode-bidi: isolate; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ----------------------------------------------------------- buttons, tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(15, 95, 82, .22); }
.btn.primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 95, 82, .28); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn.honey { background: var(--honey); color: #fff; }
.btn.honey:hover { background: #a86f1d; color: #fff; transform: translateY(-2px); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.tag {
  display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.tag.soft { background: var(--honey-100); color: var(--warn); border-color: #eedcbd; }
.tag.state { background: #fdf3e6; color: var(--warn); border-color: #f0dcc0; }

/* ----------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-bar { display: flex; align-items: center; gap: 18px; min-height: 76px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: 0 0 auto; }
.logo .mark { width: 40px; height: 40px; flex: 0 0 auto; }
.mark .m-bg { fill: var(--brand-50); }
.mark .m-leaf { fill: var(--brand); }
.mark .m-drop { fill: var(--honey); }
.logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.logo-text b { font-size: 1.1rem; }
.logo-text i { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .04em; direction: ltr; }
.logo.light { color: #fff; }
.logo.light .m-bg { fill: rgba(255, 255, 255, .14); }
.logo.light .m-leaf { fill: #fff; }
.logo.light .logo-text i { color: rgba(255, 255, 255, .7); }

.site-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a { display: inline-block; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.nav-list > li > a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-list > li > a.on { color: var(--brand); background: var(--brand-50); }

/* the panel hangs from the header bar, not from the menu item: anchored to the item it slid out of the
   window on a narrow desktop (RTL: a negative left edge still makes the page scroll sideways). */
.has-sub { position: static; }
.sub {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px); width: min(620px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .22s var(--ease);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sub-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.sub-item:hover { background: var(--brand-50); }
.sub-item b { display: block; font-size: .95rem; font-weight: 500; }
.sub-item i { font-style: normal; font-size: .74rem; color: var(--muted); direction: ltr; display: block; }
.sub-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: 0 0 auto; }
.sub-ic .motif { width: 22px; height: 22px; }

.head-search { position: relative; display: flex; align-items: center; }
.head-search input {
  width: 190px; min-height: 44px; padding: 0 42px 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--soft); font: inherit; font-size: .92rem; color: var(--ink); transition: width .25s var(--ease), border-color .2s;
}
.head-search input:focus { width: 230px; border-color: var(--brand); background: #fff; outline: none; }
.head-search button { position: absolute; inset-inline-end: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.head-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.head-search button:hover { color: var(--brand); }

.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; margin-inline-start: auto; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, var(--brand-50) 0%, #fff 62%); }
.hero::before {
  content: ""; position: absolute; inset-block-start: -220px; inset-inline-start: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(21, 127, 109, .14), transparent 68%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(42px, 7vw, 92px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-100); color: var(--brand-700); padding: 6px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); }
.hero h1 { margin-top: 18px; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: -2px; bottom: .1em; height: .32em; background: var(--honey-100); border-radius: 4px; z-index: -1; }
.hero .lead { font-size: 1.1rem; color: var(--body); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .94rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); border: 1.5px solid var(--brand-100); flex: 0 0 auto; }

/* the hero composition: layered cards drawn in CSS, so the page is complete before a photograph exists */
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art .disc { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--brand-100)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), var(--shadow-lg); }
.hero-art .big-motif { position: relative; width: 190px; height: 190px; color: var(--brand); }
.hero-art .big-motif .motif { width: 100%; height: 100%; stroke-width: 1.6; }
.hero-card { position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); }
.hero-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.hero-card .ic .motif { width: 24px; height: 24px; }
.hero-card b { display: block; color: var(--ink); font-size: .95rem; }
.hero-card span { font-size: .8rem; color: var(--muted); }
.hero-card.one { inset-block-start: 8%; inset-inline-end: -4%; animation: float 7s ease-in-out infinite; }
.hero-card.two { inset-block-end: 12%; inset-inline-start: -6%; animation: float 8.5s ease-in-out infinite reverse; }
.hero-card.three { inset-block-end: 2%; inset-inline-end: 8%; animation: float 9.5s ease-in-out infinite .6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ----------------------------------------------------------- sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.soft { background: var(--soft); }
.section.brand { background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: rgba(255, 255, 255, .86); }
.section.brand h2, .section.brand h3 { color: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head .kicker { color: var(--honey); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin: 0 0 .4em; }
.sec-head h2 { margin: 0; }
.sec-head p.sub { margin: .6em 0 0; color: var(--muted); max-width: 46em; }
.sec-head .btn { flex: 0 0 auto; }
.center { text-align: center; }
.center .sec-head { flex-direction: column; align-items: center; text-align: center; }

/* ----------------------------------------------------------- cards and grids */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--brand-50), #fff 70%); overflow: hidden; }
.card-media .ph-img { width: 100%; height: 100%; object-fit: cover; }
.ph-motif { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); }
.ph-motif .motif { width: 46%; height: 46%; opacity: .72; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 4px 0 0; font-size: 1.1rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand); }
.card-body .en { margin: 0; font-size: .82rem; color: var(--muted); direction: ltr; text-align: start; letter-spacing: .02em; }
.card-body .desc { margin: 8px 0 0; font-size: .94rem; color: var(--body); line-height: 1.85; }
.card-body .tag { align-self: flex-start; }
.card-body .meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.ic-arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.more:hover .ic-arrow { transform: translateX(4px); }

/* category cards */
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cat-card::after { content: ""; position: absolute; inset-block-start: -40px; inset-inline-start: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--brand-50); transition: transform .35s var(--ease); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.cat-card:hover::after { transform: scale(1.5); }
.cat-card > * { position: relative; z-index: 1; }
.cat-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(15, 95, 82, .22); }
.cat-ic .motif { width: 30px; height: 30px; }
.cat-card b { font-size: 1.08rem; }
.cat-card .en { font-size: .8rem; color: var(--muted); direction: ltr; text-align: start; }
.cat-card .count { font-size: .84rem; color: var(--brand); font-weight: 700; margin-top: auto; }

/* the motifs themselves */
.motif { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motif .fill { fill: currentColor; stroke: none; }
.motif .fill-soft { fill: currentColor; opacity: .18; stroke: none; }
.motif .dash { stroke-dasharray: 4 5; }
.motif .pulse { stroke-width: 2; opacity: .55; }

/* ----------------------------------------------------------- catalogue */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.filters h2 { font-size: 1rem; margin-bottom: .8em; }
.filters .f-group + .f-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.f-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; color: var(--body); font-size: .94rem; }
.f-list a:hover { background: var(--soft); color: var(--brand-700); }
.f-list a.on { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.f-list .n { font-size: .8rem; color: var(--muted); }
.f-search input, .f-select { width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 14px; font: inherit; font-size: .94rem; color: var(--ink); }
.f-search input:focus, .f-select:focus { border-color: var(--brand); background: #fff; outline: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.toolbar .count { color: var(--muted); font-size: .94rem; margin: 0; }
.toolbar form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar label { font-size: .88rem; color: var(--muted); }
.toolbar .f-select { min-height: 42px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-size: .86rem; }
.chip a { color: inherit; font-weight: 700; line-height: 1; }

/* ----------------------------------------------------------- product page */
.prod-top { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 4vw, 54px); align-items: start; padding: clamp(28px, 4vw, 48px) 0; }
.prod-gallery .frame { background: linear-gradient(150deg, var(--brand-50), #fff 72%); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.prod-gallery .frame .ph-img { width: 100%; height: 100%; object-fit: cover; }
.prod-gallery .frame .ph-motif .motif { width: 42%; height: 42%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; overflow: hidden; cursor: pointer; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prod-head h1 { margin-bottom: .2em; }
.prod-head .en { direction: ltr; text-align: start; color: var(--muted); font-size: 1rem; margin: 0 0 1em; }
.prod-lead { font-size: 1.06rem; color: var(--body); }
.prod-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { display: grid; grid-template-columns: 180px 1fr; gap: 14px; background: #fff; padding: 13px 18px; font-size: .95rem; }
.facts li b { color: var(--muted); font-weight: 500; }
.facts li span { color: var(--ink); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--honey-100); border: 1px solid #eedcbd; color: #6b4d12; border-radius: var(--radius); padding: 16px 18px; font-size: .94rem; }
.notice .motif { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 6px; }
.notice.plain { background: var(--soft); border-color: var(--line); color: var(--body); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.3rem; }

/* editor text: the one place where arbitrary HTML is printed, so it is styled defensively */
.prose { color: var(--body); font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.13rem; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--brand-100); background: var(--soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.prose th { background: var(--soft); color: var(--ink); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: .86rem; color: var(--muted); text-align: center; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px; color: var(--body); }

/* ----------------------------------------------------------- article page */
.article-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 56px) 0; }
.article-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.article-head h1 { max-width: 22em; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(26px, 4vw, 52px); padding: clamp(28px, 4vw, 52px) 0; align-items: start; }
.article-fig { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; aspect-ratio: 16 / 7; background: linear-gradient(150deg, var(--brand-50), #fff 70%); display: grid; place-items: center; }
.article-fig .ph-img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 96px; }
.aside-card h3 { font-size: 1rem; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.aside-list a { display: block; color: var(--ink); font-size: .95rem; font-weight: 500; line-height: 1.7; }
.aside-list a:hover { color: var(--brand); }
.aside-list time { display: block; font-size: .8rem; color: var(--muted); }

/* ----------------------------------------------------------- forms */
.form-grid { display: grid; gap: 16px; }
.form-grid.c2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .92rem; color: var(--ink); font-weight: 500; }
.field input, .field textarea, .field select {
  min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft);
  padding: 12px 16px; font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); background: #fff; outline: none; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field.bad input, .field.bad textarea { border-color: #c0392b; }
.msg { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.msg.ok { background: #e7f5ee; color: #14603c; border: 1px solid #c6e6d6; }
.msg.err { background: #fdeceb; color: #92291f; border: 1px solid #f3cfcb; }

/* ----------------------------------------------------------- crumbs, pager, empty */
.crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pg { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--body); font-weight: 500; }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg.dots { border: 0; min-width: 24px; }

.empty { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--soft); }
.empty .motif { width: 62px; height: 62px; color: var(--brand-100); margin-bottom: 10px; }
.empty h2 { color: var(--ink); font-size: 1.15rem; }
.empty p { max-width: 34em; margin-inline: auto; }

/* ----------------------------------------------------------- footer */
.site-foot { background: linear-gradient(165deg, var(--brand-700), #07332c); color: rgba(255, 255, 255, .76); margin-top: clamp(50px, 8vw, 96px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: clamp(40px, 6vw, 72px) 0 36px; }
.foot-about { margin-top: 16px; font-size: .95rem; line-height: 2; color: rgba(255, 255, 255, .68); max-width: 32em; }
.foot-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: rgba(255, 255, 255, .76); font-size: .95rem; }
.foot-col a:hover { color: #fff; }
.foot-contact .hours { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.foot-contact .btn { margin-top: 18px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.foot-contact .btn:hover { background: rgba(255, 255, 255, .16); }
.foot-end { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .86rem; }
.foot-end p { margin: 0; }
.foot-note { color: rgba(255, 255, 255, .55); }

/* ----------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-i="1"] { transition-delay: .06s; } .reveal[data-i="2"] { transition-delay: .12s; }
.reveal[data-i="3"] { transition-delay: .18s; } .reveal[data-i="4"] { transition-delay: .24s; }
.reveal[data-i="5"] { transition-delay: .3s; }  .reveal[data-i="6"] { transition-delay: .36s; }
.reveal[data-i="7"] { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 240px 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* between the wide desktop and the burger the bar must still fit: the call to action is reachable from
   the «تماس با ما» item and from every footer, so it is the first thing to go. */
@media (max-width: 1000px) {
  .site-nav { gap: 12px; }
  .nav-list > li > a { padding: 10px 9px; font-size: .95rem; }
  .head-search input { width: 140px; }
  .head-search input:focus { width: 180px; }
  .head-cta { display: none; }
}
@media (max-width: 900px) {
  .head-search input { width: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-card.one { inset-inline-end: 2%; } .hero-card.two { inset-inline-start: 0; }
  .prod-top { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; margin: 0;
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 76px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { padding: 13px 14px; }
  .sub { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; }
  .sub-inner { grid-template-columns: 1fr; }
  .head-search input, .head-search input:focus { width: 100%; }
  .head-search { width: 100%; }
  .head-cta { width: 100%; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .form-grid.c2 { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .thumbs button { width: 60px; height: 60px; }
}

/* homepage odds and ends */
.center .hero-cta { justify-content: center; }
.page-home .cat-card .desc { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(18, 36, 31, .07); }
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

/* downloadable documents on a product page */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); color: var(--ink); }
.doc-list a:hover { border-color: var(--brand); background: #fff; }
.doc-list .motif { width: 26px; height: 26px; color: var(--brand); flex: 0 0 auto; }
.doc-list b { display: block; font-size: .96rem; }
.doc-list i { font-style: normal; font-size: .82rem; color: var(--muted); }
.prod-head .tag { margin-bottom: 10px; }

/* listing pages */
.list-search { flex: 0 0 auto; }
.list-search input { width: 250px; }
.topic-row { margin-bottom: 22px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.count { color: var(--muted); font-size: .94rem; }
.back-link { margin-top: 28px; }
.hint { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .list-search, .list-search input { width: 100%; } }

/* about page */
.value-card .cat-ic { margin-bottom: 8px; }
.value-card .card-body { gap: 8px; }
.hp { position: absolute; inset-inline-start: 0; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.contact-list .ic .motif { width: 24px; height: 24px; }
.contact-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-list span > a, .contact-list li > span > span { color: var(--ink); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* search page */
.search-big { width: min(640px, 100%); margin-bottom: 26px; }
.search-big input, .search-big input:focus { width: 100%; min-height: 56px; font-size: 1rem; }
.res-head { margin: 34px 0 16px; font-size: 1.2rem; }
.more-row { margin-top: 16px; }
.foot-tag { font-size: .78rem; color: rgba(255,255,255,.55); }
