/* ==========================================================================
   Wellmar Counselling — base theme styles
   ========================================================================== */

:root {
	--ink: #28322e;
	--sage: #5c7d6b;
	--sage-dark: #3f5a4b;
	--sage-light: #eef2ee;
	--clay: #c98f65;
	--gold: #cf9d3f;
	--rust: #c17b5f;
	--tint-clay: #fbeee1;
	--tint-gold: #fdf3df;
	--tint-rust: #fbe8e1;
	--cream: #faf8f4;
	--white: #ffffff;
	--sidebar-bg: var(--white);
	--main-bg: var(--white);
	--border: #e2ddd2;
	--danger: #b3453f;
	--radius: 14px;
	--shadow: none;
	--font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.6;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

a { color: var(--sage-dark); }
img { max-width: 100%; display: block; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	background: var(--ink);
	color: var(--white);
	padding: 10px 16px;
	z-index: 9999;
	border-radius: 6px;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.wrap--narrow { max-width: 780px; }

.section { padding: 72px 0; }
.section--tint { background: var(--sage-light); }
.section--centered { text-align: center; }
.section__title {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin-bottom: 32px;
}
.section__subtitle {
	font-size: 1.3rem;
	margin: 48px 0 24px;
}
.section__intro { color: #5a6660; max-width: 640px; }

.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 0.95rem;
	transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--sage-dark); color: var(--white); }
.btn--ghost { border-color: var(--sage); color: var(--sage-dark); background: transparent; }
.btn--danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Header — floating rounded nav bar */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 18px 24px 0;
	background: transparent;
}
.site-header__inner {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 24px;
	background: var(--sage);
	border-radius: 15px;
	box-shadow: var(--shadow);
}
.site-brand { align-self: center; text-decoration: none; display: block; }
.site-brand__name {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	color: var(--white);
}
.site-brand__logo { display: block; max-height: 40px; width: auto; }
.site-nav {
	display: flex;
	align-items: stretch;
	align-self: stretch;
	margin: -14px 0; /* bleed past .site-header__inner's own vertical padding so the
	                    active pill's background can reach the full bar height, not
	                    just the height of the nav row within the padded area. */
}
.nav-menu {
	list-style: none;
	display: flex;
	align-items: stretch;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.nav-menu li { display: flex; }
.nav-menu a {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
	color: var(--white);
	font-weight: 500;
	line-height: 1.2;
	padding: 0 16px;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.16); border-radius: 0; }
.nav-menu a.is-active,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	background: var(--white);
	color: var(--sage-dark);
	font-weight: 700;
	border-radius: 0;
}
.nav-menu .nav-cta a {
	background: var(--white);
	color: var(--sage-dark);
	padding: 0 18px;
}
.nav-menu .nav-cta a:hover,
.nav-menu .nav-cta a.is-active {
	background: var(--ink);
	color: var(--white);
	border-radius: 0;
}
.nav-toggle {
	display: none;
	align-self: center;
	background: none;
	border: none;
	color: var(--white);
	font-size: 1.5rem;
	cursor: pointer;
}

