/* Specialty pages: /solutions/gp-clinics, polyclinics, dental-clinics, specialty-centres (Pages/Solutions/Index.cshtml).
   Logical properties throughout so /ar mirrors. */

/* ---------- Hero ---------- */
.s-hero { position: relative; padding: 40px 0 88px; overflow: hidden; }
.s-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"] .s-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%);
}
.s-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%);
}
.s-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 30px; }

/* Clinic type switcher */
.s-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-switch > span { font-size: 14px; font-weight: 700; color: var(--slate-3); margin-inline-end: 4px; }
.s-switch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.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, .sw.on:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

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

/* "A day at …" stepper */
.s-hero-art { flex: 1 1 460px; min-width: 0; position: relative; animation-delay: .15s; }
.s-backing { position: absolute; inset-block: 30px -20px; inset-inline: 30px -20px; border-radius: 26px; background: var(--navy); }
.s-day { position: relative; padding: 22px; box-shadow: 0 40px 70px -40px rgba(26, 36, 51, .8); }
.s-day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.s-day-head b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
html[lang="ar"] .s-day-head b, html[lang="ar"] .tag { letter-spacing: 0; }
.s-day-head .badge { font-variant-numeric: tabular-nums; }

.s-steps { position: relative; display: flex; flex-direction: column; }
.s-rail, .s-fill { position: absolute; inset-inline-start: 26px; top: 24px; width: 2px; }
.s-rail { bottom: 24px; background: #E5E9EE; }
.s-fill { height: calc((100% - 48px) * var(--frac)); background: var(--red); transition: height .6s ease; }

.dstep {
  position: relative; width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px;
  border: 0; border-radius: 14px; background: transparent; font: inherit; color: inherit; text-align: start; cursor: pointer;
  transition: background .4s, transform .4s;
}
.dstep:hover { background: var(--ground); }
.dstep .dot {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 2px solid var(--line-2); color: #8A95A6;
  display: flex; align-items: center; justify-content: center; transition: all .4s;
}
.dstep.done .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.dstep.on { background: var(--red-tint); transform: translateX(calc(4px * var(--dir))); }
.dstep.on .dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(224, 20, 44, .14); }
.dstep .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; opacity: .65; transition: opacity .4s; }
.dstep.on .body, .dstep.done .body { opacity: 1; }
.s-step-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.s-step-h b { font-size: 15px; }
.s-step-h .time { font-size: 13px; color: var(--slate-3); font-variant-numeric: tabular-nums; }
.s-step-d { font-size: 13px; line-height: 1.5; color: var(--slate); }
.dstep > .badge { align-self: center; }

/* ---------- Shared section bits ---------- */
.s-col { display: flex; flex-direction: column; gap: 40px; }
.s-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .s-grid3 { grid-template-columns: minmax(0, 1fr); } }

