/**
 * Team Page Styles
 *
 * @package CARE-INF
 * @since 1.0.0
 */

/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root {
	--tm-primary:     #1a3a5f;
	--tm-accent:      #d4af37;
	--tm-accent-dark: #b8942e;
	--tm-text:        #4b5563;
	--tm-text-dark:   #1a3a5f;
	--tm-bg-light:    #f9fafb;
	--tm-border:      #e5e7eb;
	--tm-white:       #ffffff;
}

/* =====================================================
   PAGE WRAPPER
   ===================================================== */

.site-main.page-team {
	max-width: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
}

/* =====================================================
   CONTAINERS
   ===================================================== */

.tm-container {
	width: 100%;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.tm-container--narrow {
	max-width: 860px;
}

/* =====================================================
   EYEBROW
   ===================================================== */

.tm-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tm-accent);
	margin-bottom: 0.875rem;
}

.tm-eyebrow--light {
	color: var(--tm-accent);
	opacity: 0.9;
}

/* =====================================================
   HERO
   ===================================================== */

.tm-hero {
	position: relative;
	background: linear-gradient(135deg, #0d2340 0%, #1a3a5f 55%, #1e4a7a 100%);
	padding: 10rem 2rem;
	text-align: center;
	overflow: hidden;
	margin-top: 0;
}

.tm-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 40% at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
		radial-gradient(ellipse 50% 60% at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
	pointer-events: none;
}

.tm-hero__overlay {
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.tm-hero__content {
	position: relative;
	z-index: 1;
}

.tm-hero__title {
	font-family: var(--care-inf-heading-font, 'Cinzel', serif);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 600;
	color: var(--tm-white);
	margin: 0 0 1rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.tm-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: rgba(255, 255, 255, 0.72);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.6;
}

/* =====================================================
   INTRO
   ===================================================== */

.tm-intro {
	background: var(--tm-white);
	padding: 4rem 2rem;
	border-bottom: 1px solid var(--tm-border);
}

.tm-intro__text {
	font-size: 1.125rem;
	line-height: 1.85;
	color: var(--tm-text);
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

/* =====================================================
   FILTER BAR
   ===================================================== */

.tm-filter-bar {
	background: var(--tm-white);
	padding: 1.5rem 2rem;
	border-bottom: 1px solid var(--tm-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(26, 58, 95, 0.06);
}

.tm-filter-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.tm-filter-tab {
	background: transparent;
	border: 1.5px solid var(--tm-border);
	color: var(--tm-text);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.45rem 1.125rem;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.22s ease;
	font-family: inherit;
}

.tm-filter-tab:hover {
	border-color: var(--tm-primary);
	color: var(--tm-primary);
	background: rgba(26, 58, 95, 0.04);
}

.tm-filter-tab--active {
	background: var(--tm-primary);
	border-color: var(--tm-primary);
	color: var(--tm-white);
}

.tm-filter-tab--active:hover {
	background: #152e4d;
	border-color: #152e4d;
	color: var(--tm-white);
}

/* =====================================================
   TEAM GRID
   ===================================================== */

.tm-grid-section {
	background: var(--tm-bg-light);
	padding: 4.5rem 0 5rem;
}

.tm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

/* =====================================================
   TEAM CARD
   ===================================================== */

.tm-card {
	background: var(--tm-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(26, 58, 95, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.tm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(26, 58, 95, 0.14);
}

.tm-card__image-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #e5e7eb;
}

.tm-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.tm-card:hover .tm-card__image {
	transform: scale(1.04);
}

.tm-card__division-badge {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	background: rgba(26, 58, 95, 0.88);
	backdrop-filter: blur(8px);
	color: var(--tm-accent);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 100px;
}

.tm-card__body {
	padding: 1.5rem 1.625rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tm-card__name {
	font-family: var(--care-inf-heading-font, 'Cinzel', serif);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--tm-primary);
	margin: 0 0 0.3rem;
	line-height: 1.3;
}

.tm-card__role {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tm-accent-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 0.875rem;
}

.tm-card__bio {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--tm-text);
	margin: 0 0 1.125rem;
	flex: 1;
}

.tm-card__linkedin {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tm-primary);
	text-decoration: none;
	transition: color 0.2s ease;
	margin-top: auto;
}

.tm-card__linkedin:hover {
	color: var(--tm-accent-dark);
}

/* =====================================================
   JOIN CTA
   ===================================================== */

.tm-cta {
	background: linear-gradient(135deg, #0d2340 0%, #1a3a5f 100%);
	padding: 5rem 2rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.tm-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
	pointer-events: none;
}

.tm-cta__inner {
	position: relative;
	z-index: 1;
}

.tm-cta__title {
	font-family: var(--care-inf-heading-font, 'Cinzel', serif);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 600;
	color: var(--tm-white);
	margin: 0 0 1rem;
	line-height: 1.2;
}

.tm-cta__text {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.7);
	max-width: 600px;
	margin: 0 auto 2rem;
}

.tm-cta__btn {
	display: inline-block;
	background: var(--tm-accent);
	color: var(--tm-primary);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.875rem 2.25rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tm-cta__btn:hover {
	background: var(--tm-accent-dark);
	box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
	transform: translateY(-2px);
	color: var(--tm-white);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
	.tm-hero {
		padding: 4rem 1.25rem;
	}

	.tm-grid {
		grid-template-columns: 1fr;
	}

	.tm-filter-tabs {
		gap: 0.375rem;
	}

	.tm-filter-tab {
		font-size: 0.75rem;
		padding: 0.4rem 0.875rem;
	}

	.tm-intro {
		padding: 2.5rem 1.25rem;
	}

	.tm-cta {
		padding: 3.5rem 1.25rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.tm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
