/* ============================================================
   التقنية السداسية — Hexaa Technology
   ورقة الأنماط الرئيسية (RTL)
   الهوية: بنفسجي تقني → وردي، سداسيات، خطوط دوائر إلكترونية
   ============================================================ */

/* ---------- المتغيرات ---------- */
:root {
  /* الألوان الأساسية */
  --hx-purple:      #554E90;
  --hx-purple-2:    #725193;
  --hx-violet:      #8F5598;
  --hx-pink:        #ED5D98;
  --hx-pink-deep:   #D05A98;
  --hx-indigo:      #47346A;
  --hx-lavender:    #DBB7D3;

  /* ألوان الواجهة */
  --hx-bg:          #FAF8FC;
  --hx-bg-2:        #F4EEF8;
  --hx-border:      #E8DDED;
  --hx-text:        #241F2F;
  --hx-text-2:      #70667A;
  --hx-success:     #20B486;
  --hx-warning:     #F6A623;
  --hx-danger:      #E8505B;

  /* التدرج الأساسي */
  --hx-gradient: linear-gradient(135deg, #554E90 0%, #8F5598 45%, #ED5D98 100%);
  --hx-gradient-soft: linear-gradient(135deg, rgba(85,78,144,.08) 0%, rgba(143,85,152,.08) 45%, rgba(237,93,152,.10) 100%);

  /* أخرى */
  --hx-radius-lg: 1.5rem;
  --hx-radius-xl: 1.75rem;
  --hx-shadow: 0 .5rem 1.5rem rgba(71,52,106,.08);
  --hx-shadow-sm: 0 .25rem .75rem rgba(71,52,106,.06);
  --hx-shadow-grad: 0 .75rem 2rem rgba(143,85,152,.25);
  --hx-header-h: 84px;
}

/* ---------- الأساسيات ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--hx-bg);
  color: var(--hx-text);
  overflow-x: hidden;
}

::selection { background: var(--hx-pink); color: #fff; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--hx-indigo); }

a { text-decoration: none; transition: color .2s ease; }

img { max-width: 100%; height: auto; }

/* شريط تمرير أنيق */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--hx-bg-2); }
::-webkit-scrollbar-thumb { background: var(--hx-violet); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--hx-pink); }

