/* =========================================================
   Contact us – page-specific layout (uses front.css tokens)
   ========================================================= */

.tf-page--contact {
	overflow-x: clip;
}

/* Hero – same brand atmosphere as /articles/, About, Courses */
.tf-page-hero--contact {
	position: relative;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	min-height: min(48vh, 22rem);
	padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.25rem);
}

.tf-page-hero--contact .tf-page-hero__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 85% 65% at 12% 15%, rgba(6, 0, 0, 0.26), transparent 58%),
		radial-gradient(ellipse 75% 70% at 100% 0%, rgba(27, 58, 42, 0.35), transparent 70%),
		linear-gradient(
			145deg,
			#8f1528 0%,
			#820016 36%,
			#b62c2c 62%,
			#68281f 80%,
			#472315 92%,
			#235430 100%
		);
}

.tf-page-hero--contact .tf-page-hero__inner {
	position: relative;
	z-index: 1;
	width: min(100% - 1.75rem, var(--wrap));
	margin-inline: auto;
	text-align: left;
}

.tf-page-hero--contact .tf-page-hero__inner > * {
	max-width: 40rem;
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.tf-page-hero--contact h1 {
	color: #fff;
	font-size: clamp(2.15rem, 4.8vw, 3.1rem);
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
}

.tf-page-hero--contact .tf-chip {
	margin-bottom: 0.85rem;
}

.tf-page-hero--contact .tf-lede {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
	line-height: 1.55;
}

.tf-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}

.tf-contact-lede {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.tf-page--contact .tf-section h2 {
	font-size: clamp(1.55rem, 2.8vw, 2.05rem);
	margin-bottom: 0.75rem;
}

.tf-contact-block {
	margin: 0 0 1.5rem;
	padding: 0 0 1.35rem;
	border-bottom: 1px solid var(--line);
}

.tf-contact-block:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.tf-contact-block__title {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}

.tf-contact-block__body {
	margin: 0;
	font-style: normal;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--muted);
}

.tf-contact-block__body strong {
	color: var(--ink);
	font-weight: 700;
}

.tf-contact-block__note {
	margin: 0.55rem 0 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.tf-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.tf-contact-list a {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.tf-contact-list a:hover {
	color: var(--brand);
}

.tf-contact-list__meta {
	margin-left: 0.65rem;
	font-size: 0.88rem;
}

.tf-contact-list__meta a {
	font-weight: 600;
	color: var(--brand);
}

.tf-contact-about {
	margin: 1.25rem 0 0;
}

.tf-contact-form {
	padding: 1.5rem 1.35rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 1rem;
}

.tf-contact-form .tf-cf7 {
	margin-top: 0.35rem;
}

.tf-contact-form .tf-cf7__field {
	margin-bottom: 0.95rem;
}

.tf-contact-form .tf-cf7__field label {
	margin-bottom: 0.45rem;
}

.tf-contact-map-section {
	scroll-margin-top: 6.5rem;
}

.tf-page--contact .tf-hero__cta {
	justify-content: flex-start;
}

.tf-contact-map-head {
	margin-bottom: 1.25rem;
}

.tf-contact-map-head p {
	margin: 0;
	color: var(--muted);
}

.tf-contact-map {
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid var(--line);
	background: #e5e7eb;
	aspect-ratio: 1200 / 420;
}

.tf-contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 900px) {
	.tf-contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tf-page--contact .tf-reveal {
		opacity: 0;
		transform: translateY(1rem);
		transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
	}

	.tf-page--contact .tf-reveal.is-in {
		opacity: 1;
		transform: none;
	}
}
