/* =====================================================================
   AhxAlawneh — Brand skin on top of Modernize (Bootstrap 5)
   Uses the MODERNIZE palette as the brand identity:
   Primary #5D87FF · Hover #4570EA · Deep #2E4BC0 · Secondary #49BEFF
   Headings #2A3547 · Body #5A6A85 · Muted #7C8FAC · Border #E5EAEF
   Page bg #F6F9FC · Card #FFFFFF · Success #13DEB9 · Warning #FFAE1F
   Danger #FA896B · Info #539BFF
   Loaded AFTER style.min.css so these rules win.
   ===================================================================== */

:root {
  --primary: #5d87ff;
  --primary-hover: #4570ea;
  --primary-deep: #2e4bc0;
  --secondary: #49beff;
  --light-primary: #ecf2ff;
  --heading: #2a3547;
  --body: #5a6a85;
  --muted: #7c8fac;
  --border: #e5eaef;
  --page: #f6f9fc;
  --card: #ffffff;
  --success: #13deb9;
  --warning: #ffae1f;
  --danger: #fa896b;
  --info: #539bff;

  --ahx-card-shadow: 0 6px 24px rgba(42, 53, 71, 0.06);
  --ahx-card-shadow-h: 0 18px 44px rgba(42, 53, 71, 0.13);

  /* legacy aliases (so any inline refs resolve on-palette) */
  --ahx-ink: #2a3547;
  --ahx-lime: #5d87ff;
  --ahx-lime-600: #4570ea;
  --ahx-lime-soft: #ecf2ff;
  --ahx-ivory: #f6f9fc;
  --ahx-paper: #f6f9fc;
  --ahx-muted: #7c8fac;
  --ahx-line: #e5eaef;

  /* shift Bootstrap primary to brand blue */
  --bs-primary: #5d87ff;
  --bs-primary-rgb: 93, 135, 255;
  --bs-link-color: #5d87ff;
  --bs-link-hover-color: #4570ea;
}

