/* ============================================================================
   SEMIM ENERGY — سایت داخلی مستقل (دور ۶، بخش ب)
   معادل HTML/CSS خالصِ مرجع «Atelier» (بدون React/Tailwind/build):
   Hero تمام‌صفحه با ویدیو، Instrument Serif برای عنوان‌ها + Inter برای بدنه،
   نوار بالای تمیز، منوی موبایل با همبرگر متحرک (cubic-bezier(.76,0,.24,1)، ۵۰۰/۷۰۰ms).
   فونت‌ها self-host هستند (assets/fonts) تا در شبکه‌هایی که Google Fonts کند/مسدود است هم کار کنند.
   ============================================================================ */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --bg: #050505;
  --bg-2: #0d0d0d;
  --panel: #111111;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --white: #ffffff;
  --w80: rgba(255, 255, 255, .80);
  --w70: rgba(255, 255, 255, .70);
  --w55: rgba(255, 255, 255, .55);
  --w40: rgba(255, 255, 255, .40);
  --accent: #e9c46a;            /* گرمای خورشید — فقط برای جزئیات کوچک */
  --serif: "Instrument Serif", "Vazirmatn", serif;
  --sans: "Inter", "Vazirmatn", system-ui, sans-serif;
  --pad-x: 1.5rem;              /* px-6 */
}
@media (min-width: 768px) { :root { --pad-x: 3rem; } }   /* md:px-12 */
@media (min-width: 1024px) { :root { --pad-x: 4rem; } }  /* lg:px-16 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100%; background: var(--bg); color: var(--white); font-family: var(--sans); font-weight: 300; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-style: italic; font-family: var(--serif); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Hero (w-full h-screen overflow-hidden) ---------------- */
.hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.hero-layer { position: relative; z-index: 10; display: flex; flex-direction: column; height: 100%; }

/* ---------------- Navbar ---------------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--pad-x); }
@media (min-width: 768px) { .nav { padding-top: 1.5rem; padding-bottom: 1.5rem; } }
.nav-start, .nav-end { display: flex; align-items: center; gap: 2.25rem; }
.nav-end { gap: 1.5rem; }
.logo { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -.025em; color: var(--white); display: inline-flex; align-items: baseline; gap: .45rem; }
.logo small { font-family: "Vazirmatn", sans-serif; font-weight: 400; font-size: .78rem; color: var(--w55); letter-spacing: 0; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a, .nav-text { color: var(--w80); font-size: .875rem; font-weight: 300; transition: color .2s; }
.nav-links a:hover, .nav-text:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-text { display: none; }
.btn-talk { display: none; background: var(--white); color: #000; border-radius: 999px; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 500; transition: background .2s, transform .2s; }
.btn-talk:hover { background: rgba(255,255,255,.88); }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-text { display: inline; } .btn-talk { display: inline-flex; } }

/* Hamburger: سه خط ۲px، وسطی کوتاه‌تر (w-4 در برابر w-6) */
.burger { position: relative; z-index: 60; width: 2.5rem; height: 2.5rem; display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; border-radius: 999px; background: var(--white); transition: transform .5s var(--ease), opacity .5s var(--ease), width .5s var(--ease); }
.burger span:nth-child(1), .burger span:nth-child(3) { width: 1.5rem; }
.burger span:nth-child(2) { width: 1rem; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 768px) { .burger { display: none; } }

