/* ==========================================================
   MOIT Help Center
   File: help-center.css
   Node: node/274
   Theme: moit_theme_v2
   Scope: Help Center only
   ========================================================== */


/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
  --moit-help-primary: #0b3c5d;
  --moit-help-secondary: #1f7a7a;
  --moit-help-accent: #c19a6b;

  --moit-help-bg: #f8fbfc;
  --moit-help-card: #ffffff;
  --moit-help-border: #d9e7ea;

  --moit-help-text: #243746;
  --moit-help-text-soft: #60707e;

  --moit-help-radius: 18px;
  --moit-help-radius-lg: 28px;

  --moit-help-shadow:
    0 10px 30px rgba(11, 60, 93, .05);

  --moit-help-transition:
    all .28s ease;
}


/* ==========================================================
   PAGE
   ========================================================== */

.moit-help-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.moit-help-page * {
  box-sizing: border-box;
}


/* ==========================================================
   HERO
   ========================================================== */

.moit-help-hero {
  position: relative;
  overflow: hidden;

  margin-bottom: 1.5rem;
  padding: 3.5rem 3rem;

  background:
    linear-gradient(
      135deg,
      #fbfdfd 0%,
      #f5fafb 100%
    );

  border: 1px solid var(--moit-help-border);
  border-radius: var(--moit-help-radius-lg);
}

.moit-help-hero::before {
  content: "";

  position: absolute;

  top: -90px;
  left: -100px;

  width: 320px;
  height: 320px;

  background-image:
    url("/themes/custom/moit_theme_v2/images/moit-pattern.png");

  background-repeat: no-repeat;
  background-size: contain;

  opacity: .045;

  pointer-events: none;
}

.moit-help-hero__content {
  position: relative;
  z-index: 2;

  max-width: 820px;
}

.moit-help-hero__badge {
  display: inline-flex;
  align-items: center;

  margin-bottom: 1rem;
  padding: .55rem 1.15rem;

  background:
    rgba(31, 122, 122, .08);

  color:
    var(--moit-help-secondary);

  border-radius: 999px;

  font-size: .92rem;
  font-weight: 700;
}

.moit-help-hero__title {
  margin: 0 0 1rem;

  color:
    var(--moit-help-primary);

  font-size:
    clamp(2rem, 4vw, 2.9rem);

  line-height: 1.2;
  font-weight: 800;
}

.moit-help-hero__description {
  max-width: 720px;

  margin: 0;

  color:
    var(--moit-help-text-soft);

  font-size: 1.05rem;
  line-height: 2;
}


/* ==========================================================
   SEARCH
   ========================================================== */

.moit-help-search {
  position: relative;

  margin-top: 2rem;
  max-width: 680px;
}

.moit-help-search__input {
  width: 100%;
  height: 62px;

  padding:
    0 1.5rem
    0 4.75rem;

  background:
    #fff;

  border:
    1px solid var(--moit-help-border);

  border-radius: 16px;

  color:
    var(--moit-help-text);

  font-size: 1rem;

  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

.moit-help-search__input::placeholder {
  color: #8b99a4;
}

.moit-help-search__input:focus {
  outline: none;

  border-color:
    rgba(31, 122, 122, .45);

  box-shadow:
    0 0 0 4px
    rgba(31, 122, 122, .08);
}

.moit-help-search__button {
  position: absolute;

  left: 10px;
  top: 50%;

  transform:
    translateY(-50%);

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 12px;

  background:
    var(--moit-help-primary);

  color: #fff;

  cursor: pointer;

  transition:
    var(--moit-help-transition);
}

.moit-help-search__button:hover {
  background:
    var(--moit-help-secondary);

  transform:
    translateY(-50%)
    scale(1.04);
}

.moit-help-search__button svg {
  width: 18px;
  height: 18px;

  display: block;
}


/* ==========================================================
   HERO META
   ========================================================== */

.moit-help-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;

  margin-bottom: 4rem;
}

