/*
 * Contact bar. Figma: 1294x94, title Firs Regular 32 / 1.5 at 41px left,
 * name Eudoxus Bold 16 / -2%, links Bold 14 underlined, photo 77px round.
 */

.cta-contact {
	--cta-text: var(--wp--preset--color--text);

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	min-height: 94px;
	padding: 16px 20px;
	color: var(--cta-text);
	background: var(--wp--preset--color--yellow-cta);

	@media (min-width: 768px) {
		padding: 9px 13px 9px 41px;
	}
}

.cta-contact--pink {
	background: var(--wp--preset--color--pink);
}

.cta-contact--general {
	--cta-text: var(--wp--preset--color--umber);

	@media (min-width: 768px) {
		padding-right: 51px;
	}
}

.cta-contact__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-m);
	font-weight: 400;
	line-height: var(--wp--custom--line-height--body);
}

.cta-contact__person {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.cta-contact__name {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	line-height: 1;
	letter-spacing: var(--wp--custom--letter-spacing--heading);
	width: 100%;

	@media (min-width: 480px) {
		width: auto;
	}
}

.cta-contact__links {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;

	& .u-link {
		display: inline-block;
		padding-top: 8px;
	}
}

.cta-contact__photo {
	width: 77px;
	height: 77px;
	border-radius: 50%;
	object-fit: cover;
	margin-left: 7px;
}

/* Small screens: photo moves to the top right of the bar. */
@media (max-width: 767px) {
	.cta-contact--person {
		position: relative;
		padding-right: 100px;
	}

	.cta-contact__photo {
		position: absolute;
		top: 16px;
		right: 16px;
		width: 64px;
		height: 64px;
		margin: 0;
	}
}