@media (max-width: 800px) {
	.site-nav { display: none; }
	.nav-toggle { display: block; }
	.site-nav.is-open {
		display: block;
		position: absolute;
		margin: 0; /* undo the desktop negative-margin bleed, which doesn't apply to this dropdown */
		top: calc(100% + 8px); left: 0; right: 0;
		background: var(--sage);
		border-radius: 15px;
		box-shadow: var(--shadow);
		padding: 16px 24px;
	}
	.site-nav.is-open .nav-menu { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Resume layout: sidebar (photo/stats/contact) + main (about/experience/services/...) */
.resume-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 0;
	align-items: stretch;
	padding: 48px 0 96px;
}

.resume-sidebar {
	background: var(--sidebar-bg);
	border-radius: var(--radius) 0 0 var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	position: sticky;
	top: 96px;
}
.resume-sidebar__photo img,
.resume-sidebar__photo-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 0 0 6px var(--sage-light);
}
.resume-sidebar__photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sage);
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 4rem;
}
.resume-sidebar__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	color: var(--clay);
	font-weight: 700;
	margin: 24px 0 6px;
}
.resume-sidebar__name { font-size: 1.6rem; margin-bottom: 4px; }
.resume-sidebar__credentials { margin: 0 0 4px; font-size: 0.85rem; color: var(--sage-dark); font-weight: 600; }
.resume-sidebar__title { margin: 0 0 20px; font-size: 0.92rem; color: #5a6660; }

.resume-sidebar__cta { display: block; text-align: center; margin-bottom: 24px; }

.resume-sidebar__stats {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	border-top: 1px solid var(--border);
}
.stat-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.stat-row__icon {
	flex: none;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--sage-light);
	color: var(--sage-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}
.stat-row:nth-child(2) .stat-row__icon { background: #fdf1e4; color: var(--clay); }
.stat-row:nth-child(3) .stat-row__icon { background: var(--tint-gold); color: var(--gold); }
.stat-row__icon svg { width: 16px; height: 16px; }
.stat-row__text { display: flex; flex-direction: column; }
.stat-row__label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7c877f;
}
.stat-row__value { font-weight: 600; font-size: 0.92rem; }

.resume-sidebar__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}
.contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	text-decoration: none;
	color: var(--ink);
}
.contact-row__icon {
	flex: none;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--sage-light);
	color: var(--sage-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}
.contact-row__icon svg { width: 14px; height: 14px; }

