/*
 * Contact page only. Enqueued in functions.php when is_page( 'contact' ).
 * The form fields themselves are styled in main.css.
 *
 * Layout: a centred intro carrying the title, the lead, and the two direct
 * contact links, then a single card holding the map and the form. The card is
 * one surface rather than two, so the map and the form always share a height
 * instead of drifting apart.
 */

/* The page wash (.page--wash) comes from main.css. */

/* The intro's own padding is enough; the card just needs room underneath. */
.contact {
	padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Direct contact links, sitting under the lead. */

.quick-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.quick-contact__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid rgb(11 58 92 / 15%);
	border-radius: 999px;
	background: rgb(255 255 255 / 70%);
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-contact__link:hover {
	background: var(--bg);
	border-color: var(--accent);
	color: var(--accent);
}

/*
 * The icons are stroked, not filled, and inherit the link colour so they pick
 * up the hover state with the text.
 */
.quick-contact__icon {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The card */

.contact-card {
	display: grid;
	grid-template-columns: 1fr;
	border-radius: var(--radius);
	background: var(--bg);
	overflow: hidden;
	box-shadow: 0 18px 50px rgb(11 58 92 / 12%);
}

@media (min-width: 900px) {
	.contact-card {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}
}

/*
 * Map half. Flush to the card edge, no padding, and it stretches to whatever
 * height the form column ends up being.
 */
.contact-card__map {
	position: relative;
	min-height: 320px;
}

.contact-card__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Form half */

.contact-card__body {
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.contact-card__title {
	margin: 0 0 1.75rem;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* The card supplies the surface, so the form drops its own. */
.page--contact .form {
	padding: 0;
	border-radius: 0;
	background: none;
}
