/* =============================================================
   Therapist Profile — single-therapist.php
   Mobile-first. Scoped under .tp-profile to avoid bleed.
   ============================================================= */

.tp-profile {
	--tp-bg:        #f5f7f9;
	--tp-card:      #ffffff;
	--tp-text:      #1d2530;
	--tp-muted:     #5b6573;
	--tp-line:      #e5e9ee;
	--tp-accent:    #F7C845;       /* brand primary — golden yellow */
	--tp-accent-d:  #d9a611;       /* darker yellow (hover/border) */
	--tp-accent-l:  #fef3d4;       /* light yellow (pills/badges) */
	--tp-on-accent: #1d2530;       /* readable text on yellow */
	--tp-success:   #2c7a4b;
	--tp-success-l: #e8f3ec;
	--tp-warning-l: #fff4dc;
	--tp-radius:    14px;
	--tp-radius-sm: 8px;
	--tp-shadow:    0 1px 2px rgba(15, 30, 45, 0.04), 0 1px 3px rgba(15, 30, 45, 0.06);
	--tp-shadow-h:  0 4px 12px rgba(15, 30, 45, 0.08);
	--tp-pad:       20px;
	--tp-pad-lg:    28px;
	--tp-gap:       16px;
	--tp-gap-lg:    24px;
	--tp-fz-base:   16px;
	--tp-fz-sm:     14px;
	--tp-fz-h1:     28px;
	--tp-fz-h2:     20px;
	--tp-fz-h3:     16px;

	background: var(--tp-bg);
	color: var(--tp-text);
	font-size: var(--tp-fz-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 96px; /* room for sticky CTA on mobile */
}

.tp-profile *,
.tp-profile *::before,
.tp-profile *::after { box-sizing: border-box; }

.tp-profile a { color: var(--tp-accent); text-decoration: none; }
.tp-profile a:hover { text-decoration: underline; }

.tp-container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px;
}

.tp-hidden { display: none !important; }

/* ---------- HERO ---------- */

.tp-hero {
	background: var(--tp-card);
	border-bottom: 1px solid var(--tp-line);
	padding: 28px 0 24px;
}

.tp-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.tp-hero-photo-wrap {
	flex-shrink: 0;
}

.tp-hero-photo {
	display: block;
	width: 132px;
	height: 132px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tp-card);
	box-shadow: var(--tp-shadow-h);
	background: var(--tp-bg);
	aspect-ratio: 1 / 1;
}

.tp-hero-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	font-weight: 600;
	color: var(--tp-accent);
	background: var(--tp-accent-l);
}

.tp-hero-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.tp-hero-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 2px;
}

.tp-badge {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.tp-badge-featured  { background: var(--tp-warning-l); color: #8a5a00; }
.tp-badge-accepting { background: var(--tp-success-l); color: var(--tp-success); }

.tp-hero-name {
	font-size: var(--tp-fz-h1);
	line-height: 1.2;
	font-weight: 700;
	margin: 4px 0 0;
	color: var(--tp-text);
}

.tp-hero-title {
	margin: 0;
	color: var(--tp-muted);
	font-size: 15px;
}

.tp-session-types {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.tp-session-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tp-accent-l);
	color: var(--tp-on-accent);
	font-size: 13px;
	font-weight: 500;
}

.tp-session-pill img { display: block; width: 16px; height: 16px; }

.tp-hero-fee {
	margin: 8px 0 0;
	font-size: 18px;
}
.tp-hero-fee-amount { font-weight: 700; color: var(--tp-text); }
.tp-hero-fee-suffix { color: var(--tp-muted); margin-left: 4px; font-size: 14px; }

/* ---------- BUTTONS ---------- */

.tp-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	width: 100%;
	justify-content: center;
}

.tp-cta-row-center { justify-content: center; }

.tp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.tp-btn:hover { text-decoration: none; }
.tp-btn:active { transform: translateY(1px); }

.tp-btn-primary {
	background: var(--tp-accent);
	color: var(--tp-on-accent);
}
.tp-btn-primary:hover { background: var(--tp-accent-d); color: var(--tp-on-accent); }

