/**
 * Team Single Bio Page Styles — v2 (matches approved preview)
 * Path: /wp-content/themes/goodharbor/assets/css/team-single.css
 *
 * Brand palette (matches site):
 *   --tb-navy     #0f2741   (deep — quote box)
 *   --tb-navy-2   #163a5f   (medium — hero background)
 *   --tb-navy-3   #2d4a68   (lighter — hero intro card, secondary CTA)
 *   --tb-gold     #c8a15a
 *   --tb-sand     #f5f1ea
 *   --tb-muted    #5d6775
 *   --tb-line     #d8dde5   (off-white — stat box backgrounds)
 *   --tb-ink      #1d2430
 *   --tb-white    #ffffff
 *
 * All selectors are scoped under .tb-page to avoid collisions.
 */

.tb-page {
	--tb-navy: #0f2741;
	--tb-navy-2: #163a5f;
	--tb-navy-3: #2d4a68;
	--tb-gold: #c8a15a;
	--tb-gold-dark: #b58c46;
	--tb-sand: #f5f1ea;
	--tb-sand-2: #fbfaf8;
	--tb-ink: #1d2430;
	--tb-muted: #5d6775;
	--tb-line: #d8dde5;
	--tb-white: #ffffff;
	--tb-shadow-sm: 0 4px 12px rgba(15, 39, 65, 0.06);
	--tb-shadow-md: 0 12px 28px rgba(15, 39, 65, 0.08);
	--tb-shadow-lg: 0 24px 48px rgba(15, 39, 65, 0.10);
	--tb-shadow-xl: 0 20px 40px rgba(15, 39, 65, 0.10);
	--tb-radius: 20px;
	--tb-radius-sm: 10px;
	color: var(--tb-ink);
	line-height: 1.65;
}

/* ---------- Typography ---------- */
.tb-page .tb-h1,
.tb-page .tb-h2,
.tb-page .tb-h3 { color: var(--tb-ink); margin: 0; line-height: 1.25; font-weight: 700; }
.tb-page .tb-h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
.tb-page .tb-h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tb-page .tb-h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.tb-page p { margin: 0 0 1em; color: var(--tb-ink); }
.tb-page .tb-prose p:last-child { margin-bottom: 0; }

.tb-page .tb-eyebrow {
	display: inline-block;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--tb-gold);
	margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.tb-page .tb-section { padding: 84px 0; }
.tb-page .tb-section-tight { padding: 56px 0; }
.tb-page .tb-section-alt { background: var(--tb-sand); }
.tb-page .tb-section h2.tb-h2 { color: var(--tb-navy); }

/* ---------- Member Sub-Nav ---------- */
.tb-page .tb-member-bar {
	background: var(--tb-white);
	border-bottom: 1px solid var(--tb-line);
	box-shadow: var(--tb-shadow-sm);
}
.tb-page .tb-member-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 84px;
	padding: 14px 0;
	gap: 24px;
	flex-wrap: wrap;
}
.tb-page .tb-member-brand { display: flex; flex-direction: column; }
.tb-page .tb-member-brand .tb-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--tb-navy);
	line-height: 1.2;
}
.tb-page .tb-member-brand .tb-role {
	color: var(--tb-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	margin-top: 4px;
}
.tb-page .tb-member-nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	color: var(--tb-navy);
	font-weight: 600;
	font-size: 0.92rem;
}
.tb-page .tb-member-nav a {
	color: var(--tb-navy);
	text-decoration: none;
	transition: color 0.2s ease;
}
.tb-page .tb-member-nav a:hover { color: var(--tb-gold); }

/* ---------- Hero ---------- */
.tb-page .tb-hero {
	background: var(--tb-navy-2);
	color: var(--tb-white);
	padding: 96px 0 88px;
	position: relative;
	overflow: hidden;
}
.tb-page .tb-hero::before {
	content: '';
	position: absolute;
	top: -180px; right: -180px;
	width: 540px; height: 540px;
	background: radial-gradient(circle, rgba(200, 161, 90, 0.10) 0%, transparent 70%);
	pointer-events: none;
}
.tb-page .tb-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
}
.tb-page .tb-hero .tb-h1 { color: var(--tb-white); }
.tb-page .tb-role-line {
	color: var(--tb-gold);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 6px 0 18px;
}
.tb-page .tb-lead {
	font-size: 1.15rem;
	color: rgba(255,255,255,0.85);
	max-width: 540px;
	margin: 0 0 28px;
}
.tb-page .tb-hero-card {
	background: var(--tb-navy-3);
	border-radius: var(--tb-radius-sm);
	padding: 26px 30px;
	box-shadow: var(--tb-shadow-md);
	margin-bottom: 32px;
}
.tb-page .tb-hero-card p { margin: 0; color: var(--tb-white); font-size: 1rem; }

.tb-page .tb-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.tb-page .tb-button {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	text-align: center;
	border: 2px solid transparent;
}
.tb-page .tb-button-primary {
	background: var(--tb-gold);
	color: #000;
	border-color: var(--tb-gold);
}
.tb-page .tb-button-primary:hover {
	background: var(--tb-gold-dark);
	border-color: var(--tb-gold-dark);
	transform: translateY(-1px);
}
.tb-page .tb-button-secondary {
	background: var(--tb-navy-2);
	color: var(--tb-white);
	border-color: var(--tb-white);
}
.tb-page .tb-button-secondary:hover {
	background: var(--tb-white);
	color: var(--tb-navy-2);
}