/* ---------- الأزرار ---------- */
.btn-hexaa-primary {
  background: var(--hx-gradient);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: .7rem 1.7rem;
  font-weight: 700;
  box-shadow: var(--hx-shadow-grad);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-hexaa-primary:hover, .btn-hexaa-primary:focus {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 1rem 2.25rem rgba(143,85,152,.35);
}
.btn-hexaa-primary:active { color: #fff; transform: translateY(0); }

.btn-hexaa-secondary {
  background: #fff;
  color: var(--hx-purple);
  border: 1.5px solid var(--hx-border);
  border-radius: 100px;
  padding: .7rem 1.7rem;
  font-weight: 700;
  transition: all .2s ease;
}
.btn-hexaa-secondary:hover, .btn-hexaa-secondary:focus {
  background: var(--hx-bg-2);
  color: var(--hx-purple);
  border-color: var(--hx-lavender);
}

.btn-hexaa-light {
  background: #fff;
  color: var(--hx-violet);
  border: none;
  border-radius: 100px;
  padding: .7rem 1.7rem;
  font-weight: 800;
  box-shadow: var(--hx-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-hexaa-light:hover {
  color: var(--hx-pink-deep);
  transform: translateY(-2px);
}

.btn-hexaa-primary .ph, .btn-hexaa-secondary .ph, .btn-hexaa-light .ph { font-size: 1.15em; margin-inline-end: .35rem; vertical-align: -0.15em; }

/* حلقة تركيز واضحة ل لوحة المفاتيح */
.btn-hexaa-primary:focus-visible,
.btn-hexaa-secondary:focus-visible,
.btn-hexaa-light:focus-visible,
.hexaa-lang-switch:focus-visible,
.hexaa-burger:focus-visible {
  outline: 3px solid rgba(143,85,152,.5);
  outline-offset: 2px;
}

/* ---------- الهيدر ---------- */
.hexaa-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250,248,252,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hexaa-header.is-scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--hx-border);
  box-shadow: var(--hx-shadow-sm);
}
.hexaa-nav { display: flex; align-items: center; gap: 1rem; padding: .65rem 0; }
.hexaa-logo { height: 52px; width: auto; }
.hexaa-header.is-scrolled .hexaa-logo { height: 44px; }

.hexaa-menu { gap: .15rem; }
.hexaa-menu-link {
  display: block;
  padding: .55rem .8rem;
  color: var(--hx-text);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 12px;
  position: relative;
}
.hexaa-menu-link:hover { color: var(--hx-purple); background: var(--hx-bg-2); }
.hexaa-menu-link.active { color: var(--hx-purple); }
.hexaa-menu-link.active::after {
  content: "";
  position: absolute;
  inset-inline: .8rem;
  bottom: .18rem;
  height: 3px;
  border-radius: 3px;
  background: var(--hx-gradient);
}

/* قائمة منسدلة */
.hexaa-dropdown {
  border: 1px solid var(--hx-border);
  border-radius: 16px;
  box-shadow: var(--hx-shadow);
  padding: .5rem;
  margin-top: .6rem !important;
}
.hexaa-dropdown .dropdown-item {
  border-radius: 10px;
  font-weight: 600;
  color: var(--hx-text);
  padding: .55rem .9rem;
}
.hexaa-dropdown .dropdown-item:hover { background: var(--hx-bg-2); color: var(--hx-purple); }
.dropdown-toggle::after { margin-inline-start: .45em; }

/* زر البرغر */
.hexaa-burger {
  border: none;
  background: transparent;
  padding: .5rem;
  border-radius: 12px;
}
.hexaa-burger-box { display: flex; flex-direction: column; gap: 5px; padding: 2px; }
.hexaa-burger-line { width: 26px; height: 3px; border-radius: 3px; background: var(--hx-purple); transition: .25s; }
.hexaa-burger:hover .hexaa-burger-line { background: var(--hx-pink); }

/* ---------- قائمة الموبايل ---------- */
.hexaa-mobile-menu {
  background: var(--hx-bg);
  border-inline-end: 1px solid var(--hx-border);
  width: min(340px, 88vw);
}
.hexaa-mobile-item + .hexaa-mobile-item { border-top: 1px solid var(--hx-bg-2); }
.hexaa-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .25rem;
  font-weight: 700;
  color: var(--hx-text);
  font-size: 1.05rem;
}
.hexaa-mobile-link.active { color: var(--hx-purple); }
.hexaa-mobile-link::after {
  content: "\e138"; /* ph-caret-left */
  font-family: "Phosphor";
  font-size: .8em;
  color: var(--hx-text-2);
  opacity: .6;
}
.hexaa-mobile-sub { padding-inline-start: 1rem; }
.hexaa-mobile-sublink {
  display: block;
  padding: .5rem .25rem;
  color: var(--hx-text-2);
  font-size: .95rem;
}
.hexaa-mobile-sublink:hover { color: var(--hx-pink-deep); }

/* ---------- الفوتر ---------- */
.hexaa-footer {
  margin-top: 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(237,93,152,.12), transparent),
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(85,78,144,.14), transparent),
    #241F2F;
  color: #E9E3F0;
}
.hexaa-footer-logo { filter: brightness(1.1); }
.hexaa-footer-desc { color: #B9AEC6; max-width: 320px; line-height: 1.9; }
.hexaa-footer-title { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 1.1rem; position: relative; padding-bottom: .5rem; }
.hexaa-footer-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--hx-gradient);
}
.hexaa-footer-links li { margin-bottom: .55rem; }
.hexaa-footer-links a { color: #B9AEC6; font-size: .93rem; transition: color .2s; }
.hexaa-footer-links a:hover { color: var(--hx-pink); }
.hexaa-footer-links a .ph { margin-inline-end: .4rem; color: var(--hx-lavender); }
.hexaa-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #E9E3F0;
  font-size: 1.2rem;
  transition: all .2s ease;
}
.hexaa-social-btn:hover {
  background: var(--hx-gradient);
  color: #fff;
  transform: translateY(-3px);
}
.hexaa-footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.hexaa-footer-bottom p, .hexaa-footer-bottom a { color: #9C90AB; }
.hexaa-footer-minor:hover { color: var(--hx-pink); }

/* Sticky CTA موبايل — مخفي عند الأعلى ويظهر بعد التمرير خارج الهيرو */
.hexaa-sticky-cta {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 1020;
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.hexaa-sticky-cta.is-armed { opacity: 1; transform: none; pointer-events: auto; }
.hexaa-sticky-cta.is-hidden { opacity: 0; transform: translateY(120%); pointer-events: none; }

/* ============================================================
   السداسيات (clip-path)
   ============================================================ */
.hex {
  display: inline-block;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* ---------- زخارف الخلفية ---------- */
.hexaa-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hex-hero-1, .hex-hero-2, .hex-hero-3, .hex-cta-1, .hex-cta-2 {
  position: absolute;
  background: var(--hx-gradient);
  opacity: .10;
}
.hex-hero-1 { width: 220px; height: 200px; top: -60px; inset-inline-start: -60px; }
.hex-hero-2 { width: 130px; height: 118px; bottom: 20px; inset-inline-end: 8%; opacity: .12; }
.hex-hero-3 { width: 70px; height: 64px; top: 30%; inset-inline-end: -20px; opacity: .08; }
.hex-cta-1 { width: 160px; height: 145px; inset-inline-start: -40px; top: -30px; opacity: .14; }
.hex-cta-2 { width: 110px; height: 100px; inset-inline-end: -30px; bottom: -20px; opacity: .12; }

/* ---------- Hero ---------- */
.hexaa-hero {
  position: relative;
  padding: calc(var(--hx-header-h) + 3.5rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 55% 65% at 88% 8%, rgba(237,93,152,.13), transparent 70%),
    radial-gradient(ellipse 55% 70% at 8% 20%, rgba(85,78,144,.15), transparent 70%),
    linear-gradient(180deg, #FDFBFE 0%, var(--hx-bg) 100%);
  overflow: hidden;
}
.hexaa-page-hero { padding: 2.6rem 0 3.2rem; }
.hexaa-badge {
  background: #fff;
  border: 1px solid var(--hx-border);
  color: var(--hx-purple);
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  box-shadow: var(--hx-shadow-sm);
}
.hexaa-badge .ph-fill { color: var(--hx-pink); }
.hexaa-hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 1.2rem;
}
.hexaa-hero-title, .hexaa-page-hero .hexaa-hero-title { max-width: 640px; }
.hexaa-page-hero .hexaa-hero-title { margin-inline: auto; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.hexaa-hero-sub {
  color: var(--hx-text-2);
  font-size: 1.08rem;
  line-height: 2;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hexaa-page-hero .hexaa-hero-sub { margin-inline: auto; }
.hexaa-page-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  font-size: 2rem;
  color: #fff;
  background: var(--hx-gradient);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  margin-bottom: 1.4rem;
}

/* البطاقة البصرية في الهيرو */
.hexaa-hero-visual { position: relative; }
.hexaa-hero-visual .mock-card {
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-xl);
  box-shadow: var(--hx-shadow);
  padding: 1.2rem;
}
/* بطاقة النمو متراكبة على الحافة السفلية للبطاقة الرئيسية — لا تغطي الفقاعات */
.hexaa-hero-visual .mock-card.float-2 {
  position: relative;
  z-index: 2;
  width: 230px;
  max-width: 70%;
  padding: 1rem;
  margin: -1.1rem auto 0;
  margin-inline-start: 2.2rem;
  margin-inline-end: auto;
}
.float-1 { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Breadcrumb ---------- */
.hexaa-breadcrumb {
  background: var(--hx-bg-2);
  border-bottom: 1px solid var(--hx-border);
  padding: .7rem 0;
  font-size: .88rem;
}
.hexaa-breadcrumb .breadcrumb-item a { color: var(--hx-text-2); font-weight: 600; }
.hexaa-breadcrumb .breadcrumb-item a:hover { color: var(--hx-pink-deep); }
.hexaa-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--hx-lavender); }
.hexaa-breadcrumb .breadcrumb-item.active { color: var(--hx-purple); font-weight: 700; }

/* ---------- الأقسام العامة ---------- */
section { position: relative; }
section[id] { scroll-margin-top: calc(var(--hx-header-h) + 16px); }
.hexaa-section { padding: 4.5rem 0; }
.hexaa-section-alt { background: var(--hx-bg-2); }
.hexaa-section-head { max-width: 680px; margin-bottom: 3rem; }
.hexaa-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  margin-bottom: .9rem;
  position: relative;
}
.hexaa-section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--hx-gradient);
  margin-top: .8rem;
}
.text-center .hexaa-section-title::after { margin-inline: auto; }
.hexaa-section-sub { color: var(--hx-text-2); line-height: 2; font-size: 1.02rem; margin-bottom: 0; }