.moit-help-hero__meta span {
  display: inline-flex;
  align-items: center;

  padding:
    .65rem 1rem;

  background:
    #ffffff;

  border:
    1px solid var(--moit-help-border);

  border-radius:
    999px;

  color:
    var(--moit-help-primary);

  font-size: .92rem;
  font-weight: 600;

  box-shadow:
    0 3px 12px rgba(11, 60, 93, .03);

  transition:
    var(--moit-help-transition);
}

.moit-help-hero__meta span:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(31, 122, 122, .25);

  box-shadow:
    var(--moit-help-shadow);
}


/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.moit-help-section-heading {
  margin-bottom: 2rem;
}

.moit-help-section-heading h2 {
  margin: 0 0 .75rem;

  color:
    var(--moit-help-primary);

  font-size: 1.75rem;
  font-weight: 800;
}

.moit-help-section-heading p {
  margin: 0;

  max-width: 760px;

  color:
    var(--moit-help-text-soft);

  line-height: 1.9;
}

/* ==========================================================
   QUICK ACCESS
   ========================================================== */

.moit-help-shortcuts {
  margin-bottom: 4.5rem;
}

.moit-help-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.moit-help-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 220px;

  padding: 1.75rem;

  background:
    var(--moit-help-card);

  border:
    1px solid var(--moit-help-border);

  border-radius:
    var(--moit-help-radius);

  text-decoration: none;

  transition:
    var(--moit-help-transition);
}

.moit-help-card:hover {
  transform:
    translateY(-6px);

  border-color:
    rgba(31, 122, 122, .25);

  box-shadow:
    var(--moit-help-shadow);
}

.moit-help-card::before {
  content: "";

  position: absolute;

  top: 1.5rem;
  right: 0;

  width: 4px;
  height: 58px;

  border-radius: 3px;

  background:
    linear-gradient(
      to bottom,
      var(--moit-help-secondary),
      rgba(31, 122, 122, .15)
    );
}

.moit-help-card__icon {
  width: 58px;
  height: 58px;

  margin-bottom: 1.25rem;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(31, 122, 122, .10),
      rgba(193, 154, 107, .10)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  color:
    var(--moit-help-secondary);
}

/* ==========================================================
   SVG ICONS
   (يمكن ربطها لاحقاً عبر mask-image أو inline SVG)
   ========================================================== */

.moit-help-icon--guide,
.moit-help-icon--faq,
.moit-help-icon--contact,
.moit-help-icon--services {
  position: relative;
}

.moit-help-icon--guide::before,
.moit-help-icon--faq::before,
.moit-help-icon--contact::before,
.moit-help-icon--services::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  opacity: .9;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.moit-help-card h3 {
  margin: 0 0 .9rem;

  color:
    var(--moit-help-primary);

  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.moit-help-card p {
  margin: 0;

  color:
    var(--moit-help-text-soft);

  line-height: 1.9;
  font-size: .95rem;
}


/* ==========================================================
   FAQ
   ========================================================== */

.moit-help-faq {
  margin-bottom: 1.5rem;
}

.moit-help-faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.moit-help-faq__item {
  background:
    #ffffff;

  border:
    1px solid var(--moit-help-border);

  border-radius: 18px;

  overflow: hidden;

  transition:
    var(--moit-help-transition);
}

.moit-help-faq__item:hover {
  border-color:
    rgba(31, 122, 122, .20);

  box-shadow:
    0 8px 24px
    rgba(11, 60, 93, .04);
}

.moit-help-faq__question {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    1.35rem 1.5rem;

  background: transparent;
  border: 0;

  cursor: pointer;

  text-align: right;

  color:
    var(--moit-help-primary);

  font-size: 1.05rem;
  font-weight: 700;
}

.moit-help-faq__question:focus {
  outline: none;
}

.moit-help-faq__toggle {
  position: relative;

  flex-shrink: 0;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background:
    rgba(31, 122, 122, .08);

  transition:
    transform .28s ease;
}

.moit-help-faq__toggle::before,
.moit-help-faq__toggle::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  background:
    var(--moit-help-secondary);

  transform:
    translate(-50%, -50%);
}

