/* Country pages: /countries/bahrain, /countries/saudi-arabia, /countries/oman */

[lang="ar"] { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font); }

/* ---------- Hero ---------- */
.c-hero { position: relative; padding: 40px 0 88px; overflow: hidden; }
.c-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #D5DBE3 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 75% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 75% 30%, #000 20%, transparent 75%);
}
html[dir="rtl"] .c-dots {
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 25% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 25% 30%, #000 20%, transparent 75%);
}
.c-glow {
  position: absolute; width: 640px; height: 640px; inset-inline-end: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 20, 44, .12), rgba(224, 20, 44, 0) 65%);
}
.c-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 30px; }

.c-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.c-switch > span { font-size: 14px; font-weight: 700; color: var(--slate-3); margin-inline-end: 4px; }
.sw {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all .2s;
}
.sw:hover { border-color: var(--navy); color: var(--ink); }
.sw.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.c-hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.c-hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.c-hero-copy .eyebrow { margin: 0; }
.c-hero-copy h1 { font-size: 60px; margin: 0; animation-delay: .06s; }
.c-hero-copy .lead { font-size: 19px; animation-delay: .14s; }
.c-btns { display: flex; flex-wrap: wrap; gap: 12px; animation-delay: .18s; }
@media (max-width: 900px) { .c-hero-copy h1 { font-size: 42px; } }

/* Sample invoice */
.c-hero-art { flex: 1 1 440px; min-width: 0; position: relative; animation-delay: .15s; perspective: 1200px; }
.c-backing { position: absolute; inset: 30px -20px -20px 30px; border-radius: 26px; background: var(--navy); }
html[dir="rtl"] .c-backing { inset: 30px 30px -20px -20px; }
.c-inv { position: relative; }
.c-inv > * { transform: rotateY(8deg) translateY(8px); }
.c-inv > .on { transform: none; }
.inv {
  padding: 26px; box-shadow: 0 40px 70px -40px rgba(26, 36, 51, .8);
  display: flex; flex-direction: column; gap: 12px; text-align: start; color: var(--ink);
}
.inv .tag { letter-spacing: 0; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-clinic { display: block; font-size: 20px; font-weight: 800; margin-top: 4px; }
.inv-city { display: block; font-size: 13px; color: var(--slate-2); }
.inv-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed #E5E9EE; font-size: 15px; }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 2px solid var(--ink); }
.inv-total b:last-child { font-size: 26px; letter-spacing: -0.02em; }
.inv-split { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .c-backing { inset: 18px -8px -12px 18px; }
  html[dir="rtl"] .c-backing { inset: 18px 18px -12px -8px; }
  .inv { padding: 20px; }
  .inv-total b:last-child { font-size: 22px; }
  .inv-split .badge { white-space: normal; }
}

/* ---------- Shared section bits ---------- */
.c-col { display: flex; flex-direction: column; gap: 40px; }
.c-col .h2 { margin-bottom: 0; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

/* ---------- Set up for the country ---------- */
.c-setup { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.c-setup-ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.c-setup b { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.c-setup-d { font-size: 14px; line-height: 1.55; color: var(--slate); }

/* ---------- Cities ---------- */
.c-cities { position: relative; overflow: hidden; }
.c-cities-glow {
  position: absolute; width: 760px; height: 760px; inset-inline-start: -260px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 20, 44, .22), rgba(224, 20, 44, 0) 62%);
}
.c-cities .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.c-cities-copy { flex: 1 1 380px; min-width: 0; }
.c-city-list { flex: 1.2 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.city {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; font-size: 15px; color: #fff;
}
.city .pd { width: 10px; height: 10px; border-radius: 50%; background: var(--red); position: relative; flex-shrink: 0; }
.city .pd::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--red); animation: ping 2.2s ease-out infinite; }
.city-alt { color: var(--on-dark); font-weight: 600; }
@media (max-width: 480px) { .c-city-list { flex-basis: 100%; } .c-cities .wrap { gap: 32px; } }

/* ---------- Contact ---------- */
.c-contact-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.c-help { padding: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--slate); }
.c-help-h { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
.c-help-ic {
  width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c-help a { color: var(--red-hover); font-weight: 700; text-decoration: none; align-self: flex-start; padding: 2px 0; }
.c-help a:hover { color: var(--red-deep); text-decoration: underline; }
/* Five cards (with a local partner) fit one row on desktop */
.c-grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.c-partner { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.c-partner-name { color: var(--ink); }

/* Clinics using Aafia in the country */
.c-clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px;
}
.c-clients > b { font-size: 15px; color: var(--navy); }
.c-clients ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; list-style: none; margin: 0; padding: 0; }
.c-clients img { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.c-clients .badge { font-size: 13px; padding: 8px 14px; }

/* Dummy data (Development only): dashed outline so it's obvious in review */
.c-ph { border: 1px dashed #C9D1DC; box-shadow: none; }

/* ---------- FAQ ---------- */
.c-faqs { padding: 32px 0 104px; }
.c-faqs .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.c-faqs-head { flex: 1 1 300px; min-width: 0; }
.c-faqs-list { flex: 2 1 520px; min-width: 0; }

/* ---------- CTA ---------- */
.c-cta { padding: 0 24px 96px; }
.c-cta-box {
  position: relative; overflow: hidden; max-width: 1152px; margin: 0 auto; border-radius: 30px; padding: 64px 32px;
  text-align: center; color: #fff; background: var(--navy-deep); display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.c-cta-box > * { position: relative; }
.c-cta-glow {
  position: absolute !important; width: 700px; height: 700px; left: 50%; top: -380px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(224, 20, 44, .35), rgba(224, 20, 44, 0) 62%);
}
.c-cta-ecg { position: absolute !important; left: 0; right: 0; bottom: 14px; width: 100%; height: 80px; }
.c-cta-box .h2 { color: #fff; max-width: 720px; margin: 0; }
.c-cta-box .lead { color: var(--on-dark); text-align: center; }
.c-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 40px; }
@media (max-width: 480px) { .c-cta { padding: 0 16px 72px; } .c-cta-box { padding: 48px 20px; } }