/* ---------- البطاقات العامة ---------- */
.hexaa-card {
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-sm);
  padding: 1.8rem;
  /* لا height:100% — البطاقات المتراصة عموديًا تتمدد خارج قسمها وتغوص في الفوتر.
     من يريد تساوي الأطوال يضيف h-100 صراحة (كما في products/show). */
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hexaa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hx-shadow);
  border-color: var(--hx-lavender);
}
.hexaa-card-title { font-size: 1.12rem; font-weight: 800; margin-bottom: .6rem; }
.hexaa-card-text { color: var(--hx-text-2); line-height: 1.95; font-size: .95rem; margin-bottom: 0; flex-grow: 1; }
.hexaa-card-link {
  margin-top: 1rem;
  color: var(--hx-purple);
  font-weight: 700;
  font-size: .92rem;
}
.hexaa-card-link:hover { color: var(--hx-pink-deep); }
.hexaa-card-link .ph { transition: transform .2s; }
.hexaa-card-link:hover .ph { transform: translateX(-4px); }

/* أيقونة سداسية للبطاقات */
.hexaa-hex-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 64px;
  font-size: 1.55rem;
  color: #fff;
  background: var(--hx-gradient);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.hexaa-hex-icon.soft {
  background: linear-gradient(135deg, rgba(85,78,144,.14), rgba(237,93,152,.16));
  color: var(--hx-violet);
}
.hexaa-hex-icon.pink { background: linear-gradient(135deg, var(--hx-pink-deep), var(--hx-pink)); }

