/* MMI Alma — counsellor directory and profiles, after Alma's provider list and provider page. */

/* ---------- Directory ---------- */
/* Alma's provider search header: centred on a tint, a 36/54 title and 40px filter buttons with 4px corners. */
.directory-head { padding: 60px 0 0; background: var(--wine); text-align: center; }
.directory-head .eyebrow { margin-bottom: 12px; font-size: 14px; line-height: 21px; }
.directory-head__title { max-width: 627px; margin-inline: auto; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 54px; letter-spacing: -.5px; color: var(--plum); text-wrap: balance; }
.directory-head__title em { font-style: italic; }
.directory-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 24px 0 48px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 500; transition: border-color .25s, background-color .25s, color .25s; }
.filter-chip .icon { width: 18px; height: 18px; color: var(--burgundy); }
.filter-chip:hover { border-color: var(--rose); }
.filter-chip.is-active { border-color: var(--rose); background: var(--rose); color: var(--wine); }
.filter-chip.is-active .icon { color: var(--wine); }

/* The sand panel starts in the middle of the gap before the aside, at any viewport width. */
.directory { background: linear-gradient(90deg, var(--white) 0 calc(50% + min(50% - var(--gutter), var(--container) / 2) - 368px), var(--sand) 0); }
.directory__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.directory__results { padding: 36px 0 80px; }
.directory__count { margin-bottom: 24px; font-family: var(--serif); font-size: 24px; line-height: 30px; }
.directory__count strong { font-weight: 400; }
.provider-list { display: grid; gap: 20px; }
.provider { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: box-shadow .5s var(--ease), border-color .5s; }
.provider:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.provider[hidden] { display: none; }
.provider__photo { display: block; width: 178px; height: 222px; overflow: hidden; border-radius: 4px; background: var(--cream); }
.provider__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: scale 1s var(--ease); }
.provider:hover .provider__photo img { scale: 1.06; }
.provider__name { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 30px; }
.provider__name a { text-decoration: none; }
.provider__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.provider__name span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.provider__chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; color: var(--text); }
.provider__chip .icon { width: 15px; height: 15px; }
.provider__bio { margin: 16px 0 14px; font-size: 16px; line-height: 24px; color: var(--text); }
.provider__bio a { color: var(--ink); text-underline-offset: 3px; }
.provider__meta { display: grid; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.provider__meta p { display: flex; align-items: center; gap: 8px; }
.provider__meta .icon { width: 17px; height: 17px; color: var(--plum); }
.provider__offer { color: var(--gold-ink); }
.provider__offer .icon { color: var(--gold) !important; }
.provider__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.provider__actions .btn { height: 40px; padding: 0 16px; border-radius: 4px; font-size: 16px; }
.directory__empty { padding: 32px; border-radius: 8px; background: var(--sand); }
.link-button { border: 0; background: none; padding: 0; color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.directory__aside { position: sticky; top: var(--header-h); align-self: start; display: grid; gap: 24px; align-content: start; padding: 36px 0 80px; }
.tip-card { padding: 8px 0; }
.tip-card__slide h2 { font-family: var(--serif); font-weight: 300; font-size: 27px; line-height: 38px; color: var(--plum); }
.tip-card__slide p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--text); }
.tip-card__slide.is-active { animation: tipIn .7s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translateX(14px); } }
.tip-card__nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.tip-card__nav button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); }
.tip-card__nav .icon { width: 16px; height: 16px; }
/* Soft Rose, one of Dara's accent panels. */
.help-card { padding: 24px; border-radius: 8px; background: var(--rose); }
.help-card h2 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.help-card p { margin: 8px 0 18px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* ---------- Profile ---------- */
/* Alma's 384px profile banner. The negative margin lifts the card 96px over its lower edge. */
.profile-band { height: 384px; margin-bottom: -165px; background: var(--dusty-blush); position: relative; overflow: hidden; }
.profile-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(122, 32, 72, .16); box-shadow: 0 0 0 60px rgba(255, 255, 255, .22), 0 0 0 140px rgba(255, 255, 255, .14); }
.profile2 { position: relative; padding: 28px 0 64px; }
.profile2__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.crumbs--band { margin-bottom: 20px; color: var(--text); }
.profile-card { padding: 32px; border-radius: 8px; background: var(--white); box-shadow: 0 8px 24px rgba(61, 16, 32, .08); }
.profile-card__top { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; }
.profile-card__photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.profile-card__name { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 45px; letter-spacing: -.5px; color: var(--plum); }
.profile-card__role { margin-top: 6px; font-size: 16px; color: var(--muted); }
.profile-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-card__chips li { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; }
.profile-card__chips .icon { width: 15px; height: 15px; color: var(--plum); }
.profile-card__bio { margin-top: 24px; font-size: 16px; line-height: 24px; }
.profile-card__bio.is-folded { max-height: 12em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.profile-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 0; background: none; padding: 0; font-weight: 600; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.profile-card__more .icon { width: 16px; height: 16px; transition: transform .3s; }
.profile-card__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.profile-card__badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.profile-card__badges li { display: flex; align-items: center; gap: 10px; }
.profile-card__badges span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--promo); color: var(--plum); }
.profile-card__badges .icon { width: 19px; height: 19px; }

