/*
 * Contact (2026 design, Figma 1293:2): the Technology photo hero
 * (.ramen-hero + .ramen-tech-hero: five-gradient wash, two glows, dark rail)
 * holding the intro (eyebrow, headline, lead) on the left and the white
 * "Form card" on the right.
 * The form card's Gravity Forms styling lives in forms.css.
 */

/* ---------- Hero box ----------
 * Figma lays the photo, wash and glows over a 1440×1258 box that starts under
 * the 91px header, so each layer is pulled up by the header height. The
 * photo is not mirrored here (Technology's is).
 */

.wp-block-cover.ramen-contact {
	min-height: 0;
}

.wp-block-cover.ramen-contact .wp-block-cover__image-background,
.wp-block-cover.ramen-contact .wp-block-cover__background {
	top: calc(-1 * var(--ramen-header-height));
	left: 0;
	width: 100%;
	height: calc(100% + var(--ramen-header-height));
	transform: none;
}

.wp-block-cover.ramen-contact .wp-block-cover__image-background {
	object-position: 50% 50%;
}

.wp-block-cover.ramen-contact .wp-block-cover__background.has-background-dim {
	background-image:
		linear-gradient(180deg, rgba(4, 16, 84, 0) 87.553%, rgba(4, 16, 84, 0.4) 98.83%),
		linear-gradient(180deg, #041054 0%, rgba(4, 16, 84, 0) 17.436%),
		linear-gradient(-90deg, #041054 10.312%, rgba(4, 16, 84, 0) 29.463%),
		linear-gradient(142.73deg, rgba(4, 35, 56, 0) 71.171%, rgba(4, 35, 56, 0.7) 104.87%),
		linear-gradient(180deg, rgba(4, 16, 84, 0.3) 30%, rgba(59, 78, 162, 0.3) 100%);
}

/* Glow images (home.css) at this frame's ellipse positions. */
.wp-block-cover.ramen-contact::before {
	top: calc(-586px - var(--ramen-header-height));
}

.wp-block-cover.ramen-contact::after {
	top: calc(89px - var(--ramen-header-height));
}

/* ---------- Layout ---------- */

.ramen-contact__content {
	display: flex;
	align-items: flex-start;
	gap: 96px;
	padding: 120px 64px 160px;
}

.ramen-contact .wp-block-group > * {
	margin-block: 0 !important;
}

.ramen-contact__intro {
	flex: 1 1 0;
	min-width: 0;
}

.ramen-contact__head {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- Intro type ---------- */

.ramen-contact__eyebrow {
	font-family: var(--wp--preset--font-family--chivo-mono);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.1;
}

.ramen-contact .ramen-contact__title {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--giant);
	line-height: 1.2;
}

.ramen-contact__lead {
	max-width: 534px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
	line-height: 1.4;
}

/* ---------- Form card ---------- */

.ramen-contact__form {
	flex: none;
	width: 560px;
}

.ramen-contact__form-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ramen-contact .ramen-contact__form-title {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.ramen-contact__note {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.5;
}

.ramen-contact__note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ramen-form-placeholder {
	border: 1px dashed currentColor;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	font-family: var(--wp--preset--font-family--chivo-mono);
	text-transform: uppercase;
}

/* ---------- Responsive (Figma is desktop-only) ---------- */

@media (max-width: 1199px) {
	.ramen-contact__content {
		flex-direction: column;
		gap: 64px;
		padding: 96px 40px 120px;
	}

	.ramen-contact__intro {
		flex: none;
		width: 100%;
		max-width: 640px;
	}

	.ramen-contact__form {
		width: 100%;
		max-width: 560px;
	}
}

@media (max-width: 767px) {
	.wp-block-cover.ramen-contact .wp-block-cover__image-background,
	.wp-block-cover.ramen-contact .wp-block-cover__background {
		top: 0;
		height: 100%;
	}

	.ramen-contact__content {
		gap: 48px;
		padding: 56px 16px 64px;
	}

	.ramen-contact .ramen-contact__title {
		font-size: 44px;
		line-height: 1.1;
	}

	.ramen-contact__lead {
		font-size: var(--wp--preset--font-size--medium);
	}
}