.tp-btn-secondary {
	background: var(--tp-card);
	color: var(--tp-on-accent);
	border-color: var(--tp-accent);
}
.tp-btn-secondary:hover { background: var(--tp-accent-l); color: var(--tp-on-accent); }

.tp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.tp-cta-label-short { display: none; }

/* ---------- GRID ---------- */

.tp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--tp-gap-lg);
	padding-top: var(--tp-gap-lg);
	padding-bottom: var(--tp-gap-lg);
}

.tp-col-main,
.tp-col-side {
	display: flex;
	flex-direction: column;
	gap: var(--tp-gap);
	min-width: 0;
}

/* ---------- CARDS ---------- */

.tp-card {
	background: var(--tp-card);
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow);
	padding: var(--tp-pad);
}

.tp-card-pad-tight { padding: 0; overflow: hidden; }

.tp-section-title {
	font-size: var(--tp-fz-h2);
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--tp-text);
}

.tp-section-subtitle {
	font-size: 15px;
	font-weight: 600;
	margin: 18px 0 10px;
	color: var(--tp-text);
}

.tp-section + .tp-section { margin-top: 0; }

/* ---------- PROSE ---------- */

.tp-prose,
.tp-prose-plain {
	color: var(--tp-text);
	font-size: 15px;
	line-height: 1.65;
}

.tp-prose p { margin: 0 0 14px; }
.tp-prose p:last-child { margin-bottom: 0; }
.tp-prose strong { font-weight: 600; }
.tp-prose ul, .tp-prose ol { padding-left: 22px; margin: 0 0 14px; }
.tp-prose a { color: var(--tp-accent); }

/* ---------- CHECK LIST (Areas / Works with) ---------- */

.tp-check-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 16px;
}

.tp-check-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	color: var(--tp-text);
}

.tp-check-item .tp-check {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--tp-success);
}

.tp-check-item a { color: var(--tp-text); }
.tp-check-item a:hover { color: var(--tp-accent); text-decoration: underline; }

.tp-see-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--tp-accent) !important;
	border: 1px solid var(--tp-accent) !important;
	color: var(--tp-on-accent) !important;
	font: inherit;
	font-weight: 600;
	font-size: 13px;
	padding: 7px 14px !important;
	margin-top: 12px;
	border-radius: 999px;
	cursor: pointer;
	width: auto !important;
	min-width: 0 !important;
}
.tp-see-more:hover {
	background: var(--tp-accent-d) !important;
	border-color: var(--tp-accent-d) !important;
	color: var(--tp-on-accent) !important;
	text-decoration: none;
}

/* ---------- ACCREDITATION BADGES ---------- */

.tp-accred-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tp-accred-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tp-accent-l);
	color: var(--tp-on-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.tp-verified-icon {
	width: 16px;
	height: 16px;
	color: var(--tp-success);
	flex-shrink: 0;
}

/* ---------- SCHEDULE / FEES ---------- */

.tp-schedule {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.tp-schedule th,
.tp-schedule td {
	padding: 10px 0;
	border-bottom: 1px solid var(--tp-line);
	text-align: left;
}
.tp-schedule tr:last-child th,
.tp-schedule tr:last-child td { border-bottom: 0; }

.tp-schedule th {
	font-weight: 600;
	color: var(--tp-text);
	width: 40%;
	padding-right: 16px;
}

.tp-schedule td { color: var(--tp-muted); }

.tp-fee-line { margin: 0; font-size: 16px; }
.tp-fee-line strong { font-size: 22px; color: var(--tp-text); }

.tp-availability-247 {
	margin: 0;
	font-weight: 600;
	color: var(--tp-success);
}

/* ---------- CONTACT PROMPT ---------- */

.tp-contact-prompt {
	text-align: center;
	background: linear-gradient(180deg, #ffffff 0%, var(--tp-accent-l) 100%);
	border-color: var(--tp-accent);
}
.tp-contact-prompt .tp-section-title { font-size: 20px !important; line-height: 1.3 !important; }
@media (min-width: 960px) {
	.tp-contact-prompt .tp-section-title { font-size: 22px !important; }
}

.tp-contact-blurb {
	margin: 0 0 16px;
	color: var(--tp-muted);
	font-size: 15px;
}

/* ---------- SIDEBAR ---------- */

.tp-side-card { padding: 18px; }

.tp-side-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--tp-text);
}

.tp-side-subtitle {
	font-size: 13px;
	font-weight: 600;
	margin: 14px 0 6px;
	color: var(--tp-text);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tp-side-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tp-muted);
}