.resume-sidebar__hours {
	border-top: 1px solid var(--border);
	padding-top: 16px;
	margin-bottom: 16px;
}
.resume-sidebar__hours h3 {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7c877f;
	margin-bottom: 6px;
}
.resume-sidebar__hours p { font-size: 0.88rem; margin: 0; color: #4b564f; }

.resume-sidebar__social {
	display: flex;
	gap: 10px;
	border-top: 1px solid var(--border);
	padding-top: 16px;
}
.resume-sidebar__social a {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--sage-light);
	color: var(--sage-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.resume-main {
	background: var(--main-bg);
	border-radius: 0 var(--radius) var(--radius) 0;
	box-shadow: var(--shadow);
	padding: 48px;
}
.resume-block { padding: 40px 0; border-top: 1px solid var(--border); }
.resume-block:first-child { padding-top: 0; border-top: none; }
.resume-block h2 {
	position: relative;
	padding-left: 18px;
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.resume-block h2::before {
	content: '';
	position: absolute;
	left: 0; top: 5px; bottom: 5px;
	width: 4px;
	background: var(--clay);
	border-radius: 2px;
}
.resume-block__subtitle { font-size: 1.1rem; margin: 32px 0 18px; }
.resume-block__intro { color: #5a6660; max-width: 560px; }
.resume-block__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 900px) {
	.resume-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
	.resume-sidebar { position: static; border-radius: var(--radius); }
	.resume-main { padding: 32px 24px; border-radius: var(--radius); }
}

/* About + Achievements */
.about__bio { max-width: 760px; font-size: 1.05rem; }
.achievements-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.achievement-card {
	background: var(--sage-light);
	border-radius: var(--radius);
	border-top: 4px solid var(--sage);
	padding: 20px;
}
.achievement-card:nth-child(3n+2) { background: var(--tint-clay); border-top-color: var(--clay); }
.achievement-card:nth-child(3n+3) { background: var(--tint-gold); border-top-color: var(--gold); }
.achievement-card__year {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--clay);
	margin-bottom: 6px;
}
.achievement-card h4 { margin-bottom: 8px; }
.achievement-card__body { font-size: 0.92rem; color: #4b564f; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline__item { position: relative; padding: 0 0 32px 32px; }
.timeline__marker {
	position: absolute;
	left: -7px; top: 4px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--sage);
}
.timeline__dates { font-size: 0.8rem; color: var(--clay); font-weight: 600; margin-bottom: 4px; }
.timeline__role { margin: 0 0 2px; font-size: 1.15rem; }
.timeline__org { margin: 0 0 8px; color: #5a6660; font-weight: 500; }
.timeline__desc { color: #4b564f; font-size: 0.95rem; }

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.service-card {
	background: var(--tint-clay);
	border-radius: var(--radius);
	border: 2px dashed var(--clay);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.service-card:nth-child(3n+2) { background: var(--sage-light); border-color: var(--sage); }
.service-card:nth-child(3n+3) { background: var(--tint-rust); border-color: var(--rust); }
.service-card__image img { aspect-ratio: 3 / 2; object-fit: cover; }
.service-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin: 0; }
.service-card h3 a { text-decoration: none; color: var(--ink); }
.service-card__excerpt { color: #5a6660; font-size: 0.92rem; flex: 1; }
.service-card__meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.service-card__meta span {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sage-dark);
	background: rgba(255, 255, 255, 0.7);
	padding: 3px 10px;
	border-radius: 999px;
}

/* Therapist directory ("Our Therapists" page) */
.therapist-directory__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.therapist-card {
	background: var(--tint-clay);
	border-radius: var(--radius);
	border-top: 4px solid var(--clay);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.therapist-card:nth-child(3n+2) { background: var(--sage-light); border-top-color: var(--sage); }
.therapist-card:nth-child(3n+3) { background: var(--tint-rust); border-top-color: var(--rust); }
.therapist-card__photo img,
.therapist-card__photo-placeholder {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 8px;
}
.therapist-card__photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sage);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 2.2rem;
}
.therapist-card__name { font-size: 1.15rem; margin: 0; }
.therapist-card__name a { color: inherit; text-decoration: none; }
.therapist-card__credentials { font-size: 0.85rem; font-weight: 600; color: var(--sage-dark); margin: 0; }
.therapist-card__title { font-size: 0.9rem; color: #5a6660; margin: 0 0 6px; }
.therapist-card__bio { color: #4b564f; font-size: 0.92rem; flex: 1; }
.therapist-card__cta { align-self: flex-start; margin-top: 10px; }

/* Single therapist profile page (?therapist_id on the "Our Therapists" page) */
.therapist-profile__back {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 0.9rem;
	text-decoration: none;
}
.therapist-profile {
	background: var(--tint-clay);
	border-radius: var(--radius);
	border-top: 4px solid var(--clay);
	padding: 32px;
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.therapist-profile__photo img,
.therapist-profile__photo-placeholder {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
}
.therapist-profile__photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sage);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 3rem;
}
.therapist-profile__body { flex: 1; min-width: 240px; }
.therapist-profile__credentials { font-size: 0.9rem; font-weight: 600; color: var(--sage-dark); margin: 0; }
.therapist-profile__title { font-size: 1rem; color: #5a6660; margin: 0 0 6px; }
.therapist-profile__tagline { font-style: italic; color: #5a6660; }
.therapist-profile__facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
	padding: 0;
}
.therapist-profile__facts li {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sage-dark);
	background: rgba(255, 255, 255, 0.7);
	padding: 3px 10px;
	border-radius: 999px;
}
.therapist-profile__bio { color: #4b564f; margin: 14px 0; }
.therapist-profile__hours { margin: 14px 0; }
.therapist-profile__hours h3 { font-size: 0.95rem; margin-bottom: 4px; }
.therapist-profile__social { margin-top: 16px; display: flex; gap: 10px; }
.therapist-profile__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sage);
	color: #fff;
	text-decoration: none;
	font-size: 0.8rem;
}
.therapist-profile__sessions { margin-top: 8px; }

/* Availability preview ("Next Available Appointments") */
.availability-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}
.availability-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2px;
	padding: 16px 10px;
	border-radius: 12px;
	background: var(--tint-gold);
	text-decoration: none;
	color: var(--ink);
	border: 2px solid transparent;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.availability-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.availability-card__weekday { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); font-weight: 700; }
.availability-card__day { font-family: var(--font-heading); font-size: 1.8rem; line-height: 1.1; }
.availability-card__month { font-size: 0.78rem; color: #5a6660; margin-bottom: 4px; }
.availability-card__count { font-size: 0.7rem; font-weight: 600; color: var(--clay); }
.availability-cta { margin-top: 4px; }

.service-single__image img { border-radius: var(--radius); margin-bottom: 24px; }
.service-single__meta { display: flex; gap: 16px; font-weight: 600; color: var(--sage-dark); margin-bottom: 16px; }

/* Testimonials */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.testimonial-card {
	background: var(--sage-light);
	border-radius: var(--radius);
	border-left: 4px solid var(--sage);
	padding: 24px;
	margin: 0;
}
.testimonial-card:nth-child(3n+2) { background: var(--tint-clay); border-left-color: var(--clay); }
.testimonial-card:nth-child(3n+3) { background: var(--tint-gold); border-left-color: var(--gold); }
.testimonial-card p { font-style: italic; margin: 0 0 12px; }
.testimonial-card footer { font-size: 0.85rem; color: #5a6660; }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--ink); }

/* Contact map (closing CTA block) */
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; margin-top: 28px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--sage-light); padding: 48px 0 24px; margin-top: 40px; }
.site-footer__inner { display: grid; gap: 20px; }
.site-footer a { color: var(--sage-light); }
.site-footer__social { display: flex; gap: 16px; }
.footer-menu { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.site-footer__copy { font-size: 0.8rem; color: #9aa89f; margin-top: 20px; }

/* Generic content card (fallback templates) */
.content-card {
	background: var(--white);
	border-radius: var(--radius);
	border-top: 4px solid var(--sage);
	padding: 32px;
	box-shadow: var(--shadow);
	margin-bottom: 24px;
}

/* Forms (shared) */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	background: var(--white);
	color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: 2px solid var(--sage);
	outline-offset: 1px;
}
.form-field__hint { font-size: 0.8rem; color: #7c877f; margin-top: 4px; }
.required { color: var(--danger); }

.notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
}
.notice--error { background: #fbeceb; color: var(--danger); border: 1px solid #f0c9c6; }
.notice--success { background: #eaf3ec; color: var(--sage-dark); border: 1px solid #c9dfd0; }

/* Status pill used across booking admin + account */
.wellmar-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}
.wellmar-status--wm_pending { background: #fdf1de; color: #9a6a1c; }
.wellmar-status--wm_confirmed { background: #e4f0e6; color: var(--sage-dark); }
.wellmar-status--wm_cancelled { background: #fbeceb; color: var(--danger); }
.wellmar-status--wm_completed { background: var(--tint-rust); color: var(--rust); }

/* Coming Soon / Maintenance placeholder page (maintenance.php) */
.maintenance-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.maintenance-card {
	max-width: 560px;
	width: 100%;
	text-align: center;
	background: var(--white);
	border-radius: var(--radius);
	border-top: 4px solid var(--sage);
	padding: 48px 40px;
}
.maintenance-card__logo { max-height: 64px; width: auto; margin: 0 auto 20px; }
.maintenance-card__brand {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	color: var(--sage-dark);
	margin: 0 0 20px;
}
.maintenance-card__headline { font-size: 1.9rem; margin: 0 0 14px; }
.maintenance-card__message { color: #5a6660; font-size: 1.02rem; }
.maintenance-card__message p:last-child { margin-bottom: 0; }

.maintenance-countdown {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: 28px 0;
}
.maintenance-countdown__unit {
	min-width: 64px;
	background: var(--sage-light);
	border-radius: 10px;
	padding: 10px 6px;
}
.maintenance-countdown__value {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.6rem;
	color: var(--sage-dark);
}
.maintenance-countdown__label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #7c877f;
	margin-top: 2px;
}

.maintenance-card__contact {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	font-size: 0.9rem;
}
.maintenance-card__contact a { color: var(--sage-dark); text-decoration: none; }
.maintenance-card__contact a:hover { text-decoration: underline; }
