/*
 * Our Team page (route information/team)
 * Template: extension/so_theme/catalog/view/template/information/team.twig
 * --------------------------------------------------------------------------
 * Layout agnostic: every selector is scoped to .trv-team-page, so the same
 * file serves layout 43, layout 44 and any later SoTheme layout.  The accent
 * colour follows the layout through --primary-color when a layout declares it.
 *
 * Mobile first, 8dp spacing grid, 16px page padding, 16px body text, 48px
 * minimum touch targets, no horizontal overflow.
 */

.trv-team-page {
	--trv-team-accent: var(--primary-color, var(--s40-accent, #066168));
	--trv-team-highlight: #ffaa0d;
	--trv-team-ink: #0d2d31;
	--trv-team-body: #3f6367;
	--trv-team-line: rgba(6, 97, 104, .14);
	--trv-team-surface: #f4f9f8;
	font-family: Figtree, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
	background: #ffffff;
	overflow-x: hidden;
}

.trv-team-page *,
.trv-team-page *::before,
.trv-team-page *::after {
	box-sizing: border-box;
}

.trv-team-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------------------------------------------------------------- banner */
.trv-team-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	min-height: 296px;
	background-color: #04353a;
	color: #ffffff;
}

.trv-team-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

.trv-team-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: linear-gradient(180deg, rgba(4, 53, 58, .58) 0%, rgba(4, 53, 58, .86) 100%);
}

.trv-team-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 16px;
}

.trv-team-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .82);
}

.trv-team-crumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.trv-team-crumbs__item + .trv-team-crumbs__item::before {
	content: "/";
	color: rgba(255, 255, 255, .55);
}

.trv-team-crumbs__item a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: #ffffff;
	text-decoration: none;
}

.trv-team-crumbs__item a:hover,
.trv-team-crumbs__item a:focus-visible {
	color: var(--trv-team-highlight);
	text-decoration: underline;
}

.trv-team-crumbs__item span {
	color: rgba(255, 255, 255, .92);
	font-weight: 600;
}

.trv-team-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--trv-team-highlight);
}

.trv-team-hero__title {
	margin: 0 0 12px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #ffffff;
}

.trv-team-hero__lead {
	max-width: 660px;
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .88);
}

/* -------------------------------------------------------------- sections */
.trv-team-section {
	padding: 48px 0 8px;
}

.trv-team-section__head {
	max-width: 720px;
	margin: 0 0 24px;
}

.trv-team-section__count {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--trv-team-accent);
}

.trv-team-section__title {
	margin: 0 0 8px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--trv-team-ink);
}

.trv-team-section__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
}

.trv-team-empty {
	margin: 48px 0;
	padding: 24px;
	border: 1px solid var(--trv-team-line);
	border-radius: 16px;
	background: var(--trv-team-surface);
	font-size: 16px;
}

/* ------------------------------------------------------------------ grid */
.trv-team-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trv-team-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	background: #ffffff;
	border: 1px solid var(--trv-team-line);
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(13, 45, 49, .06);
}

/* Fixed 4:3 media box; the photo fills it edge to edge, so there is no white
   gap between the photo and the card border. */
.trv-team-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e6f2f1;
}

/* Absolutely positioned on purpose: the theme's generic img rules
   (padding / max-width / height:auto) cannot shrink it this way. */
.trv-team-card__media > .trv-team-card__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center 30%;
	background: #e6f2f1;
}

.trv-team-card__media > .trv-team-card__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #ffffff;
	background-image: linear-gradient(135deg, #066168 0%, #0a8f8a 100%);
}

.trv-team-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

/* Name on the left, role on the right, same line. */
.trv-team-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.trv-team-card__name {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--trv-team-ink);
}

.trv-team-card__role {
	flex: 0 0 auto;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .04em;
	text-align: right;
	text-transform: uppercase;
	color: var(--trv-team-accent);
}

.trv-team-card__level {
	margin: 0;
}

.trv-team-card__level-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 170, 13, .18);
	color: #6b4200;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

/* ---------------------------------------------------------------- rating */
.trv-team-card__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.trv-team-stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}

.trv-team-stars__base {
	color: #d9e3e2;
}

.trv-team-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	overflow: hidden;
	color: #ffaa0d;
}

.trv-team-card__score {
	font-weight: 700;
	color: var(--trv-team-ink);
}

.trv-team-card__reviews {
	color: var(--trv-team-body);
}

.trv-team-card__reviews--empty {
	color: #6f8b8d;
}

.trv-team-card__bio {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
}

/* ---------------------------------------------------------------- legend */
.trv-team-legend {
	margin-top: 48px;
	padding: 48px 0;
	background: var(--trv-team-surface);
	border-top: 1px solid var(--trv-team-line);
}

