:root {
  --bg: #111418;
  --panel: #161b24;
  --panel-2: #1a2230;
  --accent: #f97316;
  --accent-2: #fb923c;
  --text: #FFFFFF;
  --muted: #B0B0B0;
  --border: #333333;
  --shadow: 0 20px 50px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", "Vazirmatn", sans-serif;
  background: linear-gradient(160deg, #101317 0%, #0f172a 60%, #151b23 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(33,33,33,0.9); border-bottom: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
nav { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.5px; }
nav img { width: 50px; height: 50px; border-radius: 12px; background: #FFFFFF; padding: 6px; object-fit: contain; }
.menu { margin-right: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.menu a { padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--muted); font-weight: 600; }
.menu a:hover { border-color: var(--border); color: #FFFFFF; }
.pill { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(249,115,22,0.18); color: var(--text); font-size: 13px; }

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 12px auto 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero { max-height: 70vh; }
/* Slightly taller hero without violating the 70vh cap (prevents "small banner" look). */
.hero { min-height: 62vh; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(33,33,33,0.22), rgba(33,33,33,0.72)); z-index: 1; }
.hero .bg { position: absolute; inset: 0; z-index: 0; filter: saturate(1.1); pointer-events: none; }
.hero .bg .hero-rot-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: scale(1.04) translate3d(-1.5%, 0, 0);
  will-change: opacity, transform;
  transition: opacity 0.45s ease-in-out;
  animation: heroKen 18s ease-in-out infinite;
}
.hero .bg .hero-rot-main.is-fading { opacity: 0.32; }
@keyframes heroKen {
  0%,18% { transform: scale(1.03) translate3d(-1.5%, 0, 0); }
  55% { transform: scale(1.08) translate3d(1.5%, 0, 0); }
  100% { transform: scale(1.03) translate3d(-1.5%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg .hero-rot-main { animation: none; transform: none; transition: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.25; }
.hero p.sub { margin: 0 0 14px; color: var(--text); font-weight: 600; }
.hero p.sub a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  background: rgba(255,255,255,0.14);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: var(--text); box-shadow: 0 10px 24px rgba(249,115,22,0.18); }
.stat { display: inline-flex; flex-direction: column; background: rgba(0,0,0,0.25); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); min-width: 110px; }
.stat strong { font-size: 20px; }

.section { max-width: 1200px; margin: 56px auto; padding: 0 20px; }
.section h2 { margin: 0 0 10px; }
.section p { max-width: 72ch; }
.lead { color: var(--muted); margin: 0 0 14px; }
.service-blurbs { display: grid; gap: 14px; }
.service-blurbs a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.service-blurbs a:hover { color: var(--accent-2); }
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}
.service-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.8; }
.service-card ul {
  margin: 0 0 10px;
  padding-right: 18px;
}
.service-card li { color: var(--text); margin-bottom: 6px; }
.service-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.service-actions .mini-link {
  color: var(--accent-2);
  font-weight: 700;
}
.service-actions .btn {
  min-width: 220px;
  text-align: center;
}
.hero-proof {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.decision-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.decision-strip span {
  display: block;
  background: rgba(249,115,22,0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.quick-links {
  margin-top: 12px;
}
.quick-links a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quick-links a:hover {
  color: var(--accent-2);
}
.popular-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.popular-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.popular-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.85;
}
.popular-card .btn {
  width: 100%;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fold-sales-box-wrap {
  margin-top: 18px;
}
.fold-sales-box h2 {
  margin: 0 0 8px;
}
.fold-sales-box p {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 80ch;
}
.link-only-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.link-only-grid .card {
  padding: 12px;
}
.link-only-grid .btn,
.link-only-grid .quick-link {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.quick-link {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.quick-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  background: rgba(255,255,255,0.14);
}
.quick-link.quick-link--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: var(--text);
}
.quick-link-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(15,23,42,0.24));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.service-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.35);
  box-shadow: 0 18px 38px rgba(0,0,0,0.32);
}
.tag { display: inline-block; padding: 6px 10px; border-radius: 10px; background: rgba(249,115,22,0.14); border: 1px solid var(--border); color: var(--text); font-size: 13px; margin-bottom: 6px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 12px; }
.calc-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.calc-grid label{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-weight:700;
}
.calc-grid input,
.calc-grid select,
.calc-grid textarea{
  width:100%;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:10px;
  padding:10px 12px;
  background:rgba(0,0,0,0.22);
  color:#FFFFFF;
}
.qr-home { margin-top: 10px; width: 140px; height: 140px; background: #FFFFFF; border-radius: 14px; padding: 10px; border: 1px solid rgba(255,255,255,0.12); }
.qr-home img { width: 100%; height: 100%; display: block; }
.portfolio { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.portfolio .muted { color: var(--muted); margin: 0 0 12px; }
.portfolio-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); align-items: stretch; }
.portfolio .card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.rot-holder { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.rot-holder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: rotImgs 12s linear infinite; }
.rot-holder img:nth-child(1) { animation-delay: 0s; }
.rot-holder img:nth-child(2) { animation-delay: 4s; }
.rot-holder img:nth-child(3) { animation-delay: 8s; }
@keyframes rotImgs { 0%,30% { opacity: 1; } 35%,100% { opacity: 0; } }
.portfolio .card h3 { margin: 12px 0 6px; color: #FFFFFF; }
.portfolio .card p { color: var(--muted); line-height: 1.8; font-size: 14px; }
@media (max-width: 640px) { .rot-holder { border-radius: 10px; } }

.clients { max-width: 1200px; margin: 28px auto; padding: 0 20px; }
.clients h2 { margin: 0 0 10px; }
.clients .lead { margin: 0 0 14px; }
.logo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(33,33,33,0.75);
  box-shadow: var(--shadow);
  /* Keep the marquee behavior consistent on RTL sites. */
  direction: ltr;
}
.logo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
  width: max-content;
  padding: 14px 18px;
  animation: logoScroll 26s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  width: 120px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
}
.logo-item img {
  max-width: 78%;
  max-height: 68%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.9;
}
.logo-item:hover img { filter: grayscale(0) contrast(1.0); opacity: 1; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* No auto-motion: keep logos side-by-side and let users scroll horizontally. */
  .logo-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .logo-track { animation: none; }
}

