/* ==========================================================================
   Brewster PhD: content-page components (.tm-*)
   Used by the location, topic, services and home pages. Every rule is scoped
   to .tm-sec so nothing leaks into the original service-page designs.
   ========================================================================== */

:root {
	--tm-dark: #22434a;
	--tm-ink: #3b4a4e;
	--tm-teal: #63a5ad;
	--tm-teal-d: #4d8b93;
	--tm-soft: #f3f7f8;
	--tm-line: #dfe9eb;
	--tm-lav: #e5e8f0;
	--tm-radius: 22px;
	--tm-shadow: 0 26px 60px -30px rgba(34, 67, 74, .45);
}

/* Salient keeps rows overflow:visible, but its wrappers clip on the x axis. `clip` (unlike
   hidden) does not create a scroll container, so position:sticky keeps working. */


/* ---------- typography ---------- */
.tm-sec { color: var(--tm-ink); }
.tm-sec h2 {
	color: var(--tm-dark);
	font-size: clamp(30px, 3.3vw, 46px);
	line-height: 1.1;
	margin: 0 0 .55em;
	text-transform: none;
}
.tm-sec h2::before {
	content: "";
	display: block;
	width: 58px;
	height: 3px;
	margin-bottom: 18px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--tm-teal), var(--tm-teal-d));
}
.tm-sec--center h2::before { margin-left: auto; margin-right: auto; }
.tm-sec--center { text-align: center; }
.tm-sec--center .tm-card { text-align: left; }
.tm-sec h3 { color: var(--tm-dark); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; margin: 0 0 .45em; }
.tm-sec p, .tm-sec li { font-size: 17px; line-height: 1.8; color: var(--tm-ink); }
.tm-sec p { margin-bottom: 1.15em; }
.tm-sec .wpb_text_column p a, .tm-sec .wpb_text_column li a { color: var(--tm-teal-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tm-sec .wpb_text_column p a:hover, .tm-sec .wpb_text_column li a:hover { color: var(--tm-dark); }
.tm-sec--dark .wpb_text_column p a { color: #fff; }
.tm-lead .nectar-button { margin-top: 14px; }
.tm-lead p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.7; color: var(--tm-dark); }
.tm-sec ul.tm-checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.tm-sec ul.tm-checks li { position: relative; padding: 0 0 0 38px; margin-bottom: 14px; }
.tm-sec ul.tm-checks li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute; left: 0; top: 2px;
	width: 26px; height: 26px; line-height: 26px; text-align: center; font-size: 12px;
	color: #fff; background: var(--tm-teal); border-radius: 50%;
}

/* ---------- surfaces ---------- */
.tm-sec--soft { background: var(--tm-soft); }
.tm-sec--lav { background: var(--tm-lav); }
.tm-sec--dark { background: var(--tm-dark); }
.tm-sec--dark h2, .tm-sec--dark h3, .tm-sec--dark p, .tm-sec--dark li { color: #fff; }

/* ---------- photographs ---------- */
.tm-sec img.tm-photo,
.tm-sec .tm-photo img {
	width: 100%; height: auto; display: block;
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	object-fit: cover;
}
.tm-sec img.tm-photo--tall, .tm-sec .tm-photo--tall img { aspect-ratio: 4 / 5; }
.tm-sec img.tm-photo--wide, .tm-sec .tm-photo--wide img { aspect-ratio: 16 / 10; }
.tm-photo-frame { position: relative; }
.tm-photo-frame::before {          /* offset outline behind the photo */
	content: ""; position: absolute; inset: 22px -18px -18px 22px;
	border: 2px solid var(--tm-teal); border-radius: calc(var(--tm-radius) + 6px); opacity: .55; z-index: 0;
}
.tm-photo-frame > * { position: relative; z-index: 1; }
.tm-photo-frame figcaption strong { display: block; font-size: 16px; }
.tm-photo-frame figcaption, .tm-badge {
	position: absolute !important; left: 18px; bottom: 18px; z-index: 2;
	background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
	border-radius: 14px; padding: 12px 18px; font-size: 14px; line-height: 1.35; color: var(--tm-dark);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.tm-badge strong { display: block; font-size: 16px; }

/* ---------- sticky split (sticky column beside a much longer one) ---------- */
/* Columns must stretch to the row height; the sticky element is the .vc_column-inner inside the short column. */
.tm-sticky-row .row_col_wrap_12 { display: flex !important; align-items: stretch; flex-wrap: nowrap; }
.tm-sticky-row .row_col_wrap_12 > .wpb_column { float: none; min-width: 0; }
.tm-sticky-col .n-sticky { position: sticky; top: 130px; align-self: flex-start; width: 100%; }
.tm-sticky-col .tm-photo { margin-top: 26px; }

/* ---------- numbered cards (stack) ---------- */
.tm-stack { counter-reset: tm; }
.tm-card {
	position: relative; background: #fff; border: 1px solid var(--tm-line);
	border-radius: 20px; padding: 30px 34px 12px 100px; margin-bottom: 22px;
	box-shadow: 0 16px 40px -28px rgba(34, 67, 74, .45);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(34, 67, 74, .55); border-color: var(--tm-teal); }
.tm-stack .tm-card { counter-increment: tm; }
.tm-stack .tm-card::before {
	content: counter(tm, decimal-leading-zero);
	position: absolute; left: 28px; top: 28px; width: 50px; height: 50px; line-height: 50px; text-align: center;
	font: 600 18px/50px "Outfit", sans-serif; color: #fff;
	background: linear-gradient(145deg, var(--tm-teal), var(--tm-teal-d)); border-radius: 16px;
}
.tm-card h3 { margin-top: 2px; }
.tm-card p:last-child { margin-bottom: 18px; }
.tm-sec--dark .tm-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }

/* card grid (icon cards) */
.tm-grid .tm-card { padding: 34px 30px 14px; height: calc(100% - 22px); }
.tm-grid .tm-card::before { display: none; }
.tm-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; margin-bottom: 18px; font-size: 24px; color: #fff;
	background: linear-gradient(145deg, var(--tm-teal), var(--tm-teal-d)); border-radius: 18px;
	box-shadow: 0 14px 26px -12px rgba(77, 139, 147, .8);
}
.tm-grid .tm-card:hover .tm-ico { transform: rotate(-6deg) scale(1.06); transition: transform .3s; }
.tm-grid .vc_row-inner, .tm-grid .row_col_wrap_12_inner { display: flex; flex-wrap: wrap; }
.tm-grid .row_col_wrap_12_inner > .wpb_column { display: flex; }
.tm-grid .row_col_wrap_12_inner > .wpb_column > .vc_column-inner { width: 100%; }
.tm-grid .row_col_wrap_12_inner > .wpb_column > .vc_column-inner > .wpb_wrapper { height: 100%; }

/* ---------- steps (timeline) ---------- */
.tm-steps .tm-card { padding-left: 100px; }
.tm-steps .tm-card::after {        /* connector between steps */
	content: ""; position: absolute; left: 52px; top: 80px; bottom: -24px; width: 2px;
	background: repeating-linear-gradient(to bottom, var(--tm-teal) 0 6px, transparent 6px 12px); opacity: .6;
}
.tm-steps .tm-card:last-child::after { display: none; }

/* ---------- trust strip ---------- */
.tm-trust .row_col_wrap_12_inner { display: flex; flex-wrap: wrap; }
.tm-trust-item { text-align: center; padding: 8px 10px; }
.tm-trust-item .tm-ico { margin-bottom: 14px; }
.tm-trust-item strong { display: block; font-size: 17px; color: var(--tm-dark); }
.tm-trust-item span { font-size: 14px; color: var(--tm-ink); }
.tm-trust-wrap { background: #fff; border-radius: 26px; box-shadow: var(--tm-shadow); padding: 34px 20px 22px; margin-top: -70px; position: relative; z-index: 5; }
.tm-trust-wrap .nectar-milestone .number { color: var(--tm-dark) !important; }
.tm-trust-wrap .nectar-milestone h6, .tm-trust-wrap .nectar-milestone span.subject { color: var(--tm-ink); font-size: 14px; }

/* ---------- image tiles (service links) ---------- */
.tm-tile-wrap { margin-bottom: 26px; }
.tm-tile {
	display: block; position: relative; overflow: hidden; border-radius: 22px; min-height: 330px;
	background-size: cover; background-position: center; color: #fff !important; text-decoration: none !important;
	box-shadow: var(--tm-shadow); isolation: isolate; text-align: left;
}
.tm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: inherit; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tm-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 67, 74, .05) 20%, rgba(25, 52, 58, .92) 100%); transition: opacity .4s; }
.tm-tile:hover::before { transform: scale(1.08); }
.tm-tile .tm-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 24px; }
.tm-tile h3 { color: #fff !important; margin: 0 0 8px; font-size: 26px; }
.tm-tile p { color: rgba(255, 255, 255, .9) !important; font-size: 15px; line-height: 1.6; margin: 0 0 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.tm-tile:hover p, .tm-tile:focus-visible p { max-height: 160px; opacity: 1; }
.tm-tile .tm-more { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.tm-tile .tm-more i { margin-left: 6px; transition: transform .3s; }
.tm-tile:hover .tm-more i { transform: translateX(6px); }
@media (hover: none) { .tm-tile p { max-height: 160px; opacity: 1; } }

/* ---------- FAQ ---------- */
.tm-faq h2, .tm-faq h3 { color: #fff; }
.tm-faq .toggle h3 a { font-size: 18px; }

/* ---------- closing call-to-action ---------- */
.tm-cta { text-align: center; }
.tm-cta h2, .tm-cta p { color: #fff !important; }
.tm-cta h2::before { margin-left: auto; margin-right: auto; background: #fff; }
.tm-cta p { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 19px; }
.tm-cta .tm-phone { display: inline-block; margin: 6px 0 0 18px; color: #fff !important; font-size: 18px; text-decoration: none !important; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.tm-cta .tm-phone:hover { border-color: #fff; }

/* ---------- reveal on scroll ---------- */
html.tm-js .tm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.tm-js .tm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.tm-js .tm-reveal { opacity: 1; transform: none; transition: none; }
	.tm-card, .tm-tile::before, .tm-ico { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 999px) {
	.tm-sticky-row .row_col_wrap_12 { display: block !important; }
	.tm-sticky-col .n-sticky { position: static; }
	.tm-photo-frame::before { inset: 14px -8px -8px 14px; }
	.tm-card, .tm-steps .tm-card { padding: 26px 22px 8px 84px; }
	.tm-stack .tm-card::before { left: 18px; top: 24px; }
	.tm-steps .tm-card::after { left: 42px; }
	.tm-trust-wrap { margin-top: -40px; }
	.tm-tile { min-height: 280px; }
}
@media (max-width: 600px) {
	.tm-card, .tm-steps .tm-card { padding: 78px 20px 6px; }
	.tm-stack .tm-card::before { left: 20px; top: 20px; }
	.tm-steps .tm-card::after { display: none; }
	.tm-grid .tm-card { padding: 30px 22px 10px; }
}

/* ---------- buttons ---------- */
.tm-sec a.nectar-button.regular, .tm-sec a.nectar-button.regular span {
	color: #fff !important;
}
.tm-sec a.nectar-button.regular {
	background: var(--tm-dark) !important; border-radius: 999px !important; padding: 16px 30px !important;
	box-shadow: 0 14px 28px -14px rgba(34, 67, 74, .8); transition: transform .3s, box-shadow .3s, background .3s;
}
.tm-sec a.nectar-button.regular:hover { background: var(--tm-teal-d) !important; transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(34, 67, 74, .8); }
.tm-cta a.nectar-button.regular { background: #fff !important; }
.tm-cta a.nectar-button.regular, .tm-cta a.nectar-button.regular span { color: var(--tm-dark) !important; }
.tm-cta a.nectar-button.regular:hover { background: var(--tm-lav) !important; }
.tm-btn-line { margin-left: 14px; font-weight: 600; color: var(--tm-dark) !important; text-decoration: none !important; border-bottom: 2px solid var(--tm-teal); padding-bottom: 2px; }
.tm-btn-line:hover { color: var(--tm-teal-d) !important; }

/* ---------- Services banner subtitle ---------- */
#service-banner .wpb_text_column p {
	max-width: 780px; margin: 16px auto 0 !important; font-size: 18px; line-height: 1.6; color: #fff !important;
	text-align: center; position: relative; z-index: 3; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
#service-banner h1 { margin-bottom: 0; }
#service-banner h1 { line-height: 1.15 !important; margin-bottom: 30px !important; }
#service-banner .wpb_text_column p { margin-top: 0 !important; }

/* ---------- small screens ---------- */
@media (max-width: 999px) {
	.tm-trust .row_col_wrap_12_inner > .wpb_column { width: 50% !important; float: left; }
}
@media (max-width: 600px) {
	/* keep copy clear of the site's fixed "Talk To A Therapist" tab on the right edge */
	.tm-sec .wpb_column > .vc_column-inner, .tm-sec .wpb_column > .n-sticky > .vc_column-inner { padding-right: 34px; }
	.tm-trust .row_col_wrap_12_inner > .wpb_column > .vc_column-inner { padding-right: 0; }
}
