/* =========================================================
   Badr Al Safaa Medical Centre — Departments & Physicians
   Built from Figma file "Badr-Al-Safaa", prototype frame 526:5992
   Loads after style.css and about.css (shared top bar, visit block, footer).
   ========================================================= */

/* ---------- Top bar / nav variants ---------- */
.topbar--dept { height: 43px; position: relative; overflow: hidden; }
.site-nav--warm { background: #fcf9f4; overflow: hidden; }
.site-nav--warm::after {
  content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253,226,190,0.75), rgba(253,226,190,0)); pointer-events: none;
}
.site-nav--warm .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.dp-hero {
  position: relative; overflow: hidden; height: 531px; padding-top: 145px;
  background: linear-gradient(180deg, #060e18 0%, #091524 50%, #1a2a40 100%);
}
.dp-hero__blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.dp-hero__blob--right { width: 420px; height: 420px; right: -150px; top: -40px; background: rgba(120,116,104,0.62); }
.dp-hero__blob--left { width: 320px; height: 320px; left: -96px; bottom: -219px; background: rgba(217,155,38,0.1); }
.dp-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dp-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 16px; border-radius: 9999px;
  background: rgba(212,163,56,0.1); border: 1px solid rgba(212,163,56,0.25); backdrop-filter: blur(6px);
  font-weight: 600; font-size: 10px; line-height: 16px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.dp-hero__title {
  margin-top: 24px; font-family: var(--f-serif); font-weight: 700; font-size: 60px; line-height: 60px; letter-spacing: -1.5px; color: #fff;
}
.dp-hero__title em {
  display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #eccf90 0%, #c5a869 50%, #9f803c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 6px 4px;
}
.dp-hero__lead { max-width: 690px; margin-top: 24px; font-weight: 300; font-size: 16px; line-height: 22px; color: #cbd5e1; }

/* ---------- Search card ---------- */
.dp-search-wrap { background: #fff; display: flow-root; padding-bottom: 32px; }
.dp-search {
  position: relative; z-index: 2; width: min(1152px, 100%); margin: -56px auto 0; padding: 24px;
  background: #fff; border: 1px solid #f1f5f9; border-radius: 24px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.05), 0 20px 45px rgba(15,23,42,0.12), 0 0 0 rgba(15,23,42,0.05);
}
.dp-search__row { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.dp-field { position: relative; display: flex; align-items: center; height: 46px; border-radius: 6px; background: #fcfcfd; border: 1px solid rgba(226,232,240,0.9); transition: border-color .2s; }
.dp-field:focus-within { border-color: #c9a869; }
.dp-field img { position: absolute; pointer-events: none; }
.dp-field input, .dp-field select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #1c1917; }
.dp-field--query { flex: 1 1 auto; min-width: 0; }
.dp-field--query img { left: 0; top: 0; width: 35px; height: 44px; }
.dp-field--query input { padding: 0 44px 0 45px; font-family: var(--f-jakarta); font-size: 14px; }
.dp-field--query input::placeholder { color: #94a3b8; opacity: 1; }
.dp-search__btn {
  flex: 0 0 113px; height: 44px; padding: 10px 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: var(--gold); font-weight: 600; font-size: 14px; line-height: 14px; color: var(--ink);
  transition: filter .2s;
}
.dp-search__btn:hover { filter: brightness(1.04); }
.dp-search__depts { display: flex; align-items: center; gap: 8px; padding-top: 16px; }
.dp-arrow {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9999px; background: #fff; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, opacity .2s;
}
.dp-arrow:hover { border-color: #c9a869; }
.dp-arrow:disabled { cursor: default; opacity: .3; }
.dp-arrow img { width: 16px; height: 16px; }
.dp-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; padding: 4px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.dp-chips::-webkit-scrollbar { display: none; }
.dp-chip {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 9999px; background: #f3f4f6; border: 1px solid transparent;
  font-family: var(--f-jakarta); font-weight: 500; font-size: 14px; line-height: 20px; color: #334155; white-space: nowrap; transition: background-color .2s, color .2s;
}
.dp-chip:hover { background: #e8eaee; }
.dp-chip.is-active { background: #0f172a; border-color: #0f172a; color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* ---------- Physicians grid ---------- */
.dp-physicians { background: #fff; padding: 40px 0 80px; }
.dp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.dp-count { font-family: var(--f-jakarta); font-weight: 500; font-size: 12px; line-height: 16px; color: #64748b; white-space: nowrap; }
.dp-count b { font-weight: 700; }
.dp-physicians--dark { background: var(--ink); padding: 80px 0 17px; }
.dp-grid { display: grid; grid-template-columns: repeat(4, 278px); justify-content: space-between; row-gap: 24px; }
.dp-intro { padding-top: 6px; }
.dp-pill { font-weight: 600; font-size: 10px; line-height: 16px; letter-spacing: 0.8px; text-transform: uppercase; color: #b88e1c; }
.dp-intro__title { margin-top: 4px; padding-top: 2px; font-family: var(--f-serif); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -0.8px; color: #0f172a; }
.dp-intro__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: #64748b; }
.dept-card { width: 278px; height: 350px; }
.dept-card__photo { position: absolute; inset: 0; overflow: hidden; }
.dept-card__photo img { position: absolute; left: 0; top: 0; width: 100%; height: 372px; object-fit: cover; object-position: top; transition: transform .5s ease; }
.dept-card:hover .dept-card__photo img { transform: scale(1.04); }
.dept-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 48.558%, #000); }
.dept-card .doctor-card__name { white-space: nowrap; }
.dept-card .doctor-card__role { font-size: 15px; white-space: nowrap; }
.dept-card .doctor-card__cta span { font-size: 13px; font-weight: 400; }
.dept-card--sm .doctor-card__role { font-size: 14px; }
.dept-card--sm .doctor-card__cta span { font-size: 12px; font-weight: 500; }
.dept-card.is-hidden { display: none; }
.dp-empty { padding-top: 24px; font-size: 15px; color: #57534e; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .dp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .dept-card { width: 100%; }
  .dp-field--query { flex: 1 1 auto; }
}
@media (max-width: 1180px) {
  .dp-search__row { flex-wrap: wrap; }
  .dp-field--query { flex: 1 1 100%; }
  .dp-avail { justify-content: flex-start; }
  .dp-search-wrap { height: auto; padding-bottom: 48px; }
}
@media (max-width: 960px) {
  .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-head { flex-direction: column; align-items: flex-start; }
  .dp-intro__text br, .dp-hero__lead br { display: none; }
  .dp-hero { height: auto; padding: 96px 0 104px; }
  .dp-hero__title { font-size: 48px; line-height: 50px; }
}
@media (max-width: 640px) {
  .dp-hero { padding: 64px 0 96px; }
  .dp-hero__title { font-size: 36px; line-height: 40px; }
  .dp-badge { font-size: 10px; letter-spacing: 1.2px; padding: 0 12px; }
  .dp-hero__lead { font-size: 16px; line-height: 22px; }
  .dp-search { padding: 16px; }
  .dp-search__btn { flex: 1 1 100%; }
  .dp-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dept-card { max-width: 340px; height: 400px; }
  .dept-card__photo img { height: 100%; }
  .dp-physicians { padding: 56px 0; }
  .dp-physicians--dark { padding: 56px 0; }
}
