/* =====================================================================
   آساایده — اصلاحات مشترک همه صفحات (آبان ۱۴۰۵)
   این فایل بعد از استایل‌های اصلی لود می‌شود (از includes/site-header.php)
   ===================================================================== */

/* ---------- فوتر موبایل: فونت بزرگ‌تر، قابل لمس و هم‌تراز ---------- */
@media (max-width: 700px) {
  html body .asaidea-footer .footer-main {
    gap: 0 !important;
    align-items: stretch !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:not(.footer-brand) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: right !important;
    padding: 22px 14px 20px !important;
    min-height: 0 !important;
    position: relative;
  }
  /* خط جداکننده عمودی فقط بین دو ستون */
  html body .asaidea-footer .footer-main > .footer-column:nth-child(2)::after,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(3)::after {
    display: block !important;
    left: 0 !important;
    right: auto !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(4)::after,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5)::after {
    display: none !important;
  }

  html body .asaidea-footer .footer-title {
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 30px !important;
    margin-bottom: 10px !important;
  }
  html body .asaidea-footer .footer-title-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }
  html body .asaidea-footer .footer-title h3 {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  html body .asaidea-footer .footer-title-line {
    margin-right: 0 !important;
    margin-left: auto !important;
    margin-bottom: 10px !important;
  }

  html body .asaidea-footer .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html body .asaidea-footer .footer-links li {
    width: 100%;
  }
  html body .asaidea-footer .footer-links li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    min-height: 36px !important;
    padding: 4px 0 !important;
    text-align: right !important;
  }
  html body .asaidea-footer .link-arrow {
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
  }

  /* ستون «ارتباط با ما» */
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .contact-list {
    align-items: stretch !important;
    gap: 14px !important;
    margin-top: 2px !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .contact-item {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .contact-icon {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin-top: 3px;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .contact-text,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .phone-numbers span {
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    text-align: right !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .phone-numbers span {
    text-align: right !important;
  }
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .phone-numbers a,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .email a {
    display: inline-block;
    padding: 4px 0;
  }

  /* آیکن شبکه‌های اجتماعی: کل آیکن قابل کلیک و بزرگ‌تر */
  html body .asaidea-footer .brand-social {
    gap: 14px !important;
  }
  html body .asaidea-footer .brand-social .social-row {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 200, 80, .25);
  }
  html body .asaidea-footer .brand-social .social-icon {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
  }
  html body .asaidea-footer .trust-badges {
    gap: 12px !important;
  }
  html body .asaidea-footer .trust-badge {
    width: 72px !important;
    height: 72px !important;
  }
}
@media (max-width: 360px) {
  html body .asaidea-footer .footer-main > .footer-column:not(.footer-brand) {
    padding: 20px 10px 18px !important;
  }
  html body .asaidea-footer .footer-title h3 { font-size: 14px !important; }
  html body .asaidea-footer .footer-links li a,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .contact-text,
  html body .asaidea-footer .footer-main > .footer-column:nth-child(5) .phone-numbers span {
    font-size: 12.5px !important;
  }
}

/* لینک‌های فوتر شبکه اجتماعی (ساختار جدید: کل ردیف لینک است) */
.asaidea-footer a.social-row { color: inherit; text-decoration: none; }

/* نمادهای اعتماد: قابل کلیک */
.asaidea-footer a.trust-badge { cursor: pointer; pointer-events: auto !important; position: relative; z-index: 2; }

/* ---------- کارت‌های «از طراحی تا پیاده‌سازی…» و مشابه: حذف فضای خالی ---------- */
@media (max-width: 1100px) {
  html body .services-section .services-grid .service-card:not(.support-services .service-card) {
    min-height: 0 !important;
    height: auto !important;
  }
  html body .services-section .services-grid .service-card .service-card-desc {
    flex: 0 0 auto !important;
    margin-bottom: 14px !important;
  }
  html body .services-section .services-grid .service-card .service-card-link {
    margin-top: auto !important;
  }
}
@media (max-width: 640px) {
  html body .services-section .services-header { margin-bottom: 30px !important; }
  html body .services-section .services-grid .service-card .service-icon { margin-bottom: 16px !important; }
  html body .services-section .services-grid .service-card .service-card-title { margin-bottom: 10px !important; }
}

/* ---------- «مسیر شفاف از درخواست تا تحویل» / فرآیند کار: همه باکس‌ها هم‌اندازه ---------- */
html body .process-section .process-list {
  align-items: stretch !important;
}
html body .process-section .process-list > .process-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  height: auto !important;
}
html body .process-section .process-list > .process-item > .process-card {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
  justify-content: flex-start !important;
}

/* ---------- خط طلایی زیر کلمه‌های رنگی: زیر متن، نه روی حروف ---------- */
html body .hero-title .highlight {
  position: relative;
  padding-bottom: .12em;
}
html body .hero-title .highlight::after {
  bottom: -.14em !important;
  height: 5px !important;
  z-index: 0 !important;
}

/* Hark 2026-11-15 RTL fixes */

/* 1) Home «نمونه‌کارها» (#projects): blocks sit right-aligned (RTL order);
      text inside each card keeps its current alignment. */
html body #projects .p5-articles,
html body .projects-section .p5-articles {
  direction: rtl !important;
}
html body #projects .p5-articles > *,
html body #projects .p5-card,
html body #projects .p5-card * {
  direction: rtl !important;
}

/* 2) Process sections («از مشاوره تا پشتیبانی»، «مسیر شفاف از درخواست تا تحویل»،
      «از ایده تا محصول واقعی»، «فرآیند همکاری؛ از شناخت تا اجرا»):
      step numbers and cards run right-to-left, 01 at the right. */
html body .process-section .process-list,
html body .process-section .process-timeline > .process-list {
  direction: ltr !important;
}
html body .process-section .process-list > *,
html body .process-section .process-item,
html body .process-section .process-card,
html body .process-section .process-number,
html body .process-section .process-card h3,
html body .process-section .process-card p {
  direction: rtl !important;
}

/* 3) «زیرساخت شما، امن‌تر از همیشه» (#section-6): numbers/content right-aligned (RTL). */
html body #section-6,
html body #section-6 .s6-container,
html body #section-6 .s6-main,
html body #section-6 .s6-content,
html body #section-6 .s6-body,
html body #section-6 .s6-cta,
html body #section-6 .s6-buttons,
html body #section-6 .s6-faq,
html body #section-6 .s6-faq-list,
html body #section-6 .s6-faq-item,
html body #section-6 .s6-question,
html body #section-6 .s6-answer,
html body #section-6 h1,
html body #section-6 h2,
html body #section-6 h3,
html body #section-6 p,
html body #section-6 li,
html body #section-6 a {
  direction: rtl !important;
}
html body #section-6 .s6-question,
html body #section-6 .s6-answer,
html body #section-6 .s6-faq-item {
  text-align: right;
}

/* Fix: no line/underline under the header "درخواست مشاوره" button on any page */
html body a.btn-consult, html body .btn-consult, html body .btn-consult:link, html body .btn-consult:visited, html body .btn-consult:hover, html body .btn-consult:focus, html body .btn-consult:active {
    text-decoration: none !important;
    border-bottom: none !important;
    
    
}
html body .btn-consult::after, html body .btn-consult::before {
    display: none !important;
    content: none !important;
    border-bottom: none !important;

}