/* ---------- Base ---------- */
body {
  background-color: #ffffff;
  color: var(--body);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .fw-bolder, .fw-bold { color: var(--heading); }
h1, h2, h3 { letter-spacing: -0.02em; }
.text-muted { color: var(--muted) !important; }
.text-dark { color: var(--heading) !important; }
a { text-decoration: none; }
.lead, p.fs-5 { color: var(--body); }
section { scroll-margin-top: 92px; }

/* Theme color utilities -> brand palette */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light-primary { background-color: var(--light-primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.text-hover-primary:hover { color: var(--primary) !important; }

.bg-ivory { background-color: var(--page) !important; }
.bg-paper { background-color: var(--page) !important; }
.bg-soft  { background-color: var(--page) !important; }

/* ---------- Container ---------- */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1180px; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 600; padding: 0.72rem 1.4rem; transition: all 0.22s ease; }
.btn-lg { padding: 0.9rem 1.8rem; }
.btn-sm { padding: 0.5rem 1rem; border-radius: 7px; }

.btn-ahx { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-ahx:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(93, 135, 255, 0.34); }

.btn-lime { background: var(--secondary); color: #fff; border: 1px solid var(--secondary); }
.btn-lime:hover { background: #2ba9f5; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(73, 190, 255, 0.34); }

.btn-ahx-outline { background: transparent; color: var(--heading); border: 1px solid #d5dbe6; }
.btn-ahx-outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; transform: translateY(-2px); }

/* buttons on dark (navy) sections */
.btn-on-dark { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-on-dark:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(93, 135, 255, 0.4); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost-light:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary);
  background: var(--light-primary);
  padding: 0.45rem 0.95rem; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }
.eyebrow.on-dark { color: #fff; background: rgba(255, 255, 255, 0.12); }
.eyebrow.on-dark::before { background: var(--secondary); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--light-primary); color: var(--primary);
  border: 1px solid #d8e3ff;
}

/* highlighted word in headings = primary blue (Modernize style) */
.hl { color: var(--primary); }
.hl-ink { color: var(--heading); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--ahx-card-shadow); }
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--ahx-card-shadow-h); border-color: #d3dbe8; }
.card-featured { border: 2px solid var(--primary) !important; box-shadow: var(--ahx-card-shadow-h); }
.rounded-xl { border-radius: 14px !important; }
.rounded-2xl { border-radius: 20px !important; }

/* ---------- Icon chips ---------- */
.icon-chip {
  width: 54px; height: 54px; min-width: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--light-primary); color: var(--primary); font-size: 26px;
}
.icon-chip.sm { width: 44px; height: 44px; min-width: 44px; border-radius: 11px; font-size: 21px; }
.icon-chip.lg { width: 64px; height: 64px; min-width: 64px; border-radius: 16px; font-size: 30px; }
.icon-chip.ink { background: var(--primary); color: #fff; }
/* category color variants (Modernize light tints) */
.chip-blue  { background: #ecf2ff; color: #5d87ff; }
.chip-teal  { background: #e6fffa; color: #13ad9a; }
.chip-amber { background: #fef5e5; color: #d9971a; }
.chip-rose  { background: #fbf2ef; color: #e06a4d; }
.chip-violet{ background: #f2ecff; color: #763ebd; }
.chip-sky   { background: #ebf3fe; color: #2f8fdb; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 0.65rem;
  padding: 1.5rem; border: 1.5px dashed #c9d3e2; border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(93,135,255,0.10), transparent 42%),
    linear-gradient(180deg, #fbfcfe, #eff3f9);
  color: var(--body); overflow: hidden;
}
.ph::after {
  content: "Placeholder"; position: absolute; top: 10px; right: 10px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #93a1b8; background: #fff; border: 1px solid var(--border);
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.ph .ph-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); color: var(--primary); font-size: 24px;
}
.ph .ph-label { font-weight: 600; color: var(--heading); font-size: 0.95rem; line-height: 1.3; }
.ph .ph-sub { font-size: 0.78rem; color: #93a1b8; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3  { aspect-ratio: 4 / 3; }
.ph-1x1  { aspect-ratio: 1 / 1; }
.ph-3x4  { aspect-ratio: 3 / 4; }
.ph-21x9 { aspect-ratio: 21 / 9; }
.ph-tall { min-height: 320px; }
.ph.on-dark {
  border-color: rgba(255,255,255,0.22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(93,135,255,0.22), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: rgba(255,255,255,0.75);
}
.ph.on-dark .ph-icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--secondary); }
.ph.on-dark .ph-label { color: #fff; }
.ph.on-dark::after { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.7); }

/* ---------- Dark (navy) sections ---------- */
.bg-ink { background: var(--heading); color: rgba(255,255,255,0.74); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4, .bg-ink h5, .bg-ink h6 { color: #fff; }
.bg-ink .text-muted { color: rgba(255,255,255,0.62) !important; }
.ink-panel {
  background:
    radial-gradient(circle at 14% 12%, rgba(93,135,255,0.22), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(73,190,255,0.12), transparent 26%),
    var(--heading);
  color: rgba(255,255,255,0.74); border: 1px solid rgba(255,255,255,0.08);
}
.dot-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; }

/* ---------- Header / Navbar ---------- */
.app-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow 0.25s ease, background 0.25s ease; }
.app-header.fixed-header { box-shadow: 0 6px 24px rgba(42,53,71,0.08); background: rgba(255,255,255,0.97); }
.app-header .navbar { min-height: 74px; }
.brand-wordmark { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--heading); line-height: 1; }
.brand-wordmark .x { color: var(--primary); margin: 0 0.02em; }
.brand-mark { height: 46px; width: auto; display: inline-block; }
.app-nav-link { color: var(--body); font-weight: 600; font-size: 0.94rem; padding: 0.5rem 0.2rem; position: relative; transition: color 0.2s ease; }
.app-nav-link:hover { color: var(--heading); }
.app-nav-link.active { color: var(--heading); }
.app-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--primary); }
.nav-toggle { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: #fff; color: var(--heading); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.offcanvas .app-nav-link { display: block; padding: 0.85rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.offcanvas .app-nav-link.active::after { display: none; }

/* ---------- Footer ---------- */
.app-footer { background: var(--heading); color: rgba(255,255,255,0.62); }
.app-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.app-footer a { color: rgba(255,255,255,0.66); transition: color 0.2s ease; }
.app-footer a:hover { color: var(--secondary); }
.app-footer .foot-social { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); color: #fff; font-size: 19px; }
.app-footer .foot-social:hover { background: var(--primary); color: #fff; }
.app-footer .foot-divider { border-color: rgba(255,255,255,0.1); }

/* ---------- Misc ---------- */
.list-check { list-style: none; padding-left: 0; margin: 0; }
.list-check li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--body); }
.list-check li::before {
  content: "\ea5e"; font-family: "tabler-icons" !important; font-size: 0.8rem;
  position: absolute; left: 0; top: 1px; width: 1.3rem; height: 1.3rem; border-radius: 999px;
  background: var(--light-primary); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.list-check.on-dark li { color: rgba(255,255,255,0.74); }
.list-check.on-dark li::before { background: rgba(93,135,255,0.20); color: var(--secondary); }

.step-num { width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.divide-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); display: inline-block; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; line-height: 1; }
.bg-ink .stat-num { color: #fff; }
.price-amt { font-size: 2.6rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.ribbon { position: absolute; top: 1rem; right: 1rem; }

.hover-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.hover-link i { transition: transform 0.2s ease; }
.hover-link:hover i { transform: translateX(3px); }
.hover-link:hover { color: var(--primary-deep); }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 6px; background: var(--page); color: var(--body); border: 1px solid var(--border); margin: 0.15rem 0.15rem 0 0; }

.accordion-button:not(.collapsed) { color: var(--primary); background: var(--light-primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border); }

[data-aos]:not(.aos-animate) { opacity: 1; }

.display-hero { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; color: var(--heading); }
.display-section { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.measure { max-width: 620px; }
.measure-sm { max-width: 480px; }
@media (max-width: 991px) { section { scroll-margin-top: 80px; } }

/* ---------- Language toggle ---------- */
.lang-toggle { background: #fff; color: var(--heading); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 0.85rem; padding: 0.35rem 0.9rem; line-height: 1; transition: all 0.2s ease; }
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] body { font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] .list-check li { padding-left: 0; padding-right: 1.9rem; }
[dir="rtl"] .list-check li::before { left: auto; right: 0; }
[dir="rtl"] .ribbon { right: auto; left: 1rem; }
[dir="rtl"] .ph::after { right: auto; left: 10px; }
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
@media (min-width: 992px) {
  [dir="rtl"] .ms-lg-3 { margin-left: 0 !important; margin-right: 1rem !important; }
  [dir="rtl"] .ms-lg-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
  [dir="rtl"] .offset-lg-1 { margin-left: 0; margin-right: 8.3333%; }
  [dir="rtl"] .text-lg-end { text-align: left !important; }
}
[dir="rtl"] .btn .ti-arrow-right,
[dir="rtl"] .hover-link .ti-arrow-right,
[dir="rtl"] .ti-arrow-down-right { display: inline-block; transform: scaleX(-1); }

/* ---------- Floating WhatsApp button ---------- */
.wa-fab { position: fixed; bottom: 34px; right: 26px; z-index: 1080; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wa-fab:hover { color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
[dir="rtl"] .wa-fab { right: auto; left: 26px; }
@media (max-width: 575px) {
  .wa-fab { bottom: 26px; right: 18px; width: 52px; height: 52px; font-size: 27px; }
  [dir="rtl"] .wa-fab { right: auto; left: 18px; }
}

/* ---------- Mobile: show the image/visual before the text ---------- */
@media (max-width: 991.98px) {
  .row > [class*="col-"]:has(.ph), .row > [class*="col-"]:has(> img), .row > [class*="col-"]:has(> .position-relative img) { order: -1; }
}

/* ---------- Responsive hardening (all screens) ---------- */
body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
.app-footer a, .hover-link { overflow-wrap: anywhere; }
/* hero floating stat cards show on desktop only (avoid tablet overflow) */
@media (max-width: 991.98px) {
  .position-relative > .card.position-absolute { display: none !important; }
  .display-hero { font-size: clamp(2rem, 6vw, 2.8rem); }
}
@media (max-width: 767px) {
  .ph-tall { min-height: 240px; }
  section { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
  .ink-panel.p-5 { padding: 1.75rem !important; }
}
@media (max-width: 400px) {
  .btn-lg { padding: 0.8rem 1.1rem; font-size: 0.98rem; }
  .display-hero { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .display-section { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .brand-wordmark { font-size: 1.25rem; }
  .brand-mark { height: 38px; }
  .price-amt { font-size: 2.1rem; }
  .icon-chip { width: 48px; height: 48px; min-width: 48px; font-size: 23px; }
}
