/* ===== Local Font Faces ===== */
@font-face{
  font-family: "VazirLocal";
  src: url("./assets/Vazir-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "VazirLocal";
  src: url("./assets/Vazir-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --hp-blue:#0096D6;
  --text:#0b1220;
  --muted:#5a6476;
  --bg:#ffffff;
  --bg-soft:#f5f8fb;
  --border:#e6edf4;
  --shadow: 0 12px 30px rgba(11,18,32,.10);
  --shadow-soft: 0 10px 22px rgba(11,18,32,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "VazirLocal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  color:var(--text);
  background:var(--bg);
  line-height:1.75;
}

a{color:inherit; text-decoration:none}
a:focus, button:focus, input:focus, select:focus, textarea:focus{
  outline:3px solid rgba(0,150,214,.25);
  outline-offset:2px;
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.w-full{width:100%}
.muted{color:var(--muted)}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, rgba(0,150,214,.10), rgba(0,150,214,.04));
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
}
.topbar__note{margin:0; color:var(--muted); font-size:14px}
.topbar__phone{
  font-weight:900;
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  padding:6px 12px;
  border-radius:999px;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 180px;
}
.brand__meta{display:flex; flex-direction:column; line-height:1.2}
.brand__name{font-weight:900}
.brand__sub{color:var(--muted); font-size:13px; margin-top:4px}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
}
.nav a{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
}
.nav a:hover{
  background: rgba(0,150,214,.08);
  color: var(--text);
}

.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  border:1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight:900;
  cursor:pointer;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: var(--hp-blue);
  color:#fff;
  box-shadow: 0 12px 26px rgba(0,150,214,.22);
}
.btn--primary:hover{box-shadow: 0 16px 34px rgba(0,150,214,.28)}
.btn--ghost{
  background:#fff;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover{background: rgba(245,248,251,.9)}

/* Hamburger */
.hamburger{
  width:44px;
  height:44px;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  gap:5px;
  flex-direction:column;
}
.hamburger span{
  width:18px;
  height:2px;
  background: var(--text);
  border-radius:2px;
}

/* Mobile nav */
.mobile-nav{
  display:none;
  border-top:1px solid var(--border);
  background:#fff;
}
.mobile-nav__inner{
  padding: 10px 0 16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mobile-nav a{
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.mobile-nav a:hover{background: rgba(0,150,214,.08); color:var(--text)}
.mobile-nav__cta{
  display:grid;
  gap:10px;
  margin-top:10px;
}

/* Hero */
.hero{
  padding: 34px 0 10px;
  background:
    radial-gradient(900px 420px at 80% 15%, rgba(0,150,214,.14), transparent 55%),
    radial-gradient(760px 420px at 10% 10%, rgba(0,150,214,.08), transparent 50%),
    linear-gradient(180deg, #ffffff, #ffffff);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:center;
}
.badge-row{display:flex; gap:10px; flex-wrap:wrap}
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(0,150,214,.10);
  color: var(--text);
  border:1px solid rgba(0,150,214,.18);
  font-size:13px;
  font-weight:900;
}
.badge--muted{
  background:#fff;
  border-color: var(--border);
  color: var(--muted);
}

.hero__title{
  font-size: 40px;
  line-height:1.25;
  margin: 12px 0 10px;
  letter-spacing: -0.2px;
  font-weight:900;
}
.hero__lead{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.hero__cta{display:flex; gap:10px; flex-wrap:wrap}

.hero__trust{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.trust-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  box-shadow: var(--shadow-soft);
}
.trust-item__kpi{
  display:block;
  font-size:18px;
  font-weight:900;
}
.trust-item__label{
  display:block;
  color: var(--muted);
  font-size: 13px;
}

/* Hero visual (Option 1) */
.hero__visual{
  display:flex;
  justify-content:center;
}

.hero-media{
  width:min(460px, 100%);
  border-radius: 26px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:#fff;
}

/* ✅ اینجا گوشه های خود عکس گرد می شود */
.hero-media__img{
  width:100%;
  height: 350px;
  display:block;

  /* اگر می خواهی خود تصویر داخل کادر درست بنشیند */
  object-fit: cover;

  /* ✅ گرد شدن گوشه های تصویر */
  border-radius: 26px 26px 26px 26px;

  /* اگر می خواهی فاصله داخلی داشته باشد */
  padding: 22px;

  background:
    radial-gradient(900px 420px at 70% 20%, rgba(0,150,214,.14), transparent 55%),
    radial-gradient(760px 420px at 20% 10%, rgba(0,150,214,.08), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

/* اگر padding داری، بهتر است مطمئن شو عکس از گوشه ها بیرون نزند */
.hero-media__img{
  box-sizing: border-box;
}

.hero-media__cap{
  display:flex;
  gap:8px;
  padding: 14px 16px 16px;
  border-top:1px solid var(--border);
  background: rgba(245,248,251,.65);
}

/* Tags */
.tag{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(0,150,214,.12);
  border:1px solid rgba(0,150,214,.18);
}
.tag--muted{
  background:#fff;
  border-color: var(--border);
  color: var(--muted);
}

/* Sections */
.section{padding: 54px 0}
.section--soft{background: var(--bg-soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.section__head{margin-bottom: 18px}
.section__title{font-size: 26px; margin:0 0 6px; font-weight:900}
.section__desc{margin:0; color: var(--muted)}

/* Grid helpers */
.grid{display:grid; gap:14px}
.cards{grid-template-columns: repeat(4, 1fr); margin-top: 18px}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card__icon{font-size:22px}
.card__title{margin:10px 0 6px; font-size:16px; font-weight:900}
.card__text{margin:0 0 10px; color: var(--muted); font-size:14px}
.card__link{
  color: var(--hp-blue);
  font-weight:900;
  font-size:14px;
}

.strip{
  margin-top: 18px;
  background: #fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}
.strip__title{margin:0 0 4px; font-size:16px; font-weight:900}
.strip__text{margin:0; color: var(--muted)}
.strip__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Why */
.why{grid-template-columns: repeat(4, 1fr); margin-top: 18px}
.why__item{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.why__title{margin:0 0 6px; font-size:16px; font-weight:900}
.why__text{margin:0; color: var(--muted); font-size:14px}

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin: 18px 0 0;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display:flex;
  gap:12px;
}
.step__num{
  width:34px; height:34px;
  border-radius: 999px;
  background: rgba(0,150,214,.14);
  border:1px solid rgba(0,150,214,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.step__title{margin:0 0 4px; font-size:15px; font-weight:900}
.step__text{margin:0; color:var(--muted); font-size:14px}

/* Accordion */
.accordion{margin-top:18px; display:grid; gap:10px}
.acc-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
}
.acc-btn{
  width:100%;
  text-align:right;
  padding: 14px 14px;
  background:#fff;
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:900;
}
.acc-icon{
  width:22px; height:22px;
  border-radius: 999px;
  border:1px solid var(--border);
  position:relative;
  flex: 0 0 auto;
}
.acc-icon::before, .acc-icon::after{
  content:"";
  position:absolute;
  inset: 0;
  margin:auto;
  background: var(--muted);
  border-radius:2px;
}
.acc-icon::before{width:10px; height:2px}
.acc-icon::after{width:2px; height:10px}
.acc-btn[aria-expanded="true"] .acc-icon::after{display:none}
.acc-panel{
  padding: 0 14px 14px;
  color: var(--muted);
  border-top:1px solid var(--border);
}
.acc-panel p{margin:10px 0 0}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.contact__cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.mini{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.mini__label{color: var(--muted); font-size:13px}
.mini__value{font-weight:900}

.contact__actions{display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap}

.form{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
.field__label{font-size:13px; color: var(--muted); font-weight:900}
.field__input{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  background:#fff;
}
.field__textarea{resize: vertical; min-height: 110px}
.form__hint{margin:10px 0 0; color: var(--muted); font-size:12px}

/* Footer */
.footer{
  padding: 26px 0;
  border-top:1px solid var(--border);
  background:#fff;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 16px;
  align-items:start;
}
.footer__brand{display:flex; align-items:center; gap:10px}
.footer__logo{
  width:28px;
  height:28px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  padding:4px;
}
.footer__text{margin:10px 0 0; color:var(--muted)}
.footer__col h3{margin:0 0 10px; font-size:14px; font-weight:900}
.footer__col a{display:block; color:var(--muted); padding:6px 0}
.footer__col a:hover{color:var(--text)}
.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size:12px;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index: 80;
}
.modal.is-open{display:block}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,18,32,.55);
}
.modal__panel{
  position:relative;
  width: min(520px, calc(100% - 24px));
  margin: 6vh auto 0;
  background:#fff;
  border-radius: 22px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
}
.modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--border);
  padding-bottom: 10px;
}
.modal__title{margin:0; font-size:16px; font-weight:900}
.icon-btn{
  width:40px; height:40px;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.modal__actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.modal__form{padding-top: 10px}

/* Toast */
.toast{
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  display:grid;
  gap:10px;
  z-index: 90;
}
.toast__item{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .hamburger{display:flex}
  .mobile-nav.is-open{display:block}

  .hero__grid{grid-template-columns: 1fr; gap: 16px}
  .hero__title{font-size: 34px}

  .cards{grid-template-columns: repeat(2, 1fr)}
  .why{grid-template-columns: repeat(2, 1fr)}
  .steps{grid-template-columns: repeat(2, 1fr)}

  .contact{grid-template-columns: 1fr}
  .contact__cards{grid-template-columns: 1fr}
  .footer__grid{grid-template-columns: 1fr}
}

@media (max-width: 520px){
  .topbar__inner{flex-direction:column; align-items:flex-start}
  .hero__title{font-size: 30px}
  .hero__trust{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .steps{grid-template-columns: 1fr}
  .form__row{grid-template-columns: 1fr}
  .modal__actions{grid-template-columns: 1fr}
  .hero-media__img{height: 260px; padding: 22px;}
}
/* =========================
   MOBILE RESPONSIVE FIX PACK
   Paste at the END of style.css
========================= */

/* 1) جلوگیری از اسکرول افقی */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

*, *::before, *::after{
  box-sizing:border-box;
}

/* هر تصویر/ویدیو/iframe هرگز از عرض صفحه بیرون نزند */
img, video, iframe{
  max-width:100%;
  height:auto;
}

/* 2) هدر و منوی موبایل: منو از کادر خارج نشود */
.header{
  overflow: visible;
}

.mobile-nav{
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.mobile-nav__inner{
  width:100%;
  max-width:100%;
}

/* اگر روی بعضی موبایل ها باز هم منو بیرون می زد، این کمک می کند */
.mobile-nav a,
.mobile-nav__cta,
.mobile-nav__cta .btn{
  max-width:100%;
}

/* 3) هیرو و کارت تصویر: overflow و padding تصویر باعث بیرون زدگی نشود */
.hero__grid{
  min-width:0; /* جلوگیری از بیرون زدن grid item ها */
}

.hero__content, .hero__visual{
  min-width:0;
}

.hero-media{
  max-width:100%;
}

.hero-media__img{
  max-width:100%;
  box-sizing:border-box;
}

/* 4) مودال: در موبایل نصف فرم بیرون نماند */
.modal{
  /* به جای margin/top ثابت، مرکزسازی درست */
  display:none;
  align-items:center;
  justify-content:center;
  padding:12px;
}

.modal.is-open{
  display:flex;
}

.modal__panel{
  width: min(520px, 100%);
  max-width:100%;
  margin:0;
  max-height: calc(100vh - 24px); /* کل فرم داخل صفحه بماند */
  overflow:auto;                  /* اگر بلند شد اسکرول داخلی بگیرد */
  -webkit-overflow-scrolling: touch;
}

/* برای موبایل های خیلی کوچک بهتر است مودال کمی بالاتر بنشیند */
@media (max-width: 520px){
  .modal{
    align-items:flex-start;
    padding:12px;
  }

  .modal__panel{
    max-height: calc(100vh - 24px);
  }
}

/* 5) هر عنصر طولانی که باعث overflow شود (متن/لینک/شماره) نشکند */
.card, .strip, .trust-item, .mini, .quote, .acc-item{
  min-width:0;
}

.topbar__note, .topbar__phone, .mini__value, .card__link{
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* =========================
   FIX: Hamburger out of viewport (mobile)
   Paste at END of style.css
========================= */

@media (max-width: 980px){

  /* هدر اجازه بدهد آیتم ها کوچک شوند و بیرون نزنند */
  .header__inner{
    min-width:0;
    gap:12px;
  }

  /* لینک برند (لوگو + متن) اجازه بدهد جمع شود */
  .brand{
    min-width:0;
    max-width: calc(100% - 120px); /* جا برای همبرگر و دکمه ها */
  }

  /* متن برند اگر جا کم شد به یک خط و با ... */
  .brand__meta{
    min-width:0;
  }
  .brand__name,
  .brand__sub{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* تصویر لوگو از عرض غیرمنطقی بیرون نزند */
  .brand img{
    max-width: 92px;  /* قابل تنظیم */
    height:auto;
  }

  /* اکشن ها جمع شوند و بیرون نزنند */
  .header__actions{
    min-width:0;
    flex: 0 0 auto;
    gap:8px;
  }

  /* همبرگری همیشه داخل صفحه بماند */
  .hamburger{
    flex: 0 0 auto;
    margin-right: 0;
  }

  /* اگر دکمه تماس فوری باعث تنگی می شود، در موبایل مخفی شود */
  .header__actions .btn--ghost{
    display:none;
  }
}

/* موبایل خیلی کوچک: فقط لوگو + همبرگر بماند */
@media (max-width: 420px){
  .brand__sub{display:none;}
  .brand img{max-width: 80px;}
}