/* بطاقة المنتج */
.hexaa-product-card { text-align: start; }
.hexaa-product-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hexaa-product-head .hexaa-hex-icon { margin-bottom: 0; }
.hexaa-product-audience {
  display: inline-block;
  background: var(--hx-bg-2);
  color: var(--hx-violet);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 100px;
}
.hexaa-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin: 1rem 0 1.3rem;
  padding: .8rem 1rem;
  background: var(--hx-bg);
  border-radius: 12px;
  border: 1px dashed var(--hx-border);
}
.hexaa-product-meta span { font-size: .82rem; color: var(--hx-text-2); font-weight: 600; }
.hexaa-product-meta .ph { color: var(--hx-pink-deep); margin-inline-end: .3rem; }

/* ---------- شريط الثقة ---------- */
.hexaa-stats { margin-top: -1rem; }
.hexaa-stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding: 1.4rem 2rem;
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-sm);
}
.hexaa-stat { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .93rem; color: var(--hx-text); }
.hexaa-stat .ph-fill { color: var(--hx-pink); font-size: 1.3rem; }

/* ---------- قائمة نقاط ---------- */
.hexaa-checklist { list-style: none; padding: 0; margin: 0; }
.hexaa-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .45rem 0;
  color: var(--hx-text);
  line-height: 1.85;
}
.hexaa-checklist .ph-fill { color: var(--hx-success); font-size: 1.2rem; margin-top: .25rem; flex-shrink: 0; }

/* ---------- خطوات العمل ---------- */
.hexaa-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; counter-reset: step; }
.hexaa-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--hx-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hexaa-step:hover { transform: translateY(-4px); box-shadow: var(--hx-shadow); }
.hexaa-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 58px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: var(--hx-gradient);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  margin-bottom: 1rem;
}
.hexaa-step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .4rem; }
.hexaa-step p { color: var(--hx-text-2); font-size: .88rem; line-height: 1.8; margin: 0; }