/* What changes */
.s-fix { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.s-fix > div { display: flex; flex-direction: column; gap: 6px; }
.s-fix .badge { align-self: flex-start; }
.s-before { font-size: 16px; line-height: 1.55; color: var(--slate); text-decoration: line-through; text-decoration-color: rgba(224, 20, 44, .5); }
.s-fix b { font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
html[lang="ar"] .s-fix b { letter-spacing: 0; }
.s-fix-arr { color: #C2C9D3; }

/* Module cards */
.s-mod {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.s-mod:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -28px rgba(26, 36, 51, .55); border-color: #C9D1DC; color: var(--ink); }
.s-mod:hover .ic { background: var(--red); color: #fff; }
.s-mod-h { display: flex; align-items: center; gap: 12px; }
.s-mod-h b { font-size: 17px; }
.s-mod-d { font-size: 15px; line-height: 1.6; color: var(--slate); }
.s-mod .more { margin-top: auto; }

/* ---------- Recommended plan ---------- */
.s-plan { position: relative; overflow: hidden; }
.s-plan-glow {
  position: absolute; width: 760px; height: 760px; inset-inline-end: -260px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 20, 44, .22), rgba(224, 20, 44, 0) 62%);
}
.s-plan .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.s-plan-copy { flex: 1 1 380px; min-width: 0; }
.s-compare { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 14px; color: var(--red-light); font-weight: 700; text-decoration: none; }
.s-compare:hover { color: #fff; }
.s-compare svg { transform: scaleX(var(--dir)); transition: transform .2s; }
.s-compare:hover svg { transform: scaleX(var(--dir)) translateX(4px); }
.s-plan-card {
  position: relative; flex: 1 1 400px; min-width: 0; background: #fff; color: var(--ink); border-radius: 24px; padding: 30px;
  display: flex; flex-direction: column; gap: 16px; transition-delay: .12s;
}
.s-flag { position: absolute; top: -14px; inset-inline-start: 30px; background: var(--red); color: #fff; padding: 6px 14px; }
.s-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.s-plan-top > b { font-size: 24px; letter-spacing: -0.02em; }
.s-plan-top .segb { min-height: 44px; font-size: 13px; padding: 0 12px; }
.s-price { display: flex; align-items: baseline; gap: 6px; }
.s-price .amt { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.s-price .per { font-size: 15px; color: var(--slate-2); }
.s-billed { font-size: 13px; color: var(--slate-3); margin-top: -8px; }
/* Swap (not crossfade) so the box fits the visible price: "$99" vs "$74.25" */
.s-price .stack > :not(.on), .s-billed.stack > :not(.on) { display: none; }
.s-plan-card ul { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); }
.s-plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.s-plan-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.s-plan-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.s-plan-note { font-size: 13px; line-height: 1.5; color: var(--slate-3); }

/* ---------- Testimonial (red band; base styles .cu-quotes in aafia.css) ---------- */
.s-quote { padding: 88px 0; }
.s-quote .wrap { gap: 26px; max-width: 960px; }
.s-quote blockquote { font-size: 30px; line-height: 1.35; }
html[lang="ar"] .s-quote blockquote { line-height: 1.6; }
html[dir="rtl"] .s-qmark { transform: scaleX(-1); }
@media (max-width: 760px) { .s-quote { padding: 72px 0; } .s-quote blockquote { font-size: 22px; } }

/* ---------- FAQ ---------- */
.s-faqs { padding: 96px 0 104px; }
.s-faqs .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.s-faqs-head { flex: 1 1 300px; min-width: 0; }
.s-faqs-head .lead { font-size: 16px; }
.s-faqs-head .lead a { font-weight: 700; }
.s-faqs-list { flex: 2 1 520px; min-width: 0; }
.s-faq-ph { padding-inline: 14px; border-radius: 12px; margin-bottom: 8px; }
/* Unconfirmed sentence on a real answer (Development only) */
.s-ph { display: inline; padding: 1px 6px; border-radius: 6px; font-size: .92em; color: var(--slate-3); }

/* ---------- Call to action ---------- */
.s-cta { padding: 0 24px 96px; }
.s-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;
}
.s-cta-box > * { position: relative; }
.s-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%);
}
.s-cta-ecg { position: absolute !important; left: 0; right: 0; bottom: 14px; width: 100%; height: 80px; }
.s-cta-box .h2 { color: #fff; max-width: 720px; margin: 0; }
.s-cta-box .lead { color: var(--on-dark); text-align: center; }
.s-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 40px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .s-hero { padding-bottom: 72px; }
  .s-backing { inset-block: 18px -12px; inset-inline: 18px -6px; border-radius: 22px; }
  .s-day { padding: 16px 12px; }
  .dstep { padding: 10px 8px; gap: 12px; }
  .s-rail, .s-fill { inset-inline-start: 22px; }
  /* Module badges would each need their own row here; the step text says enough */
  .dstep > .badge { display: none; }
  .s-plan-card { padding: 26px 20px; }
  .s-price .amt { font-size: 44px; }
}
@media (max-width: 600px) {
  /* Clinic types on one swipeable row (solution.js scrolls the current one into view) */
  .s-switch { display: block; }
  .s-switch > span { display: block; margin-bottom: 8px; }
  /* Bleeds to the screen edges (cancels .wrap padding) so chips scroll out of view cleanly */
  .s-switch-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; }
  .s-switch-row::-webkit-scrollbar { display: none; }
  .sw { flex-shrink: 0; }
}
@media (max-width: 480px) {
  .s-switch-row { margin-inline: -16px; padding-inline: 16px; }
  .s-fix { padding: 20px; gap: 12px; }
  .s-mod { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .s-mod-h { display: contents; }
  .s-mod-h .ic { grid-row: span 3; }
  .s-mod-h b { align-self: center; }
  .s-cta { padding: 0 16px 72px; }
  .s-cta-box { padding: 48px 20px; }
  .s-plan-btns .btn { flex: 1 1 100%; }
}

/* ================= /specialties overview (Pages/Specialties.cshtml) ================= */
.sp-hero { padding-bottom: 104px; }
.sp-hero .wrap { gap: 44px; }
.sp-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.sp-head .eyebrow, .sp-head .h1 { margin: 0; }
.sp-head .h1 { animation-delay: .06s; }
.sp-head .lead { animation-delay: .12s; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.sp-card { padding: 26px; gap: 12px; }
.sp-card .ic { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 6px; }
.sp-card h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
html[lang="ar"] .sp-card h2 { letter-spacing: 0; }
.sp-card .tag { margin-bottom: -6px; }
.sp-help { font-size: 16px; color: var(--slate); }
.sp-help a { font-weight: 700; }
@media (max-width: 480px) {
  .sp-hero { padding-bottom: 72px; }
  .sp-card { display: flex; padding: 22px; }
}
