/* =========================================================
   امیر هیدرولیک — Industrial Hydraulic Specialist Website
   Design tokens: construction yellow / charcoal / steel
   ========================================================= */

:root {
  /* --- Palette (dark = default premium industrial theme) --- */
  --c-black: #0b0b0c;
  --c-charcoal: #17181a;
  --c-graphite: #202124;
  --c-steel: #3a3b3e;
  --c-steel-soft: #2a2b2e;
  --c-yellow: #ffc531;
  --c-yellow-deep: #e0a300;
  --c-orange: #ff6b35;
  --c-white: #f5f5f2;
  --c-muted: #a7a8ac;
  --c-border: rgba(255, 255, 255, 0.08);

  --bg: #0e0f10;
  --bg-alt: #141517;
  --surface: #1a1b1e;
  --surface-2: #212226;
  --text: #f2f2ef;
  --text-muted: #9c9da1;
  --border: var(--c-border);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --font-display: 'Vazirmatn', sans-serif;
  --font-body: 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --header-h: 78px;
}

[data-theme="light"] {
  --bg: #f3f3f0;
  --bg-alt: #e9e9e4;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --text: #17181a;
  --text-muted: #5b5c60;
  --border: rgba(10, 10, 10, 0.09);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25);
  --c-charcoal: #1c1d1f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* dir=ltr helper for numbers/phones inside RTL flow */
[dir="ltr"] {
  unicode-bidi: isolate;
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-ring {
  stroke-dasharray: 230;
  stroke-dashoffset: 60;
  transform-origin: 60px 60px;
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .5px;
}

.dots i {
  font-style: normal;
  animation: blink 1.2s infinite;
}

.dots i:nth-child(2) {
  animation-delay: .2s;
}

.dots i:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-orange));
  width: 0%;
  z-index: 1001;
  transition: width .1s linear;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  height: 66px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: flex;
  filter: drop-shadow(0 0 10px rgba(255, 197, 49, .35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
}

.brand-text em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color .25s, background .25s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.nav-link.active {
  color: var(--c-black);
  background: var(--c-yellow);
  font-weight: 600;
}

[data-theme="light"] .nav-link.active {
  color: #141414;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, transform .25s;
}

.theme-toggle:hover {
  border-color: var(--c-yellow);
  transform: rotate(15deg);
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

.nav-cta {
  display: inline-flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: var(--bg-alt);
  border-inline-start: 1px solid var(--border);
  z-index: 1000;
  padding: 90px 26px 26px;
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(.16, .84, .44, 1);
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6);
}

[dir="rtl"] .mobile-nav {
  transform: translateX(-105%);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav .nav-link {
  padding: 12px 6px;
  font-size: 17px;
  border-radius: 8px;
}

.admin-link {
  margin-top: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.16, .84, .44, 1), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--c-yellow);
  color: #151515;
  box-shadow: 0 12px 28px -12px rgba(255, 197, 49, .55);
}

.btn-primary:hover {
  background: #ffd15c;
  box-shadow: 0 16px 34px -12px rgba(255, 197, 49, .7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 30px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 30%, transparent 90%);
  opacity: .7;
}

.hero-glow {
  position: absolute;
  top: -10%;
  inset-inline-end: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 197, 49, .16), transparent 70%);
  filter: blur(10px);
}

.hazard-strip {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 14px, #141414 14px 28px);
  opacity: .85;
}

.hazard-top {
  top: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-yellow);
  border: 1px solid rgba(255, 197, 49, .35);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 197, 49, .06);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: 0 0 0 4px rgba(255, 197, 49, .2);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.28;
  margin: 0 0 20px;
  letter-spacing: -.5px;
}

.text-yellow {
  color: var(--c-yellow);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 560px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --- Excavator visual --- */
.hero-visual {
  position: relative;
}

.excavator-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.excavator-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 10px;
  letter-spacing: .3px;
}

.ground-line {
  stroke: var(--border);
  stroke-width: 2;
}

.track-group,
.house-group {
  transform-box: view-box;
}

.house-group {
  animation: idleSway 6s ease-in-out infinite;
  transform-origin: 340px 392px;
}

@keyframes idleSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(.4deg);
  }
}

.boom-group {
  transform-box: view-box;
  transform-origin: 400px 305px;
  transition: transform .1s;
}

.stick-group {
  transform-box: view-box;
  transform-origin: 614px 182px;
  transition: transform .1s;
}

.bucket-group {
  transform-box: view-box;
  transform-origin: 690px 304px;
  transition: transform .1s;
}

.cylinder-body {
  fill: #c9cbce;
  stroke: #1a1a1a;
  stroke-width: 1.2;
}

.cylinder-alt {
  fill: #d7d9db;
}

.hose-line {
  opacity: .75;
}

.svg-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #1c1d0f;
  letter-spacing: 1px;
}

