/* =========================================================
   Alalaq Farma components: product catalog, coverage map,
   org chart, partner cards, document images
   ========================================================= */

/* ---------- PRODUCTS CATALOG ---------- */
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: -15px 0 34px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chip { border: 1px solid rgba(10, 22, 80, .14); background: var(--s-card, #fff); color: var(--heading); padding: 9px 18px; border-radius: 40px; font-weight: 700; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease); }
.pf-chip small { background: rgba(10, 22, 80, .07); border-radius: 20px; padding: 0 8px; font-size: .78rem; line-height: 1.7; }
.pf-chip:hover { border-color: var(--secondary); color: var(--secondary); }
.pf-chip.on { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: 0 10px 22px rgba(10, 22, 80, .22); }
.pf-chip.on small { background: var(--primary); color: var(--on-primary); }
.pf-search { position: relative; flex: 0 1 340px; }
.pf-search i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: #8a93ad; }
.pf-search input { width: 100%; border: 1px solid rgba(10, 22, 80, .14); border-radius: 40px; padding: 11px 18px; padding-inline-start: 42px; background: var(--s-card, #fff); color: var(--heading); transition: border-color .25s, box-shadow .25s; }
.pf-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(244, 168, 29, .2); }
.prod { background: var(--s-card, #fff); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; border: 1px solid rgba(10, 22, 80, .05); }
.prod[hidden] { display: none !important; }
.prod:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prod-img { position: relative; display: block; overflow: hidden; background: linear-gradient(160deg, #f6f7fb, #e9edf6); }
.prod-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.prod:hover .prod-img img { transform: scale(1.06); }
.prod-cat { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(10, 22, 80, .88); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; backdrop-filter: blur(4px); }
.prod-zoom { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: all .35s var(--ease); }
.prod:hover .prod-zoom { opacity: 1; transform: none; }
.prod-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod h3 { margin: 0; font-size: 1.25rem; color: var(--s-card-title, var(--heading)); }
.prod h3 a:hover { color: var(--secondary); }
.prod-str { flex-shrink: 0; background: var(--grad, var(--primary)); color: var(--on-primary); font-weight: 800; font-size: .82rem; padding: 3px 12px; border-radius: 20px; direction: ltr; }
.prod-gen { margin: 0; color: var(--secondary); font-weight: 600; font-size: .95rem; }
.prod-text { margin: 0; color: var(--s-card-text, var(--text)); font-size: .92rem; line-height: 1.7; }
.prod-meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(10, 22, 80, .12); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: #6f7894; }
.prod-meta i { color: var(--primary); margin-inline-end: 4px; }
.pf-empty { text-align: center; padding: 40px 0; color: #7b84a0; font-weight: 600; }
.pf-note { margin: 34px auto 0; max-width: 900px; text-align: center; font-size: .88rem; color: #6f7894; background: rgba(34, 64, 154, .05); border-radius: 12px; padding: 12px 18px; }
.pf-note i { color: var(--secondary); }
@media (max-width: 600px) { .pf-search { flex-basis: 100%; } }

/* ---------- COVERAGE MAP ---------- */
.sec-coverageMap { --cv-land1: #e9eefb; --cv-land2: #dce4f7; --cv-dots: rgba(10, 22, 80, .12); }
.cv-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
.cv-row.no-list { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
.cv-map { position: relative; }
.cv-svg { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; filter: drop-shadow(0 24px 40px rgba(10, 22, 80, .12)); }
.cv-border { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linejoin: round; opacity: .55; }
.cv-river { fill: none; stroke: #5d8ee0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.cv-link { fill: none; stroke: var(--primary); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .6; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -300; } }
.cv-pt { cursor: pointer; outline: none; }
.cv-dot { fill: var(--secondary); stroke: #fff; stroke-width: 2.5; transition: fill .25s; }
.cv-pt.is-hq .cv-dot { fill: var(--primary); stroke: var(--dark); stroke-width: 3; }
.cv-pulse { fill: var(--secondary); opacity: 0; transform-box: fill-box; transform-origin: center; animation: cvPulse 2.6s ease-out infinite; }
.cv-pt.is-hq .cv-pulse { fill: var(--primary); }
@keyframes cvPulse { 0% { opacity: .45; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.2); } }
.cv-label { opacity: 0; transition: opacity .25s; pointer-events: none; }
.cv-label rect { fill: var(--dark); }
.cv-label text { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--font); }
.cv-pt.is-hq .cv-label, .cv-pt:hover .cv-label, .cv-pt:focus .cv-label, .cv-pt.hl .cv-label { opacity: 1; }
.cv-pt:hover, .cv-pt:focus, .cv-pt.hl { position: relative; }
.cv-pt.is-hq .cv-label rect { fill: var(--primary); }
.cv-pt.is-hq .cv-label text { fill: var(--on-primary); }
.cv-pt.hl .cv-dot, .cv-pt:hover .cv-dot { fill: var(--primary); }
.cv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--s-text, var(--text)); }
.cv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--secondary); }
.lg-dot.hq { background: var(--primary); box-shadow: 0 0 0 2px var(--dark); }
.cv-list { background: var(--s-card, #fff); border-radius: calc(var(--card-radius) + 4px); box-shadow: var(--shadow-lg); padding: 30px; border-top: 4px solid var(--primary); }
.cv-total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(10, 22, 80, .08); }
.cv-total b { font-family: var(--font-heading); font-size: 3rem; line-height: 1; color: var(--heading); }
.cv-total span { font-weight: 700; color: var(--secondary); }
.cv-group + .cv-group { margin-top: 16px; }
.cv-group h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--s-card-title, var(--heading)); }
.cv-group h3 small { background: rgba(244, 168, 29, .2); color: var(--heading); border-radius: 20px; padding: 0 9px; font-size: .78rem; }
.cv-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-group li { background: var(--light); border: 1px solid rgba(10, 22, 80, .06); color: var(--heading); padding: 5px 13px; border-radius: 30px; font-size: .9rem; font-weight: 600; cursor: default; transition: all .2s; outline: none; }
.cv-group li.is-hq { background: var(--dark); color: #fff; }
.cv-group li.is-hq i { color: var(--primary); }
.cv-group li.hl, .cv-group li:hover, .cv-group li:focus { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cv-group li.is-hq.hl i, .cv-group li.is-hq:hover i { color: var(--on-primary); }
@media (max-width: 991px) { .cv-row { grid-template-columns: 1fr; gap: 30px; } .cv-map { max-width: 560px; margin-inline: auto; width: 100%; } }

/* ---------- ORG CHART ---------- */
.org { --line: rgba(10, 22, 80, .2); }
.org-row { display: flex; justify-content: center; position: relative; }
.org-row + .org-row { padding-top: 44px; }
.org-cell { position: relative; flex: 1 1 0; max-width: 300px; padding: 0 10px; display: flex; justify-content: center; }
.org-l1 .org-cell { max-width: 460px; }
.org-row + .org-row .org-cell::before { content: ""; position: absolute; top: -22px; inset-inline: 0; border-top: 2px solid var(--line); }
.org-row + .org-row .org-cell:first-child::before { inset-inline-start: 50%; }
.org-row + .org-row .org-cell:last-child::before { inset-inline-end: 50%; }
.org-row + .org-row .org-cell:only-child::before { display: none; }
.org-row + .org-row .org-cell::after { content: ""; position: absolute; top: -22px; left: 50%; height: 22px; border-left: 2px solid var(--line); }
.org-row:not(:last-child)::after { content: ""; position: absolute; bottom: -22px; left: 50%; height: 22px; border-left: 2px solid var(--line); }
.org-node, .org-team { width: 100%; background: var(--s-card, #fff); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .35s var(--ease), box-shadow .35s; position: relative; z-index: 1; }
.org-node:hover, .org-team:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.org-node b, .org-team b { color: var(--s-card-title, var(--heading)); font-size: 1.02rem; line-height: 1.5; }
.org-node small { color: var(--secondary); font-weight: 600; font-size: .9rem; }
.org-ic { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: rgba(244, 168, 29, .16); color: var(--dark); margin-bottom: 6px; }
.org-top { background: var(--grad-navy, var(--dark)); padding: 28px 26px; }
.org-top b { color: #fff; font-size: 1.15rem; }
.org-top small { color: #ffd27a; font-size: 1rem; }
.org-top .org-ic { background: var(--grad, var(--primary)); color: var(--on-primary); width: 70px; height: 70px; border-radius: 50%; font-size: 1.7rem; }
.org-team { border-top: 4px solid var(--primary); }
.org-count { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--heading); direction: ltr; }
.org-team small { color: var(--secondary); font-weight: 700; font-size: .85rem; }
@media (max-width: 767px) {
  .org-row { flex-direction: column; align-items: center; gap: 14px; }
  .org-cell { max-width: 420px; width: 100%; }
  .org-row + .org-row .org-cell::before, .org-row + .org-row .org-cell::after { display: none; }
  .org-row + .org-row { padding-top: 34px; }
  .org-l3 { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .org-l3 .org-cell { flex: 1 1 45%; padding: 0 5px; }
}

/* ---------- PARTNER CARDS & LOGOS ---------- */
.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--s-card, #fff); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: 22px 18px 24px; border: 1px solid rgba(10, 22, 80, .05); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--grad, var(--primary)); transform: scaleX(0); transition: transform .5s var(--ease); }
.pcard:hover::before { transform: scaleX(1); }
.pc-logo { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; background: var(--light); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.pc-logo img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.pcard h3 { font-size: 1.08rem; margin: 0; color: var(--s-card-title, var(--heading)); }
.pcard p { margin: 0; font-size: .9rem; color: var(--s-card-text, var(--text)); line-height: 1.6; }
.mq-track .logo-item, .pl-grid .logo-item { background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 6px 20px rgba(10, 22, 80, .07); height: 106px; justify-content: center; filter: none; opacity: 1; }
.mq-track .logo-item img, .pl-grid .logo-item img { height: 80px; max-height: none; width: auto; max-width: 210px; object-fit: contain; filter: grayscale(.35); opacity: .9; transition: filter .3s, opacity .3s; }
.mq-track .logo-item:hover img, .pl-grid .logo-item:hover img { filter: none; opacity: 1; }

/* ---------- document image (license letter) ---------- */
.doc-image .ab-media { max-width: 500px; margin-inline: auto; width: 100%; }
.doc-image .ab-img1 img { width: 82%; background: #fff; padding: 10px; border: 1px solid rgba(10, 22, 80, .08); max-height: none; }
.doc-gallery .g-item img { object-fit: contain; background: #fff; padding: 10px; }

/* ---------- misc ---------- */
.ab-img1 img { max-height: 560px; object-fit: cover; }
.info-card p { overflow-wrap: anywhere; }
/* phone numbers / emails keep their own direction inside Arabic text (0773 972 8318 must not flip) */
.tb-items span, .f-contact span, .info-card p, .cv-group li, .prod-meta span { unicode-bidi: plaintext; }
.ab-badge span { display: block; margin-top: 4px; }