.tp-side-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: var(--tp-muted);
}

.tp-side-session-types {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}
.tp-side-session-types li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tp-text);
}
.tp-side-session-types img { display: block; width: 18px; height: 18px; }

.tp-side-fee {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--tp-text);
}
.tp-side-fee span {
	font-size: 13px;
	font-weight: 500;
	color: var(--tp-muted);
	margin-left: 4px;
}

.tp-side-accreds {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tp-side-accreds li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tp-accent-l);
	color: var(--tp-on-accent);
	font-size: 12px;
	font-weight: 600;
}
.tp-side-accreds .tp-verified-icon { width: 13px; height: 13px; }

.tp-side-link { word-break: break-all; }

.tp-side-socials {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tp-side-socials a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--tp-bg);
	color: var(--tp-on-accent);
	font-size: 13px;
	font-weight: 500;
}
.tp-side-socials a:hover { background: var(--tp-accent-l); text-decoration: none; }

.tp-side-link { color: var(--tp-on-accent); border-bottom: 1px solid var(--tp-accent); }
.tp-side-link:hover { color: var(--tp-on-accent); border-bottom-color: var(--tp-accent-d); text-decoration: none; }

/* ---------- MAP PREVIEW ---------- */

.tp-map-preview {
	display: block;
	position: relative;
	line-height: 0;
}
.tp-map-preview img {
	width: 100%;
	height: auto;
	display: block;
	background: var(--tp-bg);
}
.tp-map-overlay {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--tp-on-accent);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: var(--tp-shadow);
}

/* ---------- STICKY MOBILE CTA ---------- */

.tp-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: saturate(160%) blur(10px);
	border-top: 1px solid var(--tp-line);
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
	transform: translateY(100%);
	transition: transform 0.25s ease;
	box-shadow: 0 -4px 16px rgba(15, 30, 45, 0.08);
}

.tp-sticky-cta.tp-sticky-visible { transform: translateY(0); }

.tp-cta-row-sticky {
	margin: 0;
	gap: 8px;
}
.tp-cta-row-sticky .tp-btn { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; min-height: 44px; }
.tp-cta-row-sticky .tp-btn-secondary { flex: 0 0 auto; padding: 10px 14px; }
.tp-cta-row-sticky .tp-cta-label-full { display: none; }
.tp-cta-row-sticky .tp-cta-label-short { display: inline; }

/* ---------- TABLET ---------- */