/* ---------- CTA ---------- */
.hexaa-cta { padding: 2rem 0; }
.hexaa-cta-box {
  background: var(--hx-gradient);
  border-radius: var(--hx-radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hexaa-cta-title { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: .8rem; }
.hexaa-cta-text { color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 2; margin: 0; max-width: 560px; }
.hexaa-cta .hexaa-cta-decor { position: absolute; inset: 0; pointer-events: none; }

/* ---------- حركات الظهور ---------- */
.hexaa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.hexaa-reveal.is-visible { opacity: 1; transform: none; }
.hexaa-reveal[data-delay="1"] { transition-delay: .1s; }
.hexaa-reveal[data-delay="2"] { transition-delay: .2s; }
.hexaa-reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .hexaa-reveal { opacity: 1; transform: none; transition: none; }
  .float-1, .float-2 { animation: none; }
}

/* ---------- الجداول ---------- */
.hexaa-table { background: #fff; border: 1px solid var(--hx-border); border-radius: var(--hx-radius-lg); overflow: hidden; box-shadow: var(--hx-shadow-sm); }
.hexaa-table table { margin: 0; }
.hexaa-table thead th {
  background: var(--hx-gradient);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 1rem 1.2rem;
  white-space: nowrap;
}
.hexaa-table tbody td { padding: .95rem 1.2rem; border-color: var(--hx-bg-2); color: var(--hx-text); font-weight: 500; }
.hexaa-table tbody tr:nth-child(even) { background: var(--hx-bg); }
.hexaa-table tbody tr:hover { background: var(--hx-bg-2); }

/* ---------- الأسئلة الشائعة ---------- */
.hexaa-faq-item {
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: 16px;
  margin-bottom: .9rem;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.hexaa-faq-item:hover { border-color: var(--hx-lavender); }
.hexaa-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  text-align: start;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--hx-indigo);
}
.hexaa-faq-q .ph { color: var(--hx-pink); transition: transform .3s ease; font-size: 1.2rem; flex-shrink: 0; }
.hexaa-faq-item.open .hexaa-faq-q .ph { transform: rotate(180deg); }
.hexaa-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.hexaa-faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--hx-text-2); line-height: 2; }

/* ---------- المدونة ---------- */
.hexaa-blog-card { padding: 0; overflow: hidden; }
.hexaa-blog-cover {
  height: 170px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--hx-gradient);
}
.hexaa-blog-cover-icon { font-size: 3.2rem; color: rgba(255,255,255,.92); }
.hexaa-blog-cover .hexaa-blog-cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.12), transparent 35%);
}
.hexaa-blog-card .hexaa-card-title, .hexaa-blog-card .hexaa-card-text, .hexaa-blog-card .hexaa-card-link, .hexaa-blog-meta, .hexaa-blog-read { margin-inline: 1.5rem; }
.hexaa-blog-card .hexaa-card-title { margin-top: 1.1rem; }
.hexaa-blog-meta { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; font-size: .8rem; }
.hexaa-blog-cat { background: var(--hx-bg-2); color: var(--hx-violet); font-weight: 700; padding: .2rem .7rem; border-radius: 100px; }
.hexaa-blog-date { color: var(--hx-text-2); }
.hexaa-blog-title-link { color: inherit; }
.hexaa-blog-title-link:hover { color: var(--hx-purple); }
.hexaa-blog-read { display: block; margin-top: .8rem; margin-bottom: 1.4rem; color: var(--hx-text-2); font-size: .8rem; }
.hexaa-blog-read .ph { color: var(--hx-pink); margin-inline-end: .3rem; }

/* ---------- نماذج ---------- */
.hexaa-form { background: #fff; border: 1px solid var(--hx-border); border-radius: var(--hx-radius-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--hx-shadow); }
.hexaa-form-label { font-weight: 700; color: var(--hx-indigo); margin-bottom: .45rem; font-size: .92rem; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--hx-border);
  padding: .7rem 1rem;
  background: var(--hx-bg);
  color: var(--hx-text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--hx-violet);
  box-shadow: 0 0 0 .2rem rgba(143,85,152,.12);
  background: #fff;
}
.form-check-input:checked { background-color: var(--hx-violet); border-color: var(--hx-violet); }
.hexaa-form-success { border: 1px solid rgba(32,180,134,.35); background: rgba(32,180,134,.07); border-radius: 16px; padding: 2rem; text-align: center; }
.hexaa-form-success .ph-fill { font-size: 3rem; color: var(--hx-success); }

/* ---------- المقال المفرد ---------- */
.hexaa-article { background: #fff; border: 1px solid var(--hx-border); border-radius: var(--hx-radius-xl); box-shadow: var(--hx-shadow); overflow: hidden; }
.hexaa-article-cover { height: 220px; background: var(--hx-gradient); display: flex; align-items: center; justify-content: center; }
.hexaa-article-cover .ph-bold { font-size: 4.5rem; color: rgba(255,255,255,.9); }
.hexaa-article-body { padding: clamp(1.8rem, 4vw, 3.2rem); }
.hexaa-article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 1rem; }
.hexaa-article-body h3 { font-size: 1.15rem; margin: 1.6rem 0 .8rem; }
.hexaa-article-body p { color: var(--hx-text); line-height: 2.15; font-size: 1.03rem; margin-bottom: 1.1rem; }
.hexaa-article-body ul, .hexaa-article-body ol { color: var(--hx-text); line-height: 2.1; padding-inline-start: 1.6rem; margin-bottom: 1.1rem; }
.hexaa-article-body li { margin-bottom: .4rem; }
.hexaa-article-body blockquote {
  background: var(--hx-bg-2);
  border-inline-start: 4px solid var(--hx-pink);
  border-radius: 0 14px 14px 0;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--hx-indigo);
  font-size: 1.06rem;
  margin: 1.6rem 0;
}
.hexaa-article-body table { width: 100%; border-collapse: collapse; }
.hexaa-article-body th, .hexaa-article-body td { border: 1px solid var(--hx-border); padding: .6rem .9rem; }

