/* Single specialist (doctor) profile page.
   Styles copied verbatim from nakasero-hospital-main/doctor-sarah-namutebi.html
   (the page's inline <style> block). Hardcoded for now — dynamic fields later.
   Only change vs. source: the @font-face src points at the theme's bundled font. */

/* ─── Astra wrapper reset (integration shim, not from the source) ──────────────
   Astra wraps the template in #content > .ast-container with a max-width and side
   padding. Neutralise it so the sections render full-bleed and their own
   `padding: 40px 200px` gutters match the reference design. */
.specialist-detail-page .ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.specialist-detail-page #content.site-content { padding: 0; }

/* ─── FA Pro ───────────────────────────────────────────────── */
@font-face {
  font-family: 'FA Pro';
  src: url('../fonts/Font Awesome 7 Pro-Regular-400.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
.fa { font-family: 'FA Pro'; font-style: normal; font-weight: 400; line-height: 1; display: inline-block;
      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --background: 220 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --primary: 216 100% 22%;
  --primary-foreground: 0 0% 100%;
  --primary-light: 216 45% 94%;
  --primary-tint: 205 70% 72%;
  --accent: 196 100% 46%;
  --accent-foreground: 0 0% 100%;
  --muted: 220 20% 96%;
  --muted-foreground: 220 10% 46%;
  --border: 220 15% 90%;
  --info: 199 88% 50%;
  --destructive: 0 75% 48%;
  --destructive-soft: 0 80% 96%;
  --surface: 220 30% 96%;
  --surface-warm: 38 40% 97%;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 hsl(216 100% 22% / .05);
  --shadow-md: 0 4px 12px -2px hsl(216 100% 22% / .08);
  --shadow-lg: 0 14px 40px -12px hsl(216 100% 22% / .25);
  --shadow-menu: 0 24px 48px -16px hsl(216 100% 22% / .25);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 12px;
}
.breadcrumb a:hover { color: hsl(var(--primary)); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .current { color: hsl(var(--accent)); }

/* ─── Page layout: two columns ─────────────────────────────── */
.detail {
  padding: 40px 200px;
}
.detail__inner {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .detail__inner { grid-template-columns: minmax(0, 1fr); }
  .side-right { position: static; margin-top: 8px; }
}

/* ─── Center: profile body ─────────────────────────────────── */
.profile__head {
  display: flex; align-items: flex-start; gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.profile__photo {
  width: 132px; height: 132px; flex-shrink: 0;
  border-radius: 18px; object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border));
}
.profile__head-text { flex: 1; min-width: 0; }
.profile__name {
  margin: 0 0 6px;
  font: 600 clamp(1.625rem, 2.8vw, 2.25rem)/1.15 var(--font-sans);
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}
.profile__title {
  margin: 0 0 10px;
  font: 600 16px/1.4 var(--font-sans);
  color: hsl(var(--accent));
}
.profile__location {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: hsl(var(--muted-foreground));
}
.profile__location .fa { color: hsl(var(--accent)); font-size: 14px; }
.profile__bio {
  margin: 0 0 8px;
  font-size: 15.5px; line-height: 1.7;
  color: hsl(var(--foreground));
}

/* ─── Profile accordions ───────────────────────────────────── */
.profile-acc { margin-top: 28px; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid hsl(var(--border));
}
.profile-acc details {
  border-bottom: 1px solid hsl(var(--border));
  padding: 18px 0;
}
.profile-acc summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--primary));
}
.profile-acc summary::-webkit-details-marker { display: none; }
.profile-acc summary::after {
  content: "\f078"; font-family: 'FA Pro';
  font-size: 13px; font-weight: 400;
  color: hsl(var(--accent));
  transition: transform .2s;
}
.profile-acc details[open] summary::after { transform: rotate(180deg); }
.profile-acc__body { padding-top: 16px; }
.profile-acc__sub {
  margin: 0 0 6px;
  font: 600 14px/1.3 var(--font-sans);
  color: hsl(var(--foreground));
}
.profile-acc__sub:not(:first-child) { margin-top: 18px; }
.profile-acc p {
  margin: 0;
  font-size: 14.5px; line-height: 1.7;
  color: hsl(var(--muted-foreground));
}
.profile-acc ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.profile-acc ul li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; line-height: 1.6;
  color: hsl(var(--foreground));
}
.profile-acc ul li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 5px; height: 5px; border-radius: 9999px;
  background: hsl(var(--accent));
}

/* ─── Condition tags ───────────────────────────────────────── */
.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.tag {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 9999px;
  background: hsl(var(--primary-light));
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--border));
  font: 600 13px/1 var(--font-sans);
}

