/* ============================================================
   SAFE SPACE COUNSELLING — Our Team Listing
   Styles for the "Our Team Listing" page template.
   Uses Core Framework :root tokens — no hardcoded brand hex.
   ============================================================ */

.ot-team-listing,
.ot-team-listing *,
.ot-team-listing *::before,
.ot-team-listing *::after {
	box-sizing: border-box;
}

.ot-team-listing {
	font-family: var(--font-body);
	color: var(--text-body);
	background-color: var(--white);
}

/* ============================================================
   1. HERO
   ============================================================ */
.ot-hero {
	background-color: #fefbf5;
	padding-top: clamp(2rem, 4vw, 3.5rem);
	text-align: center;
	padding-bottom: 12vw;
    position: relative;
}

.ot-hero__head {
	max-width: 960px;
	margin: 0 auto;
}
.ot-hero__media {
    background-image: url('/wp-content/uploads/2026/05/our-team-hero-image.svg');
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 100vw;
    height: 12.5vw;
    position: absolute;
    inset: auto 0% -7%;
}
.ot-overline {
	display: inline-block;
	margin-bottom: var(--space-xs);
	font-size: var(--text-xs);
	font-weight: var(--font-semi);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #28282899;
}

.ot-hero__title {
	margin: 0 0 var(--space-s);
	font-family: var(--font-heading);
	font-weight: var(--font-regular);
	font-size: var(--text-h1);
	line-height: 1.1;
	color: var(--text-title);
}

.ot-hero__lead {
	max-width: 620px;
	margin: 0 auto;
	font-size: var(--text-m);
	line-height: 1.7;
	color: var(--text-body);
}

.ot-hero__media {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ot-hero__media img {
	display: block;
	width: 100%;
	max-width: 1000px;
	height: auto;
	margin: 0 auto;
}

/* ============================================================
   2. BROWSE — filter + results
   ============================================================ */
.ot-browse {
	background-color: var(--white);
	padding-top: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.ot-browse__title {
	margin: 0 0 var(--space-m);
	font-family: var(--font-heading);
	font-weight: var(--font-regular);
	color: var(--text-title);
}

/* ---- Filter form --------------------------------------------------- */
.ot-filter {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	margin-bottom: var(--space-l);
}

.ot-filter__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
}

.ot-field {
	flex: 1 1 200px;
	min-width: 0;
	padding: 8px 14px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-body);
	border: 1px solid rgba(162, 161, 131, 0.45);
	border-radius: var(--radius-s);
	-webkit-appearance: none;
	appearance: none;
}

.ot-field::placeholder {
	color: var(--text-muted);
}

select.ot-field {
	padding-right: 36px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233D3830' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.ot-field:focus {
	outline: none;
	border-color: var(--sage);
}

.ot-filter__row--checks {
	align-items: center;
	gap: var(--space-m) var(--space-l);
}

.ot-checkgroup {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.ot-checkgroup__label {
	font-size: var(--text-s);
	font-weight: var(--font-semi);
	color: var(--text-title);
}

.ot-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-s);
	color: var(--text-body);
	cursor: pointer;
}

.ot-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--sage);
	cursor: pointer;
}

.ot-clear {
	margin-left: auto;
	padding: 6px 0;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: var(--font-semi);
	color: var(--rust);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.ot-clear:hover {
	color: var(--terra);
	background: transparent;
    box-shadow: none;
}
.team-member-link-arrow {
    width: 60%;
    position: absolute;
    inset: auto 0% 21% 20%;
}
/* ============================================================
   3. RESULTS GRID
   ============================================================ */
.ot-results {
	position: relative;
	min-height: 240px;
	transition: opacity var(--transition);
}

.ot-results.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.ot-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.ot-noresults {
	padding: var(--space-2xl) 0;
	font-size: var(--text-m);
	color: var(--text-muted);
	text-align: center;
}

/* ============================================================
   4. TEAM CARD
   ============================================================ */
.ot-card {
	display: flex;
	flex-direction: column;
	background-color: var(--white);
	border: 1px solid rgba(162, 161, 131, 0.3);
	border-radius: var(--radius-m);
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
}

.ot-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(26, 22, 20, 0.12);
}