.moit-help-faq__toggle::before {
  width: 14px;
  height: 2px;
}

.moit-help-faq__toggle::after {
  width: 2px;
  height: 14px;
}

.moit-help-faq__answer {
  max-height: 0;
  overflow: hidden;

  padding:
    0 1.5rem;

  color:
    var(--moit-help-text-soft);

  line-height: 2;

  transition:
    max-height .35s ease,
    padding .35s ease;
}

.moit-help-faq__item.is-active
.moit-help-faq__answer {
  max-height: 260px;

  padding:
    0 1.5rem
    1.5rem;
}

.moit-help-faq__item.is-active
.moit-help-faq__toggle {
  transform: rotate(45deg);
}


/* ==========================================================
   MORE FAQ LINK
   ========================================================== */

.moit-help-faq__more {
  display: flex;
  justify-content: center;

  margin-bottom: 4.5rem;
}

.moit-help-faq__more a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;

  padding:
    .85rem 1.4rem;

  background:
    #ffffff;

  border:
    1px solid var(--moit-help-border);

  border-radius:
    999px;

  text-decoration: none;

  color:
    var(--moit-help-primary);

  font-weight: 700;

  transition:
    var(--moit-help-transition);
}

.moit-help-faq__more a:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(31, 122, 122, .25);

  box-shadow:
    var(--moit-help-shadow);
}

.moit-help-faq__more-icon {
  width: 18px;
  height: 18px;

  display: block;

  transition:
    transform .25s ease;
}

.moit-help-faq__more a:hover
.moit-help-faq__more-icon {
  transform:
    translateX(-3px);
}

/* ==========================================================
   GUIDES
   ========================================================== */

.moit-help-guides {
  margin-bottom: 4.5rem;
}

.moit-help-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.moit-help-guide {
  display: flex;
  flex-direction: column;

  padding: 2rem;

  background:
    #ffffff;

  border:
    1px solid var(--moit-help-border);

  border-radius:
    var(--moit-help-radius);

  transition:
    var(--moit-help-transition);
}

.moit-help-guide:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(31, 122, 122, .22);

  box-shadow:
    var(--moit-help-shadow);
}

.moit-help-guide__icon {
  width: 58px;
  height: 58px;

  margin-bottom: 1.25rem;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(11, 60, 93, .08),
      rgba(31, 122, 122, .12)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  color:
    var(--moit-help-secondary);
}

.moit-help-guide h3 {
  margin: 0 0 .9rem;

  color:
    var(--moit-help-primary);

  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
}

.moit-help-guide p {
  margin: 0 0 1.5rem;

  color:
    var(--moit-help-text-soft);

  line-height: 1.9;
}

.moit-help-guide__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  margin-top: auto;

  color:
    var(--moit-help-secondary);

  text-decoration: none;
  font-weight: 700;

  transition:
    var(--moit-help-transition);
}

.moit-help-guide__link:hover {
  color:
    var(--moit-help-primary);
}

.moit-help-guide__external {
  width: 16px;
  height: 16px;

  flex-shrink: 0;

  transition:
    transform .25s ease;
}

.moit-help-guide__link:hover
.moit-help-guide__external {
  transform:
    translateX(-2px)
    translateY(-2px);
}


/* ==========================================================
   CONTACT CTA
   ========================================================== */

.moit-help-contact {
  position: relative;
  overflow: hidden;

  margin-top: 1rem;

  padding: 3rem;

  background:
    linear-gradient(
      135deg,
      #f9fcfc 0%,
      #f4f9fa 100%
    );

  border:
    1px solid var(--moit-help-border);

  border-radius:
    var(--moit-help-radius-lg);
}