@media (max-width: 640px) {
  .logo-track { gap: 14px; padding: 12px 14px; }
  .logo-item { width: 104px; height: 50px; border-radius: 12px; }
}
footer { border-top: 1px solid var(--border); background: var(--panel); color: var(--muted); text-align: center; padding: 14px 20px 22px; }

/* Click-to-load map lowers third-party impact on the initial render. */
.map-shell {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: rgba(33,33,33,0.9);
}
.service-thumb{
  margin: 0 0 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .35s ease, filter .35s ease;
}
.service-card:hover .service-thumb img{
  transform: scale(1.05);
  filter: saturate(1.1);
}
.map-load-btn {
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #FFFFFF;
  font-weight: 800;
  cursor: pointer;
}
.map-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero-content { padding: 16px 14px; }
  .hero h1 { font-size: clamp(22px, 6vw, 32px); }
  .menu { justify-content: center; }
  .hero { min-height: 56vh; }
  .popular-services-grid {
    grid-template-columns: 1fr;
  }
  .fold-sales-box-wrap {
    margin-top: 8px;
  }
  .link-only-grid {
    grid-template-columns: 1fr;
  }
  .service-card .btn {
    width: 100%;
    text-align: center;
  }
  .service-actions {
    align-items: stretch;
  }
  .service-actions .mini-link {
    padding: 8px 0;
  }
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(17,20,24,0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 26px rgba(0,0,0,0.35);
  }
  .mobile-sticky-cta .btn {
    min-height: 44px;
    border-radius: 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body {
    padding-bottom: 72px;
  }
}

@media (min-width: 900px) {
  .hero { min-height: 64vh; }
}

@media (min-width: 641px) {
  .mobile-sticky-cta {
    display: none;
  }
}
