/**
 * Contact page
 */

/* Contact channels overlap the shared rail hero */
.st-contact > .st-ih--rail {
	min-height: min(54svh, 32rem);
}

.st-contact > .st-ih--rail .st-ih__inner {
	padding-bottom: clamp(3.5rem, 8vw, 5.25rem);
}

.st-contact > .st-ih--rail .st-ih__lead {
	margin-bottom: 0.35rem;
}

.st-contact > .st-ih--rail .st-ih__media img {
	object-position: 58% 42%;
}

.st-contact-hero {
	position: relative;
	min-height: min(48svh, 26rem);
	display: grid;
	place-items: end center;
	overflow: hidden;
	color: #fff;
	background: #1a1814;
}

.st-contact-hero__media {
	position: absolute;
	inset: 0;
}

.st-contact-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-contact-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(20 18 16 / 0.35) 0%, rgb(20 18 16 / 0.22) 40%, rgb(20 18 16 / 0.8) 100%);
	pointer-events: none;
}

.st-contact-hero__content {
	position: relative;
	z-index: 1;
	width: var(--st-container);
	margin-inline: auto;
	padding: calc(var(--st-header-height) + 3rem) 0 2.75rem;
}

.st-contact-hero__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.78);
}

.st-contact-hero__title {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: #fff;
}

.st-contact-hero__lead {
	margin: 0.95rem 0 0;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 0.88);
}

/* Channel cards */
.st-contact-channels {
	padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
	margin-top: clamp(-2.75rem, -4vw, -2.25rem);
	position: relative;
	z-index: 2;
}

.st-contact-channels__grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.st-contact-channels__grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
		gap: clamp(1.15rem, 2.5vw, 1.65rem);
		justify-content: start;
	}
}

.st-contact-channel {
	display: grid;
	gap: 0.45rem;
	padding: 1.35rem 1.45rem 1.5rem;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius, 18px);
	text-align: left;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 10px 28px rgb(20 18 16 / 0.05);
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
	font: inherit;
	cursor: pointer;
}

.st-contact-channel:hover {
	border-color: rgb(139 36 50 / 0.28);
	box-shadow: 0 14px 36px rgb(20 18 16 / 0.08);
	transform: translateY(-2px);
}

.st-contact-channel__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-contact-channel__value {
	font-family: var(--st-font-display);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--st-ink);
	word-break: break-word;
}

.st-contact-channel__hint {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--st-muted);
}

/* Main form + side */
.st-contact-main {
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.st-contact-main__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: start;
}

@media (min-width: 960px) {
	.st-contact-main__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.85fr);
		gap: clamp(2rem, 4vw, 3.25rem);
	}
}

.st-contact-panel {
	padding: clamp(1.75rem, 3.5vw, 2.35rem);
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-lg, 24px);
}

.st-contact-panel__head {
	margin-bottom: 1.5rem;
}

.st-contact-panel__head h2 {
	margin: 0.35rem 0 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.65rem, 3vw, 2.1rem);
	font-weight: 400;
	line-height: 1.15;
}

.st-contact-panel__head p {
	margin: 0.65rem 0 0;
	max-width: 36rem;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--st-muted);
}

.st-contact-form .wpcf7,
.st-contact-form .wpcf7-form {
	margin-top: 0;
}

.st-contact-form .tst-form-grid,
.st-contact-form .wpcf7-form .tst-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: none;
}

@media (min-width: 640px) {
	.st-contact-form .tst-form-grid,
	.st-contact-form .wpcf7-form .tst-form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.st-contact-form .tst-form-full {
		grid-column: 1 / -1;
	}
}

.st-contact-form label,
.st-contact-form .wpcf7-form label {
	display: grid;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--st-ink);
}

.st-contact-form .tst-input,
.st-contact-form .wpcf7-form .tst-input,
.st-contact-form .wpcf7-form input[type="text"],
.st-contact-form .wpcf7-form input[type="email"],
.st-contact-form .wpcf7-form input[type="tel"],
.st-contact-form .wpcf7-form textarea {
	width: 100%;
	min-height: 2.85rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--st-line-strong);
	border-radius: 12px;
	background: var(--st-bg, #faf8f5);
	font-family: var(--st-font);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--st-ink);
	box-sizing: border-box;
}

.st-contact-form .wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.st-contact-form .tst-input:focus,
.st-contact-form .wpcf7-form input:focus,
.st-contact-form .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--st-accent);
	background: #fff;
	box-shadow: 0 0 0 3px var(--st-accent-soft);
}

.st-contact-form .tst-submit,
.st-contact-form .wpcf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.95rem;
	padding: 0.75rem 1.6rem;
	border: none;
	border-radius: var(--st-radius-pill, 999px);
	background: var(--st-accent);
	color: #fff;
	font-family: var(--st-font);
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.st-contact-form .tst-submit:hover,
.st-contact-form .wpcf7-form input[type="submit"]:hover {
	background: var(--st-accent-2, #5c1822);
}

.st-contact-form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	font-size: 0.875rem;
}

.st-contact-side {
	display: grid;
	gap: 1rem;
}

.st-contact-side__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--st-radius-lg, 24px);
	aspect-ratio: 4 / 3;
	background: #ebe6de;
}

.st-contact-side__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-contact-side__card {
	padding: 1.35rem 1.35rem 1.45rem;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius, 18px);
}

.st-contact-side__card--soft {
	background: #f7f2ea;
	border-color: transparent;
}

.st-contact-side__card h3 {
	margin: 0.35rem 0 0;
	font-family: var(--st-font-display);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.25;
}

.st-contact-side__card > p {
	margin: 0.7rem 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--st-muted);
}

.st-contact-side__list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.st-contact-side__list li {
	position: relative;
	padding-left: 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--st-ink);
}

.st-contact-side__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: var(--st-accent);
}

.st-contact-side__links {
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.st-contact-side__links a {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--st-accent);
	text-decoration: none;
}

.st-contact-side__links a:hover {
	text-decoration: underline;
}

/* Expect steps */
.st-contact-expect {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background: #fff;
	border-top: 1px solid var(--st-line);
}

.st-contact-expect__head {
	margin-bottom: 1.75rem;
	max-width: 32rem;
}

.st-contact-expect__head h2 {
	margin: 0.35rem 0 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 400;
}

.st-contact-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.15rem;
}

@media (min-width: 800px) {
	.st-contact-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.st-contact-steps li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.85rem;
	padding: 1.25rem 1.2rem;
	background: var(--st-bg, #faf8f5);
	border-radius: var(--st-radius, 18px);
}

.st-contact-steps__n {
	font-family: var(--st-font-display);
	font-size: 1.15rem;
	font-weight: 400;
	color: var(--st-accent);
	line-height: 1;
}

.st-contact-steps strong {
	display: block;
	font-family: var(--st-font-display);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--st-ink);
}

/* Align hero, channel cards, and form on one container edge (override layout V2 centering) */
body.st-lv-2.st-lv-ctx-contact .st-contact > .st-ih--rail {
	place-items: end start;
	text-align: left;
}

body.st-lv-2.st-lv-ctx-contact .st-contact > .st-ih--rail .st-ih__content {
	max-width: 38rem;
	margin-inline: 0;
	text-align: left;
}

body.st-lv-2.st-lv-ctx-contact .st-contact > .st-ih--rail .st-ih__lead {
	margin-inline: 0;
}

body.st-lv-2.st-lv-ctx-contact .st-contact > .st-ih--rail .st-ih__title {
	margin-inline: 0;
}

.st-contact-steps p {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--st-muted);
	font-weight: 400;
}
