/*
 * Contact page (EN post 37 / its translation). Mirrors the Bricks build of /contact-2/.
 * Bricks breakpoints: 991px (tablet), 767px (mobile landscape), 478px (mobile).
 * Selectors use 2+ classes where core's flow-layout margin rules would otherwise win.
 */

/* ---------- Hero ---------- */

.wp-block-cover.snh-contact-hero {
	min-height: 0;
	padding: 200px 0 160px;
	overflow: hidden;
}

.snh-contact-hero .wp-block-cover__background.has-background-dim {
	opacity: 0.82; /* Bricks overlay #111827d1 */
}

.snh-contact-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 80px;
	z-index: 3;
	background: var(--snh-curve) no-repeat bottom / 100% 100%;
	pointer-events: none;
}

.snh-contact-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	z-index: 2;
}

.snh-contact-hero .wp-block-cover__inner-container h1.wp-block-heading {
	width: 800px;
	max-width: 100%;
	margin: 0 0 20px;
	font-family: inherit;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: normal;
	color: #fff;
	text-align: center;
}

.snh-contact-hero .wp-block-cover__inner-container p.snh-contact-hero__lead {
	width: 640px;
	max-width: 100%;
	font-size: 18px;
	line-height: 1.6;
	color: #ffffffcc;
	text-align: center;
}

/* ---------- Enquiry: intro column + form card ---------- */

.wp-block-group.snh-contact-form-section {
	box-sizing: border-box;
	padding: 120px 40px;
	background-color: #fff;
}

.snh-contact-form-section .snh-contact-form-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px 60px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Intro keeps its 40%; the card absorbs the 60px gap (as Bricks renders it). */
.snh-contact-form-row .snh-contact-intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-shrink: 0;
	width: 40%;
}

.snh-contact-form-row .snh-contact-form-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 60%;
	min-width: 0;
	padding: 40px;
	border-radius: 24px;
	background-color: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Small caps-style label above the section headings */
.snh-contact-form-section p.is-style-eyebrow,
.snh-contact-details p.is-style-eyebrow {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 2px;
	color: var(--snh-navy);
}

.snh-contact-form-section .snh-contact-intro > p.is-style-eyebrow {
	margin: 0 0 12px;
}

.snh-contact-form-section .snh-contact-intro > h2.wp-block-heading {
	margin: 0 0 16px;
	font-family: inherit;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--snh-ink);
}

.snh-contact-form-section .snh-contact-intro > p.snh-contact-intro__text {
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--snh-text);
}

/* Icon + text rows */
.snh-contact-form-section .snh-contact-point {
	display: flex;
	flex-direction: row;
	align-items: center;
	column-gap: 10px;
	width: 100%;
}

.snh-contact-form-section .snh-contact-intro > .snh-contact-point + .snh-contact-point {
	margin-top: 10px;
}

/* Icon centred on its text line (Bricks left the 18px icon at the top of a 26.5px line box,
   ~4px high — corrected 2026-10-05 at the client's request). */
.snh-contact-form-section .snh-contact-point > .snh-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	line-height: 0;
}

.snh-contact-form-section .snh-contact-point > .snh-icon img {
	display: block;
}

.snh-contact-form-section .snh-contact-point > p {
	font-size: 14px;
	font-weight: 500;
	color: var(--snh-navy);
}

.snh-contact-form-section .snh-contact-direct {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 12px;
	width: 100%;
	margin: 40px 0 0;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.snh-contact-form-section .snh-contact-direct > p.snh-contact-direct__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--snh-ink);
}

.snh-contact-form-section .snh-contact-direct .snh-contact-point > p {
	font-size: 15px;
}

/* ---------- Contact details cards ---------- */

.wp-block-group.snh-contact-details {
	box-sizing: border-box;
	padding: 120px 40px;
}

.snh-contact-details .snh-contact-details__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.snh-contact-details .snh-contact-details__inner > h2.wp-block-heading {
	margin: 10px 0 48px;
	font-family: inherit;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--snh-ink);
	text-align: center;
}

.snh-contact-details .snh-contact-cards {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 28px;
	width: 100%;
	margin: 0 0 48px;
}

/* Auto side margins (Bricks containers): a lone card on a wrapped row is centred. */
.snh-contact-cards .snh-contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: calc(33.333% - 18.7px);
	margin: 0 auto;
	padding: 32px 24px;
	border-radius: 20px;
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.snh-contact-cards .snh-contact-card > .snh-icon {
	width: 56px;
	margin: 0 0 16px;
}

.snh-contact-cards .snh-contact-card > p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--snh-text);
}

.snh-contact-cards .snh-contact-card > p.snh-contact-card__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--snh-ink);
}

.snh-contact-cards .snh-contact-card > p.snh-contact-card__note {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #9ca3af;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 991px) {
	.wp-block-cover.snh-contact-hero {
		padding: 140px 0 100px;
	}

	.snh-contact-hero .wp-block-cover__inner-container h1.wp-block-heading,
	.snh-contact-hero .wp-block-cover__inner-container p.snh-contact-hero__lead {
		width: 100%;
	}

	.wp-block-group.snh-contact-form-section {
		padding: 60px 24px;
	}

	.snh-contact-form-section .snh-contact-form-row {
		flex-direction: column;
	}

	.snh-contact-form-row .snh-contact-intro,
	.snh-contact-form-row .snh-contact-form-card {
		width: 100%;
	}

	.wp-block-group.snh-contact-details {
		padding: 60px 0;
	}

	.snh-contact-cards .snh-contact-card {
		width: calc(50% - 14px);
	}
}

@media (max-width: 767px) {
	/* Bricks containers wrap here: long text drops below its icon. */
	.snh-contact-form-section .snh-contact-point {
		flex-wrap: wrap;
	}

	.snh-contact-details .snh-contact-cards {
		flex-direction: column;
	}
}

@media (max-width: 478px) {
	.snh-contact-hero .wp-block-cover__inner-container {
		padding: 0 24px;
	}

	.snh-contact-hero .wp-block-cover__inner-container h1.wp-block-heading {
		font-size: 32px;
	}

	.snh-contact-form-section .snh-contact-intro > h2.wp-block-heading {
		font-size: 26px;
	}

	.snh-contact-form-row .snh-contact-form-card {
		padding: 28px 24px;
	}

	.wp-block-group.snh-contact-details {
		padding: 60px 24px;
	}

	.snh-contact-details .snh-contact-details__inner > h2.wp-block-heading {
		font-size: 28px;
	}

	.snh-contact-cards .snh-contact-card {
		width: 100%;
	}
}
