/* =========================================================
   PARS HOOR NET — style.css
   Dark tech B2B | Vazirmatn + Geist Mono | RTL
   ========================================================= */

:root {
  --bg:           #080B10;
  --bg-2:         #0D1117;
  --surface:      #141D28;
  --surface-2:    #1A2535;
  --border:       rgba(0,140,255,0.10);
  --border-bright:rgba(0,140,255,0.28);
  --accent:       #0084FF;
  --accent-dim:   rgba(0,132,255,0.12);
  --text-primary: #EEF2F8;
  --text-secondary:#7A90A8;
  --text-muted:   #3D5166;
  --mono:         'Geist Mono', monospace;
  --sans:         'Vazirmatn', sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

/* ─── UTILITIES ─── */
.mono  { font-family: var(--mono); }
.ltr   { direction: ltr; unicode-bidi: embed; }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-bright);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
}
.btn-ghost:hover { background: var(--accent-dim); color: var(--text-primary); transform: translateY(-1px); }

/* ─── NAV ─── */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 84px;
  background: rgba(8,11,16,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 66px; height: 66px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 28px; height: 28px; }
.logo-mark img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-fa   { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.logo-en   { font-family: var(--mono); font-size: 16px; color: var(--accent); letter-spacing: 0.12em; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 14px;
  font-family: var(--sans);
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-mobile-toggle:hover span { background: var(--text-primary); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { text-decoration: none; font-size: 16px; color: var(--text-secondary); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--text-primary); }

/* ─── HERO ─── */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  max-width: 1480px;
  margin: 0 auto;
  padding-right: 2rem;
  padding-left: 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 40%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,132,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { padding: 5rem 0 5rem 2rem; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--border-bright);
  border-radius: 200px;
  padding: 5px 14px;
  margin-bottom: 2rem;
  background: var(--accent-dim);
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-tag span { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(4rem, 4vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 .highlight { color: var(--accent); display: block; }
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 44ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; height: 520px; }
.hero-visual-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: saturate(1.1) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 35%, transparent 78%);
  animation: heroVisualDrift 14s ease-in-out infinite alternate;
}
@keyframes heroVisualDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, -1%); }
}
.grid-canvas  { position: relative; width: 100%; height: 100%; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual-bg { animation: none; }
}

/* ─── STATS ─── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem 0;
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 0 2rem; border-left: 1px solid var(--border); text-align: center; }
.stat-item:last-child { border-left: none; }
.stat-num   { font-family: var(--mono); font-size: 2.4rem; font-weight: 500; color: var(--accent); display: block; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-secondary); display: block; }

/* ─── SECTION BASE ─── */
.section { padding: 7rem 0; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; margin-top: 0.75rem; line-height: 1.2; }
.section-head p  { font-size: 16px; color: var(--text-secondary); max-width: 50ch; margin-top: 0.75rem; line-height: 1.75; }
.section-divider { width: 48px; height: 2px; background: var(--accent); margin-bottom: 1.25rem; border-radius: 2px; }

/* ─── TABS ─── */
.tabs-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.tabs-bar {
  display: flex;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.tab-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-btn:hover { color: var(--text-primary); background: var(--accent-dim); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(0,132,255,0.06);
}

.tab-panel { display: none; padding: 2.5rem; background: var(--bg); }
.tab-panel.active { display: block; }

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tab-detail h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
.tab-en  { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; display: block; margin-bottom: 1rem; }
.tab-detail p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; }

.tab-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.tab-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.tab-features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.tab-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.tab-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.45);
  display: block;
}
.tab-visual-tag {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  background: rgba(8,11,16,0.85);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 5px 8px;
  letter-spacing: 0.08em;
}
.cctv-hud {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--accent);
  background: rgba(8,11,16,0.85);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 5px 8px;
}

/* ─── CCTV SECTION ─── */
.cctv-section { background: var(--bg-2); }

/* ─── PROJECTS ─── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.project-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: brightness(0.55) saturate(0.4); display: block; }
.project-body { padding: 1.25rem; }
.project-type { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.project-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.4rem; }
.project-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ─── SHOP (فروشگاه) ─── */
.shop-section { background: var(--bg-2); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.product-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.product-card:hover .product-img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border-bright);
}
.product-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card h3 { font-size: 15.5px; font-weight: 600; }
.product-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
}
.product-price { font-family: var(--mono); font-size: 13px; color: var(--text-primary); font-weight: 600; }
.product-price span { display: block; font-size: 10px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.product-cta {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--border-bright);
  border-radius: 8px; padding: 7px 14px; text-decoration: none; transition: opacity 0.2s;
  white-space: nowrap;
}
.product-cta:hover { opacity: 0.8; }

/* ─── SHOP SLIDER (صفحه اصلی) ─── */
.shop-slider { position: relative; }
.shop-slider-viewport { overflow: hidden; }
.shop-slider-track { display: flex; transition: transform 0.45s cubic-bezier(.4,0,.2,1); }
.shop-slide-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.shop-slide-page .product-card { text-decoration: none; color: inherit; cursor: pointer; }
.shop-slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.shop-slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-bright); background: var(--surface);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.shop-slider-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-slider-btn:hover { background: var(--accent-dim); }
.shop-slider-btn:active { transform: scale(0.94); }
.shop-slider-dots { display: flex; gap: 8px; }
.shop-slider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-bright); cursor: pointer; transition: background 0.2s, transform 0.2s; border: none; padding: 0; }
.shop-slider-dot.active { background: var(--accent); transform: scale(1.3); }
.shop-viewall { text-align: center; margin-top: 2.5rem; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 6rem; align-items: start; }
.about-content h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.about-content p  { font-size: 15px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.25rem; }

.values-stack { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.value-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}
.value-row:hover { border-color: var(--border-bright); background: var(--surface); }
.value-num  { font-family: var(--mono); font-size: 11px; color: var(--accent); min-width: 24px; padding-top: 2px; }
.value-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.value-text p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.cert-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}
.cert-item:hover { border-color: var(--border-bright); }
.cert-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cert-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cert-sub  { font-size: 11px; color: var(--text-muted); font-family: var(--mono); direction: ltr; }

/* ─── CONTACT ─── */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.25rem; }
.contact-info p  { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: var(--border-bright); }
.contact-item-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 16px; height: 16px; }
.contact-item-value { direction: ltr; font-family: var(--mono); font-size: 13px; color: var(--text-primary); margin-left: auto; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: var(--text-secondary); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  direction: rtl;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select option { background: var(--bg-2); }
.form-submit {
  background: var(--accent);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
}
.form-submit:hover  { opacity: 0.88; transform: translateY(-1px); }
.form-submit:active { transform: scale(0.98); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copy  { font-size: 13px; color: var(--text-muted); font-family: var(--mono); direction: ltr; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 80px; gap: 0; }
  .hero-content { padding: 3rem 0 2rem; }
  .hero-sub { max-width: 100%; margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-visual  { height: 280px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-top: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-left: none; }
  .stat-item:nth-child(3) { border-left: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-left: none; }

  .tab-content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tab-panel { padding: 1.5rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .shop-grid     { grid-template-columns: 1fr; }
  .shop-slide-page { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row      { grid-template-columns: 1fr; }

  .nav-links         { display: none; }
  .nav-mobile-toggle { display: flex; }
  .container { padding: 0 1rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

@media (max-width: 560px) {
  .shop-slide-page { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
