/* BazaarPay — static rebuild of bazaar-pay.ir (archived 2026-02-20) */

@font-face {
  font-family: "YekanBakh";
  src: url(../fonts/YekanBakh-Regular.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhBold";
  src: url(../fonts/YekanBakh-Bold.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: "iranyekanwebregularfanum";
  src: url(../fonts/iranyekanwebregularfanum.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: "iranyekanwebboldfanum";
  src: url(../fonts/iranyekanwebboldfanum.woff) format("woff");
  font-display: swap;
}

:root {
  --primary: #7300f8;
  --primary-hero: #7300f6;
  --text: #717485;
  --heading: #000;
  --footer-bg: #3e4151;
  --container: 1200px;
  --font: "YekanBakh", Tahoma, sans-serif;
  --font-bold: "YekanBakhBold", "YekanBakh", Tahoma, sans-serif;
  --font-btn: "iranyekanwebboldfanum", "YekanBakhBold", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }

a { color: var(--primary); text-decoration: none; transition: color .3s, background-color .3s, border-color .3s; }

p { margin: 0 0 1.2em; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--heading);
  font-family: var(--font-bold);
  line-height: 1.2;
}
h1 { font-size: 46px; font-weight: 700; }
h2 { font-size: 40px; font-weight: 600; }
h3 { font-size: 38px; font-weight: 600; }
h4 { font-size: 30px; font-weight: 700; }
h5 { font-size: 20px; font-weight: 600; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px; right: 8px;
  width: auto; height: auto;
  clip: auto;
  z-index: 1000;
  padding: 8px 16px;
  background: #fff;
  color: #000;
}

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 1.15em 2.7em;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-btn);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.btn .icon { font-size: 1em; }

.btn--outline { color: var(--primary); background: #fff; border-color: var(--primary); padding: .9em 1.6em; font-size: 13px; }
.btn--outline:hover, .btn--outline:focus-visible { color: #fff; background: var(--primary); }

.btn--muted { color: var(--text); background: #e5e7f0; }
.btn--muted:hover, .btn--muted:focus-visible { color: #fff; background: var(--text); }

.btn--pill { color: #000; background: #fff; border-radius: 5em; font-size: 16px; font-weight: 900; padding: 1.15em 2.4em; }
.btn--pill .icon { font-size: 20px; }
.btn--pill:hover, .btn--pill:focus-visible { color: #fff; background: var(--text); }

.btn--white { color: var(--primary); background: #fff; font-size: 16px; padding: 1em 2.2em; border-radius: 3px; }
.btn--white:hover, .btn--white:focus-visible { color: #fff; background: #000; }

.btn--light { color: var(--primary); background: #f9f9f9; font-size: 14px; padding: 1em 2.2em; border-radius: 3px; }
.btn--light:hover, .btn--light:focus-visible { color: #fff; background: #000; }

.btn--primary { color: #fff; background: var(--primary); border-radius: 3px; padding: 1em 2.2em; }
.btn--primary .icon { font-size: 24px; }
.btn--primary:hover, .btn--primary:focus-visible { background: #000; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 50; background: #fff; }

.topbar { background: rgba(255,255,255,.96); border-bottom: 1px solid #eee; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; min-height: 38px; }
.topbar .social { display: inline-flex; color: #979797; font-size: 16px; padding: 10px 0; }
.topbar .social:hover { color: #000; }

.navbar { padding: 10px 0; background: #fff; }
.navbar__inner { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; margin: 5px 0; }
.brand img { width: 200px; max-width: 200px; }

.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.primary-nav ul { display: flex; padding-left: 60px; }
.primary-nav a {
  display: block;
  padding: 15px 13px;
  color: #000;
  font-family: var(--font-bold);
  font-size: 14px;
  letter-spacing: .02px;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--primary); }

.header-cta { margin-right: auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #000;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
  .topbar, .header-cta { display: none; }
  .navbar { padding: 8px 0; background: #f6f6f6; }
  .navbar__inner { flex-wrap: wrap; justify-content: center; position: relative; gap: 0; }
  .nav-toggle { display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
  .brand img { width: 150px; }
  .primary-nav {
    flex-basis: 100%;
    display: none;
    justify-content: stretch;
  }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px 0; }
  .primary-nav li + li { border-top: 1px solid #e6e6e6; }
  .primary-nav a { padding: 12px 15px; }
}
@media (max-width: 1199px) {
  .nav-open .nav-toggle { top: 30px; }
}

/* ---------- Common sections ---------- */

.section-title { text-align: center; }

.titlebar {
  background: url(../img/Mask-Group-1@2x1.jpg) left center / cover no-repeat #f5f6f8;
  padding: 45px 0 50px;
}
.titlebar h1 { margin: 0; font-family: "iranyekanwebboldfanum", var(--font-bold); font-size: 40px; line-height: 1; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--primary);
  border-radius: 10px;
}

/* ---------- Home ---------- */

.hero { background: var(--primary-hero); padding: 140px 0; color: #fff; }
.hero__inner { display: flex; align-items: flex-start; }
.hero__card {
  width: 44%;
  flex-shrink: 0;
  margin-bottom: 52px;
  padding: 20px 10px 10px 20px;
  background: rgba(15,13,13,.51);
  border-radius: 10px;
}
.hero__card h1 { color: #fff; line-height: 68px; margin: 0 0 .35em; padding: 20px 10px 0 0; }
.hero__card p { color: #fff; font-size: 17px; line-height: 30px; margin: 0 0 2em; padding: 30px 10px 0; text-align: justify; }
.hero__card .btn { margin: 0 10px 10px 0; }
.hero__media { flex: 1; text-align: center; padding-top: 0; }
.hero__media img { width: 350px; margin-top: -40px; }

.features { padding: 75px 0 45px; border-bottom: 1px solid rgba(0,0,0,.07); }
.features h2 { font-size: 28px; font-weight: 800; margin-bottom: 50px; }
.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.iconbox { display: flex; align-items: flex-start; gap: 25px; }
.iconbox__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-size: 25px;
  transition: background-color .3s;
}
.iconbox:hover .iconbox__icon { background: #3b3b3b; }
.iconbox h3 { font-size: 20px; margin: 0 0 13px; }
.iconbox p { margin: 0; }

.approach {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: url(../img/Mobile-in-Hand-Mockup.jpg) center / cover no-repeat fixed #555;
}
.approach::before { content: ""; position: absolute; inset: 0; background: #2b2b2b; opacity: .35; }
.approach .container { position: relative; max-width: 580px; }
.approach h2 { color: #fff; }
.approach p { color: #fff; font-size: 17px; line-height: 28px; margin: 0 0 2em; }

.customers { padding: 55px 0 70px; }
.customers h2 { font-size: 25px; line-height: 60px; margin: 0 0 20px; }

.marquee { overflow: hidden; direction: ltr; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__item { width: 285px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.consult { padding: 0 0 100px; }
.consult .cta-box { padding: 55px 90px; box-shadow: 0 15px 50px rgba(0,0,0,.22); }
.consult h2 { color: #fff; margin: 0; flex: 1; text-align: center; }
.consult .cta-box > div { flex: 1; text-align: center; }

/* ---------- About ---------- */

.about { padding: 50px 0 150px; }
.about__text { margin-bottom: 50px; }
.about h2 { padding-bottom: 20px; margin: 0; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 30px 10px; }
.logo-row > * { flex: 1 1 0; display: flex; justify-content: center; min-width: 120px; }

/* ---------- Solutions ---------- */

.sol-hero { background: var(--primary-hero); padding: 80px 0; color: #fff; }
.sol-hero__inner { display: flex; align-items: center; }
.sol-hero__text { width: 64.336%; }
.sol-hero__text h1 { color: #fff; font-family: var(--font-bold); font-size: 35px; padding: 70px 0 30px; margin: 0; }
.sol-hero__text p { color: #fff; font-size: 22px; margin: 0; }
.sol-hero__text .btn { margin-top: 30px; }
.sol-hero__media { width: 35.664%; text-align: center; }
.sol-hero__media img { width: 60%; }

.sol-logos { margin: 50px 0; }
.sol-logos .logo-row > * { min-width: 100px; }

.dd { padding: 10px 0; }
.dd__inner { display: flex; gap: 30px; align-items: flex-start; }
.dd__text { flex: 1; line-height: 30px; padding-left: 10px; }
.dd__text h2 { font-size: 24px; margin-bottom: .6em; }
.dd__media { flex: 1; margin-top: 110px; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f2f9;
  border-radius: 8px;
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0;
  background: center / cover no-repeat;
  cursor: pointer;
}
.video__overlay svg { width: 118px; height: 118px; fill: #fff; filter: drop-shadow(0 0 10px rgba(0,0,0,.3)); opacity: .85; transition: opacity .3s; }
.video__overlay:hover svg { opacity: 1; }
.video.is-playing .video__overlay { display: none; }

.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 70px auto; border-radius: 10px; overflow: hidden; }
.stats > div { background: #f5f6fb; padding: 40px; text-align: center; border-left: 1px solid #d7d7d7; }
.stats > div:last-child { border-left: 0; }
.stats h2 { color: var(--primary); font-size: 35px; margin: 0; }
.stats p { color: var(--text); font-size: 20px; margin: 0; }

.benefits h2 { font-size: 30px; text-align: center; }
.benefits__lead { text-align: center; padding-top: 15px; }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.benefit { text-align: center; }
.benefit svg { width: 70px; height: 70px; margin-bottom: 15px; }
.benefit h3 { font-size: 20px; margin: 0 0 10px; }
.benefit p { font-size: 13px; margin: 0; }

.sol-cta { margin: 50px 0; }
.sol-cta .cta-box { padding: 25px 30px; margin-top: 20px; }
.sol-cta h2 { color: #fff; font-size: 25px; margin: 0; }
.sol-cta p { color: #fdfdfd; margin: 0; padding-top: 10px; }
.sol-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: 80px; }
.mobile-only { display: none !important; }

/* ---------- Contact ---------- */

.contact { padding: 80px 0 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact__card { border: 1px solid #ddd; border-radius: 3px; padding: 55px 60px 35px; }
.contact__card h1 { font-size: 26px; }
.contact__card p:last-child { margin-bottom: 0; }
.contact__map { padding-top: 50px; }
.contact__map hr { border: 0; border-top: 1px solid #adafb8; margin: 0 0 50px; }
.contact__map iframe { display: block; border: 0; width: 600px; height: 350px; }
.contact__map + .spacer { height: 50px; }

/* ---------- Footer ---------- */

.site-footer { color: #fff; background: var(--footer-bg); }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; }

.footer-support { background: #fff; color: #000; padding: 40px 0; text-align: center; }
.footer-support .container > div { padding: 10px 0; }
.footer-support .container > div:first-child { border-left: 1px solid #000; }
.footer-support .container { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.footer-support p { margin: 0 0 .6em; font-size: 21px; }
.footer-support p:last-child { margin: 0; }
.footer-support strong { font-family: var(--font-bold); font-weight: 400; }

.footer-main { padding: 80px 0 0; }
.footer-row { display: flex; gap: 30px; }
.footer-row > * { flex: 1; }
.footer-brand img { width: 128px; }
.footer-brand p { color: rgba(255,255,255,.5); margin: 0 0 1.5em; }
.footer-seal { display: flex; justify-content: flex-start; padding-right: 80px; }
.footer-address { padding-top: 30px; flex: 1.14; }
.footer-address p { margin: 0; }
.footer-menu { padding-top: 25px; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 10px 15px; }
.footer-menu a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-bold); }
.footer-menu .icon { width: 24px; height: 25px; }
.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.13); margin: 30px 0 40px; }
.footer-copy { text-align: center; font-size: 13px; margin: 0; padding-bottom: 60px; }

/* Fixed "reveal" footer, as on the original site (desktop only). */
@media (min-width: 1025px) and (min-height: 700px) {
  .site-content { position: relative; z-index: 1; background: #fff; }
  .site-footer { position: sticky; bottom: 0; z-index: 0; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .hero { padding: 140px 0; }
  .hero__inner { flex-direction: column-reverse; align-items: center; }
  .hero__card { width: 100%; }
  .hero__media img { width: 350px; margin: 0 0 40px; }
  .features { padding: 70px 0 45px; }
  .approach { padding: 60px 0; background-attachment: scroll; }
  .consult .cta-box { padding: 55px 15px; }
  .sol-hero__inner, .dd__inner { flex-direction: column; }
  .sol-hero__text, .sol-hero__media { width: 100%; }
  .sol-hero__text h1 { padding-top: 20px; }
  .sol-hero__media { margin-top: 30px; }
  .dd__media { width: 100%; margin-top: 30px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card { padding: 55px 20px 35px; }
  .footer-seal { padding-right: 0; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .hero { padding: 60px 0 80px; }
  .hero__card h1 { line-height: 1.4; }
  .features { padding: 60px 0 35px; }
  .features__grid { grid-template-columns: 1fr; }
  .marquee__item { width: 200px; }
  .consult .cta-box { flex-direction: column; border-radius: 0; padding: 50px 15px; }
  .about { padding-bottom: 80px; }
  .logo-row > * { flex-basis: 40%; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-bottom: 1px solid #d7d7d7; }
  .stats > div:last-child { border-bottom: 0; }
  .benefits__grid { grid-template-columns: 1fr; }
  .sol-cta .cta-box { flex-direction: column; align-items: flex-start; }
  .sol-cta__actions { margin-left: 0; }
  .mobile-only { display: inline-flex !important; }
  .contact { padding-top: 60px; }
  .contact__card { margin-bottom: 30px; padding: 45px 20px 25px; }
  .footer-support .container,
  .footer-row { grid-template-columns: 1fr; flex-direction: column; gap: 20px; }
  .footer-support .container > div:first-child { border-left: 0; border-bottom: 1px solid #000; padding-bottom: 20px; }
  .footer-support .container > div + div { margin-top: 20px; }
}
