:root {
  --factory-primary: #1a4d8c;
  --factory-primary-dark: #0f3460;
  --factory-accent: #e8a317;
}

body.pars-factory-site {
  font-family: Vazirmatn, Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.min-vh-50 {
  min-height: 50vh;
}

.custom-logo-link img,
.site-default-logo {
  height: 100px;
  width: auto;
  max-width: min(400px, 60vw);
  object-fit: contain;
  display: block;
}

.site-logo-placeholder {
  font-size: 1.75rem;
  color: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0f3460;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  background-color: #0f3460;
  background-image: linear-gradient(135deg, #0f3460, #1a4d8c, #2d6a9f);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(to left, rgba(15, 52, 96, 0.75), rgba(26, 77, 140, 0.64));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  font-size: 0.9rem;
}

.btn-primary {
  --bs-btn-bg: var(--factory-primary);
  --bs-btn-border-color: var(--factory-primary);
  --bs-btn-hover-bg: var(--factory-primary-dark);
  --bs-btn-hover-border-color: var(--factory-primary-dark);
}

.text-primary {
  color: var(--factory-primary) !important;
}

.section-title {
  color: var(--factory-primary-dark);
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--factory-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

#about .section-title::after {
  margin-right: 0;
  margin-left: auto;
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.product-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e9ecef;
}

.product-card .card-img-top {
  height: 100%;
  object-fit: cover;
}

.product-video-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
}

.product-single-img {
  max-height: 420px;
  object-fit: cover;
}

.stat-card {
  background: #fff;
  border: 1px solid #e9ecef;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--factory-primary);
}

.contact-info li {
  padding: 0.6rem 0;
  color: #495057;
}

.contact-info i {
  color: var(--factory-primary);
  margin-left: 0.5rem;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--factory-primary);
}

section {
  scroll-margin-top: 4.5rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 1.75rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

body.ltr .navbar-nav {
  margin-right: auto !important;
  margin-left: 0 !important;
}

body.ltr .product-video-badge {
  left: 0.75rem;
  right: auto;
}

body.ltr .contact-info i {
  margin-right: 0.5rem;
  margin-left: 0;
}

body.ltr .whatsapp-float {
  left: 1.5rem;
  right: auto;
}

body.lang-en {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.top-bar {
  background: var(--factory-primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-link {
  color: inherit;
  text-decoration: none;
}

.top-bar-link:hover {
  color: #fff;
}

.trust-strip {
  background: #fff;
}

.trust-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--factory-primary);
}

.category-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.production-visual {
  background: linear-gradient(135deg, var(--factory-primary-dark), var(--factory-primary));
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-pill {
  transition: box-shadow 0.2s ease;
}

.industry-pill:hover {
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.35rem;
}

.footer-contact i {
  margin-left: 0.35rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lang-switcher .btn-light {
  color: var(--factory-primary-dark);
}

body.ltr #about .section-title::after {
  margin-left: 0;
  margin-right: auto;
}

body.ltr .section-production-teaser .bi-arrow-left-short::before {
  transform: scaleX(-1);
  display: inline-block;
}