/* Mobile menu overlay (fixed inset-0 z-50, md:hidden) */
.mmenu { position: fixed; inset: 0; z-index: 50; pointer-events: none; visibility: hidden; transition: visibility 0s linear .7s; }
.mmenu.open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.mmenu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; transition: opacity .7s var(--ease); }
.mmenu.open .mmenu-backdrop { opacity: 1; }
.mmenu-inner { position: relative; height: 100%; display: flex; flex-direction: column; opacity: 0; transition: opacity .7s var(--ease); }
.mmenu.open .mmenu-inner { opacity: 1; }
.mmenu-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--pad-x); }
.mclose { width: 2.5rem; height: 2.5rem; position: relative; background: none; border: 0; cursor: pointer; }
.mclose::before, .mclose::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1.5rem; height: 2px; border-radius: 999px; background: var(--white); }
.mclose::before { transform: translate(-50%, -50%) rotate(45deg); }
.mclose::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mlinks { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad-x); list-style: none; }
.mlinks a { display: block; text-align: center; font-family: var(--serif); font-size: 2.25rem; line-height: 1.3; color: var(--white); padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(2rem); transition: opacity .7s var(--ease), transform .7s var(--ease), padding .5s var(--ease); }
@media (min-width: 640px) { .mlinks a { font-size: 3rem; } }
.mmenu.open .mlinks a { opacity: 1; transform: translateY(0); }
.mlinks a:hover { padding-inline-start: 1rem; }
.mfoot { padding: 1.5rem var(--pad-x) 2rem; opacity: 0; transition: opacity .7s var(--ease) .55s; }
.mmenu.open .mfoot { opacity: 1; }
.mfoot a { display: flex; justify-content: center; width: 100%; background: var(--white); color: #000; border-radius: 999px; padding: 1rem; font-weight: 500; }
@media (min-width: 768px) { .mmenu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mlinks a, .mmenu-backdrop, .mmenu-inner, .mfoot, .burger span { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------------- Hero content ---------------- */
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 1rem var(--pad-x) 0; text-align: center; }
@media (min-width: 640px) { .hero-content { padding-top: 1.5rem; } }
@media (min-width: 768px) { .hero-content { padding-top: 2rem; } }
@media (min-width: 1024px) { .hero-content { padding-top: 2.5rem; } }
.hero h1 { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: 1.875rem; line-height: 1.1; max-width: 64rem; direction: ltr; text-transform: none; }
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 4.5rem; } }
.hero h1 .line { display: block; }
.hero-sub { margin-top: 1rem; color: var(--w70); font-size: .875rem; font-weight: 300; max-width: 28rem; line-height: 1.9; font-family: "Vazirmatn", var(--sans); }
@media (min-width: 768px) { .hero-sub { margin-top: 1.25rem; font-size: 1rem; } }
.hero-sub .br { display: none; }
@media (min-width: 640px) { .hero-sub .br { display: block; } }
.hero-ctas { margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
@media (min-width: 768px) { .hero-ctas { margin-top: 1.5rem; } }
.btn-pri, .btn-sec { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.75rem; font-size: .875rem; transition: all .2s; cursor: pointer; }
.btn-pri { background: var(--white); color: #000; font-weight: 500; border: 0; }
.btn-pri svg { transition: transform .2s; }
.btn-pri:hover svg { transform: translateX(-2px); }  /* RTL: فلش به سمت «بعد» یعنی چپ */
.btn-sec { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.btn-sec:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.ico { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ورود یک‌باره‌ی محتوای Hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: s-rise .9s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .12s; }
  .hero-content > :nth-child(3) { animation-delay: .22s; }
}
@keyframes s-rise { from { opacity: 0; transform: translateY(1.2rem); } }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10; color: var(--w55); font-size: .72rem; letter-spacing: .2em; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.scroll-hint i { width: 1px; height: 2.2rem; background: linear-gradient(var(--w55), transparent); }

/* ---------------- Inner-page header ---------------- */
.page-top { position: sticky; top: 0; z-index: 40; background: rgba(5,5,5,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.page-hero { padding: 4.5rem var(--pad-x) 3rem; border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(233,196,106,.07), transparent 60%); }
.page-hero.has-cover { position: relative; overflow: hidden; min-height: 22rem; display: flex; align-items: flex-end; }
.page-hero.has-cover img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero.has-cover > .wrap { position: relative; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--w55); direction: ltr; display: inline-block; }
.page-hero h1 { font-family: "Vazirmatn", var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; margin-top: .3rem; }
.page-hero p.lead { margin-top: 1rem; max-width: 46rem; color: var(--w70); font-size: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--w55); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--white); }

/* ---------------- Sections ---------------- */
.wrap { max-width: 80rem; margin: 0 auto; }
.section { padding: 5.5rem var(--pad-x); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sec-head h2 { font-family: "Vazirmatn", serif; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35; }
.sec-head h2 .serif { font-weight: 400; font-style: italic; color: var(--w70); font-size: 1.1em; }
.sec-head p { color: var(--w55); max-width: 34rem; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--w80); font-size: .9rem; border-bottom: 1px solid var(--line-2); padding-bottom: .2rem; transition: color .2s, border-color .2s; }
.link-arrow:hover { color: var(--white); border-color: var(--white); }

