/**
 * Newfield Coach Profiles — base styles.
 * Override the variables in Elementor → Site Settings → Custom CSS, or in your child theme.
 */

:root {
	--nnf-accent: #c9a24b;        /* gold */
	--nnf-brand: #3b1f5c;         /* purple */
	--nnf-ink: #1f1534;
	--nnf-muted: #6b6280;
	--nnf-card-bg: #ffffff;
	--nnf-card-border: rgba(31, 21, 52, 0.12);
	--nnf-radius: 14px;
	--nnf-gap: 24px;
}

/* ---------- Hide Elementor widgets whose shortcode printed nothing ---------- */
.elementor-widget-shortcode:has(.elementor-shortcode:empty),
.elementor-widget-heading:has(.elementor-heading-title:empty),
.elementor-widget-text-editor:has(.elementor-widget-container:empty) {
	display: none;
}

/* ---------- Main avatar ---------- */
.nnf-member-avatar {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: inherit;
}

/* ---------- Owner bar ---------- */
.nnf-owner-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: var(--nnf-brand);
	color: #fff;
	font-size: 14px;
}
.nnf-owner-bar a {
	color: var(--nnf-accent);
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Lists & cards ---------- */
.nnf-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nnf-list li {
	padding: 4px 0;
}
.nnf-list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
}
.nnf-list--inline li {
	padding: 4px 12px;
	border: 1px solid var(--nnf-card-border);
	border-radius: 999px;
}

.nnf-card {
	height: 100%;
	padding: 28px;
	background: var(--nnf-card-bg);
	border: 1px solid var(--nnf-accent);
	border-radius: var(--nnf-radius);
	color: var(--nnf-ink);
}
.nnf-card__title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nnf-brand);
}
.nnf-card__text {
	margin: 0;
}

/* ---------- Website button & social links ---------- */
.nnf-visit-website {
	display: inline-block;
	padding: 12px 26px;
	border: 1px solid var(--nnf-accent);
	border-radius: 999px;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.nnf-visit-website:hover,
.nnf-visit-website:focus-visible {
	background: var(--nnf-accent);
	color: var(--nnf-ink);
}

.nnf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nnf-social__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Other coaches grid ---------- */
.nnf-coaches {
	display: grid;
	grid-template-columns: repeat(var(--nnf-columns, 4), minmax(0, 1fr));
	gap: var(--nnf-gap);
}
@media (max-width: 1024px) {
	.nnf-coaches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.nnf-coaches {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nnf-coach-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--nnf-card-bg);
	border: 1px solid var(--nnf-card-border);
	border-radius: var(--nnf-radius);
	color: var(--nnf-ink);
}
.nnf-coach-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f2eff6;
}
.nnf-coach-card__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.3s ease;
}
.nnf-coach-card:hover .nnf-coach-card__img {
	transform: scale(1.03);
}
.nnf-coach-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 22px;
}
.nnf-coach-card__name {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}
.nnf-coach-card__name a {
	color: inherit;
	text-decoration: none;
}
.nnf-coach-card__role {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nnf-accent);
}
.nnf-coach-card__excerpt {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--nnf-muted);
}
.nnf-coach-card__link {
	margin-top: auto;
	padding-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--nnf-brand);
}

.nnf-coach-profile .screen-reader-text,
.nnf-coaches .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.nnf-coach-card__img,
	.nnf-visit-website {
		transition: none;
	}
}