.profile-tabs { margin-top: 32px; }
.profile-tabs__list { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.profile-tabs__list button { position: relative; flex: none; padding: 14px 16px; border: 0; background: none; font-size: 16px; font-weight: 500; color: var(--muted); }
.profile-tabs__list button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--plum); transform: scaleX(0); transition: transform .4s var(--ease); }
.profile-tabs__list button[aria-selected="true"] { color: var(--ink); }
.profile-tabs__list button[aria-selected="true"]::after { transform: scaleX(1); }
.profile-panel { padding: 32px; border-radius: 8px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); animation: tipIn .5s var(--ease); }
.profile-panel__title { margin-bottom: 16px; font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 24px; }
.detail-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 18px 0; }
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-row h3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.detail-row p, .detail-row li { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--text); }
.detail-row__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 4px; }
.profile-film { max-width: 340px; margin-top: 20px; overflow: hidden; border-radius: var(--radius-card); background: var(--plum-deep); }
.profile-film video { width: 100%; aspect-ratio: 716 / 1274; object-fit: cover; }
.profile-film figcaption { padding: 12px 16px; font-size: 14px; color: rgba(255, 255, 255, .85); }

.book-card2 { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; margin-top: 46px; }
.book-card2__box { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.book-card2__box--tint { border-color: transparent; background: var(--burgundy); color: var(--white); text-align: center; }
.book-card2__line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--text); }
.book-card2__line .icon { flex: none; width: 17px; height: 17px; color: var(--plum); }
.book-card2__title { font-family: var(--serif); font-size: 24px; }
.book-card2__fees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.book-card2__fees div { padding: 12px 14px; border-radius: 4px; background: var(--sand); }
/* Pay and book: each session type is its own Burgundy button with the fee on it, straight to Paystack. */
.book-options { display: grid; gap: 10px; margin-top: 16px; }
.book-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-radius: 999px; background: var(--burgundy); color: var(--white); text-decoration: none; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.book-option:hover { background: var(--wine); }
.book-option:active { transform: translateY(1px); }
.book-option__text { display: grid; gap: 2px; }
.book-option__type { font-size: 14px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .85); }
.book-option__fee { font-family: var(--serif); font-size: 22px; line-height: 1.15; white-space: nowrap; }
.book-option__go { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); color: var(--burgundy); font-size: 15px; font-weight: 600; }
.book-option__go .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.book-option:hover .book-option__go .icon { transform: translateX(3px); }
.book-card2__alt { display: block; margin-top: 12px; text-align: center; font-size: 15px; color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.book-card2__alt:hover { color: var(--wine); }
.book-card2__alt--cal { display: flex; align-items: center; justify-content: center; gap: 8px; }
.book-card2__alt--cal .icon { flex: none; width: 17px; height: 17px; }
/* Below the bio on narrow screens, where the booking card sits after the tabs. */
.profile-card__book { display: none; }
.book-card2__fees dt { font-size: 13px; color: var(--muted); }
.book-card2__fees dd { margin: 2px 0 0; font-family: var(--serif); font-size: 21px; }
.book-card2__box--tint p:not(.book-card2__title) { margin: 6px 0 16px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .9); }

/* Other counsellors on Burgundy: white cards on a dark band before the footer. */
.others { background: var(--burgundy); }
.others__title { margin-bottom: 24px; font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 45px; }
.others__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.other { display: grid; grid-template-columns: 88px minmax(0, 1fr) 24px; gap: 20px; align-items: center; padding: 20px; border-radius: 8px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.other:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.other img { width: 88px; height: 110px; border-radius: 4px; object-fit: cover; object-position: 50% 20%; }
.other strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.other small { display: block; font-size: 14px; color: var(--muted); }
.other em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--plum); }
.other .icon { width: 22px; height: 22px; color: var(--plum); transition: transform .3s var(--ease); }
.other:hover .icon { transform: translateX(4px); }

@media (max-width: 1100px) {
	.directory { background: var(--white); }
	.directory__inner, .profile2__grid { grid-template-columns: 1fr; gap: 0; }
	.directory__aside { position: static; grid-template-columns: 1fr 1fr; padding-top: 0; }
	.tip-card { padding: 24px; border-radius: var(--radius-card); background: var(--sand); }
	.book-card2 { position: static; grid-template-columns: 1fr 1fr; margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
	.profile-card__book { display: flex; margin-top: 20px; }
}

@media (max-width: 760px) {
	.directory-head { padding-top: 40px; }
	.directory-head__title { font-size: 28px; line-height: 38px; }
	.directory-filters { justify-content: flex-start; padding-bottom: 32px; }
	.directory-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.filter-chip { flex: none; }
	.directory__count { font-size: 22px; }
	.provider { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 16px; }
	.provider__photo { grid-row: span 2; width: 96px; height: 120px; }
	.provider__name { font-size: 21px; }
	.provider__name span { display: block; margin-top: 2px; font-size: 14px; }
	.provider__bio, .provider__meta, .provider__actions, .provider .chips { grid-column: 1 / -1; }
	.provider__body { display: contents; }
	.provider__name, .provider__chip { grid-column: 2; }
	.provider__chip { justify-self: start; margin-top: 0; }
	.provider__bio { margin: 0; }
	.provider__actions .btn { flex: 1; }
	.directory__aside { grid-template-columns: 1fr; padding-bottom: 56px; }
	.profile-band { height: 220px; margin-bottom: -150px; }
	.profile-card { padding: 24px 18px; }
	.profile-card__top { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.profile-card__photo { width: 96px; height: 96px; }
	.profile-card__name { font-size: 28px; line-height: 35px; }
	.profile-card__badges { gap: 14px; flex-direction: column; }
	.profile-panel { padding: 24px 18px; }
	.detail-row__cols { grid-template-columns: 1fr; }
	.book-card2 { grid-template-columns: 1fr; }
	.others__list { grid-template-columns: 1fr; }
	.other { grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 14px; padding: 16px; }
	.other img { width: 64px; height: 80px; }
	.other strong { font-size: 20px; }
}