.ot-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--sage-100);
}

.ot-card__media img,
.ot-card__media-empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ot-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: var(--space-m);
}

.ot-card__name {
	margin: 0 0 4px;
	font-family: var(--font-heading);
	font-weight: var(--font-regular);
	font-size: var(--text-h4);
	line-height: 1.2;
}

.ot-card__name a {
	color: var(--text-title);
	text-decoration: none;
	transition: color var(--transition);
}

.ot-card__name a:hover {
	color: var(--rust);
}

.ot-card__role {
	margin: 0 0 var(--space-xs);
	font-size: var(--text-xs);
	font-weight: var(--font-semi);
	color: var(--secondary);
}

.ot-card__bio {
	margin: 0 0 var(--space-s);
	font-size: var(--text-s);
	line-height: 1.6;
	color: var(--text-body);
}

.ot-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-right: 46px;
}

.ot-tag {
	display: inline-block;
    padding: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--secondary);
    border-radius: var(--radius-pill);
}

.ot-card__link {
	position: absolute;
	right: var(--space-m);
	bottom: var(--space-m);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 1.05rem;
	color: var(--bg-dark);
	border: 1.5px solid var(--bg-dark);
	border-radius: 50%;
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
	padding: 16px !important;
}

.ot-card__link:hover {
	color: var(--white);
	background-color: var(--bg-dark);
}

/* ============================================================
   5. FAQ
   ============================================================ */
.ot-faq {
	background-color: var(--bg-body);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.ot-faq__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.ot-faq__intro-col {
	flex: 0 0 auto;
	width: clamp(180px, 24vw, 280px);
}

.ot-faq__list-col {
	flex: 1 1 420px;
	min-width: 0;
}

.ot-faq__heading {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: var(--font-regular);
	font-size: var(--text-h2);
	color: var(--text-title);
}

.ot-faq__intro {
	margin: 0 0 var(--space-m);
	font-size: var(--text-m);
	line-height: 1.7;
	color: var(--text-body);
}

.ot-faq__item {
	border-bottom: 1px solid rgba(162, 161, 131, 0.35);
}

.ot-faq__item:first-child {
	border-top: 1px solid rgba(162, 161, 131, 0.35);
}

.ot-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	padding: var(--space-s) 0;
	font-family: var(--font-body);
	font-size: var(--text-m);
	font-weight: var(--font-medium);
	color: var(--text-title);
	list-style: none;
	cursor: pointer;
}

.ot-faq__q::-webkit-details-marker {
	display: none;
}

.ot-faq__q::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-right: 4px;
	border-right: 2px solid var(--text-body);
	border-bottom: 2px solid var(--text-body);
	transform: rotate(45deg);
	transition: transform var(--transition);
}

.ot-faq__item[open] .ot-faq__q::after {
	transform: rotate(-135deg);
}

.ot-faq__a {
	padding: 0 0 var(--space-m);
	font-size: var(--text-s);
	line-height: 1.7;
	color: var(--text-body);
}

.ot-faq__a > *:first-child {
	margin-top: 0;
}

.ot-faq__a a {
	color: var(--rust);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ot-check span {
    margin-bottom: -3px;
}
[type=search] {
    border-radius: var(--radius-s) !important;
}
.page-template-our-team-listing .newsletter-section .stk-separator__top .stk-separator__wrapper svg {
    fill: #fbf3ef !important;
}
/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.ot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 781px) {
	.ot-field {
		flex: 1 1 100%;
	}

	.ot-filter__row--checks {
		flex-direction: column;
		align-items: flex-start;
	}

	.ot-clear {
		margin-left: 0;
	}

	.ot-faq__intro-col {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.ot-grid {
		grid-template-columns: 1fr;
	}
}
