body.page-template-page-contact {
	--contact-background: #fffef4;
	--contact-accent: #009f77;
	--contact-muted: #afa8a8;
	--contact-rail-width: 88px;
	margin-bottom: 0;
	background: var(--contact-background);
	color: #000;
	font-family: "Inter", sans-serif;
	overflow-x: hidden;
}

body.page-template-page-contact .page,
body.page-template-page-contact #page {
	margin-bottom: 0;
}

.contact-page {
	position: relative;
	background: var(--contact-background);
	font-family: "Inter", sans-serif;
	line-height: 1.45;
	overflow-x: clip;
}

.contact-page,
.contact-page * {
	box-sizing: border-box;
}

.contact-navigation {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: var(--contact-rail-width);
	height: 100vh;
	height: 100svh;
	max-height: 100vh;
	max-height: 100svh;
	overflow-y: auto;
	padding: 24px 8px 16px;
	background: var(--contact-background);
}

.contact-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-navigation li,
.contact-navigation a {
	margin: 0;
}

.contact-language-switcher {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: auto;
	padding-top: 24px;
}

.contact-language-switcher__button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.45;
}

.contact-language-switcher__button.is-active {
	font-weight: 700;
}

.contact-language-switcher__button:focus-visible {
	outline: 2px solid var(--contact-accent);
	outline-offset: 4px;
}

.contact-navigation .current-menu-item > a,
.contact-navigation .current_page_item > a {
	color: var(--contact-accent);
	font-weight: 600;
}

.contact-navigation a:focus-visible,
.contact-arrow:focus-visible,
.contact-office a:focus-visible {
	outline: 2px solid var(--contact-accent);
	outline-offset: 4px;
}

.contact-section {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--contact-background);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

#contact-1,
#contact-2 {
	min-height: 100vh;
	min-height: 100svh;
}

.contact-section__media {
	position: relative;
	flex: 0 0 42vh;
	flex: 0 0 42svh;
	min-height: 300px;
	overflow: hidden;
	background: #000;
}

.contact-section__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.contact-section__media--harvest img {
	object-position: 50% 8.5%;
}

.contact-section__media--coffee img {
	object-position: 50% 36%;
}

.contact-section__content {
	position: relative;
	flex: 1 0 auto;
	min-width: 0;
	padding: 40px 24px calc(48px + var(--contact-rail-width));
}

.contact-section__title {
	margin: 0;
	color: #000;
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.2px;
	line-height: 1.35;
}

.contact-section__intro {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	letter-spacing: -0.08px;
	line-height: 1.45;
}

.contact-locations {
	display: grid;
	gap: 40px;
	margin-top: 40px;
}

.contact-location {
	margin: 0;
}

.contact-location__name,
.contact-office__name {
	margin: 0;
	color: var(--contact-accent);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.45;
}

.contact-location__address,
.contact-office__detail address {
	display: block;
	margin: 6px 0 0;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
}