/* Digging animation triggered on hover/focus/touch */
#excavatorStage.is-digging .boom-group {
  animation: boomDig 2.6s ease-in-out infinite;
}

#excavatorStage.is-digging .stick-group {
  animation: stickDig 2.6s ease-in-out infinite;
}

#excavatorStage.is-digging .bucket-group {
  animation: bucketDig 2.6s ease-in-out infinite;
}

@keyframes boomDig {
  0% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(-9deg);
  }

  55% {
    transform: rotate(-4deg);
  }

  80% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes stickDig {
  0% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(18deg);
  }

  55% {
    transform: rotate(22deg);
  }

  80% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes bucketDig {
  0% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(-22deg);
  }

  55% {
    transform: rotate(-30deg);
  }

  80% {
    transform: rotate(20deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .house-group,
  #excavatorStage.is-digging .boom-group,
  #excavatorStage.is-digging .stick-group,
  #excavatorStage.is-digging .bucket-group {
    animation: none !important;
  }
}

.spec-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.chip-1 {
  top: 6%;
  inset-inline-start: 0;
}

.chip-2 {
  bottom: 14%;
  inset-inline-end: 2%;
}

.chip-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.chip-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-yellow);
}

.chip-val small {
  font-size: 10px;
  color: var(--text-muted);
}

.chip-val.ok {
  color: #4ade80;
}

.scroll-cue {
  position: relative;
  z-index: 1;
  margin: 36px auto 0;
  width: 28px;
  height: 44px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: transparent;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--c-yellow);
  animation: cueMove 1.6s infinite;
}

@keyframes cueMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(10px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-yellow);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-eyebrow i {
  font-style: normal;
  border: 1px solid rgba(255, 197, 49, .4);
  border-radius: 6px;
  padding: 2px 7px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -.3px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0;
}

.demo-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-orange);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CARDS — generic
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s cubic-bezier(.16, .84, .44, 1), border-color .3s, box-shadow .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 197, 49, .35);
  box-shadow: var(--shadow);
}

/* Specialty cards */
.specialty-card {
  text-align: center;
}

.specialty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 197, 49, .18), rgba(255, 197, 49, .02));
  border: 1px solid rgba(255, 197, 49, .25);
}

.specialty-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
}

.specialty-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--c-yellow);
}