/* ─── Right rail: booking card ─────────────────────────────── */
.side-right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.booking {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.booking__eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 6px;
}
.booking__name {
  margin: 0 0 18px;
  font: 600 18px/1.2 var(--font-sans);
  color: hsl(var(--foreground));
}
.booking__days-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.booking__nav {
  width: 30px; height: 30px; flex-shrink: 0;
  padding: 0; /* Astra's global button padding (14px 28px) ovals the circle */
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--primary));
  display: grid; place-items: center;
  font-size: 12px;
  transition: background .15s, border-color .15s;
}
.booking__nav:hover { background: hsl(var(--primary-light)); border-color: hsl(var(--accent) / .5); }
.booking__days {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.booking__day-label {
  text-align: center;
  font: 600 12px/1.3 var(--font-sans);
  color: hsl(var(--muted-foreground));
}
.booking__day-label span {
  display: block;
  font-size: 14px; color: hsl(var(--foreground));
}
.booking__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.booking__col { display: flex; flex-direction: column; gap: 8px; }
.slot {
  height: 38px; padding: 0 6px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--primary));
  font: 600 12.5px/1 var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.slot:hover { background: hsl(var(--primary-light)); border-color: hsl(var(--accent) / .5); }
.slot--booked {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
  cursor: not-allowed;
}
.slot--booked:hover { background: hsl(var(--muted)); border-color: hsl(var(--border)); }
.slot--selected {
  background: hsl(var(--accent) / .12);
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / .18);
}
.booking__more {
  margin-top: 16px; width: 100%;
  height: 44px;
  border-radius: 9999px;
  border: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font: 600 14px/1 var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .15s;
}
.booking__more:hover { filter: brightness(1.08); }
.booking__more .fa { font-size: 14px; }

/* ─── Areas of operation card ──────────────────────────────── */
.ops {
  padding: 0 200px 40px;
}
.ops__card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 8px 28px;
  box-shadow: var(--shadow-sm);
}
.ops__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 24px 0;
}
.ops__row + .ops__row { border-top: 1px solid hsl(var(--border)); }
.ops__row-text { min-width: 0; flex: 1; }
.ops__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}
.ops__value {
  font: 600 17px/1.4 var(--font-sans);
  color: hsl(var(--foreground));
}
.ops__value a {
  transition: color .15s;
}
.ops__value a:hover {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ops__actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  height: 44px; padding: 0 22px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 0;
  font: 600 14px/1 var(--font-sans);
  display: inline-flex; align-items: center; gap: 8px;
  transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  height: 44px; padding: 0 22px;
  border-radius: 9999px;
  background: transparent;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--border));
  font: 600 14px/1 var(--font-sans);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: hsl(var(--primary-light)); border-color: hsl(var(--accent) / .5); }

/* ─── Navy CTA band ────────────────────────────────────────── */
.cta-band {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 64px 200px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, hsl(var(--accent) / .35), transparent 60%),
    radial-gradient(ellipse at 20% -10%, hsl(var(--primary-tint) / .2), transparent 50%);
  pointer-events: none;
}
.cta-band__inner { max-width: 720px; margin: 0 auto; position: relative; }
.cta-band__eyebrow {
  font-size: 12px; font-weight: 600;
  color: hsl(var(--primary-tint));
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-band h2 {
  margin: 0 0 16px;
  font: 600 clamp(2rem, 4vw, 3rem)/1.1 var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cta-band p {
  margin: 0 auto 36px;
  font-size: 17px; line-height: 1.6;
  color: hsl(var(--primary-foreground) / .8);
  max-width: 56ch;
  text-wrap: pretty;
}
.cta-band__actions {
  display: inline-flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.cta-band__primary {
  height: 56px; padding: 0 32px;
  border-radius: 9999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font: 600 15px/1 var(--font-sans);
  border: 0; cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 12px;
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.cta-band__primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-lg); }
.cta-band__primary:active { transform: translateY(1px); }
.cta-band__ghost {
  height: 56px; padding: 0 28px;
  border-radius: 9999px;
  background: transparent;
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary-foreground) / .35);
  font: 600 15px/1 var(--font-sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, border-color .2s;
}
.cta-band__ghost:hover { background: hsl(var(--primary-foreground) / .1); border-color: hsl(var(--primary-foreground) / .55); }

/* Tighten section gutters on smaller viewports */
@media (max-width: 1200px) {
  .detail,
  .ops,
  .cta-band { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 600px) {
  .ops__actions { width: 100%; }
  .ops__actions .btn-primary,
  .ops__actions .btn-ghost { flex: 1; justify-content: center; }
}