/* ---------- زخرفة سداسية للفوتر ---------- */
.hexaa-footer-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hex-decor-1, .hex-decor-2, .hex-decor-3 { position: absolute; background: var(--hx-gradient); opacity: .07; }
.hex-decor-1 { width: 200px; height: 180px; top: -40px; inset-inline-end: 6%; }
.hex-decor-2 { width: 110px; height: 100px; bottom: 12%; inset-inline-start: 3%; }
.hex-decor-3 { width: 60px; height: 55px; top: 30%; inset-inline-end: 30%; opacity: .05; }

/* ---------- استجابة ---------- */
@media (max-width: 991.98px) {
  .hexaa-hero { padding-top: calc(var(--hx-header-h) + 2rem); }
  .hexaa-section { padding: 3.2rem 0; }
  body { padding-bottom: 4.5rem; } /* مساحة الـ Sticky CTA */
}
@media (max-width: 575.98px) {
  .hexaa-logo { height: 42px; }
  .hexaa-hero-title { font-size: 1.75rem; }
  .hexaa-stats-strip { gap: .8rem 1.4rem; padding: 1.1rem 1.2rem; }
  .hexaa-stat { font-size: .84rem; }
}

/* ---------- طباعة ---------- */
@media print {
  .hexaa-header, .hexaa-footer, .hexaa-sticky-cta, .hexaa-cta { display: none !important; }
}

/* ============================================================
   شبكة أمان الروابط — منع أزرق Bootstrap الافتراضي نهائيًا
   ملفوفة بـ :where() لتفريغ الخصوصية → لا تغلب أي قاعدة موجودة
   ============================================================ */
a:where(:not(.btn):not(.hexaa-brand):not(.dropdown-item):not(.hexaa-social-btn)) {
  color: var(--hx-purple);
}
a:where(:not(.btn):not(.hexaa-brand):not(.dropdown-item):not(.hexaa-social-btn)):hover {
  color: var(--hx-pink-deep);
}
a:where(:not(.btn):not(.hexaa-brand):not(.dropdown-item):not(.hexaa-social-btn)):focus-visible {
  color: var(--hx-pink-deep);
  outline: 2px solid var(--hx-lavender);
  outline-offset: 2px;
  border-radius: 4px;
}

/* الروابط داخل مقالات المدونة وصفحات السياسات */
.hexaa-article-body a:not(.btn) {
  color: var(--hx-purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--hx-lavender);
  text-underline-offset: 4px;
}
.hexaa-article-body a:not(.btn):hover {
  color: var(--hx-pink-deep);
  text-decoration-color: var(--hx-pink);
}

/* روابط بريد/واتساب في بطاقة التواصل */
.hexaa-contact-list a {
  color: var(--hx-purple) !important;
  font-weight: 600;
}
.hexaa-contact-list a:hover {
  color: var(--hx-pink-deep) !important;
}

/* ---------- مبدّل اللغة ---------- */
.hexaa-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--hx-border);
  background: #fff;
  color: var(--hx-purple);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  transition: all .2s ease;
}
.hexaa-lang-switch:hover {
  background: var(--hx-bg-2);
  border-color: var(--hx-lavender);
  color: var(--hx-pink-deep);
}
.hexaa-lang-switch .ph { font-size: 1.1rem; }
.hexaa-lang-switch-mobile { padding: .4rem .75rem; font-size: .8rem; }

/* ---------- محاذاة أزرار الهيدر لنهاية الصف ----------
   margin-inline-start: auto يدفع الحاوية لنهاية الصف منطقيًا:
   أقصى اليسار في RTL (العربي) وأقصى اليمين في LTR (الإنجليزي) */
