/* Contact page, Figma 1113:1582. */

.contact {
	background: #fff;
	overflow-x: clip;
}

.contact-intro {
	width: min(848px, calc(100% - 80px));
	max-width: 100%;
	margin-top: 89px;
	margin-right: auto;
	margin-left: auto;
}

.contact-intro .collection-intro__title,
.contact-intro .collection-intro__copy {
	white-space: normal;
	overflow-wrap: break-word;
}

.contact-intro .collection-intro__title {
	width: 100%;
	max-width: 686px;
}

.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 668fr) minmax(0, 508fr) minmax(0, 344fr);
	width: var(--wrap);
	min-height: 666px;
	margin: 80px auto 0;
	background: #faf5eb;
}

.contact-card > * {
	min-width: 0;
}

.contact-card__photo {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 666px;
	object-fit: cover;
}

.contact-card__copy {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding: 80px 80px 48px;
	background: #faf5eb;
}

.contact-card__title {
	width: 100%;
	max-width: 341px;
	margin: 0;
	color: #77604d;
	font-family: var(--serif);
	font-size: 50px;
	font-weight: 300;
	line-height: 45px;
	letter-spacing: -2px;
	text-transform: uppercase;
	text-box: trim-both cap alphabetic;
}

.contact-card__copy p {
	margin-top: 29px;
	color: #616262;
	font-size: 18px;
	line-height: 24px;
}

.contact-card__copy strong {
	font-weight: 700;
}

.contact-card__social {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-card__social-link {
	position: relative;
	display: block;
	width: 52px;
	height: 52px;
}

.contact-card__social-link--mark img:last-child {
	position: absolute;
	left: 50%;
	top: 50%;
	width: auto;
	height: auto;
	max-width: 16px;
	max-height: 16px;
	translate: -50% -50%;
}

.contact-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 17px;
	margin: 0;
	padding: 56px 45px;
	list-style: none;
	background: #f2e9d8;
}

.contact-details li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	text-align: center;
}

.contact-details__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1.2px solid #737373;
	border-radius: 56px;
}

.contact-details__label {
	color: #776952;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.16px;
}

.contact-details__value {
	max-width: 220px;
	margin: 0;
	color: #000;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	letter-spacing: -0.8px;
	text-decoration: none;
}

.contact-form {
	position: relative;
	width: var(--wrap);
	margin: 150px auto;
	padding: 160px 0;
	overflow: hidden;
	background: var(--ivory);
}

.contact-form .texture {
	opacity: 0.1;
	transform: scaleY(-1);
}

.contact-form__inner {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 80px));
	margin: 0 auto;
}

.contact-form__notice {
	margin: 0 0 48px;
	color: var(--bronze);
	font-size: 18px;
	line-height: 24px;
	text-align: center;
}

.contact-form__notice.is-error {
	color: #8a3d2f;
}

.contact-form__fields {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.contact-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
}

.contact-form__fields p {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.contact-form label {
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
}

.contact-form__req {
	color: #a3680d;
	font-weight: 600;
	text-decoration: none;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid #d0d0d0;
	border-radius: 0;
	background: transparent;
	color: #141414;
	font: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
}

.contact-form textarea {
	height: auto;
	min-height: 96px;
	padding-top: 12px;
	resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #616262;
	opacity: 1;
}

.contact-form select {
	padding-right: 24px;
	color: #141414;
	cursor: pointer;
	appearance: none;
	background: transparent url("../../images/icon-chevron.svg") right center / 11px 11px no-repeat;
}

.contact-form select:invalid {
	color: #616262;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
	outline: 2px solid var(--bronze);
	outline-offset: 4px;
	border-bottom-color: var(--bronze);
}

.contact-form__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

button.text-link.contact-form__submit {
	align-self: center;
	margin-top: 48px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.contact-map {
	position: relative;
	height: 713px;
	overflow: hidden;
	background: #e7efe4;
	container-type: size;
}

/*
 * The photo's own proportions, scaled to cover the band (object-fit: cover
 * done on a box), so the pin can sit on the image. js/modules/contact-map.js
 * sets the ratio, pin and focus from the block; these are the design values.
 */
.contact-map__canvas {
	--map-w: max(100cqw, 100cqh * var(--map-ratio, 1.9423));
	--map-h: max(100cqh, 100cqw / var(--map-ratio, 1.9423));
	position: absolute;
	left: calc((100cqw - var(--map-w)) * var(--map-focus-x, 0.5));
	top: calc((100cqh - var(--map-h)) * var(--map-focus-y, 1));
	width: var(--map-w);
	height: var(--map-h);
}

.contact-map__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.contact-map__pin {
	position: absolute;
	left: var(--pin-x, 33.34%);
	top: var(--pin-y, 68.25%);
	width: 102px;
	height: 102px;
	translate: -50% -50%;
	animation: contact-pin 2s linear infinite;
}

/* About page: room between the introduction (or the sections after it) and the map. */
:is(.about-intro, .about-vision, .about-leadership) + .contact-map {
	margin-top: 100px;
}

@media (max-width: 1279px) {
	:is(.about-intro, .about-vision, .about-leadership) + .contact-map {
		margin-top: 72px;
	}
}

@media (max-width: 767px) {
	:is(.about-intro, .about-vision, .about-leadership) + .contact-map {
		margin-top: 56px;
	}
}

.contact-map__mark {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 79px;
	height: 35px;
	overflow: hidden;
	translate: -50% -50%;
	pointer-events: none;
}

.contact-map__mark img {
	position: absolute;
	left: -14.46%;
	top: -83.9%;
	width: 121.69%;
	height: 260.53%;
	max-width: none;
}

@keyframes contact-pin {
	0% {
		animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
		scale: 1;
	}

	40% {
		animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
		scale: 1.15;
	}

	80%,
	100% {
		scale: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-map__pin {
		animation: none;
	}
}
