/* Avive Clinicians — profile + directory. Colours and fonts come from the Elementor global kit. */

.avc {
	--avc-primary: var(--e-global-color-primary, #00c7b1);
	--avc-secondary: var(--e-global-color-secondary, #041e42);
	--avc-text: var(--e-global-color-text, #2d2926);
	--avc-accent: var(--e-global-color-accent, #ff8674);
	--avc-muted: #5c6470;
	--avc-surface: var(--e-global-color-be77257, #f0f0f0);
	--avc-border: #dfe3e8;
	--avc-radius: 16px;
	--avc-font: var(--e-global-typography-text-font-family, "BR Firma"), system-ui, sans-serif;
	--avc-heading-font: var(--e-global-typography-primary-font-family, "BR Firma"), system-ui, sans-serif;

	color: var(--avc-text);
	font-family: var(--avc-font);
	padding: 32px 0 72px;
}

.avc *,
.avc *::before,
.avc *::after { box-sizing: border-box; }

.avc-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.avc h1,
.avc h2 {
	color: var(--avc-secondary);
	font-family: var(--avc-heading-font);
	line-height: 1.15;
	margin: 0;
}

.avc a { color: var(--avc-secondary); }
.avc a:focus-visible,
.avc button:focus-visible,
.avc input:focus-visible,
.avc select:focus-visible {
	outline: 3px solid var(--avc-primary);
	outline-offset: 2px;
}

/* Buttons */
.avc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 15px/1.2 var(--avc-font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.avc .avc-btn--primary { background: var(--avc-secondary); color: #fff; }
.avc .avc-btn--primary:hover { background: #0b3470; color: #fff; }
.avc .avc-btn--secondary { background: var(--avc-primary); color: var(--avc-secondary); }
.avc .avc-btn--secondary:hover { background: #00b09c; color: var(--avc-secondary); }
.avc .avc-btn--ghost { background: transparent; color: var(--avc-secondary); border-color: var(--avc-secondary); }
.avc .avc-btn--ghost:hover { background: var(--avc-secondary); color: #fff; }

/* Shared bits */
.avc-eyebrow {
	margin: 0 0 8px;
	color: #007a6c;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.avc-note {
	display: inline-block;
	margin: 12px 0 0;
	padding: 8px 12px;
	border-left: 4px solid var(--avc-accent);
	border-radius: 4px;
	background: #fff3f1;
	font-size: 15px;
}
.avc-note--small { font-size: 13px; padding: 6px 10px; margin-top: 8px; }

.avc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.avc-chips a,
.avc-chips span {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #e3f8f5;
	color: var(--avc-secondary);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
}
.avc-chips a:hover { background: var(--avc-primary); }
.avc-chips--small span { padding: 4px 10px; font-size: 13px; }

.avc-photo-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 6; /* matches the site's headshot crops */
	background: var(--avc-surface);
}

/* ---------- Profile ---------- */
.avc-back { margin-bottom: 20px; font-size: 15px; }
.avc-back a { text-decoration: none; }
.avc-back a:hover { text-decoration: underline; }

.avc-profile__header {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: 32px;
	border-radius: var(--avc-radius);
	background: var(--avc-surface);
}

.avc-profile__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 7 / 6; /* matches the site's headshot crops */
	object-fit: cover;
	object-position: center top;
	border-radius: var(--avc-radius);
}

.avc-profile__name { font-size: clamp(30px, 4vw, 44px); }
.avc-profile__job { margin: 8px 0 0; font-size: 19px; font-weight: 600; }
.avc-profile__quals { margin: 6px 0 0; color: var(--avc-muted); }

.avc-contact {
	display: grid;
	gap: 6px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.avc-contact__location a { font-weight: 600; }

.avc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.avc-profile__body {
	display: grid;
	gap: 36px;
	max-width: 780px;
	margin-top: 40px;
}
.avc-profile__body h2 { margin-bottom: 14px; font-size: 24px; }
.avc-profile__bio p { font-size: 17px; line-height: 1.7; }
.avc-profile__list-note { margin: 0 0 12px; font-weight: 600; }

/* ---------- Directory ---------- */
.avc-directory__header { max-width: 780px; margin-bottom: 28px; }
.avc-directory__header h1 { font-size: clamp(32px, 4.5vw, 48px); }
.avc-directory__intro { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.avc-directory__intro p:last-child { margin-bottom: 0; }

.avc-filters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	align-items: end;
	padding: 24px;
	border-radius: var(--avc-radius);
	background: var(--avc-surface);
}
.avc-filter { display: grid; gap: 6px; min-width: 0; }
.avc-filter--search { grid-column: 1 / -1; }
.avc-filter label { font-size: 14px; font-weight: 600; color: var(--avc-secondary); }
.avc-filter input,
.avc-filter select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #b9c1cb;
	border-radius: 10px;
	background-color: #fff;
	color: var(--avc-text);
	font: 16px var(--avc-font);
}
.avc-filters__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.avc-results-count { margin: 24px 0 16px; color: var(--avc-muted); font-weight: 600; }

.avc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--avc-border);
	border-radius: var(--avc-radius);
	background: #fff;
	transition: box-shadow .15s, transform .15s;
}
.avc-card:hover { box-shadow: 0 10px 28px rgba(4, 30, 66, .12); transform: translateY(-2px); }

.avc-card__photo { display: block; background: var(--avc-surface); }
.avc-card__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 7 / 6; /* matches the site's headshot crops */
	object-fit: cover;
	object-position: center top;
}

.avc-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.avc-card__name { font-size: 21px; }
.avc-card__name a { text-decoration: none; }
.avc-card__name a:hover { text-decoration: underline; }
.avc-card__job { margin: 4px 0 0; font-weight: 600; }
.avc-card__location { margin: 4px 0 0; color: var(--avc-muted); font-size: 15px; }
.avc-card .avc-chips { margin-top: 14px; }
.avc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.avc-card__actions .avc-btn { flex: 1 1 auto; }

.avc-empty {
	padding: 48px 24px;
	border-radius: var(--avc-radius);
	background: var(--avc-surface);
	text-align: center;
}

@media (max-width: 767px) {
	.avc { padding-top: 20px; }
	.avc-profile__header { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
	.avc-profile__photo { max-width: 260px; }
	.avc-filters { grid-template-columns: 1fr; padding: 16px; }
	.avc-actions .avc-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.avc-card, .avc-btn { transition: none; }
	.avc-card:hover { transform: none; }
}
