/* ==========================================================================
   Yektano — yektano.ir
   Bootstrap 5.3 (RTL) is used for grid/utilities only. Everything else is BEM.
   Sections: 1 Tokens · 2 Base · 3 Icons · 4 CTA · 5 Header · 6 Hero · 7 Sections
             8 Cards · 9 Steps · 10 FAQ · 11 Final CTA · 12 Inner pages
             13 Footer · 14 Mobile bar · 15 Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #00bcd5;
  --brand-strong: #00a3b9;
  --brand-ink: #007888;          /* brand colour used as text on light bg */
  --brand-soft: rgba(0, 188, 213, .1);
  --on-brand: #06191d;           /* text on brand buttons (AA contrast) */

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6f7;          /* light gray */
  --ink: #0e1619;                /* black */
  --ink-soft: #4b5b61;           /* dark gray */
  --line: #e1e8ea;
  --line-strong: #b4c3c8;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 22, 25, .05), 0 12px 32px -12px rgba(14, 22, 25, .14);
  --header-h: 68px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

[data-bs-theme="dark"] {
  --brand-ink: #3fd9ee;
  --brand-soft: rgba(0, 188, 213, .15);

  --bg: #0c1316;
  --surface: #131d21;
  --surface-2: #101a1d;
  --ink: #f1f6f7;
  --ink-soft: #a7b9be;
  --line: #22333a;
  --line-strong: #3b5159;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  padding-bottom: 88px;           /* room for the mobile WhatsApp bar */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.5; }
p { color: var(--ink-soft); }
a { color: var(--brand-ink); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* 3. Icons ----------------------------------------------------------------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.icon-badge .icon { width: 28px; height: 28px; }

/* 4. CTA buttons ----------------------------------------------------------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .6rem 1.4rem;
  border: 2px solid transparent; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cta .icon { width: 1.35em; height: 1.35em; }
.cta--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px rgba(0, 188, 213, .7); }
.cta--primary:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-2px); }
.cta--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cta--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.cta--dark { background: var(--ink); color: var(--bg); }
.cta--dark:hover { color: var(--bg); transform: translateY(-2px); }
.cta--lg { min-height: 56px; padding: .7rem 1.8rem; font-size: 1.08rem; border-radius: 16px; }
.cta--sm { min-height: 40px; padding: .35rem 1rem; font-size: .92rem; border-radius: 12px; }
.cta--block { display: flex; width: 100%; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: .75rem; }
.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.site-header__cta { display: none; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.2px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.icon-btn .icon { width: 22px; height: 22px; }

.theme-toggle__sun { display: none; }
[data-bs-theme="dark"] .theme-toggle__sun { display: block; }
[data-bs-theme="dark"] .theme-toggle__moon { display: none; }

.nav-main {
  position: absolute; inset-inline: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .75rem 1rem 1.25rem; display: none; box-shadow: var(--shadow);
}
.nav-main.is-open { display: block; }
.nav-main__list { list-style: none; margin: 0; padding: 0; }
.nav-main__link {
  display: block; padding: .7rem .5rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav-main__link:hover, .nav-main__link[aria-current="page"] { color: var(--brand-ink); }
.nav-main__extra { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; }

@media (min-width: 992px) {
  .nav-main {
    position: static; display: block; background: transparent; border: 0;
    padding: 0; box-shadow: none; margin-inline-start: 1.5rem;
  }
  .nav-main__list { display: flex; gap: .25rem; }
  .nav-main__link { border: 0; padding: .45rem .85rem; border-radius: 10px; font-size: .97rem; }
  .nav-main__link:hover { background: var(--brand-soft); }
  .nav-main__link[aria-current="page"] { background: var(--brand-soft); }
  .nav-main__extra { display: none; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; padding: 2rem 0 2.25rem;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 20%, var(--brand-soft), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem;
  padding: .25rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface); color: var(--brand-ink); border: 1px solid var(--line);
}
.hero__title { font-size: clamp(1.65rem, 6.4vw, 3rem); margin-bottom: .8rem; }
.hero__title em { font-style: normal; color: var(--brand-ink); }
.hero__description { font-size: 1.02rem; max-width: 36rem; margin-bottom: 1.4rem; }
.hero__actions { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.hero__prices { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.hero__price {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-soft);
}
.hero__price strong { color: var(--ink); }
.hero__art { max-width: 340px; margin: 1.25rem auto 0; }

@media (min-width: 576px) {
  .hero__actions { flex-direction: row; }
  .hero__art { max-width: 420px; }
}
@media (min-width: 992px) {
  .hero { padding: 4.5rem 0 4.5rem; }
  .hero__art { max-width: 520px; margin: 0 auto; }
  .hero__description { font-size: 1.12rem; }
}

/* Illustration (line art) */
.illo { display: block; width: 100%; height: auto; overflow: visible; }
.illo__line { fill: none; stroke: var(--line-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.illo__ink { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.illo__accent { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.illo__surface { fill: var(--surface); }
.illo__tint { fill: var(--brand-soft); }
.illo__dash { stroke-dasharray: 5 7; }

/* 7. Sections -------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }
.section__title { font-size: clamp(1.4rem, 4.6vw, 2.2rem); margin-bottom: .6rem; }
.section__lead { font-size: 1.03rem; margin: 0; }
.section__foot { margin-top: 1.75rem; text-align: center; }
.section__note { max-width: 40rem; margin: 1.5rem auto 0; text-align: center; font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 992px) { .section { padding: 5rem 0; } }

.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__list { display: grid; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: .9rem 0; }
.trust__item { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .93rem; color: var(--ink); }
.trust__item .icon { color: var(--brand-ink); }
@media (min-width: 768px) {
  .trust__list { grid-template-columns: repeat(3, 1fr); justify-items: center; padding: 1.1rem 0; }
}

/* 8. Cards ----------------------------------------------------------------- */
.card-yk {
  height: 100%; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card-yk:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow); }
.card-yk__title { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.card-yk__text { margin: 0; font-size: .96rem; }

/* Two-choice (pricing) cards */
.choice {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem; background: var(--surface);
  border: 2px solid var(--line); border-radius: 24px;
}
.choice--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.choice__tag {
  position: absolute; top: -14px; inset-inline-start: 1.5rem; padding: .15rem .9rem;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 700;
}
.choice__title { font-size: 1.4rem; margin: 1rem 0 .5rem; }
.choice__text { margin-bottom: 1.1rem; }
.choice__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.choice__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.choice__list .icon { color: var(--brand-ink); margin-top: .3rem; }
.choice__buy { margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .35rem; }
.price__label { width: 100%; font-size: .82rem; color: var(--ink-soft); }
.price__amount { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.price__unit { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.badge-yk {
  display: inline-block; padding: .1rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--brand); color: var(--on-brand);
}
.choice__hint { display: flex; align-items: center; gap: .4rem; font-size: .88rem; margin: 0 0 1rem; }
.choice__hint .icon { color: var(--brand-ink); }

/* Maps */
.map-card { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.map-card .icon-badge { width: 52px; height: 52px; flex: none; }
.map-card__name { font-size: 1.05rem; margin: 0 0 .2rem; }
.map-card__text { margin: 0; font-size: .93rem; }
.map-card__name .latin { font-weight: 700; }

/* Samples (hidden until real data exists) */
.samples__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.sample__shots { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
.sample__shot { margin: 0; position: relative; }
.sample__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.sample__label { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--ink); color: var(--bg); font-size: .72rem; padding: 0 .5rem; border-radius: 6px; }
.sample__name { font-size: 1.05rem; margin: 0; }
.sample__type { margin: 0 0 .3rem; font-size: .9rem; }
.sample__map { font-size: .88rem; font-weight: 600; }

/* 9. Steps ----------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps__item { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
.steps__num {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--brand); color: var(--brand-ink); background: var(--surface);
  font-weight: 800; font-size: 1.25rem;
}
.steps__title { font-size: 1.1rem; margin: .1rem 0 .25rem; }
.steps__text { margin: 0; font-size: .96rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps__item { flex-direction: column; align-items: center; text-align: center; }
  .steps__item:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; inset-inline-start: calc(50% + 40px);
    width: calc(100% + 2rem - 80px); border-top: 2px dashed var(--line-strong);
  }
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.checklist .icon { color: var(--brand-ink); margin-top: .35rem; }

/* 10. FAQ ------------------------------------------------------------------ */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item[open] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question .icon { color: var(--brand-ink); transition: transform .2s ease; }
.faq__item[open] .faq__question .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 1.15rem 1.1rem; margin: 0; }

/* 11. Final CTA ------------------------------------------------------------ */
.final-cta { padding: 3rem 0; }
.final-cta__box {
  position: relative; overflow: hidden; text-align: center; padding: 2.5rem 1.25rem;
  border-radius: 28px; background: var(--ink); color: var(--bg);
}
.final-cta__box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, rgba(0, 188, 213, .35), transparent 70%);
}
.final-cta__box > * { position: relative; }
.final-cta__title { color: var(--bg); font-size: clamp(1.45rem, 5vw, 2.4rem); margin-bottom: .6rem; }
.final-cta__text { color: color-mix(in srgb, var(--bg) 75%, transparent); margin-bottom: 1.5rem; }
.final-cta__actions { display: flex; flex-direction: column; gap: .75rem; max-width: 26rem; margin-inline: auto; }
.final-cta .cta--ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.final-cta .cta--ghost:hover { color: var(--brand); border-color: var(--brand); }
@media (min-width: 576px) {
  .final-cta__actions { flex-direction: row; max-width: none; justify-content: center; }
  .final-cta__box { padding: 3.5rem 2rem; }
}

/* 12. Inner pages ---------------------------------------------------------- */
.page-hero { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-hero__title { font-size: clamp(1.6rem, 5.5vw, 2.5rem); margin-bottom: .5rem; }
.page-hero__lead { max-width: 40rem; margin: 0 0 1.25rem; font-size: 1.05rem; }
@media (min-width: 992px) { .page-hero { padding: 3.5rem 0 2.5rem; } }

.service { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service__title { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-bottom: .5rem; }
.service__block-title { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.service__buy {
  padding: 1.5rem; background: var(--surface); border: 2px solid var(--brand);
  border-radius: 24px; box-shadow: var(--shadow);
}
@media (min-width: 992px) { .service__buy { position: sticky; top: calc(var(--header-h) + 16px); } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare th, .compare td { padding: .85rem 1rem; text-align: start; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.compare thead th { background: var(--surface-2); color: var(--ink); }
.compare tbody th { color: var(--ink); width: 22%; }
.compare td { color: var(--ink-soft); }
.compare tr:last-child > * { border-bottom: 0; }

.contact-card { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card__title { font-size: 1.1rem; margin: 0 0 .25rem; }
.contact-card__text { margin: 0 0 .9rem; font-size: .95rem; }
.contact-card__value { font-weight: 700; color: var(--ink); font-size: 1.15rem; }

/* 13. Footer --------------------------------------------------------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; }
.footer__about { max-width: 22rem; margin: .75rem 0 0; font-size: .95rem; }
.footer__title { font-size: .95rem; margin-bottom: .75rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__link { color: var(--ink-soft); text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.footer__link:hover { color: var(--brand-ink); }
.footer__bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* 14. Mobile WhatsApp bar -------------------------------------------------- */
.wa-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(14, 22, 25, .25);
}
.wa-bar .cta { min-height: 52px; font-size: 1.05rem; }
@media (min-width: 992px) {
  .wa-bar { display: none; }
  body { padding-bottom: 0; }
}

/* 15. Motion (micro-interactions only) ------------------------------------- */
@keyframes pin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }

.illo__pin { animation: pin-float 3.2s ease-in-out infinite; }
.illo__flow { animation: dash-flow 2.4s linear infinite; }
.illo__ring { transform-box: fill-box; transform-origin: center; animation: pulse-ring 2.6s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