.trv-team-legend__head {
	max-width: 760px;
	margin: 0 0 24px;
}

.trv-team-legend__title {
	margin: 0 0 8px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--trv-team-ink);
}

.trv-team-legend__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
}

.trv-team-legend__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.trv-team-legend__card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid var(--trv-team-line);
	border-radius: 16px;
}

.trv-team-legend__card-title {
	margin: 0 0 16px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--trv-team-ink);
}

.trv-team-legend__text,
.trv-team-legend__note {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
}

.trv-team-legend__note {
	margin-top: 16px;
	font-size: 14px;
	color: #55787b;
}

.trv-team-levels {
	margin: 0;
	padding: 0;
}

.trv-team-levels__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-top: 1px solid var(--trv-team-line);
}

.trv-team-levels__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.trv-team-levels__term {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--trv-team-ink);
}

.trv-team-levels__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-team-body);
}

/* ------------------------------------------------------------------- CTA */
.trv-team-cta {
	padding: 48px 0;
}

.trv-team-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 32px 16px;
	border-radius: 16px;
	background-image: linear-gradient(135deg, #04353a 0%, #066168 100%);
	color: #ffffff;
}

.trv-team-cta__title {
	margin: 0;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.trv-team-cta__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .88);
}

.trv-team-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: #ffaa0d;
	color: #3d2500;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease;
}

.trv-team-cta__button:hover,
.trv-team-cta__button:focus-visible {
	background: #ffbb3d;
	color: #3d2500;
	text-decoration: none;
}

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 640px) {
	.trv-team-hero {
		min-height: 360px;
	}

	.trv-team-hero__inner {
		padding: 40px 24px;
	}

	.trv-team-hero__title {
		font-size: 46px;
	}

	.trv-team-wrap {
		padding: 0 24px;
	}

	.trv-team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.trv-team-cta__inner {
		padding: 40px 32px;
	}
}

@media (min-width: 992px) {
	.trv-team-hero {
		min-height: 420px;
	}

	.trv-team-hero__inner {
		padding: 64px 16px;
	}

	.trv-team-hero__title {
		font-size: 60px;
	}

	.trv-team-hero__lead {
		font-size: 17px;
	}

	.trv-team-section {
		padding: 64px 0 8px;
	}

	.trv-team-section__title,
	.trv-team-legend__title,
	.trv-team-cta__title {
		font-size: 32px;
	}

	.trv-team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.trv-team-legend__grid {
		grid-template-columns: 1.5fr 1fr;
		gap: 24px;
	}

	.trv-team-cta__inner {
		padding: 48px;
	}
}

@media (min-width: 1280px) {
	.trv-team-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.trv-team-page * {
		transition: none !important;
		animation: none !important;
	}
}

/* --------------------------------------------------------------- overrides
 * The theme styles h1/h2/h3 through `.h1, .h2, h3` (one class of specificity,
 * loaded after this file), which is enough to repaint the banner title in the
 * body colour.  The page prefix below keeps the banner legible on the photo.
 */
body .trv-team-page .trv-team-hero,
body .trv-team-page .trv-team-hero__title,
body .trv-team-page .trv-team-crumbs__item a,
body .trv-team-page .trv-team-crumbs__item span {
	color: #ffffff;
}

body .trv-team-page .trv-team-hero__eyebrow {
	color: #ffaa0d;
}

body .trv-team-page .trv-team-hero__lead {
	color: rgba(255, 255, 255, .88);
}

body .trv-team-page .trv-team-crumbs__list {
	color: rgba(255, 255, 255, .82);
}

body .trv-team-page .trv-team-hero__title {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.15;
}

@media (min-width: 640px) {
	body .trv-team-page .trv-team-hero__title {
		font-size: 46px;
	}
}

@media (min-width: 992px) {
	body .trv-team-page .trv-team-hero__title {
		font-size: 60px;
	}
}

body .trv-team-page .trv-team-cta__title {
	color: #ffffff;
}

/* --------------------------------------------------------- header state
 * The banner is printed inside the theme's before_main wrapper (see
 * team.twig), so layout 43 uses its "page opens with a banner" header state:
 * the floating rounded white card, exactly like /contact and /about-us.
 * Without it the theme reserves a 190px white band above the page and the
 * card disappears on white.
 */
.trv-team-banner {
	position: relative;
}

@media (min-width: 992px) {
	/* The card occupies 30px (inset) + 108px (height), so keep the banner copy
	   below it and let the photo run behind the card. */
	body.information-team .trv-team-hero {
		align-items: flex-start;
		min-height: 520px;
	}

	body.information-team .trv-team-hero__inner {
		padding-top: 190px;
	}
}
