/* صيدليات الصفا — ألوان الهوية: تركواز + كحلي + لمسة برتقالي
   الحركة هنا خفيفة عن قصد: transform/opacity بس — مفيش blur ولا خلفيات بتتحرك (بتتقّل الموبايل) */
:root {
  --teal: #0FA39D;
  --teal-d: #0A7F7A;
  --teal-l: #E3F5F4;
  --navy: #0B2D4D;
  --navy-2: #12406B;
  --orange: #F7941D;
  --bg: #F4F9F9;
  --card: #FFFFFF;
  --ink: #12263A;
  --muted: #5B6B7A;
  --line: #DCE8E8;
  --wa: #1FAF56;
  --ip: #4B2A84;
  --radius: 20px;
  --shadow: 0 6px 20px rgba(11, 45, 77, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.ic { width: 22px; height: 22px; flex: none; }

/* ───── الهيدر ───── */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal-d); }
.logo img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 2px 8px rgba(11,45,77,.1); }
.logo b { font-size: 17px; line-height: 1.1; }
.logo small { display: block; color: var(--muted); font-weight: 600; font-size: 10px; letter-spacing: 1.5px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--navy); }
.nav a:hover { background: var(--teal-l); }
.lang-btn {
  border: 1.5px solid var(--teal); background: #fff; color: var(--teal-d);
  font-weight: 800; font-size: 14px; padding: 5px 15px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 900px) { .nav { display: none; } .lang-btn { margin-inline-start: auto; } }

