/* ── Doctors page (page-doctors.php) ─────────────────────────────
   Loaded after solene.css on that template only. */

/* Hero: text + photo collage with floating badges over a monogram watermark */
.dc-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding-block: calc(var(--banner-h, 0px) + var(--sl-header-h) + 48px) 72px;
    background:
        radial-gradient(ellipse 55% 70% at 85% 40%, rgba(220, 183, 77, .14), transparent 70%),
        linear-gradient(180deg, #FBF8F2 0%, var(--sl-ivory) 100%);
}
.dc-hero::before {
    content: ""; position: absolute; z-index: -1; right: -120px; top: 40px; width: 560px; height: 560px;
    background: url(../images/solene-mark.svg) center / contain no-repeat; opacity: .06;
}
.dc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--sl-ink-soft); margin-bottom: 26px; }
.dc-crumbs a { color: var(--sl-ink-soft); text-decoration: none; }
.dc-crumbs a:hover { color: var(--sl-brown); }
.dc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dc-hero__text { display: grid; gap: 20px; justify-items: start; }
.dc-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; color: var(--sl-ink); }
.dc-hero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--sl-ink); max-width: 58ch; }
.dc-hero__note { font-size: 16px; line-height: 1.65; color: var(--sl-ink-soft); max-width: 58ch; }
.dc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dc-hero__text > * { animation: sl-fromRight .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.dc-hero__text > :nth-child(2) { animation-delay: .1s; }
.dc-hero__text > :nth-child(3) { animation-delay: .2s; }
.dc-hero__text > :nth-child(4) { animation-delay: .3s; }
.dc-hero__text > :nth-child(5) { animation-delay: .4s; }

.dc-hero__media { position: relative; height: 470px; }
.dc-hero__media::before {
    content: ""; position: absolute; left: calc(24% + 16px); top: 16px; width: 46%; height: 100%;
    border: 1px solid var(--sl-gold-soft); border-radius: 999px 999px 18px 18px; z-index: 0;
}
.dc-ph { position: absolute; overflow: hidden; background: var(--sl-sand); box-shadow: 0 24px 60px rgba(43, 31, 23, .14); }
.dc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.dc-hero__media:hover .dc-ph img { transform: scale(1.04); }
.dc-ph--a { left: 24%; top: 0; width: 46%; height: 100%; border-radius: 999px 999px 18px 18px; z-index: 2; }
.dc-ph--a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.dc-ph--b { left: 0; top: 18%; width: 30%; height: 54%; border-radius: 18px; z-index: 1; }
.dc-ph--c { right: 0; top: 30%; width: 30%; height: 56%; border-radius: 18px; z-index: 1; }

.dc-float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(43, 31, 23, .14); animation: dc-float 6s ease-in-out infinite;
}
.dc-float b { display: block; font-size: 16px; font-weight: 600; color: var(--sl-ink); line-height: 1.2; }
.dc-float span { display: block; font-size: 12.5px; color: var(--sl-ink-soft); }
.dc-float > .sl-i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--sl-ivory); color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); }
.dc-float--exp { left: 4%; bottom: 6%; }
.dc-float--team { right: 2%; top: 6%; animation-delay: -3s; }
.dc-avatars { display: flex; }
.dc-avatars img, .dc-avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; object-position: 50% 15%; margin-left: -10px; }
.dc-avatars > :first-child { margin-left: 0; }
.dc-avatars span { display: grid; place-items: center; background: var(--sl-brown); color: #fff; font-size: 11.5px; font-weight: 600; }
@keyframes dc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Specialty filter: sticks under the fixed header */
.dc-filter { position: sticky; top: calc(var(--banner-h, 0px) + var(--sl-header-h)); z-index: 20; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sl-sand); font-family: var(--sl-font); }
/* The chip row scrolls sideways: thin gold scrollbar, mouse wheel and drag
   (doctors.js), arrow buttons and edge fades while more chips are hidden. */