@media (min-width: 640px) {
	.tp-hero { padding: 36px 0 30px; }
	.tp-hero-inner {
		flex-direction: row;
		text-align: left;
		align-items: center;
		gap: 24px;
	}
	.tp-hero-info { align-items: flex-start; }
	.tp-hero-photo { width: 148px; height: 148px; }
	.tp-hero-name { font-size: 32px; }
	.tp-hero-badges { justify-content: flex-start; }
	.tp-session-types { justify-content: flex-start; }
	.tp-cta-row { justify-content: flex-start; }

	.tp-check-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- DESKTOP — 2-col layout, hide sticky CTA ---------- */

@media (min-width: 960px) {
	.tp-profile { padding-bottom: 0; }

	.tp-hero { padding: 44px 0 36px; }
	.tp-hero-photo { width: 168px; height: 168px; }
	.tp-hero-name { font-size: 36px; }

	.tp-grid {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 28px;
		padding-top: 28px;
		padding-bottom: 56px;
	}

	.tp-col-side {
		position: sticky;
		top: 24px;
		align-self: start;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.tp-card { padding: var(--tp-pad-lg); }

	.tp-sticky-cta { display: none !important; }
}

@media (min-width: 1120px) {
	.tp-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Cleanup: undo any stray oval-photo styling that might leak from all.css */
.tp-profile .tp-hero-photo,
.tp-profile img.tp-hero-photo {
	border-radius: 50% !important;
	aspect-ratio: 1 / 1 !important;
}

/* Print: simple, no sticky bar, no map */
@media print {
	.tp-sticky-cta,
	.tp-map-preview,
	.tp-see-more { display: none !important; }
	.tp-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
	.tp-profile { background: #fff; }
}

/* =============================================================
   Heading & spacing overrides — force values against parent
   theme's global h1/h2/h3 styles. Doubled class for extra weight.
   ============================================================= */

.tp-profile.tp-profile h1,
.tp-profile.tp-profile h2,
.tp-profile.tp-profile h3,
.tp-profile.tp-profile h4 {
	font-family: inherit;
	letter-spacing: 0;
	margin-top: 0;
}

.tp-profile.tp-profile .tp-hero-name {
	font-size: 26px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	margin: 4px 0 0 !important;
	color: var(--tp-text) !important;
}

.tp-profile.tp-profile .tp-hero-title {
	font-size: 15px !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
	color: var(--tp-muted) !important;
	margin: 2px 0 0 !important;
}

.tp-profile.tp-profile .tp-section-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: var(--tp-text) !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	letter-spacing: 0 !important;
}

.tp-profile.tp-profile .tp-section-subtitle {
	font-size: 15px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: var(--tp-text) !important;
	margin: 18px 0 10px !important;
}

.tp-profile.tp-profile .tp-side-title {
	font-size: 16px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: var(--tp-text) !important;
	margin: 0 0 10px !important;
}

.tp-profile.tp-profile .tp-side-subtitle {
	font-size: 12px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: var(--tp-text) !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	margin: 14px 0 6px !important;
}

@media (min-width: 640px) {
	.tp-profile.tp-profile .tp-hero-name { font-size: 30px !important; }
	.tp-profile.tp-profile .tp-section-title { font-size: 22px !important; }
}

@media (min-width: 960px) {
	.tp-profile.tp-profile .tp-hero-name { font-size: 34px !important; }
	.tp-profile.tp-profile .tp-section-title { font-size: 24px !important; }
	.tp-profile.tp-profile .tp-side-title { font-size: 17px !important; }
}

/* Body copy normalisation — keeps prose readable across the theme's defaults */
.tp-profile.tp-profile .tp-prose,
.tp-profile.tp-profile .tp-prose-plain {
	color: var(--tp-text) !important;
	font-size: 15px !important;
	line-height: 1.65 !important;
}
.tp-profile.tp-profile .tp-prose p {
	color: var(--tp-text) !important;
	font-size: 15px !important;
	line-height: 1.65 !important;
	margin: 0 0 14px !important;
}
.tp-profile.tp-profile .tp-prose p:last-child { margin-bottom: 0 !important; }

/* Slightly tighter section padding on desktop so chunky parent-theme defaults
   don't bloat each card */
@media (min-width: 960px) {
	.tp-profile.tp-profile .tp-card { padding: 24px !important; }
	.tp-profile.tp-profile .tp-side-card { padding: 18px !important; }
	.tp-profile.tp-profile .tp-side-map-card { padding: 0 !important; }
}

/* Force the see-more button against any global button styles */
.tp-profile.tp-profile button.tp-see-more {
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 7px 14px !important;
	border-radius: 999px !important;
	width: auto !important;
	min-width: 0 !important;
	background: var(--tp-accent) !important;
	color: var(--tp-on-accent) !important;
	border: 1px solid var(--tp-accent) !important;
	margin-top: 12px !important;
	display: inline-flex !important;
	gap: 6px !important;
	align-items: center !important;
	justify-content: center !important;
}
.tp-profile.tp-profile button.tp-see-more:hover {
	background: var(--tp-accent-d) !important;
	border-color: var(--tp-accent-d) !important;
}

/* Map preview sizing — taller so it reads as a real preview */
.tp-profile.tp-profile .tp-map-preview img {
	min-height: 200px;
	object-fit: cover;
}
@media (min-width: 960px) {
	.tp-profile.tp-profile .tp-map-preview img { min-height: 220px; }
}

/* Subtle gold underline accent under hero name */
.tp-profile.tp-profile .tp-hero-info {
	position: relative;
}