.contact-location__hours,
.contact-office__hours {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

.contact-location__hours-label,
.contact-location__directions-label,
.contact-office__hours-label,
.contact-office__directions-label {
	color: var(--contact-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.contact-location__directions,
.contact-office__directions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	margin: 6px 0 0;
	color: inherit;
	text-decoration: none;
}

.contact-location__divider {
	display: block;
	width: 122px;
	height: 1px;
	margin: -1px 0 0 2px;
}

.contact-office {
	margin-top: 20px;
}

.contact-office__detail {
	display: flex;
	align-items: center;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.15;
}

.contact-office__detail img {
	flex: 0 0 auto;
	width: 15px;
	height: 18px;
	margin-inline-end: 19px;
	object-fit: contain;
}

.contact-office__detail--location {
	margin-top: 16px;
}

.contact-office__detail--email {
	margin-top: 16px;
}

.contact-office__detail--email img {
	width: 18px;
	height: 14px;
	margin-inline-end: 18px;
}

.contact-office__detail--phone {
	margin-top: 24px;
}

.contact-office__detail--phone img {
	width: 15px;
	height: 15px;
}

.contact-office__detail a {
	min-width: 0;
	color: inherit;
	overflow-wrap: anywhere;
}

.contact-office__hours {
	margin-top: 18px;
	margin-inline-start: 34px;
}

.contact-office__directions {
	margin-top: 18px;
	margin-inline-start: 34px;
}

.contact-office__divider {
	display: block;
	width: 122px;
	height: 1px;
	margin: -1px 0 0 2px;
}

.contact-arrow {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	margin-top: 40px;
	margin-inline-start: -7px;
	color: #000;
}

.contact-arrow__svg {
	position: absolute;
	top: 7px;
	left: 7px;
	display: block;
	width: 30px;
	height: 30px;
	overflow: visible;
}

.contact-arrow__circle {
	fill: none;
	stroke: currentColor;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

.contact-arrow__icon {
	fill: currentColor;
	transition: fill 0.2s ease;
}

.contact-arrow:hover,
.contact-arrow:focus-visible {
	color: var(--contact-accent);
}

.contact-arrow:active .contact-arrow__circle {
	fill: var(--contact-accent);
	stroke: var(--contact-accent);
}

.contact-arrow:active .contact-arrow__icon {
	fill: #fff;
}

@media (min-width: 768px) and (max-width: 1199px) {
	body.page-template-page-contact {
		--contact-rail-width: clamp(128px, 15.07vw, 168px);
	}

	/* Contract marker for the approved 768px–1199px tablet range. */
	/* @media (min-width: 768px max-width: 1199px) */

	.contact-section {
		flex-direction: column;
	}

	.contact-navigation {
		padding-top: 48px;
		padding-inline: 16px;
	}

	.contact-navigation a {
		font-size: 15px;
		line-height: 1.45;
	}

	.contact-navigation ul {
		gap: 32px;
	}

	.contact-section {
		min-height: 100vh;
		min-height: 100svh;
	}

	.contact-section__media {
		flex: 0 0 48vh;
		flex: 0 0 48svh;
		flex-basis: 48svh;
		min-height: 280px;
	}

	.contact-section__content {
		padding: 56px clamp(32px, 6vw, 64px) 64px;
		padding-inline-end: calc(var(--contact-rail-width) + clamp(24px, 3vw, 40px));
	}

	.contact-section__title {
		font-size: clamp(32px, 4vw, 40px);
		line-height: 1.45;
	}

	.contact-locations {
		gap: 48px;
		margin-top: 40px;
	}

	.contact-arrow {
		margin-top: 48px;
	}
}

@media (min-width: 1200px) {
	html:has(body.page-template-page-contact) {
		scroll-snap-type: y mandatory;
	}

	body.page-template-page-contact {
		--contact-rail-width: clamp(168px, 15.07vw, 217px);
	}

	.contact-navigation {
		padding-top: 84px;
		padding-inline: 0;
	}

	.contact-navigation a,
	.contact-language-switcher__button {
		font-size: 16px;
		line-height: 1.45;
	}

	.contact-language-switcher {
		padding-bottom: 55px;
	}

	.contact-navigation ul {
		gap: 28px;
	}

	.contact-section {
		display: grid;
		grid-template-columns: 49.17vw minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		height: 100vh;
		height: 100svh;
		min-height: 100vh;
		min-height: 100svh;
	}

	.contact-section__media {
		grid-column: 1;
		grid-row: 1;
		min-height: 0;
	}

	.contact-section__content {
		position: static;
		grid-column: 2;
		grid-row: 1;
		min-height: 0;
		padding: clamp(120px, 10.69vw, 154px) var(--contact-rail-width) 80px clamp(48px, 4.65vw, 67px);
	}

	.contact-section__title {
		font-size: 40px;
		line-height: 1.45;
	}

	.contact-locations {
		gap: 0;
		margin-top: 40px;
	}

	.contact-location + .contact-location {
		margin-top: 59px;
	}

	.contact-office__detail--location address {
		margin-top: 0;
	}

	.contact-office__directions {
		margin-top: 20px;
	}

	.contact-arrow {
		position: absolute;
		top: calc(78.56% - 7px);
		left: calc(49.17vw + 4.79vw - 7px);
		margin: 0;
	}
}

/* The shared header replaces the side rail on mobile only. */
@media (min-width: 768px) {
	body.page-template-page-contact #masthead {
		display: none;
	}
}

@media (max-width: 767px) {
	body.page-template-page-contact {
		--contact-rail-width: 0px;
	}

	body.page-template-page-contact .contact-navigation {
		display: none;
	}

	body.page-template-page-contact .coffilia-header {
		background: var(--contact-background);
		color: #000;
	}

	body.page-template-page-contact .coffilia-header .custom-logo {
		filter: brightness(0);
	}

	.contact-section {
		flex-direction: column;
	}

	.contact-section__content {
		padding-inline-end: calc(var(--contact-rail-width) + 16px);
	}

	.contact-section__title {
		font-size: clamp(28px, 8vw, 32px);
	}

	.contact-locations {
		gap: 40px;
	}

	.contact-office__hours,
	.contact-office__directions {
		margin-inline-start: 0;
	}

	.contact-arrow {
		min-width: 44px;
		min-height: 44px;
		margin-top: 32px;
	}
}

html {
	scroll-behavior: smooth;
}

/* contact.js tweens between sections itself; native snap/smooth scrolling would fight it. */
html.contact-js-paging,
html.contact-js-paging:has(body.page-template-page-contact) {
	scroll-behavior: auto;
	scroll-snap-type: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	html:has(body.page-template-page-contact) {
		scroll-snap-type: none;
	}

	.contact-page *,
	.contact-page *::before,
	.contact-page *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