/* دسته‌ها */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.4rem; overflow: hidden; }
.cat-card { background: var(--bg); padding: 2rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; min-height: 19rem; position: relative; transition: background .4s var(--ease); }
.cat-card:hover { background: var(--bg-2); }
.cat-card .num { font-family: var(--serif); font-style: italic; color: var(--w40); font-size: 1rem; direction: ltr; }
.cat-icon { width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--white); transition: background .4s var(--ease), color .4s var(--ease); }
.cat-card:hover .cat-icon { background: var(--white); color: #000; }
.cat-icon svg { width: 1.3rem; height: 1.3rem; }
.cat-card h3 { font-family: "Vazirmatn", serif; font-weight: 700; font-size: 1.35rem; margin-top: auto; }
.cat-card .en { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--w55); direction: ltr; text-align: start; }
.cat-card p { color: var(--w55); font-size: .86rem; line-height: 1.8; }
.cat-card .meta { display: flex; gap: .9rem; font-size: .75rem; color: var(--w40); }
.cat-card .go { position: absolute; top: 1.6rem; inset-inline-end: 1.6rem; color: var(--w40); transition: transform .4s var(--ease), color .4s; }
.cat-card:hover .go { color: var(--white); transform: translateX(-4px); }

/* محصولات */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.4rem; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease); }
.prod:hover { border-color: var(--line-2); transform: translateY(-3px); }
.prod-media { aspect-ratio: 4 / 3; background: radial-gradient(70% 70% at 50% 40%, #1d1d1d, #0b0b0b); display: grid; place-items: center; color: var(--w40); overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover .prod-media img { transform: scale(1.04); }
.prod-media svg { width: 2.4rem; height: 2.4rem; }
.prod-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.prod-cat { font-size: .72rem; color: var(--w40); }
.prod h3 { font-family: "Vazirmatn", serif; font-weight: 600; font-size: 1.02rem; line-height: 1.7; }
.prod p { color: var(--w55); font-size: .84rem; }
.prod-price { margin-top: auto; padding-top: .7rem; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.prod-price b { font-weight: 600; }
.chip { font-size: .7rem; border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .6rem; color: var(--w70); }

/* خدمات */
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 1.2rem; padding: 1.5rem .2rem; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), background .3s; }
.svc:hover { padding-inline-start: 1rem; background: rgba(255,255,255,.015); }
.svc .cat-icon { width: 2.8rem; height: 2.8rem; }
.svc h3 { font-family: "Vazirmatn", serif; font-weight: 600; font-size: 1.1rem; }
.svc p { color: var(--w55); font-size: .86rem; margin-top: .15rem; }
.svc .tag { font-size: .74rem; color: var(--w40); white-space: nowrap; }
@media (max-width: 600px) { .svc { grid-template-columns: 2.8rem 1fr; } .svc .tag { display: none; } }

/* پروژه‌ها */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; }
.proj { border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.proj img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.proj .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #161616, #0a0a0a); display: grid; place-items: center; color: var(--w40); }
.proj div.t { padding: 1rem 1.2rem 1.2rem; }
.proj h3 { font-family: "Vazirmatn", serif; font-weight: 600; font-size: 1rem; }
.proj p { color: var(--w55); font-size: .84rem; }

/* درباره / آمار */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-text p { color: var(--w70); margin-bottom: 1rem; white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; align-self: start; }
.stat { background: var(--bg); padding: 1.8rem 1.4rem; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1.1; }
.stat span { color: var(--w55); font-size: .85rem; }

/* CTA */
.cta { text-align: center; padding: 6rem var(--pad-x); border-top: 1px solid var(--line); background: radial-gradient(60% 100% at 50% 100%, rgba(233,196,106,.08), transparent 70%); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; direction: ltr; }
.cta p { color: var(--w70); margin: 1rem auto 1.8rem; max-width: 34rem; }

/* جزئیات محصول */
.pd-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.05fr .95fr; } }
.gallery-main { aspect-ratio: 4 / 3; border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, #1d1d1d, #0b0b0b); display: grid; place-items: center; color: var(--w40); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main svg { width: 4rem; height: 4rem; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; }
.thumbs button { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; border-radius: .7rem; overflow: hidden; border: 1px solid var(--line); padding: 0; background: none; cursor: pointer; opacity: .6; }
.thumbs button.active { opacity: 1; border-color: var(--white); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-family: "Vazirmatn", serif; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.45; }
.pd .summary { color: var(--w70); margin-top: .8rem; }
.pd .price { margin: 1.4rem 0; font-size: 1.4rem; font-weight: 600; }
.pd .price small { font-size: .82rem; color: var(--w55); font-weight: 300; margin-inline-start: .4rem; }
.specs { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .9rem; }
.specs td { padding: .75rem .2rem; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--w55); width: 40%; }
.rich { color: var(--w70); white-space: pre-line; line-height: 2; }

