/**
 * Contact — page template styles.
 *
 * Scoped under .mwp-contact-page so nothing collides with the theme. Consumes
 * the brand tokens from assets/css/style.css (--color-*, --space-*, --radius-*,
 * --font-display, --font-body) rather than re-declaring hexes, so the page
 * follows the brand automatically.
 *
 * Layout: centered hero on cream → two columns below (terracotta studio-info
 * panel + warm-white form card that overlaps up into the hero band).
 */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.mwp-contact-page {
	--mwp-font-label: 'VolumeTCSans-RusticSolid', sans-serif;
	--mwp-texture: url('../images/clay-texture.jpg');
	background: var(--color-cream);
}

/* The dark hero runs to the very top, behind the transparent fixed nav, so
   kill the global 72px offset that would otherwise leave a pale strip above it.
   Matches the shrinkage-calculator / tutorial "Studio" treatment. */
body:not(.home) .mwp-contact-page { padding-top: 0; }

/* ── Hero — charcoal band, clay-textured, deep enough for the cards to
      overlap up into it ─────────────────────────────────────────────────── */
.mwp-contact-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	background: var(--color-charcoal);
	padding-top: calc(var(--space-2xl) + 72px);
	padding-bottom: calc(var(--space-2xl) + 90px);
}
.mwp-contact-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--mwp-texture) center / cover;
	opacity: .16;
	mix-blend-mode: overlay;
	pointer-events: none;
}
.mwp-contact-hero > .container { position: relative; z-index: 2; }

.mwp-contact-hero .section-label {
	display: block;
	color: var(--color-terracotta-light); /* terracotta is too dark on charcoal */
	margin-bottom: var(--space-xs);
}
.mwp-contact-hero .page-title {
	font-family: var(--font-display);
	font-size: var(--hero-title);
	font-weight: 400;
	line-height: 1.02;
	color: var(--color-warm-white);
	margin: 0 0 var(--space-sm);
}
.mwp-contact-hero .page-title em {
	font-style: italic;
	color: var(--color-terracotta-light);
}
.mwp-contact-hero__intro {
	max-width: 540px;
	margin: 0 auto;
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--color-light-gray);
}

/* ── Cards overlap up into the dark hero band ───────────────────────────── */
.mwp-contact-wrap {
	position: relative;
	z-index: 3;
	margin-top: -90px;
	padding-bottom: var(--space-2xl);
}

.mwp-contact-grid {
	display: grid;
	gap: var(--space-md);
	align-items: stretch;
}
@media (min-width: 820px) {
	.mwp-contact-grid {
		grid-template-columns: 0.95fr 1.05fr;
		gap: var(--space-lg);
	}
}

/* ── Studio info panel — terracotta slab, the warm "human" side ─────────── */
.mwp-contact-info {
	position: relative;
	overflow: hidden;
	background: var(--color-terracotta);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow:
		0 2px 4px rgba(46, 42, 38, .06),
		0 18px 40px -10px rgba(46, 42, 38, .22);
}
.mwp-contact-info__heading {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1;
	color: #fff;
	margin: 0 0 var(--space-sm);
}
.mwp-contact-info__blurb {
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(255, 255, 255, .9);
	margin: 0 0 var(--space-lg);
	max-width: 34ch;
}

.mwp-contact-info__list {
	list-style: none;
	margin: 0 0 var(--space-lg);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}
.mwp-contact-info__item {
	display: flex;
	align-items: flex-start;
	gap: .9rem;
}
.mwp-contact-info__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
}
.mwp-contact-info__icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.75;
}
.mwp-contact-info__detail {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	padding-top: .25rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #fff;
	word-break: break-word;
}
.mwp-contact-info__label {
	font-family: var(--mwp-font-label);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .72);
}
.mwp-contact-info__detail a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
	transition: border-color .2s ease;
	width: fit-content;
	max-width: 100%;
}
.mwp-contact-info__detail a:hover { border-color: #fff; }

/* The studio email is the longest value — nudge it down so it stays one line. */
.mwp-contact-info__item--email .mwp-contact-info__detail a { font-size: .95rem; }

.mwp-contact-info__note {
	font-family: var(--mwp-font-label);
	font-size: .95rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .85);
	margin: 0;
	padding-top: var(--space-md);
	border-top: 1px solid rgba(255, 255, 255, .18);
}

/* ── Form card — warm-white, the "get it done" side ─────────────────────── */
.mwp-contact-formwrap {
	position: relative;
	background: var(--color-warm-white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow:
		0 2px 4px rgba(46, 42, 38, .06),
		0 18px 40px -10px rgba(46, 42, 38, .22),
		0 48px 80px -32px rgba(46, 42, 38, .28);
}

.mwp-contact-form { display: flex; flex-direction: column; gap: var(--space-md); }
.mwp-contact-form[hidden] { display: none; }

.mwp-field { display: flex; flex-direction: column; }
.mwp-field label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--color-charcoal);
	margin: 0 0 .45rem;
}
.mwp-contact-form input[type=text],
.mwp-contact-form input[type=email],
.mwp-contact-form select,
.mwp-contact-form textarea {
	width: 100%;
	padding: .85rem .95rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-charcoal);
	background: #fff;
	border: 1px solid var(--color-sand);
	border-radius: var(--radius-sm);
	color-scheme: light;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mwp-contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.mwp-contact-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B635B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .95rem center;
	padding-right: 2.4rem;
}
.mwp-contact-form input:focus,
.mwp-contact-form select:focus,
.mwp-contact-form textarea:focus {
	outline: none;
	border-color: var(--color-terracotta);
	box-shadow: 0 0 0 3px rgba(196, 112, 75, .15);
}
.mwp-contact-form input.is-invalid,
.mwp-contact-form textarea.is-invalid {
	border-color: #b32d2e;
	box-shadow: 0 0 0 3px rgba(179, 45, 46, .12);
}

/* Honeypot — visually gone, still in the DOM for bots to trip over. */
.mwp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mwp-contact-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm) var(--space-md);
	margin-top: var(--space-xs);
}
.mwp-contact-form__submit { flex-shrink: 0; }
.mwp-contact-form__submit[disabled] { opacity: .6; cursor: not-allowed; }
.mwp-contact-form__submit.is-sending .btn__arrow {
	animation: mwpContactSpin .7s linear infinite;
}
@keyframes mwpContactSpin { to { transform: rotate(360deg); } }

.mwp-contact-form__status {
	margin: 0;
	font-size: .9rem;
	line-height: 1.4;
	color: var(--color-warm-gray);
}
.mwp-contact-form__status.is-error { color: #b32d2e; }

/* ── Success state ──────────────────────────────────────────────────────── */
.mwp-contact-thanks {
	text-align: center;
	padding: var(--space-md) var(--space-xs);
}
.mwp-contact-thanks__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-sm);
	border-radius: 50%;
	background: var(--color-sage);
	color: #fff;
}
.mwp-contact-thanks__mark svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 2.5; }
.mwp-contact-thanks .section-label { display: block; margin-bottom: var(--space-xs); }
.mwp-contact-thanks p {
	max-width: 40ch;
	margin: 0 auto;
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--color-warm-gray);
}

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.mwp-contact-hero {
		padding-top: calc(var(--space-xl) + 72px);
		padding-bottom: calc(var(--space-xl) + 80px);
	}
	.mwp-contact-wrap { margin-top: -80px; padding-bottom: var(--space-xl); }
	.mwp-contact-info,
	.mwp-contact-formwrap { padding: var(--space-md); border-radius: var(--radius-md); }
	.mwp-contact-form__submit { width: 100%; justify-content: center; }
}
