/* =====================================================================
   AhxAlawneh — "Warm editorial" identity (hand-built, single accent)
   Loaded AFTER style.min.css so these rules win. Uses Bootstrap's grid
   and spacing utilities only; everything visual is defined here.
   Palette: cream · ink · terracotta — one accent, no rainbow, no SaaS blue.
   ===================================================================== */

:root {
  /* AhxAlawneh brand identity — matches the blue/navy logo (no warm/terracotta). */
  --paper: #f6f9fc;      /* page (cool light) */
  --paper-2: #eef3f9;    /* alt band */
  --card: #ffffff;       /* surfaces */
  --ink: #11213d;        /* deep navy: headings + dark sections */
  --ink-2: #1b2e4f;
  --clay: #44566f;       /* body text (navy-slate) */
  --muted: #7a8aa1;      /* secondary */
  --line: #e4ebf3;       /* borders */
  --line-2: #d2dde9;
  --terra: #2563eb;      /* the one accent → brand blue */
  --terra-deep: #1d4ed8;
  --terra-soft: #e7eeff;
  --gold: #38bdf8;       /* on-dark accent → sky blue */

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ar-display: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --ar-text: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --shadow: 0 1px 0 rgba(17,33,61,.03), 0 14px 38px -18px rgba(17,33,61,.22);
  --shadow-h: 0 1px 0 rgba(17,33,61,.04), 0 26px 60px -22px rgba(17,33,61,.32);

  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1d4ed8;
  --bs-body-font-family: var(--sans);
}

/* ---------------- Base ---------------- */
* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--clay);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: -0.003em;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 580;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.fw-bold, .fw-bolder { font-weight: 600 !important; }
a { color: var(--terra); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--terra-deep); }
.text-muted { color: var(--muted) !important; }
.text-ink { color: var(--ink) !important; }
.text-terra { color: var(--terra) !important; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
section { scroll-margin-top: 88px; }
hr, .rule { border: 0; height: 1px; background: var(--line); }

.container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1140px; }
@media (min-width: 1400px) { .container { max-width: 1160px; } }

