/* ==========================================================================
   Contact Page - 2026-07-07
   Wide contact panel with subtle envelope mark and brand-colour panels.
   ========================================================================== */
.cm-contact-page {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
}

.cm-contact-panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: stretch;
	min-height: clamp(520px, 48vw, 660px);
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
	padding: clamp(2rem, 5vw, 4.8rem);
	background: linear-gradient(135deg, rgba(186, 212, 207, 0.86), var(--cm-soft-white));
	border: 1px solid rgba(7, 50, 54, 0.08);
	border-radius: 8px;
	box-shadow: var(--cm-shadow);
	overflow: hidden;
	transition: box-shadow 180ms ease;
}

.cm-contact-panel:hover {
	box-shadow: var(--cm-strong-shadow);
}

.cm-contact-panel::before {
	content: "";
	position: absolute;
	right: clamp(-10rem, -10vw, -5rem);
	top: clamp(-9rem, -9vw, -5rem);
	width: clamp(280px, 48vw, 680px);
	aspect-ratio: 1;
	border-radius: 44% 56% 58% 42%;
	background: rgba(251, 250, 247, 0.38);
	pointer-events: none;
}

.cm-contact-panel::after {
	content: none;
}

.cm-contact-panel > * {
	position: relative;
	z-index: 1;
}

.cm-contact-envelope-bg {
	position: absolute;
	right: clamp(-1rem, 5vw, 4rem);
	bottom: clamp(-3rem, -3vw, -1rem);
	z-index: 0;
	color: var(--cm-dark-teal);
	font-family: "Material Symbols Rounded";
	font-size: clamp(16rem, 38vw, 32rem);
	font-weight: 200;
	line-height: 1;
	opacity: 0.045;
	font-feature-settings: "liga";
	font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 48;
	pointer-events: none;
	user-select: none;
}

.cm-contact-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 760px;
}

.cm-contact-kicker {
	margin: 0 0 0.75rem;
	color: var(--cm-teal);
	font-family: var(--wp--preset--font-family--manrope, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cm-contact-copy h2 {
	max-width: 12ch;
	margin: 0 0 1.2rem;
	font-size: clamp(2.45rem, 5.2vw, 5.4rem);
	line-height: 0.98;
}

.cm-contact-copy p {
	max-width: 62ch;
	margin: 0 0 1.1rem;
	font-size: clamp(1.08rem, 1.6vw, 1.28rem);
	line-height: 1.66;
}

.cm-contact-card {
	align-self: center;
	display: grid;
	align-content: center;
	min-height: 340px;
	padding: clamp(1.5rem, 3.5vw, 2.8rem);
	background: rgba(251, 250, 247, 0.78);
	border: 1px solid rgba(7, 50, 54, 0.1);
	border-radius: 8px;
	box-shadow: 0 14px 30px rgba(7, 50, 54, 0.1);
}

.cm-contact-card h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.8rem, 3vw, 3rem);
	line-height: 1;
}

.cm-contact-card p {
	margin: 0 0 1.25rem;
	color: var(--cm-muted);
	line-height: 1.5;
}

.cm-contact-email {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	padding: 0.95rem 1.2rem;
	border-radius: 16px;
	background: var(--cm-dark-teal);
	color: var(--cm-soft-white);
	font-family: var(--wp--preset--font-family--manrope, system-ui, sans-serif);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 24px rgba(7, 50, 54, 0.16);
	transition: background-color 180ms ease, box-shadow 180ms ease;
}

.cm-contact-email:hover,
.cm-contact-email:focus-visible {
	background: var(--cm-teal);
	color: var(--cm-soft-white);
	box-shadow: var(--cm-strong-shadow);
}

.cm-contact-support {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.cm-contact-support > .wp-block-group {
	position: relative;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: var(--cm-off-white);
	border: 1px solid rgba(7, 50, 54, 0.08);
	border-radius: 8px;
	box-shadow: var(--cm-shadow);
	overflow: hidden;
}

.cm-contact-support > .wp-block-group:nth-child(2) {
	background: rgba(206, 179, 171, 0.58);
}

.cm-contact-support > .wp-block-group:nth-child(3) {
	background: rgba(196, 194, 193, 0.6);
}

.cm-contact-support h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.4rem, 2.2vw, 2.1rem);
	line-height: 1.05;
}

.cm-contact-support p {
	margin: 0;
	color: var(--cm-muted);
	line-height: 1.5;
}

@media (max-width: 960px) {
	.cm-contact-panel,
	.cm-contact-support {
		grid-template-columns: 1fr;
	}

	.cm-contact-panel {
		min-height: 0;
	}
}

@media (max-width: 640px) {
	.cm-contact-panel,
	.cm-contact-card,
	.cm-contact-support > .wp-block-group {
		padding: 1.35rem;
	}

	.cm-contact-email {
		width: 100%;
		box-sizing: border-box;
	}
}