/* ───── الهيرو (مختصر علشان الفروع تبان على طول) ───── */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 45%, var(--teal-d) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding-top: 40px; padding-bottom: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; color: var(--orange); background: rgba(247,148,29,.15); padding: 3px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.15; margin: 10px 0 8px; font-weight: 800; }
.hero p { font-size: 17px; opacity: .9; margin: 0 0 20px; max-width: 34em; }
.hero-art { position: relative; justify-self: center; width: min(260px, 70vw); aspect-ratio: 1; }
.hero-art img { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 30%; background: #fff; padding: 6%; box-shadow: 0 24px 50px rgba(0,0,0,.3); animation: bob 7s ease-in-out infinite; will-change: transform; }
.caps { position: absolute; inset: 0; pointer-events: none; }
.caps i { position: absolute; display: block; border-radius: 999px; will-change: transform; animation: drift 10s ease-in-out infinite; }
.caps i:nth-child(1) { width: 170px; height: 60px; top: 10%; inset-inline-end: 4%; background: rgba(255,255,255,.07); transform: rotate(-30deg); }
.caps i:nth-child(2) { width: 100px; height: 36px; bottom: 12%; inset-inline-end: 38%; background: rgba(247,148,29,.3); transform: rotate(20deg); animation-delay: -4s; }
.caps i:nth-child(3) { width: 240px; height: 84px; bottom: -40px; inset-inline-start: -60px; background: rgba(15,163,157,.22); transform: rotate(-15deg); animation-delay: -7s; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px;
  padding: 12px 20px; border-radius: 16px; border: 0; cursor: pointer; transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(247,148,29,.35); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn.teal { background: var(--teal); color: #fff; }
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 28px; }
  .hero-art { display: none; }
  .hero p { font-size: 15.5px; margin-bottom: 16px; }
  .btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* ───── من نحن (مقفولة لحد ما حد يدوس) ───── */
.about-dd { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; box-shadow: var(--shadow); }
.about-dd summary { list-style: none; cursor: pointer; padding: 13px 18px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.about-dd summary::-webkit-details-marker { display: none; }
.about-dd summary::after { content: '▾'; margin-inline-start: auto; color: var(--teal-d); transition: transform .2s; }
.about-dd[open] summary::after { transform: rotate(180deg); }
.about-dd .in { padding: 0 18px 18px; }
.about-dd p { margin: 0 0 10px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--teal-l); border-radius: 16px; padding: 12px 6px; text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--navy); line-height: 1.15; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* ───── إنستاباي ───── */
.ipay { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid #7B4BC4; border-radius: 20px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(75,42,132,.14); margin-top: 14px; transition: transform .15s; }
.ipay:active { transform: scale(.98); }
.ipay img { border-radius: 10px; flex: none; object-fit: contain; }
.ipay-tx { flex: 1; min-width: 0; }
.ipay-tx b { display: block; color: var(--ip); font-size: 19px; line-height: 1.3; white-space: nowrap; }
.ipay-tx small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.ipay-go { background: linear-gradient(135deg, #7B4BC4, #E8642C); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; white-space: nowrap; }
@media (max-width: 420px) { .ipay { gap: 10px; padding: 10px 12px; } .ipay img { width: 62px; height: auto; } .ipay-tx b { font-size: 17px; } .ipay-go { padding: 6px 11px; font-size: 13px; } }

.rx-btn { display: flex; align-items: center; gap: 14px; margin-top: 10px; background: #fff; border: 2px dashed var(--teal); border-radius: 20px; padding: 13px 16px; cursor: pointer; color: var(--navy); }
.rx-btn:active { transform: scale(.98); }
.rx-btn .ic { width: 32px; height: 32px; color: var(--teal-d); }
.rx-btn b { display: block; font-size: 18px; line-height: 1.3; }
.rx-btn small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ───── أقسام ───── */
section { padding: 44px 0; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 36px); margin: 0 0 2px; color: var(--navy); line-height: 1.25; font-weight: 800; }
.sec-head h2::after { content: ''; display: block; width: 50px; height: 4px; border-radius: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.alt { background: #fff; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ───── أقرب فرع ───── */
.near { margin-top: 14px; }
.near-msg { background: #FFF8EC; border: 1.5px solid #F7C77D; color: #7A4A00; border-radius: 16px; padding: 12px 16px; font-weight: 700; }
.near-top { border: 2px solid var(--teal); position: relative; margin-top: 10px; }
.near-open { width: 100%; justify-content: center; margin-top: 10px; }
.near-open .ic { transform: scaleX(-1); }
[dir=ltr] .near-open .ic { transform: none; }
.near-top .badge { position: absolute; top: -12px; inset-inline-start: 16px; background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 800; padding: 2px 12px; border-radius: 999px; }

/* ───── الفروع (كلها نفس الشكل والترتيب) ───── */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { flex: 1 1 240px; max-width: 360px; padding: 11px 16px; border-radius: 14px; border: 1.5px solid var(--line); font: 600 15px 'Cairo', sans-serif; background: #fff; color: var(--ink); }
.search:focus { outline: none; border-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 6px 15px; border-radius: 999px; cursor: pointer; }
.chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.branch { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.branch:hover { box-shadow: 0 12px 30px rgba(11,45,77,.11); }
.branch:active { transform: scale(.99); }
.bh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 3px; background: var(--teal-l); color: var(--teal-d); font-size: 12.5px; font-weight: 800; padding: 2px 10px 2px 8px; border-radius: 999px; }
.rchip .ic { width: 14px; height: 14px; }
.dist { color: var(--orange); font-weight: 800; font-size: 13px; }
.branch h3 { margin: 0; font-size: 19px; color: var(--navy); line-height: 1.35; display: flex; align-items: center; gap: 6px; }
.branch h3 .ic { width: 18px; height: 18px; color: var(--teal); margin-inline-start: auto; transform: scaleX(-1); }
[dir=ltr] .branch h3 .ic { transform: none; }
.branch .meta { color: var(--muted); font-size: 13.5px; font-weight: 600; min-height: 1.6em; display: flex; justify-content: space-between; gap: 10px; }
.branch .meta .num { direction: ltr; white-space: nowrap; font-weight: 800; color: var(--navy); }
.branch .meta .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 14px; font-size: 13px; font-weight: 800; color: #fff; text-align: center; }
.act:active { transform: scale(.95); }
.act .ic { width: 24px; height: 24px; }
.act.call { background: var(--navy); }
.act.wa { background: var(--wa); }
.act.map { background: var(--orange); }
.act.off { background: #EEF2F4; color: #9AA8B2; cursor: default; }
.act.off small { font-size: 10.5px; line-height: 1; }
.empty { color: var(--muted); padding: 20px 0; }

/* ───── الخدمات (بتفتح واتساب) ───── */
.svc { display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: start; width: 100%; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.svc:hover { box-shadow: 0 12px 30px rgba(11,45,77,.11); }
.svc:active { transform: scale(.98); }
.svc .ic-wrap { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); flex: none; }
.svc .ic-wrap .ic { width: 28px; height: 28px; }
.svc h3 { margin: 0; font-size: 17.5px; color: var(--navy); }
.svc p { margin: 0; color: var(--muted); font-size: 14px; }
.svc .go { margin-inline-start: auto; color: var(--wa); flex: none; }
.svc .go.lnk { color: var(--teal-d); }
.rx-card { border: 2px dashed var(--teal); background: #fff; }
.rx-card .ic-wrap { background: var(--teal); color: #fff; }

/* ───── الدفع ───── */
.pay-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pay-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); font: inherit; color: inherit; text-align: start; width: 100%; }
a.pay-card, button.pay-card { cursor: pointer; }
.pay-card .pi { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--teal); color: #fff; flex: none; }
.pay-card .pi .ic { width: 26px; height: 26px; }
.pay-card b { display: block; font-size: 16.5px; color: var(--navy); }
.pay-card small { color: var(--muted); font-size: 13.5px; }
.pay-card .go { margin-inline-start: auto; background: var(--orange); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }

/* ───── لينكات / محتوى ───── */
.link-card { display: flex; align-items: center; gap: 14px; }
.link-card:active { transform: scale(.98); }
.link-card .ic-wrap { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }
.link-card .ic-wrap .ic { width: 26px; height: 26px; }
.link-card h3 { margin: 0; font-size: 17px; color: var(--navy); }
.link-card p { margin: 0; color: var(--muted); font-size: 14px; }
.bg-teal { background: var(--teal); } .bg-navy { background: var(--navy); } .bg-orange { background: var(--orange); }
.bg-wa { background: var(--wa); } .bg-pink { background: #D9467A; }

/* ───── الفوتر ───── */
#pay { padding: 22px 0 26px; }
.paym { text-align: center; }
.paym > small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.pm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pm { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 6px; font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1.4; color: var(--ink); cursor: default; }
a.pm, button.pm { cursor: pointer; }
.pm-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--teal); flex: none; overflow: hidden; }
.pm-ic .ic { width: 16px; height: 16px; } .pm-ic img { width: 24px; height: auto; }
.pm-cash .pm-ic { background: #1FAF56; } .pm-pos .pm-ic, .pm-card .pm-ic { background: var(--navy); } .pm-instapay .pm-ic { background: #fff; border: 1px solid var(--line); }
.pm-vodafone .pm-ic { background: #E60000; } .pm-etisalat .pm-ic { background: #5E9E1E; }
footer { background: var(--navy); color: #C9D6E2; padding: 36px 0 24px; position: relative; }
/* ترس صغير مركون تحت ← لوحة التحكم */
.gear { position: absolute; inset-inline-end: 12px; bottom: 10px; color: rgba(255,255,255,.28); padding: 6px; line-height: 0; }
.gear:hover { color: rgba(255,255,255,.7); }
.notice { display: block; background: var(--orange); color: #fff; font-weight: 800; text-align: center; border-radius: 14px; padding: 10px 16px; margin: 16px 0 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer b { color: #fff; font-size: 18px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.copy { width: 100%; font-size: 13px; opacity: .7; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; z-index: 50; max-width: 90vw; text-align: center; }

/* ───── الحركة ───── */
/* المحتوى دايماً ظاهر — الحركة بتزحلقه بس، فلو الموبايل وقّف الحركة (توفير بطارية مثلاً) مفيش حاجة بتختفي */
.reveal { transform: translateY(14px); transition: transform .5s var(--ease); }
.reveal.in { transform: none; }
.hero .up { animation: up .6s var(--ease); }
.hero .up:nth-child(2) { animation-delay: .06s; } .hero .up:nth-child(3) { animation-delay: .12s; } .hero .up:nth-child(4) { animation-delay: .18s; }
@keyframes up { from { transform: translateY(14px); } to { transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.center { text-align: center; }
.muted { color: var(--muted); }