/* ---------------- Type scale ---------------- */
.display-hero {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 540;
  line-height: 1.015;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.display-section {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display-xl { font-size: clamp(3rem, 8vw, 6rem); line-height: .98; }
.lead, p.fs-5 { color: var(--clay); font-size: 1.16rem; line-height: 1.7; }
.measure { max-width: 40ch; }
.measure-lg { max-width: 56ch; }
.measure-sm { max-width: 32ch; }
.emph { color: var(--terra); font-style: italic; }
.u-serif-italic { font-family: var(--serif); font-style: italic; }

/* ---------------- Eyebrow / kicker ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--terra); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--terra); display: inline-block; }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before, .eyebrow.on-dark.center::after { background: var(--gold); }

/* ---------------- Buttons ---------------- */
.btn { font-family: var(--sans); border-radius: 999px; font-weight: 500; font-size: .98rem; padding: .72rem 1.5rem; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; border: 1px solid transparent; }
.btn-lg { padding: .92rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .9rem; }

.btn-ink { background: var(--ink); color: #eef3fb; border-color: var(--ink); }
.btn-ink:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-terra:hover { background: var(--terra-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(37,99,235,.5); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); background: rgba(17,33,61,.04); transform: translateY(-2px); }
.btn-wa { background: #1f8a4c; color: #fff; border-color: #1f8a4c; }
.btn-wa:hover { background: #176c3b; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(31,138,76,.55); }
.btn-ghost-light { background: transparent; color: #eef3fb; border-color: rgba(238,243,251,.28); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn .ti { font-size: 1.05em; }

.linkarrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.linkarrow .ti { color: var(--terra); transition: transform .2s ease; }
.linkarrow:hover { color: var(--ink); border-color: var(--terra); }
.linkarrow:hover .ti { transform: translateX(4px); }

/* ---------------- Tags / pills / coming-soon ---------------- */
.tag { display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .01em; padding: .26rem .7rem; border-radius: 999px; background: var(--card); color: var(--clay); border: 1px solid var(--line); margin: .15rem .2rem 0 0; }
/* Quiet, monochrome "coming soon" so it recedes; the real LIVE item stands out (intentional hierarchy, not a uniform AI grid) */
.soon { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .26rem .66rem; border-radius: 999px; color: var(--muted); background: transparent; border: 1px solid var(--line-2); }
.soon::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.soon.live { color: #176c3b; background: #e3f1e6; border-color: #bfe0c6; }
.soon.live::before { background: #1f8a4c; }

/* ---------------- Cards ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
.lift { transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: var(--line-2); }
.soft-shadow { box-shadow: var(--shadow); }
.rounded-2xl { border-radius: 22px !important; }
.rounded-xl { border-radius: 16px !important; }

.numbox { font-family: var(--serif); font-size: 2.1rem; font-weight: 560; color: var(--terra); line-height: 1; }
.stat-num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 560; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.bg-ink .stat-num { color: #eef3fb; }

/* small index marker e.g. 01 / 02 */
.idx { font-family: var(--serif); font-size: .95rem; color: var(--terra); letter-spacing: .04em; }

/* feature row (editorial, no icon-chip grid) */
.ed-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.ed-item h5 { font-size: 1.15rem; margin-bottom: .25rem; }

/* check list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--clay); }
.checks li::before { content: "\ea5e"; font-family: "tabler-icons"; font-size: .78rem; position: absolute; left: 0; top: .28em; color: var(--terra); }
.checks.on-dark li { color: rgba(238,243,251,.8); }
.checks.on-dark li::before { color: var(--gold); }

/* ---------------- System / service cards ---------------- */
.sys-card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; }
.sys-card .sys-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sys-card h5 { font-size: 1.22rem; margin: .55rem 0 .4rem; }
/* Editorial icon — no pastel rounded-square chip (a common AI-template tell) */
.sys-icon { width: auto; height: auto; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--terra); font-size: 30px; border: 0; margin-bottom: .15rem; }

/* ---------------- Screenshot frames ---------------- */
.browser { border-radius: 14px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef3f9; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d6e6; display: inline-block; }
.browser .bar .addr { margin-left: 10px; font-family: var(--sans); font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.browser img { display: block; width: 100%; }
[dir="rtl"] .browser .bar .addr { margin-left: 0; margin-right: 10px; }

/* ---------------- Dark (ink) sections ---------------- */
.bg-ink { background: var(--ink); color: rgba(238,243,251,.72); }
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink h4,.bg-ink h5,.bg-ink h6 { color: #eef3fb; }
.bg-ink .text-muted { color: rgba(238,243,251,.55) !important; }
.bg-paper-2 { background: var(--paper-2); }
.hair-top { border-top: 1px solid var(--line); }
.hair-bottom { border-bottom: 1px solid var(--line); }
.dot-card { background: rgba(238,243,251,.04); border: 1px solid rgba(238,243,251,.1); border-radius: 16px; }

/* ---------------- Header ---------------- */
.app-header { position: sticky; top: 0; z-index: 1030; background: rgba(246,249,252,.82); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.app-header.fixed-header { border-color: var(--line); background: rgba(246,249,252,.95); }
.app-header .navbar { min-height: 76px; }
.brand-wordmark { display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.brand-wordmark .x { color: var(--terra); }
.brand-mark { height: 40px; width: auto; }
.app-nav-link { color: var(--clay); font-weight: 500; font-size: .95rem; padding: .5rem .1rem; position: relative; }
.app-nav-link:hover { color: var(--ink); }
.app-nav-link.active { color: var(--ink); }
.app-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--terra); border-radius: 2px; }
.nav-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.offcanvas { background: var(--paper); }
.offcanvas .app-nav-link { display: block; padding: .9rem .2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.offcanvas .app-nav-link.active::after { display: none; }
.lang-toggle { background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: .8rem; padding: .35rem .85rem; line-height: 1; transition: all .2s ease; }
.lang-toggle:hover { border-color: var(--terra); color: var(--terra); }

/* ---------------- Footer ---------------- */
.app-footer { background: var(--ink); color: rgba(238,243,251,.6); }
.app-footer h6 { color: #eef3fb; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; }
.app-footer a { color: rgba(238,243,251,.66); }
.app-footer a:hover { color: var(--gold); }
.app-footer .foot-social { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(238,243,251,.06); color: #eef3fb; font-size: 19px; }
.app-footer .foot-social:hover { background: var(--terra); color: #fff; }
.app-footer .foot-divider { border-color: rgba(238,243,251,.1); }
.app-footer .brand-wordmark { color: #eef3fb; }

/* ---------------- Accordion (FAQ) ---------------- */
.accordion-item { background: transparent; border: 0; border-top: 1px solid var(--line); }
.accordion-button { background: transparent; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 560; padding: 1.25rem .2rem; box-shadow: none; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--terra); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { padding: 0 .2rem 1.4rem; color: var(--clay); }

/* ---------------- WhatsApp FAB ---------------- */
.wa-fab { position: fixed; bottom: 28px; right: 24px; z-index: 1080; display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.15rem 0 1rem; border-radius: 999px; background: #1f8a4c; color: #fff; font-family: var(--sans); font-weight: 500; font-size: .95rem; box-shadow: 0 16px 34px -12px rgba(31,138,76,.6); transition: transform .2s ease, box-shadow .2s ease; }
.wa-fab i { font-size: 26px; }
.wa-fab span { white-space: nowrap; }
.wa-fab:hover { color: #fff; transform: translateY(-3px); }
[dir="rtl"] .wa-fab { right: auto; left: 24px; }
@media (max-width: 575px) { .wa-fab { bottom: 18px; right: 16px; height: 52px; } .wa-fab span { display: none; } .wa-fab { padding: 0; width: 52px; justify-content: center; } [dir="rtl"] .wa-fab { right: auto; left: 16px; } }

/* ---------------- Motion (restrained, progressive — hidden only when JS runs) ---------------- */
.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rise] { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } }
[data-aos] { opacity: 1 !important; transform: none !important; } /* neutralize leftover AOS */

/* ---------------- Arabic / RTL ---------------- */
html[lang="ar"] body, [dir="rtl"] body { font-family: var(--ar-text); letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .display-hero, html[lang="ar"] .display-section, html[lang="ar"] .brand-wordmark,
html[lang="ar"] .accordion-button, html[lang="ar"] .numbox, html[lang="ar"] .stat-num {
  font-family: var(--ar-display); letter-spacing: 0; font-weight: 700;
}
html[lang="ar"] .emph, html[lang="ar"] .u-serif-italic { font-style: normal; font-family: var(--ar-display); }
[dir="rtl"] .checks li { padding-left: 0; padding-right: 1.7rem; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .eyebrow::before, [dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 { }
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .text-lg-end { text-align: right !important; }
[dir="rtl"] .ti-arrow-right, [dir="rtl"] .ti-arrow-up-right { display: inline-block; transform: scaleX(-1); }
@media (min-width: 992px) {
  [dir="rtl"] .ms-lg-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
  [dir="rtl"] .text-lg-end { text-align: left !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .display-hero { font-size: clamp(2.1rem, 8vw, 3rem); }
  section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}
@media (max-width: 575px) {
  body { font-size: 1.02rem; }
  .lead, p.fs-5 { font-size: 1.08rem; }
  .btn-lg { padding: .82rem 1.4rem; font-size: .98rem; }
}
