/*
 * I Already Won Fitness: Coach single (iawf_coach)  v1.0.2
 * v1.0.2: H1 eyebrow is always upright (Avada's global H1 rendered it italic).
 * v1.0.1: long unbroken words (a long coach name or role) can no longer
 * widen the profile past the screen on phones.
 * Prompt 10 (SINGLE-CPT-TEMPLATE v6.4). Template: single-iawf_coach.php
 * Loaded only on coach pages by inc/base-template-assets.php (by file name).
 *
 * Tokens: IAWF-DSM-20261019 (--awb-color1..10, --awb-typography1/3).
 * Components (not restyled here): iawf-btn, iawf-btn--compact,
 * iawf-link-arrow, iawf-link-arrow--back, --iawf-icon-arrow (IAWF-RCM-20261019).
 *
 * Breakpoints: 960px (design: two-column profile with sticky photo at
 * 960px and up) and 640px (DSM small screen; phone below 640px).
 */

/* --------------------------------------------------------------------------
   Page chrome: full-width bands on this template only
   -------------------------------------------------------------------------- */

html body.single-iawf_coach #main#main {
	padding-left: 0;
	padding-right: 0;
}

html body.single-iawf_coach #main#main > .fusion-row {
	max-width: none;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Root and resets inside the template
   -------------------------------------------------------------------------- */

.iawf-coach {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--awb-color1);
	color: var(--awb-color8);
}

/* A long word must wrap inside the column instead of setting its width */
.iawf-coach .iawf-coach__eyebrow,
.iawf-coach .iawf-coach__name,
.iawf-coach .iawf-coach__card-role,
.iawf-coach .iawf-coach__card-name {
	overflow-wrap: anywhere;
}

.iawf-coach__profile-inner > * {
	min-width: 0;
	max-width: 100%;
}

.iawf-coach p,
.iawf-coach ul,
.iawf-coach li,
.iawf-coach dl,
.iawf-coach dt,
.iawf-coach dd,
.iawf-coach h1,
.iawf-coach h2,
.iawf-coach h3 {
	margin: 0;
	padding: 0;
}

.iawf-coach ul {
	list-style: none;
}

/* --------------------------------------------------------------------------
   1. Profile
   -------------------------------------------------------------------------- */

/* H1 eyebrow: set in full here so Avada's global H1 style (italic on the
   live site) never changes it. Design: 13px, 700, upright, red, uppercase. */
html body .iawf-coach h1.iawf-coach__eyebrow {
	font-family: var(--awb-typography3-font-family);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--awb-color5);
}

.iawf-coach__profile-inner {
	max-width: 1680px;
	margin: 0 auto;
	padding: clamp(112px, 15vh, 140px) clamp(20px, 4vw, 64px) clamp(64px, 6vw, 96px);
	padding-top: clamp(112px, 15svh, 140px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

.iawf-coach__media {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.iawf-coach a.iawf-coach__back {
	align-self: flex-start;
}

.iawf-coach__photo {
	position: relative;
	width: 100%;
	height: 72vw;
	border-radius: 24px;
	overflow: hidden;
	background: var(--awb-color2);
	border: 1px solid var(--awb-color9);
}

.iawf-coach .iawf-coach__photo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 30%;
}

/* No-photo placeholder (main photo and cards) */
.iawf-coach__nophoto {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.iawf-coach .iawf-coach__nophoto-img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
	opacity: .9;
}

.iawf-coach .iawf-coach__nophoto-img--card {
	width: 96px;
	height: 96px;
}

.iawf-coach__nophoto-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--awb-color6);
	text-align: center;
}

/* Copy column */
.iawf-coach__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 22px);
	min-width: 0;
}

.iawf-coach .iawf-coach__name {
	max-width: 100%;
	font-family: var(--awb-typography1-font-family);
	font-size: clamp(48px, min(6.2vw, 11vh), 112px);
	font-size: clamp(48px, min(6.2vw, 11svh), 112px);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.02em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
	color: var(--awb-color8);
}

.iawf-coach blockquote.iawf-coach__motto {
	max-width: 600px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-family: var(--awb-typography1-font-family);
	font-size: clamp(19px, 1.6vw, 26px);
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--awb-color10);
}

.iawf-coach blockquote.iawf-coach__motto::before,
.iawf-coach blockquote.iawf-coach__motto::after {
	content: none;
}

/* Questionnaire rows */
.iawf-coach .iawf-coach__rows {
	width: 100%;
	margin-top: clamp(12px, 2vw, 28px);
	border-bottom: 1px solid var(--awb-color3);
}

.iawf-coach__row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 10px 28px;
	padding: clamp(18px, 1.8vw, 24px) 0;
	border-top: 1px solid var(--awb-color3);
}

.iawf-coach .iawf-coach__label {
	padding-top: 3px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--awb-color5);
}

.iawf-coach .iawf-coach__answer {
	min-width: 0;
	font-size: clamp(15px, 1.1vw, 16px);
	line-height: 1.65;
	color: var(--awb-color10);
	text-wrap: pretty;
	overflow-wrap: break-word;
}

.iawf-coach__row--nolabel .iawf-coach__answer {
	grid-column: 1 / -1;
}

.iawf-coach .iawf-coach__answer p + p {
	margin-top: .8em;
}

.iawf-coach__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.iawf-coach .iawf-coach__list li {
	display: flex;
	gap: 12px;
}

.iawf-coach .iawf-coach__list li::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 10px;
	border-radius: 50%;
	background: var(--awb-color5);
}

/* Closing CTA */
.iawf-coach__cta {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 34px;
	padding: clamp(4px, 1vw, 12px) 0;
}