.hexaa-header-actions {
  margin-inline-start: auto;
}

/* ضوابط الموبايل (مبدّل اللغة + البرغر) بنفس المحاذاة */
.hexaa-header-end {
  margin-inline-start: auto;
}

/* ============================================================
   زخارف خلفيات متنوعة للأقسام — لكل قسم طابع بصري خاص
   ============================================================ */

/* حاوية الزخرفة المشتركة */
.hexaa-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hexaa-decor + .container { position: relative; z-index: 1; }

/* ---------- 1) سداسيات عائمة كبيرة (قسم النظام) ---------- */
.hexaa-decor-hex .hex-d {
  position: absolute;
  background: var(--hx-gradient);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: .07;
  animation: hexFloat 9s ease-in-out infinite;
}
.hexaa-decor-hex .hex-d:nth-child(1) { width: 260px; height: 236px; top: -70px; inset-inline-start: -80px; }
.hexaa-decor-hex .hex-d:nth-child(2) { width: 150px; height: 136px; bottom: -40px; inset-inline-end: 6%; animation-delay: -3s; opacity: .09; }
.hexaa-decor-hex .hex-d:nth-child(3) { width: 84px; height: 76px; top: 34%; inset-inline-end: -24px; animation-delay: -6s; opacity: .06; }

@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

/* ---------- 2) شبكة دوائر إلكترونية (قسم المنتجات) ---------- */
.hexaa-decor-circuit {
  background-image:
    radial-gradient(circle at center, var(--hx-lavender) 1.6px, transparent 1.8px);
  background-size: 46px 46px;
  opacity: .35;
}
.hexaa-decor-circuit::before,
.hexaa-decor-circuit::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1.5px dashed var(--hx-border);
  opacity: .5;
}
.hexaa-decor-circuit::before { top: -140px; inset-inline-start: -120px; animation: decorSpin 40s linear infinite; }
.hexaa-decor-circuit::after { bottom: -150px; inset-inline-end: -110px; width: 260px; height: 260px; animation: decorSpin 55s linear infinite reverse; }

@keyframes decorSpin { to { transform: rotate(360deg); } }

/* ---------- 3) نقاط متدرجة ناعمة (قسم الخدمات) ---------- */
.hexaa-decor-dots {
  background-image: radial-gradient(var(--hx-lavender) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
  -webkit-mask-size: 78% 100%;
          mask-size: 78% 100%;
  -webkit-mask-position: left;
          mask-position: left;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* ---------- 4) قوس قطري متدرج (قسم القطاعات) ---------- */
.hexaa-decor-arc::before {
  content: "";
  position: absolute;
  top: -220px; inset-inline-end: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 93, 152, .10) 0%, transparent 68%);
}
.hexaa-decor-arc::after {
  content: "";
  position: absolute;
  bottom: -260px; inset-inline-start: -200px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 78, 144, .10) 0%, transparent 68%);
}

/* ---------- 5) خطوط قطرية تقنية (قسم لماذا نحن) ---------- */
.hexaa-decor-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 22px,
    rgba(143, 85, 152, .05) 22px, rgba(143, 85, 152, .05) 23px
  );
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 100% 50%, #000 30%, transparent 75%);
}

/* ---------- 6) مسار متعرج متصل (قسم المنهجية) ---------- */
.hexaa-decor-path::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 8%; bottom: 8%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--hx-lavender) 0 10px,
    transparent 10px 22px
  );
  opacity: .55;
}
[dir="ltr"] .hexaa-decor-path::before { inset-inline-start: auto; left: 50%; }

/* ---------- 7) هالات سداسية (قسم المدونة) ---------- */
.hexaa-decor-blog .hex-d {
  position: absolute;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border: none;
}
.hexaa-decor-blog .hex-d:nth-child(1) {
  width: 300px; height: 272px;
  top: -90px; inset-inline-start: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(237, 93, 152, .12), transparent 65%);
  background-color: transparent;
}
.hexaa-decor-blog .hex-d:nth-child(2) {
  width: 200px; height: 180px;
  bottom: -60px; inset-inline-end: -70px;
  background: radial-gradient(circle at 60% 60%, rgba(85, 78, 144, .13), transparent 65%);
}

/* ---------- احترام تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  .hexaa-decor-hex .hex-d,
  .hexaa-decor-circuit::before,
  .hexaa-decor-circuit::after { animation: none; }
}