.service-card h3 {
  font-size: 16.5px;
  margin: 0;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.service-more {
  align-self: flex-start;
  font-size: 13px;
  color: var(--c-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Brands */
.brand-strip {
  /* تنظیمات مربوط به طرح‌بندی (Grid) */
  display: grid;
  justify-items: center; /* تراز کردن آیتم‌ها به صورت افقی در مرکز */
  align-items: center; /* تراز کردن آیتم‌ها به صورت عمودی در مرکز */
  gap: 15px; /* کاهش فاصله بین آیتم‌ها برای دید بهتر عکس */
  
  /* تنظیمات مربوط به ظاهر و رنگ‌ها */
  width: 220px; /* افزایش جزئی پهنا برای فضای بیشتر */
  padding: 15px; /* تنظیم پدینگ برای ظاهر بهتر */
  border: 1px solid rgba(0, 0, 0, 0.1); /* مرز بسیار نازک و محو */
  border-radius: 15px; /* افزایش گردی گوشه‌ها برای ظاهر مدرن‌تر */
  background: #ffc22a; /* رنگ نارنجی روشن و شفاف */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* افزودن سایه خفیف برای عمق دادن */
  
  /* تنظیمات مربوط به متن (در صورت وجود) */
  font-family: var(--font-mono);
  font-weight: 600; /* کاهش جزئی وزن فونت */
  color: #333; /* رنگ متن تیره برای کنتراست بهتر */
  text-align: center;
  
  /* افکت‌های انتقالی */
  transition: all 0.3s ease; /* ساده‌سازی افکت‌های انتقالی */
}

/* افکت هنگام هاور (وقتی موس روی آن قرار می‌گیرد) */
.brand-strip:hover {
  transform: translateY(-5px); /* حرکت خفیف به بالا */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* افزایش سایه برای حس برجستگی */
}

/* استایل مخصوص عکس‌ها (برای اطمینان از دیده شدن راحت) */
.brand-strip img {
  max-width: 80%; /* محدود کردن پهنای عکس برای جلوگیری از به هم خوردن استایل */
  height: auto; /* حفظ تناسب عکس */
  display: block; /* حذف فضای خالی پایین عکس */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* افزودن سایه خفیف به خود عکس برای جدا شدن از پس‌زمینه */
}

.brand-badge {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  transition: transform .3s, border-color .3s, color .3s;
}

.brand-badge:hover {
  transform: translateY(-4px);
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

/* Project cards */
.project-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-thumb {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, var(--c-steel-soft), var(--c-charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb svg {
  width: 70%;
  height: 70%;
  opacity: .85;
  transition: transform .5s;
}

.project-card:hover .project-thumb svg {
  transform: scale(1.08) rotate(-2deg);
}

.project-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--c-yellow);
  color: #151515;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.project-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-body h3 {
  font-size: 16px;
  margin: 0;
}

.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.project-meta span {
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 100px;
}

.project-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  transition: all .25s;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--c-yellow);
  color: #151515;
  border-color: var(--c-yellow);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item svg {
  width: 100%;
  height: 100%;
}

.gallery-item .g-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-item:hover .g-cap {
  opacity: 1;
}

.gallery-item.hidden-item {
  display: none;
}

/* =========================================================
   ARTICLES
   ========================================================= */
.article-card {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.article-thumb {
  height: 140px;
  background: linear-gradient(135deg, #2a2b2e, #141416);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb svg {
  width: 44px;
  height: 44px;
  opacity: .8;
}

.article-card .article-body {
  padding: 22px;
}

.article-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.article-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.article-read {
  font-size: 13px;
  color: var(--c-yellow);
  font-weight: 600;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t-stars {
  color: var(--c-yellow);
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 14.5px;
  color: var(--text);
  margin: 0;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-yellow);
  border: 1px solid var(--border);
}

.t-author strong {
  display: block;
  font-size: 13px;
}

.t-author span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.about-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-portrait {
  width: 100%;
}

.media-badge {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.about-copy .lead {
  font-size: 16.5px;
  color: var(--text);
  margin: 0 0 26px;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.about-cols h3 {
  font-size: 14.5px;
  color: var(--c-yellow);
  margin: 0 0 8px;
}

.about-cols p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.value-icon {
  color: var(--c-yellow);
  font-size: 10px;
  margin-top: 5px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
}

.info-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.info-card-alt {
  background: linear-gradient(160deg, rgba(255, 197, 49, .12), rgba(255, 197, 49, .02));
  border-color: rgba(255, 197, 49, .3);
}

.info-card-alt p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list strong {
  display: block;
  font-size: 13px;
}

.info-list span {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  transition: border-color .25s, box-shadow .25s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 3px rgba(255, 197, 49, .15);
}

.form-field textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #4ade80;
  min-height: 18px;
}

.form-note.error {
  color: #f87171;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--c-black);
  color: #e8e8e6;
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 36px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  max-width: 320px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.footer-brand p {
  font-size: 12.5px;
  color: #8a8b8f;
  margin: 6px 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
}

.footer-nav a {
  color: #c7c8cb;
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--c-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #77787c;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
}

.back-to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: #151515;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(255, 197, 49, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 500;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, .72);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  padding: 34px;
  transform: scale(.94) translateY(10px);
  transition: transform .35s cubic-bezier(.16, .84, .44, 1);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-lg {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.modal-close:hover {
  background: var(--c-yellow);
  color: #151515;
  transform: rotate(90deg);
}

.pm-thumb {
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2b2e, #141416);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pm-thumb svg {
  width: 90px;
  height: 90px;
  opacity: .85;
}

.pm-title {
  font-size: 21px;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0 0 6px;
}

.pm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pm-meta span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--text-muted);
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.pm-block h4 {
  font-size: 13px;
  color: var(--c-yellow);
  margin: 0 0 6px;
}

.pm-block p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.am-title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0 0 10px;
  line-height: 1.6;
}

.am-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.am-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.am-body h4 {
  font-size: 14.5px;
  color: var(--text);
  margin: 20px 0 8px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, .94);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  max-width: 80vw;
  max-height: 80vh;
  text-align: center;
}

.lightbox-stage img {
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 10px;
  width: auto;
}

.lightbox-stage svg {
  max-height: 60vh;
}

.lightbox-stage p {
  color: #cfcfcf;
  margin-top: 14px;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: none;
  font-size: 16px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: none;
  font-size: 24px;
}

.lightbox-prev {
  inset-inline-start: 24px;
}

.lightbox-next {
  inset-inline-end: 24px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:860px) {

  .main-nav,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }

  .about-cols {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width:600px) {

  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 20px);
  }

  .hero-title {
    font-size: 28px;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .spec-chip {
    position: static;
    display: inline-flex;
    margin: 4px 6px 0 0;
  }

  .chip-1,
  .chip-2 {
    position: static;
  }

  .modal {
    padding: 22px;
  }
}

@media (max-width:420px) {

  .grid-5,
  .grid-4,
  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width:1199px) {
  .img-bil {

    position: absolute;

    /* محل جدید بیل مکانیکی */
    top: 20%;
    left: 0%;

    width: 700px;
    height: auto;

    z-index: 10;

    /* اگر انیمیشن حرکت می‌خوای */
    transition: all 1s ease;

  }
}