.tb-page .tb-portrait-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.tb-page .tb-portrait-card {
	background: var(--tb-navy-3);
	padding: 14px;
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-xl);
	max-width: 420px;
	width: 100%;
}
.tb-page .tb-portrait-card img {
	width: 100%; height: auto; display: block;
	border-radius: var(--tb-radius-sm);
}
.tb-page .tb-contact-row {
	display: flex;
	gap: 12px;
	justify-content: center;
}
.tb-page .tb-contact-row a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	color: var(--tb-white);
	transition: all 0.2s ease;
	text-decoration: none;
}
.tb-page .tb-contact-row a:hover { background: var(--tb-gold); color: #000; }

/* ---------- About + Stats ---------- */
.tb-page .tb-intro-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 56px;
	align-items: start;
}
.tb-page .tb-intro-text .tb-h2 { margin-bottom: 18px; color: var(--tb-navy); }
.tb-page .tb-intro-text .tb-prose { color: var(--tb-ink); }

.tb-page .tb-stat-card {
	background: var(--tb-white);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius);
	padding: 32px 28px;
	box-shadow: var(--tb-shadow-sm);
}
.tb-page .tb-stat-card .tb-h3 {
	font-weight: 800;
	margin-bottom: 22px;
	color: var(--tb-navy);
}
.tb-page .tb-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-page .tb-stat-box {
	background: var(--tb-line);
	color: var(--tb-ink);
	border-radius: var(--tb-radius-sm);
	padding: 18px;
}
.tb-page .tb-stat-box strong {
	display: block;
	color: var(--tb-ink);
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 6px;
}
.tb-page .tb-stat-box span {
	color: var(--tb-muted);
	font-size: 0.84rem;
	line-height: 1.4;
	display: block;
}

/* ---------- Quote Band ---------- */
.tb-page .tb-quote-section {
	background: var(--tb-sand);
	padding: 84px 0;
}
.tb-page .tb-quote-box {
	background: var(--tb-navy);
	color: var(--tb-white);
	padding: 32px 60px;
	border-radius: var(--tb-radius);
	text-align: center;
	box-shadow: var(--tb-shadow-md);
	max-width: 1100px;
	margin: 0 auto;
}
.tb-page .tb-quote-box blockquote {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-style: italic;
	color: var(--tb-white);
	margin: 0 0 16px;
	line-height: 1.4;
	font-weight: 500;
}
.tb-page .tb-quote-caption {
	color: rgba(255,255,255,0.7);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- Split Panels ---------- */
.tb-page .tb-split-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 32px;
}
.tb-page .tb-panel {
	background: var(--tb-white);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius);
	padding: 36px 32px;
	box-shadow: var(--tb-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tb-page .tb-panel:hover {
	box-shadow: var(--tb-shadow-md);
	transform: translateY(-2px);
}
.tb-page .tb-panel .tb-h3 {
	margin-bottom: 14px;
	font-weight: 800;
	color: var(--tb-navy);
}
.tb-page .tb-panel p { color: var(--tb-ink); }
.tb-page .tb-pullquote {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--tb-line);
	font-style: italic;
	color: var(--tb-navy);
	font-size: 1rem;
	font-weight: 700;
}

/* ---------- Galleries ---------- */
.tb-page .tb-section-intro { max-width: 720px; color: var(--tb-ink); }
.tb-page .tb-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
.tb-page .tb-lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tb-page .tb-image-card {
	margin: 0;
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	overflow: hidden;
	box-shadow: var(--tb-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tb-page .tb-image-card:hover { box-shadow: var(--tb-shadow-md); transform: translateY(-2px); }
.tb-page .tb-image-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.tb-page .tb-image-card figcaption {
	padding: 16px 20px 20px;
	color: var(--tb-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

/* ---------- Closing ---------- */
.tb-page .tb-closing { text-align: center; max-width: 720px; margin: 0 auto; }
.tb-page .tb-closing .tb-h3 { margin-bottom: 14px; color: var(--tb-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.tb-page .tb-section,
	.tb-page .tb-quote-section { padding: 64px 0; }
	.tb-page .tb-hero { padding: 64px 0; }
	.tb-page .tb-hero-grid,
	.tb-page .tb-intro-grid,
	.tb-page .tb-split-panels,
	.tb-page .tb-gallery-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.tb-page .tb-portrait-wrap { order: -1; }
	.tb-page .tb-lifestyle-grid { grid-template-columns: 1fr 1fr; }
	.tb-page .tb-stat-grid { grid-template-columns: 1fr 1fr; }
	.tb-page .tb-image-card img { height: 240px; }
	.tb-page .tb-quote-box { padding: 28px 32px; }
	.tb-page .tb-member-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 575px) {
	.tb-page .tb-stat-grid { grid-template-columns: 1fr; }
	.tb-page .tb-lifestyle-grid { grid-template-columns: 1fr; }
	.tb-page .tb-cta-row { flex-direction: column; align-items: stretch; }
	.tb-page .tb-image-card img { height: 220px; }
	.tb-page .tb-member-nav { font-size: 0.85rem; gap: 14px; }
}
