/*
 * safenmedical.com — the Contact section around the ii-forms contact form.
 * The form itself is ii-forms' base theme, coloured by email.json's tokens (navy focus,
 * Sāfen orange button). This file lays out the section only: the band under the hero,
 * the intro beside the form, the card. Class names are this site's (.sm-contact*).
 * Doubled classes: Kadence's `.single-content h2/p/ul/a` rules would otherwise win.
 */
.sm-contact {
	--sm-navy: #1b255e;
	--sm-orange: #f26a29;
	--sm-ink: #292929;
	--sm-body: #3f4652;
	--sm-muted: #5b6472;
	--sm-band: #f3f5f9;
	--sm-line: #dde2ea;
	box-sizing: border-box;
	margin: 0;
	padding: 80px var(--global-content-edge-padding, 1.5rem) 96px;
	background: var(--sm-band);
	color: var(--sm-ink);
}

.sm-contact .sm-contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
	max-width: 1160px;
	margin: 0 auto;
}

.sm-contact.sm-contact--no-form .sm-contact__inner {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
}

.sm-contact .sm-contact__intro {
	padding-top: 8px;
}

.sm-contact .sm-contact__heading {
	margin: 0 0 16px;
	color: var(--sm-navy);
	font-size: clamp(30px, 1.6vw + 18px, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.sm-contact .sm-contact__body,
.sm-contact .sm-contact__next {
	margin: 0 0 16px;
	color: var(--sm-body);
	font-size: 18px;
	line-height: 1.6;
}

.sm-contact .sm-contact__next {
	font-weight: 600;
	color: var(--sm-ink);
}

.sm-contact .sm-contact__direct {
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--sm-line);
}

.sm-contact .sm-contact__direct-label {
	margin: 0 0 14px;
	color: var(--sm-muted);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sm-contact .sm-contact__links {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-contact .sm-contact__links li {
	margin: 0;
}

.sm-contact .sm-contact__link {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	color: var(--sm-navy);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.sm-contact .sm-contact__link:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sm-contact .sm-contact__link:focus-visible {
	outline: 2px solid var(--sm-navy);
	outline-offset: 4px;
	border-radius: 4px;
}

.sm-contact .sm-contact__icon {
	flex: none;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(27, 37, 94, 0.16);
	fill: none;
	stroke: var(--sm-orange);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sm-contact .sm-contact__card {
	box-sizing: border-box;
	padding: 40px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -14px rgba(27, 37, 94, 0.2);
}

/* The intro and the card stack below 960px (tablet portrait and phones). */
@media (max-width: 960px) {
	.sm-contact .sm-contact__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 640px) {
	.sm-contact {
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.sm-contact .sm-contact__card {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.sm-contact .sm-contact__body {
		font-size: 17px;
	}
}