.dc-filter__bar { position: relative; display: flex; align-items: center; }
.dc-filter__in {
    flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    padding-block: 14px 10px; scrollbar-width: thin; scrollbar-color: var(--sl-gold-soft) transparent;
    cursor: grab;
}
.dc-filter__in.is-dragging { cursor: grabbing; user-select: none; }
.dc-filter__in.is-dragging .dc-chip { pointer-events: none; }
.dc-filter__in::-webkit-scrollbar { height: 4px; }
.dc-filter__in::-webkit-scrollbar-thumb { background: var(--sl-gold-soft); border-radius: 4px; }
.dc-filter__in::-webkit-scrollbar-track { background: transparent; }
.dc-filter__bar.has-more-end .dc-filter__in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
.dc-filter__bar.has-more-start .dc-filter__in { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px); mask-image: linear-gradient(90deg, transparent, #000 72px); }
.dc-filter__bar.has-more-start.has-more-end .dc-filter__in { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.dc-filter__arrow {
    position: absolute; top: 50%; z-index: 1; width: 40px; height: 40px; margin-top: -22px;
    display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--sl-sand);
    background: #fff; color: var(--sl-brown); cursor: pointer; box-shadow: 0 6px 18px rgba(43, 31, 23, .1);
    transition: border-color .25s, color .25s, opacity .25s;
}
.dc-filter__arrow:hover { border-color: var(--sl-gold-soft); color: var(--sl-gold-deep); }
.dc-filter__arrow--prev { left: clamp(16px, 4vw, 40px); }
.dc-filter__arrow--prev .sl-i { transform: rotate(90deg); }
.dc-filter__arrow--next { right: clamp(16px, 4vw, 40px); }
.dc-filter__arrow--next .sl-i { transform: rotate(-90deg); }
.dc-filter__arrow[hidden] { display: none; }
@media (hover: none) { .dc-filter__arrow { display: none; } }
.dc-chip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sl-sand); background: var(--sl-bg); color: var(--sl-ink); font: 500 14px var(--sl-font); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.dc-chip:hover { border-color: var(--sl-gold-soft); }
.dc-chip[aria-pressed="true"] { background: var(--sl-brown); border-color: var(--sl-brown); color: #fff; }
.dc-chip span { opacity: .6; margin-left: 4px; }

/* Doctor cards: photo | profile | price + booking */
.dc-list { display: grid; gap: 28px; padding-block: 48px clamp(64px, 8vw, 112px); font-family: var(--sl-font); color: var(--sl-ink); scroll-margin-top: calc(var(--sl-header-h) + 72px); }
.dc-card { display: grid; grid-template-columns: 300px minmax(0, 1fr) 260px; gap: 36px; padding: 28px; border: 1px solid var(--sl-sand); border-radius: 20px; background: var(--sl-bg); transition: box-shadow .35s ease, border-color .35s ease; scroll-margin-top: calc(var(--sl-header-h) + 84px); }
.dc-card:hover { box-shadow: 0 24px 60px rgba(43, 31, 23, .08); border-color: #E6DAC6; }
.dc-card[hidden] { display: none; }
.dc-card h2, .dc-card h3, .dc-card p { margin: 0; }

.dc-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--sl-ivory); }
.dc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dc-photo--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--sl-ivory), #F1E8D9); }
.dc-initials { font-size: 46px; font-weight: 600; letter-spacing: .04em; background: var(--sl-gold-ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-photo__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 13px; font-weight: 600; color: var(--sl-ink); box-shadow: 0 8px 20px rgba(43, 31, 23, .1); }
.dc-photo__badge .sl-i { color: var(--sl-gold-deep); }

.dc-body { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-tag { padding: 5px 12px; border-radius: 999px; background: var(--sl-ivory); border: 1px solid var(--sl-sand); font-size: 12.5px; font-weight: 500; color: var(--sl-ink-soft); }
.dc-name { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; color: var(--sl-ink); }
.dc-card .dc-role { font-size: 15px; font-weight: 500; color: var(--sl-gold-text); margin-top: -6px; }
.dc-card .dc-regalia { margin-top: -4px; font-size: 14px; font-weight: 600; color: var(--sl-ink); }
.dc-summary { font-size: 15.5px; line-height: 1.65; color: var(--sl-ink-soft); max-width: 64ch; }
.dc-dirs h3 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sl-ink); margin: 6px 0 10px; }
.dc-dirs + .dc-dirs { margin-top: 4px; }
.dc-dirs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-dirs li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--sl-ink); }
.dc-dirs li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 11px; line-height: 21px; color: var(--sl-gold); }
.dc-edu li::before { content: "—"; color: var(--sl-gold-soft); }
.dc-dirs li.is-extra { display: none; }
.dc-dirs.is-open li.is-extra, .dc-dirs.is-closing li.is-extra { display: list-item; }
/* Smooth expand/collapse: doctors.js animates the list height between states. */
.dc-dirs ul.is-animating { overflow: hidden; transition: height .45s cubic-bezier(.2, .7, .2, 1); }
.dc-dirs.is-open li.is-extra { animation: dc-reveal .45s ease both; }
.dc-dirs.is-closing li.is-extra { opacity: 0; transition: opacity .25s ease; }
@keyframes dc-reveal { from { opacity: 0; transform: translateY(-4px); } }
.dc-more { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--sl-gold-soft); background: none; cursor: pointer; font: 600 14px var(--sl-font); color: var(--sl-brown); }
.dc-more { position: relative; transition: color .3s ease; }
.dc-more .sl-i { transition: transform .3s ease; }
.dc-dirs.is-open .dc-more .sl-i { transform: rotate(180deg); }
/* Hover: a gold line swipes over the underline (in from the left, out to the
   right, like the header nav) and the chevron nudges in its direction. */
