/* =========================================================
   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: 135px;
  background: linear-gradient(180deg, #060f18 0%, #0a1627 45%, #192940 100%);
}
.dp-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); 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: 420px; height: 380px; left: -210px; bottom: -150px; background: rgba(96,104,108,0.55); }
.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 0 15px; border-radius: 9999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(214,196,150,0.35);
  font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 1.45px; color: #e6cf8f; white-space: nowrap;
}
.dp-badge img { width: 16px; height: 16px; }
.dp-hero__title {
  margin-top: 24px; font-weight: 700; font-size: 58px; line-height: 58px; letter-spacing: -0.4px; color: #fff;
}
.dp-hero__title em {
  display: block; font-family: var(--f-serif); font-style: italic; font-weight: 700; letter-spacing: -0.8px;
  background: linear-gradient(90deg, #e6d09d 0%, #c9a869 55%, #b0936a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 6px 8px;
}
.dp-hero__lead { max-width: 640px; margin-top: 17px; font-size: 16px; line-height: 22px; color: rgba(226,234,244,0.86); }

/* ---------- Search card ---------- */
.dp-search-wrap { background: #fcf9f4; height: 227px; display: flow-root; }
.dp-search {
  position: relative; z-index: 2; width: min(1104px, 100%); margin: -56px auto 0; padding: 21px 21px 22px;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(15,23,42,0.18), 0 1px 3px rgba(15,23,42,0.06);
}
.dp-search__row { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eef0f3; }
.dp-field { position: relative; display: flex; align-items: center; height: 44px; border-radius: 10px; background: #fbfcfe; border: 1px solid #e2e5ea; 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; } /* fills the row up to the Search button */
.dp-field--query img { left: 13px; width: 20px; height: 20px; }
.dp-field--query input { padding: 0 16px 0 44px; font-size: 14px; }
.dp-field--query input::placeholder { color: #94969b; opacity: 1; }
.dp-field--lang { flex: 0 0 166px; height: 42px; background: #fff; }
.dp-field--lang img { left: 13px; width: 18px; height: 18px; }
.dp-field--lang select { padding: 0 10px 0 38px; appearance: none; -webkit-appearance: none; font-size: 13px; font-weight: 500; color: #313538; cursor: pointer; }
.dp-avail { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; white-space: nowrap; }
.dp-avail > i { width: 9px; height: 9px; border-radius: 9999px; background: #10b981; }
.dp-avail > span:first-of-type { font-weight: 600; font-size: 13px; line-height: 20px; color: #2f333c; }
.dp-avail input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dp-avail__box { width: 20px; height: 20px; margin-left: 6px; border-radius: 5px; background: #0f172a; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.dp-avail__box img { width: 10.5px; height: 10.5px; }
.dp-avail input:not(:checked) + .dp-avail__box { background: #fff; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.dp-avail input:not(:checked) + .dp-avail__box img { opacity: 0; }
.dp-avail input:focus-visible + .dp-avail__box { outline: 2px solid #c9a869; outline-offset: 2px; }
.dp-search__btn {
  flex: 0 0 166px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #ecd28f 0%, #d4b26e 100%); font-weight: 600; font-size: 16px; line-height: 24px; color: #100600;
  transition: filter .2s;
}
.dp-search__btn:hover { filter: brightness(1.04); }
.dp-search__btn img { width: 17.5px; height: 17.5px; }
.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 #e5e7eb;
  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; }
.dp-arrow img { width: 14.5px; height: 14.5px; }
.dp-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.dp-chips::-webkit-scrollbar { display: none; }
.dp-chip {
  flex: 0 0 auto; height: 30px; padding: 0 16px; border-radius: 9999px; background: #f2f3f5;
  font-weight: 500; font-size: 12.5px; line-height: 20px; color: #2f333c; white-space: nowrap; transition: background-color .2s, color .2s;
}
.dp-chip:hover { background: #e8eaee; }
.dp-chip.is-active { background: #020817; color: #fff; font-weight: 600; }

/* ---------- Physicians grid ---------- */
.dp-physicians { background: #fff; padding: 80px 0; }
.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: 16px; padding-right: 20px; }
.dp-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 12px 0 11px; border-radius: 9999px; background: #e7e7e7;
  font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: 1.1px; color: #231f20; white-space: nowrap;
}
.dp-pill i { width: 8px; height: 8px; border-radius: 9999px; background: #231f20; }
.dp-intro__title { margin-top: 18px; font-family: var(--f-noto); font-weight: 600; font-size: 32px; line-height: 36px; color: #1c1917; }
.dp-intro__text { margin-top: 26px; font-size: 14px; line-height: 20px; color: #1c1917; }
.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-intro { grid-column: 1 / -1; padding-top: 0; }
  .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-field--lang, .dp-search__btn { flex: 1 1 100%; }
  .dp-avail { flex: 1 1 100%; justify-content: space-between; }
  .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; }
}