.moit-help-contact::before {
  content: "";

  position: absolute;

  left: -80px;
  bottom: -80px;

  width: 240px;
  height: 240px;

  background-image:
    url("/themes/custom/moit_theme_v2/images/moit-pattern.svg");

  background-repeat: no-repeat;
  background-size: contain;

  opacity: .04;

  pointer-events: none;
}

.moit-help-contact__content {
  position: relative;
  z-index: 2;
}

.moit-help-contact h2 {
  margin: 0 0 1rem;

  color:
    var(--moit-help-primary);

  font-size: 2rem;
  font-weight: 800;
}

.moit-help-contact p {
  max-width: 760px;

  margin: 0 0 2rem;

  color:
    var(--moit-help-text-soft);

  line-height: 2;
}


/* ==========================================================
   CTA ACTIONS
   ========================================================== */

.moit-help-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.moit-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  height: 52px;

  padding:
    0 1.6rem;

  border-radius: 14px;

  text-decoration: none;
  font-weight: 700;

  transition:
    var(--moit-help-transition);
}

.moit-help-btn:hover {
  transform:
    translateY(-2px);
}

.moit-help-btn--primary {
  background:
    var(--moit-help-primary);

  color:
    #ffffff;
}

.moit-help-btn--primary:hover {
  background:
    var(--moit-help-secondary);
}

.moit-help-btn--secondary {
  background:
    rgba(31, 122, 122, .08);

  color:
    var(--moit-help-secondary);

  border:
    1px solid rgba(31, 122, 122, .15);
}

.moit-help-btn--secondary:hover {
  background:
    rgba(31, 122, 122, .12);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {

  .moit-help-shortcuts__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .moit-help-guides__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 768px) {

  .moit-help-page {
    padding:
      0 1rem 3rem;
  }

  .moit-help-hero {
    padding:
      2rem 1.5rem;
  }

  .moit-help-hero__title {
    font-size: 2rem;
  }

  .moit-help-search__input {
    height: 56px;
    font-size: .95rem;
  }

  .moit-help-hero__meta {
    gap: .6rem;
    margin-bottom: 3rem;
  }

  .moit-help-hero__meta span {
    width: 100%;
    justify-content: center;
  }

  .moit-help-shortcuts__grid,
  .moit-help-guides__grid {
    grid-template-columns: 1fr;
  }

  .moit-help-card,
  .moit-help-guide {
    min-height: auto;
  }

  .moit-help-card {
    padding: 1.5rem;
  }

  .moit-help-guide {
    padding: 1.5rem;
  }

  .moit-help-faq__question {
    font-size: .98rem;
    line-height: 1.7;
  }

  .moit-help-contact {
    padding:
      2rem 1.5rem;
  }

  .moit-help-contact__actions {
    flex-direction: column;
  }

  .moit-help-btn {
    width: 100%;
  }

}


@media (max-width: 480px) {

  .moit-help-page {
    padding:
      0 .75rem 2.5rem;
  }

  .moit-help-hero {
    border-radius: 22px;
  }

  .moit-help-contact {
    border-radius: 22px;
  }

  .moit-help-card,
  .moit-help-guide,
  .moit-help-faq__item {
    border-radius: 16px;
  }

}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.moit-help-card:focus-visible,
.moit-help-guide__link:focus-visible,
.moit-help-btn:focus-visible,
.moit-help-faq__question:focus-visible,
.moit-help-faq__more a:focus-visible {
  outline: 3px solid rgba(31, 122, 122, .22);
  outline-offset: 3px;
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .moit-help-card,
  .moit-help-guide,
  .moit-help-btn,
  .moit-help-search__button,
  .moit-help-faq__item,
  .moit-help-guide__external,
  .moit-help-faq__more-icon,
  .moit-help-hero__meta span {
    transition: none !important;
  }

}