.iawf-coach .iawf-coach__cta-title {
	font-family: var(--awb-typography1-font-family);
	font-size: clamp(22px, 2vw, 32px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--awb-color8);
}

/* Instagram link: arrow nudges 4px right on hover/focus (design) */
.iawf-coach a.iawf-coach__ig,
.iawf-coach a.iawf-coach__ig:hover,
.iawf-coach a.iawf-coach__ig:focus {
	color: var(--awb-color8);
	text-decoration: none;
}

.iawf-coach a.iawf-coach__ig {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.iawf-coach a.iawf-coach__ig::after {
	content: "";
	flex-shrink: 0;
	width: .9em;
	height: .7em;
	background-color: var(--awb-color5);
	-webkit-mask: var(--iawf-icon-arrow) center / contain no-repeat;
	mask: var(--iawf-icon-arrow) center / contain no-repeat;
	transition: transform .3s var(--iawf-ease-out);
}

.iawf-coach a.iawf-coach__ig:focus-visible {
	outline: 2px solid var(--awb-color8);
	outline-offset: 4px;
}

.iawf-coach a.iawf-coach__ig:focus-visible::after {
	transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
	.iawf-coach a.iawf-coach__ig:hover::after {
		transform: translateX(4px);
	}
}

/* --------------------------------------------------------------------------
   2. More coaches
   -------------------------------------------------------------------------- */

.iawf-coach__more {
	border-top: 1px solid var(--awb-color9);
}

.iawf-coach__more-inner {
	max-width: 1680px;
	margin: 0 auto;
	padding: clamp(64px, 6vw, 96px) clamp(20px, 4vw, 64px);
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.4vw, 48px);
}

.iawf-coach__more-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px 48px;
}

.iawf-coach__more-titles {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.iawf-coach .iawf-coach__more-eyebrow {
	font-family: var(--awb-typography3-font-family);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--awb-color5);
}

.iawf-coach .iawf-coach__more-heading {
	font-size: clamp(36px, 4.8vw, 80px);
	line-height: .92;
}

.iawf-coach__cards {
	contain: inline-size;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 16px;
}

.iawf-coach a.iawf-coach__card-link,
.iawf-coach a.iawf-coach__card-link:hover,
.iawf-coach a.iawf-coach__card-link:focus {
	color: var(--awb-color8);
	text-decoration: none;
}

.iawf-coach a.iawf-coach__card-link {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-radius: 24px;
}

.iawf-coach a.iawf-coach__card-link:focus-visible {
	outline: none;
}

.iawf-coach a.iawf-coach__card-link:focus-visible .iawf-coach__card-photo {
	outline: 2px solid var(--awb-color8);
	outline-offset: -2px;
}

.iawf-coach__card-photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 24px;
	overflow: hidden;
	background: var(--awb-color2);
	border: 1px solid var(--awb-color9);
}

.iawf-coach .iawf-coach__card-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 30%;
}

.iawf-coach__card-role {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--awb-color5);
}

.iawf-coach .iawf-coach__card-name {
	font-size: clamp(22px, 1.8vw, 28px);
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--awb-color8);
	overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   3. Reviews (header + reviews plugin widget)
   -------------------------------------------------------------------------- */

.iawf-coach__reviews {
	border-top: 1px solid var(--awb-color9);
	padding: clamp(64px, 6vw, 96px) 0;
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.4vw, 48px);
}

.iawf-coach__reviews-head-wrap {
	width: 100%;
	max-width: 1544px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 72px);
}

.iawf-coach__reviews-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 48px;
}

.iawf-coach__reviews-titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 820px;
}

.iawf-coach .iawf-coach__reviews-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--awb-typography3-font-family);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--awb-color8);
}

.iawf-coach__stars {
	font-size: 16px;
	letter-spacing: .1em;
	color: var(--awb-color5);
}

.iawf-coach .iawf-coach__reviews-heading {
	font-size: clamp(30px, 3.8vw, 60px);
	line-height: 1;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.iawf-coach__reviews-track {
	position: relative;
	overflow: hidden;
	/* The reviews slider is a long row of cards; it must never decide how
	   wide the page is (on the live site it stretched the whole profile). */
	contain: inline-size;
}

.iawf-coach__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: clamp(40px, 10vw, 200px);
	pointer-events: none;
}

.iawf-coach__fade--left {
	left: 0;
	background: linear-gradient(90deg, var(--awb-color1) 15%, rgba(0, 0, 0, 0));
}

.iawf-coach__fade--right {
	right: 0;
	background: linear-gradient(270deg, var(--awb-color1) 15%, rgba(0, 0, 0, 0));
}

/* --------------------------------------------------------------------------
   Wide: two columns, sticky photo (960px and up)
   -------------------------------------------------------------------------- */

@media (min-width: 960px) {
	.iawf-coach__profile-inner {
		grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
	}

	.iawf-coach__media {
		position: sticky;
		top: 112px;
	}

	body.admin-bar .iawf-coach__media {
		top: 144px;
	}

	.iawf-coach__photo {
		height: max(420px, calc(100vh - 194px));
	}

	.iawf-coach__copy {
		padding-top: 42px;
	}
}

/* --------------------------------------------------------------------------
   Phone (below 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 639.98px) {
	.iawf-coach__profile-inner {
		padding-top: 100px;
	}

	.iawf-coach__photo {
		height: 110vw;
	}

	.iawf-coach .iawf-coach__name {
		font-size: 44px;
	}

	.iawf-coach__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.iawf-coach__cards {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72vw;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.iawf-coach__cards::-webkit-scrollbar {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.iawf-coach a.iawf-coach__ig::after {
		transition: none;
	}
}