/* فرم استعلام */
.form { display: grid; gap: 1rem; }
.form .row2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .82rem; color: var(--w70); }
.form input, .form textarea, .form select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: .65rem .1rem; color: var(--white); font-size: .95rem; border-radius: 0; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--white); }
.form textarea { min-height: 8rem; resize: vertical; }
.form-msg { font-size: .88rem; min-height: 1.4rem; }
.form-msg.ok { color: #8fd19e; }
.form-msg.bad { color: #f19a8f; }
.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; align-self: start; }
.contact-cards > div { background: var(--bg); padding: 1.3rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start; }
.contact-cards svg { width: 1.2rem; height: 1.2rem; margin-top: .3rem; color: var(--w55); flex-shrink: 0; }
.contact-cards small { display: block; color: var(--w40); font-size: .75rem; }

/* فیلتر محصولات */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.filters button { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem 1rem; font-size: .82rem; color: var(--w70); cursor: pointer; transition: all .2s; }
.filters button.active, .filters button:hover { background: var(--white); color: #000; border-color: var(--white); }
.filters input { margin-inline-start: auto; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem 1rem; min-width: 14rem; color: var(--white); }

/* وضعیت‌ها */
.empty { padding: 3rem 1rem; text-align: center; color: var(--w55); border: 1px dashed var(--line-2); border-radius: 1.2rem; }
.skel { background: linear-gradient(90deg, #0f0f0f 25%, #181818 37%, #0f0f0f 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 1.2rem; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* فوتر */
.foot { border-top: 1px solid var(--line); padding: 3rem var(--pad-x) 2.2rem; color: var(--w55); font-size: .85rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.foot h4 { color: var(--white); font-weight: 600; font-size: .9rem; margin-bottom: .7rem; }
.foot a { display: block; padding: .15rem 0; transition: color .2s; }
.foot a:hover { color: var(--white); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .78rem; }

/* ظهور بخش‌ها هنگام اسکرول */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
/* اعداد/نام لاتین داخل کارت RTL: کنار عنوان (راست) بمانند، نه زیر فلش */
.cat-card .num, .cat-card .en { align-self: flex-start; }

/* ============================ دور ۲۰ ============================ */
/* نوار 360IQE (بالاترین لایه) + هدر SEMIM ENERGY درشت‌تر در زیر آن */
.iq-bar { background: #000; border-bottom: 1px solid var(--line); font-family: "Vazirmatn", var(--sans); }
.iq-in { display: flex; align-items: center; gap: 1.2rem; padding: .35rem var(--pad-x); min-height: 2.3rem; }
.iq-logo { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; font-size: .95rem; color: #fff; direction: ltr; }
.iq-links { display: none; gap: 1.1rem; margin-inline-start: .6rem; }
.iq-links a { font-size: .76rem; color: var(--w55); transition: color .2s; }
.iq-links a:hover { color: #fff; }
.iq-back { margin-inline-start: auto; display: inline-flex; gap: .4rem; align-items: center; font-size: .76rem; color: var(--w70); border: 1px solid var(--line-2); padding: .15rem .7rem; border-radius: 999px; }
.iq-back:hover { color: #000; background: #fff; }
@media (min-width: 768px) { .iq-links { display: flex; } }
.nav .logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.nav .logo small { font-size: .95rem; font-weight: 500; color: var(--w70); }
@media (min-width: 768px) { .nav .logo { font-size: 2.1rem; } .nav-links a { font-size: .98rem; font-weight: 400; } }
.nav .nav-text { display: none !important; }
.mmenu-head .logo { font-size: 1.4rem; font-weight: 700; }

/* هیرو فارسی */
.hero h1 { direction: rtl; font-family: "Vazirmatn", var(--serif); font-weight: 800; line-height: 1.45; letter-spacing: 0; }
.hero h1 .it { font-family: "Vazirmatn", var(--serif); font-style: normal; font-weight: 800; color: var(--accent); }
.hero h1 .line { text-shadow: 0 2px 24px rgba(0,0,0,.5); }
@media (min-width: 1280px) { .hero h1 { font-size: 3.7rem; } }
.hero-sub { max-width: 40rem; }
.hero-ctas .btn-pri { font-size: 1.05rem; font-weight: 700; padding: 1rem 2.4rem; background: linear-gradient(135deg, #ffd27a, #ff9a3c); color: #1a0e00; box-shadow: 0 10px 40px -8px rgba(255,154,60,.75), 0 0 0 0 rgba(255,154,60,.5); animation: sxPulse 2.6s ease-in-out infinite; }
.hero-ctas .btn-pri:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -8px rgba(255,154,60,.9); }
.hero-ctas .btn-sec { padding: 1rem 1.9rem; }
@keyframes sxPulse { 0%,100% { box-shadow: 0 10px 40px -8px rgba(255,154,60,.75), 0 0 0 0 rgba(255,154,60,.45); } 50% { box-shadow: 0 10px 40px -8px rgba(255,154,60,.75), 0 0 0 14px rgba(255,154,60,0); } }
@media (prefers-reduced-motion: reduce) { .hero-ctas .btn-pri { animation: none; } }

/* کارت حوزه‌های فعالیت */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.1rem; }
.sec-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; background: var(--panel); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.sec-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px -20px rgba(255,154,60,.35); }
.sec-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #0b1020; }
.sec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sec-card:hover .sec-img img { transform: scale(1.06); }
.sec-bd { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.3rem 1.4rem; position: relative; }
.sec-bd .cat-icon { margin-top: -2.6rem; background: #0e1522; border: 1px solid var(--line-2); }
.sec-bd h3 { font-family: "Vazirmatn", serif; font-weight: 700; font-size: 1.12rem; line-height: 1.6; }
.sec-bd .en { font-family: var(--serif); font-style: italic; color: var(--w55); direction: ltr; text-align: start; }
.sec-bd p { color: var(--w55); font-size: .86rem; line-height: 1.8; }
.sec-bd .go-l { margin-top: .4rem; display: inline-flex; gap: .4rem; align-items: center; color: var(--accent); font-size: .82rem; }
.sec-hero { position: relative; overflow: hidden; min-height: 24rem; display: flex; align-items: flex-end; }
.sec-hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sec-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(5,5,5,.2) 60%, rgba(5,5,5,.5) 100%); }
.sec-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.sec-side { border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.6rem; background: var(--panel); align-self: start; }
.sec-side h3 { display: flex; gap: .5rem; align-items: center; font-family: "Vazirmatn", serif; font-weight: 700; margin-bottom: 1rem; }
.ticks { list-style: none; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; color: var(--w70); font-size: .92rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(233,196,106,.15); }

/* محصول نمایشی + خرید از فروشگاه اصلی */
.pd-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.btn-store { background: linear-gradient(135deg, #ffd27a, #ff9a3c) !important; color: #1a0e00 !important; font-weight: 700 !important; }
.btn-sec { border: 1px solid var(--line-2); color: var(--white); }
.pd-note { margin-top: .9rem; color: var(--w55); font-size: .8rem; }

/* فوتر (الگوی فوتر شرکتی مپنا: نوار دعوت بالا، ستون‌های لینک، تماس، پایین‌نوار) */
.mp-foot { padding: 0; border-top: 0; background: #070a10; }
.mp-top { background: linear-gradient(120deg, #0d2a4a, #17406e 55%, #0d2a4a); border-bottom: 3px solid #ff9a3c; }
.mp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.mp-top-in b { display: block; color: #fff; font-family: "Vazirmatn", serif; font-size: 1.25rem; }
.mp-top-in span { color: var(--w70); font-size: .86rem; max-width: 46rem; display: block; }
.mp-foot > .wrap { padding-top: 2.6rem; padding-bottom: 1.6rem; }
.mp-about p { margin-top: .8rem; max-width: 22rem; line-height: 1.9; }
.mp-grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.mp-grid > div > span { display: block; padding: .15rem 0; }
.mp-soc { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.mp-soc a { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .8rem; font-size: .78rem; }
.mp-up { display: inline-flex !important; gap: .4rem; align-items: center; }
.mp-up .up { transform: rotate(90deg); }
@media (max-width: 640px) { .iq-in { gap: .6rem; } .sec-hero { min-height: 20rem; } .hero-ctas .btn-pri { width: 100%; justify-content: center; } }
.mp-foot .wrap{padding-inline:var(--pad-x)}

/* دور ۲۰ — سخن مدیریت و مشخصات پروژه */
.mgmt{display:grid;gap:2rem;grid-template-columns:1fr;border:1px solid var(--line);border-radius:1.6rem;padding:clamp(1.4rem,4vw,3rem);background:linear-gradient(135deg,rgba(255,154,60,.07),rgba(13,42,74,.35))}
@media(min-width:800px){.mgmt{grid-template-columns:240px 1fr;align-items:center}}
.mgmt-ph{width:min(240px,60%);aspect-ratio:1;border-radius:50%;overflow:hidden;border:3px solid rgba(255,154,60,.6);background:#101826;display:grid;place-items:center;margin-inline:auto}
.mgmt-ph img{width:100%;height:100%;object-fit:cover}.mgmt-ph span svg{width:4rem;height:4rem;color:var(--w40)}
.mgmt-tx h2{font-family:"Vazirmatn",serif;font-weight:800;font-size:clamp(1.5rem,3vw,2.2rem);margin:.2rem 0 1rem}
.mgmt-tx p{color:var(--w70);line-height:2.1;margin-bottom:.8rem}
.mgmt-sig{margin-top:1rem!important;color:#fff!important}.mgmt-sig small{color:var(--w55);margin-inline-start:.5rem}
.proj-meta{display:flex;flex-wrap:wrap;gap:.35rem}.proj-meta span{font-size:.72rem;border:1px solid var(--line-2);border-radius:999px;padding:0 .6rem;color:var(--w70)}

/* ============================ دور ۲۲ ============================ */
.hero-layer>header#navSlot{position:relative;z-index:70}
.nav-links a{font-size:1.08rem !important;font-weight:700 !important;padding:.35rem .9rem;border-radius:999px;transition:background .25s,color .25s,box-shadow .25s}
.nav-links a:hover,.nav-links a[aria-current="page"]{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 0 18px rgba(120,190,255,.25)}
.nav .btn-talk{font-size:1rem !important;font-weight:700}
.hero h1 .it,.hero h1{font-style:normal !important}
.hero-ctas{justify-content:center}
@media (max-width:767px){.hero-video{display:block}}

/* ============================================================== دور ۲۳ */
/* شعار صفحه‌ی اول: فارسی، درشت و خوانا (راست‌چین) */
.hero h1.hero-fa { font-family: "Vazirmatn", var(--sans); direction: rtl; font-weight: 800; font-size: 1.55rem; line-height: 1.75; max-width: 62rem; letter-spacing: 0; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
@media (min-width: 640px) { .hero h1.hero-fa { font-size: 1.9rem; } }
@media (min-width: 1024px) { .hero h1.hero-fa { font-size: 2.45rem; line-height: 1.7; } }
@media (min-width: 1280px) { .hero h1.hero-fa { font-size: 2.8rem; } }
.hero h1.hero-fa .line { display: inline; }

/* دیاگرام چرخه‌ی پروژه — اینفوگرافیک متحرک (RTL: مهندسی از راست) */
.cycle { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; padding: 1.5rem 0 0; direction: rtl; }
.cycle::before { content: ""; position: absolute; top: 3.45rem; right: 10%; left: 10%; height: 2px; background: linear-gradient(to left, var(--accent), rgba(233,196,106,.15)); transform-origin: right; transform: scaleX(0); animation: cy-line 1.6s var(--ease) .2s forwards; }
.cy-step { text-align: center; position: relative; opacity: 0; transform: translateY(14px); animation: cy-in .7s var(--ease) calc(.25s + var(--i) * .22s) forwards; }
.cy-node { width: 4rem; height: 4rem; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--accent); color: var(--accent); position: relative; z-index: 1; animation: cy-pulse 3.5s ease-in-out calc(1.6s + var(--i) * .7s) infinite; }
.cy-node .ico { width: 1.6rem; height: 1.6rem; }
.cy-node b { position: absolute; top: -.35rem; right: -.35rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent); color: #111; font-size: .72rem; display: grid; place-items: center; font-weight: 800; }
.cy-step h3 { font-size: 1.05rem; font-weight: 700; }
.cy-step .en { display: block; font-family: var(--serif); font-style: italic; color: var(--w55); font-size: .9rem; margin-bottom: .3rem; direction: ltr; }
.cy-step p { font-size: .8rem; color: var(--w70); line-height: 1.7; padding: 0 .3rem; }
@keyframes cy-line { to { transform: scaleX(1); } }
@keyframes cy-in { to { opacity: 1; transform: none; } }
@keyframes cy-pulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(233,196,106,0); } 35% { box-shadow: 0 0 0 .7rem rgba(233,196,106,.16); background: rgba(233,196,106,.12); } }
@media (max-width: 760px) {
  .cycle { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .cycle::before { top: 2rem; bottom: 2rem; right: 2rem; left: auto; width: 2px; height: auto; transform-origin: top; background: linear-gradient(to bottom, var(--accent), rgba(233,196,106,.15)); }
  .cy-step { display: grid; grid-template-columns: 4rem 1fr; gap: 0 1rem; text-align: right; padding: .8rem 0; align-items: center; }
  .cy-node { grid-row: 1 / span 3; margin: 0; }
  .cy-step .en { margin: 0; } .cy-step p { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .cycle::before, .cy-step { animation: none; opacity: 1; transform: none; } .cycle::before { transform: none; } .cy-node { animation: none; } }

/* اسلایدر لوگوی مشتریان — حرکت پیوسته، توقف با hover/فوکوس، اسکرول لمسی در موبایل */
.clients { overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--panel); padding: 1.1rem 0; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.cl-track { display: flex; width: max-content; animation: cl-scroll 38s linear infinite; }
.cl-dup { display: flex; }
.clients:hover .cl-track, .clients:focus-within .cl-track { animation-play-state: paused; }
.cl-tile { flex: 0 0 auto; width: 11rem; height: 4.6rem; margin: 0 1.1rem; display: grid; place-items: center; opacity: .75; filter: grayscale(1) brightness(1.4); transition: opacity .3s, filter .3s; }
a.cl-tile:hover, a.cl-tile:focus-visible { opacity: 1; filter: none; }
.cl-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cl-txt { font-weight: 700; color: var(--w80); text-align: center; direction: rtl; }
.cl-ph { display: grid; place-items: center; gap: .15rem; color: var(--w40); border: 1px dashed var(--line-2); border-radius: .8rem; width: 100%; height: 100%; direction: rtl; }
.cl-ph .ico { width: 1.4rem; height: 1.4rem; } .cl-ph small { font-size: .72rem; }
@keyframes cl-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .cl-track { animation: none; } .cl-dup { display: none; } }

/* دور ۲۴: نوار بالای SEMIM — فقط بازگشت، خانه‌ی سمیم و یک سبد (سبد اصلی فروشگاه 360IQE) */
.sm-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px var(--pad-x,16px);background:rgba(8,12,20,.92);position:relative;z-index:80;direction:rtl}
.sm-tb{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:.85rem;font-weight:600;padding:6px 10px;border-radius:999px;text-decoration:none;position:relative;background:none;border:0}
.sm-tb:hover{background:rgba(255,255,255,.1)}
.sm-tb svg{flex:none}
.sm-back span{font-family:inherit;direction:ltr}
.sm-badge{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:.68rem;line-height:18px;text-align:center;position:absolute;top:-2px;inset-inline-start:-2px}
.sm-badge[hidden]{display:none}
@media(max-width:480px){.sm-tb span{font-size:.78rem}.sm-tb{padding:6px 8px}}
.pd-add-msg{margin-top:8px;font-size:.9rem}
