/* ==========================================================================
   site.css — لایه‌ی نهایی استایل نسخه Next.js (آخرین فایل بارگذاری می‌شود)
   جایگزین افزونه‌های jQuery قالب: انیمیشن‌ها، اسلایدرها، پاپ‌آپ ویدیو و فرم‌ها
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
}
address {
  font-style: normal;
  margin: 0;
}
::selection {
  background: rgba(199, 149, 74, 0.28);
  color: var(--procounsel-primary, #19223a);
}
:focus-visible {
  outline: 2px solid var(--procounsel-base, #c7954a);
  outline-offset: 3px;
}

/* لینک پرش به محتوا برای کاربران صفحه‌کلید */
.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100000;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--procounsel-primary, #19223a);
  color: #fff;
}
.skip-link:not(:focus):not(:active) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus {
  color: #fff;
}

/* ریست دکمه‌هایی که در قالب اصلی span/div بودند */
.mobile-nav__btn,
.mobile-nav__close,
.scroll-to-top,
.accrodion-title,
.owl-dot,
.k-modal__close {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.scroll-to-top {
  color: var(--procounsel-primary, #19223a);
}
.scroll-to-top__icon {
  display: none;
}
@media (max-width: 767px) {
  .scroll-to-top {
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    transform: none;
    background-color: var(--procounsel-primary, #19223a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(14, 11, 6, 0.25);
  }
  .scroll-to-top.show {
    bottom: 16px;
  }
  .scroll-to-top__icon {
    display: block;
    font-size: 15px;
  }
  .scroll-to-top__text,
  .scroll-to-top__wrapper {
    display: none;
  }
}
.procounsel-btn[disabled] {
  opacity: 0.65;
  pointer-events: none;
}

/* ---------- انیمیشن ورود عناصر (جایگزین WOW.js و GSAP) ---------- */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-48px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(48px, 0, 0); }
  to { opacity: 1; transform: none; }
}
.animated.fadeInUp { animation-name: fadeInUp; }
.animated.fadeInLeft { animation-name: fadeInLeft; }
.animated.fadeInRight { animation-name: fadeInRight; }

/* opacity به‌جای visibility تا لینک‌های پنهان با Tab قابل دسترسی بمانند */
.js-reveal .wow:not(.is-inview) {
  opacity: 0;
}

/* تیترها کلمه‌به‌کلمه ظاهر می‌شوند */
.split .w {
  display: inline-block;
}
.sec-title__title .w {
  color: inherit;
}
.js-reveal .split .w {
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js-reveal .split.is-inview .w {
  opacity: 1;
  transform: none;
}
.js-reveal .split-fade {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.js-reveal .split-fade.is-inview {
  opacity: 1;
  transform: none;
}

/* پرده‌ی تصاویر */
.bw-img-anim-left,
.bw-img-anim-right {
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.js-reveal .bw-img-anim-left:not(.is-inview) {
  clip-path: inset(0 100% 0 0);
}
.js-reveal .bw-img-anim-right:not(.is-inview) {
  clip-path: inset(0 0 0 100%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal .wow,
  .js-reveal .split .w,
  .js-reveal .split-fade,
  .js-reveal .bw-img-anim-left,
  .js-reveal .bw-img-anim-right {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- هدر ---------- */
.mobile-nav__btn {
  cursor: pointer;
}
.main-menu .main-menu__list > li > a {
  position: relative;
}
.sticky-header--cloned {
  box-shadow: 0 10px 30px rgba(14, 11, 6, 0.18);
}
.mobile-nav__contact a {
  color: inherit;
}
.mobile-nav__contact a[href^="mailto:"] {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mobile-nav__content .main-menu__list > li.current > a {
  color: var(--procounsel-base, #c7954a);
}

/* ---------- اسلایدر اصلی ---------- */
.hero-slider.owl-carousel {
  direction: rtl;
}
.hero-slider {
  display: grid;
  touch-action: pan-y;
  user-select: none;
}
.hero-slider > .item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slider > .item.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slider > .owl-dots {
  z-index: 2;
}
.hero-slider .owl-dot {
  cursor: pointer;
}

/* ---------- کاروسل‌ها (Embla) ---------- */
.k-carousel.owl-carousel {
  direction: rtl;
  display: block;
  position: relative;
}
.k-carousel { --pv: var(--pv-base, 1); }
@media (min-width: 576px) { .k-carousel { --pv: var(--pv-sm, 1); } }
@media (min-width: 768px) { .k-carousel { --pv: var(--pv-md, 1); } }
@media (min-width: 992px) { .k-carousel { --pv: var(--pv-lg, 1); } }
@media (min-width: 1200px) { .k-carousel { --pv: var(--pv-xl, 1); } }

.k-carousel__viewport {
  overflow: hidden;
  /* فضای کافی برای سایه‌ی کارت‌ها */
  padding: 12px 0 34px;
  margin: -12px 0 -34px;
}
.k-carousel__track {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-inline-start: calc(var(--gap, 30px) * -1);
}
.k-carousel__slide {
  flex: 0 0 calc(100% / var(--pv));
  min-width: 0;
  padding-inline-start: var(--gap, 30px);
}
.k-carousel .owl-dots .owl-dot {
  cursor: pointer;
}
.barnds-one .k-carousel__viewport {
  padding: 0;
  margin: 0;
}
.barnds-one__img img {
  margin: 0 auto;
}

/* ---------- پاپ‌آپ ویدیو ---------- */
.k-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 11, 6, 0.86);
  backdrop-filter: blur(4px);
  animation: kFade 300ms ease;
}
.k-modal__body {
  position: relative;
  width: min(960px, 100%);
}
.k-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.k-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.k-modal__close {
  position: absolute;
  top: -48px;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 250ms ease;
}
.k-modal__close:hover {
  background: var(--procounsel-base, #c7954a);
}
@keyframes kFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- فرم‌ها ---------- */
.form-one__control {
  position: relative;
}
.form-one__control input[aria-invalid="true"],
.form-one__control textarea[aria-invalid="true"] {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}
.form-one__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #d9534f;
}
.contact-one .form-one__error {
  color: #ff8a80;
}
.contact-one--page .form-one__error {
  color: #d9534f;
}
.form-one__status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
}
.form-one__status--ok {
  background: rgba(46, 160, 67, 0.12);
  color: #1f7a35;
  border: 1px solid rgba(46, 160, 67, 0.3);
}
.contact-one:not(.contact-one--page) .form-one__status--ok {
  background: rgba(46, 160, 67, 0.2);
  color: #d6f5dc;
}
.form-one__status--error {
  background: rgba(217, 83, 79, 0.1);
  color: #b52b27;
  border: 1px solid rgba(217, 83, 79, 0.3);
}
.form-one__control--status:empty {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
}

/* ---------- آکاردئون سوالات ---------- */
.accrodion-heading {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.faq-one__accordion .accrodion-title {
  width: 100%;
  text-align: right;
  color: inherit;
}
.faq-one__accordion .accrodion-title__text {
  flex: 1;
  position: static;
  padding: 12px 14px 12px 0;
  margin: 0;
  font-size: 15.5px;
  line-height: 27px;
  font-weight: 600;
  color: var(--procounsel-primary, #19223a);
  transition: color 400ms ease;
}
.faq-one__accordion .active .accrodion-title__text {
  color: #fff;
}
.faq-one__accordion .accrodion-title:hover .accrodion-title__text {
  color: var(--procounsel-base, #c7954a);
}
.faq-one__accordion .active .accrodion-title:hover .accrodion-title__text {
  color: #fff;
}
.faq-one__accordion .accrodion__number {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.accrodion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.accrodion.active .accrodion-content {
  grid-template-rows: 1fr;
}
.accrodion-content__clip {
  min-height: 0;
  overflow: hidden;
}
.faq-one__accordion .accrodion-content .inner {
  padding-top: 16px;
}
.faq-one__accordion .accrodion:not(.active) .accrodion-content .inner {
  border-color: transparent;
}

/* ---------- خدمات ---------- */
.service-one__item {
  height: 100%;
  scroll-margin-top: 120px;
}
.service-one__item:target {
  box-shadow: 0 0 0 2px var(--procounsel-base, #c7954a), 0 20px 50px rgba(199, 149, 74, 0.18);
}
.section-more {
  margin-top: 50px;
}

/* ---------- مقالات ---------- */
.blog-list__item__date .blog-list__item__day,
.blog-details__date .blog-details__day {
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
}
.blog-list__item__image img,
.blog-details__image img {
  width: 100%;
  aspect-ratio: 770 / 449;
  object-fit: cover;
}
.blog-card__image__link,
.blog-list__item__image__link {
  display: block;
}
.blog-card__title a,
.blog-list__item__title a {
  color: inherit;
}
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #f6f3ee;
  border: 1px solid rgba(199, 149, 74, 0.25);
  color: var(--procounsel-primary, #19223a);
  font-weight: 500;
}
.blog-filter__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.blog-empty {
  padding: 40px;
  text-align: center;
  border-radius: 16px;
  background: #f6f3ee;
}
.sidebar__count {
  margin-inline-start: auto;
  padding-inline-start: 8px;
  font-size: 13px;
  opacity: 0.7;
}
.sidebar__categories li.active a {
  color: var(--procounsel-base, #c7954a);
}
.sidebar__tags a.active {
  background-color: var(--procounsel-base, #c7954a);
  border-color: var(--procounsel-base, #c7954a);
  color: #fff;
}
.sidebar__cta p {
  margin-bottom: 20px;
  line-height: 1.9;
}
.blog-details__body a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-details__tags .sidebar__tags a:not(:last-child)::after {
  content: "،";
}
.service-one__item {
  display: flex;
  flex-direction: column;
}
.service-one__item__image {
  margin-top: auto;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 30px;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(25, 34, 58, 0.1);
  background: #fff;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.post-nav__item:hover {
  border-color: var(--procounsel-base, #c7954a);
  box-shadow: 0 14px 30px rgba(25, 34, 58, 0.08);
  transform: translateY(-2px);
}
.post-nav__item--next {
  text-align: left;
}
.post-nav__label {
  font-size: 13px;
  color: var(--procounsel-base, #c7954a);
}
.post-nav__title {
  color: var(--procounsel-primary, #19223a);
  font-weight: 600;
  line-height: 1.7;
}
@media (max-width: 575px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav__item--next {
    text-align: right;
  }
}
.comments-one__card--reply {
  margin-inline-start: 48px;
}
@media (max-width: 575px) {
  .comments-one__card--reply {
    margin-inline-start: 20px;
  }
}

/* ---------- صفحه ۴۰۴ ---------- */
.not-found {
  padding: 100px 0 120px;
}
.not-found__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.not-found__code {
  margin: 0;
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  color: var(--procounsel-base, #c7954a);
  opacity: 0.9;
}
.not-found__title {
  margin: 20px 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--procounsel-primary, #19223a);
}
.not-found__text {
  margin-bottom: 32px;
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