.dc-more::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--sl-gold-deep);
    transform: scaleX(0); transform-origin: right center;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.dc-more:hover, .dc-more:focus-visible { color: var(--sl-gold-deep); }
.dc-more:hover::after, .dc-more:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.dc-more:hover .sl-i { transform: translateY(2px); }
.dc-dirs.is-open .dc-more:hover .sl-i { transform: rotate(180deg) translateY(2px); }

.dc-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dc-price { display: grid; gap: 2px; min-width: 0; padding: 20px; border-radius: 14px; background: var(--sl-ivory); border: 1px solid var(--sl-sand); }
.dc-price__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sl-gold-text); margin-bottom: 8px; }
.dc-price__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-block: 8px; border-bottom: 1px dashed #E3D7C3; font-size: 14.5px; color: var(--sl-ink-soft); }
.dc-price__row:last-of-type { border-bottom: 0; }
.dc-price__row b { margin-left: auto; font-size: 18px; font-weight: 600; color: var(--sl-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-card .dc-price__note { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--sl-ink-soft); }
.dc-price--empty { font-size: 14px; color: var(--sl-ink-soft); }
.dc-side .sl-btn { width: 100%; white-space: normal; text-align: center; padding-inline: 18px; height: auto; min-height: 54px; }

/* "Not sure which doctor" band */
.dc-help { background: var(--sl-ivory); }
.dc-help__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.dc-help h2 { margin: 0 0 10px; }
.dc-help p { color: var(--sl-ink-soft); max-width: 60ch; }
.dc-help__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1180px) {
    .dc-card { grid-template-columns: 240px minmax(0, 1fr); }
    .dc-side { grid-column: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (max-width: 860px) {
    .dc-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .dc-hero__media { height: 360px; margin-top: 8px; }
    .dc-hero::before { width: 360px; height: 360px; right: -140px; }
    .dc-card { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 20px; }
    .dc-photo { aspect-ratio: 5 / 4; }
    .dc-side { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    .dc-help__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .dc-hero__media { height: 300px; }
    .dc-float { padding: 10px 14px 10px 10px; }
    .dc-float--team { right: 0; top: 0; }
    .dc-float--exp { left: 0; bottom: 0; }
    .dc-hero__actions .sl-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .dc-float, .dc-hero__text > *, .dc-dirs.is-open li.is-extra { animation: none; }
    .dc-ph img { transition: none; }
}
