/**
 * MEMOT theme styles — contact.
 *
 * Contact page: hero, contact details and map. The Contact Form 7 overrides
 * live in pages/forms.css, shared with the job application page.
 * Split out of theme.css so it loads only on the template(s) that need it —
 * see memot_enqueue_assets() in functions.php. Reuses the same
 * theme.json custom properties and memot-* class hooks as theme.css.
 */

/* -------------------------------------------------------------------------- *
 * Contact hero — a floating "message" stage in place of the plain banner
 * -------------------------------------------------------------------------- */

.memot-contact-hero {
	position: relative;
	overflow: hidden;
}

.memot-contact-hero__inner {
	position: relative;
	z-index: 1;
}

.memot-contact-hero__eyebrow {
	margin-bottom: var(--wp--preset--spacing--30);
}

.memot-contact-hero h1 {
	max-width: 14ch;
}

.memot-contact-hero__lead {
	max-width: 42rem;
}

.memot-contact-hero__actions {
	margin-top: var(--wp--preset--spacing--50);
}

.memot-contact-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	margin: var(--wp--preset--spacing--60) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

.memot-contact-hero__fact {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.memot-contact-hero__fact-dot {
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-bright, var(--wp--preset--color--brand));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--brand-bright, var(--wp--preset--color--brand)) 22%, transparent);
	animation: memot-contact-pulse 2.4s ease-in-out infinite;
}

@keyframes memot-contact-pulse {

	0%,
	100% {
		opacity: 0.65;
		transform: scale(0.85);
	}

	50% {
		opacity: 1;
		transform: scale(1.15);
	}
}

.memot-contact-hero__stage {
	position: relative;
	min-height: clamp(20rem, 34vw, 27rem);
	isolation: isolate;
}

.memot-contact-hero__orb {
	position: absolute;
	border-radius: 999px;
	z-index: 0;
	filter: blur(2px);
}

.memot-contact-hero__orb--one {
	width: clamp(11rem, 16vw, 15rem);
	height: clamp(11rem, 16vw, 15rem);
	left: 6%;
	top: 4%;
	background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--wp--preset--color--brand-bright) 55%, var(--wp--preset--color--paper)) 0%, color-mix(in srgb, var(--wp--preset--color--brand) 70%, var(--wp--preset--color--ink)) 100%);
	animation: memot-flow 22s ease-in-out infinite alternate;
}

.memot-contact-hero__orb--two {
	width: clamp(7rem, 11vw, 10rem);
	height: clamp(7rem, 11vw, 10rem);
	right: 10%;
	bottom: 8%;
	background: color-mix(in srgb, var(--wp--preset--color--harvest) 55%, var(--wp--preset--color--paper));
	animation: memot-flow 18s ease-in-out infinite alternate-reverse;
}

.memot-contact-hero__bubble {
	position: relative;
	z-index: 2;
	margin: 3.5rem auto 0;
	max-width: 21rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 76%, var(--wp--preset--color--paper));
	border-radius: var(--memot-radius-lg, 1.25rem);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--memot-shadow-lg);
	padding: var(--wp--preset--spacing--50);
}

.memot-contact-hero__bubble-head {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.memot-contact-hero__avatar {
	display: inline-flex;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.memot-contact-hero__bubble-name {
	margin: 0;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.memot-contact-hero__bubble-status {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.15rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
}

.memot-contact-hero__bubble-text {
	margin: 0;
	color: var(--wp--preset--color--ink);
}

.memot-contact-hero__chip {
	position: absolute;
	z-index: 3;
	border-radius: var(--memot-radius-lg, 1rem);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--memot-shadow-md);
	padding: 0.4rem;
}

.memot-contact-hero__chip .memot-icon-chip {
	width: 40px;
	height: 40px;
}

.memot-contact-hero__chip .memot-icon-chip svg {
	width: 20px;
	height: 20px;
}

.memot-contact-hero__chip--phone {
	left: 2%;
	bottom: 12%;
}

.memot-contact-hero__chip--pin {
	right: 8%;
	top: 10%;
}

.memot-contact-hero__chip--mail {
	right: 4%;
	bottom: 20%;
}

@media (max-width: 781px) {

	.memot-contact-hero h1 {
		max-width: 100%;
	}

	.memot-contact-hero__chip {
		display: none;
	}

	.memot-contact-hero__bubble {
		margin-top: 2rem;
	}
}

/* -------------------------------------------------------------------------- *
 * Contact form
 * -------------------------------------------------------------------------- */

.memot-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
	max-width: 640px;
}

.memot-contact-form .memot-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.memot-contact-form label {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.memot-contact-form input[type="text"],
.memot-contact-form input[type="email"],
.memot-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--memot-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.memot-contact-form textarea {
	height: 110px;
	resize: vertical;
}

.memot-contact-form input[type="text"]:focus-visible,
.memot-contact-form input[type="email"]:focus-visible,
.memot-contact-form textarea:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--brand-bright) 25%, transparent);
}

.memot-contact-form .memot-form-field-submit {
	margin-top: var(--wp--preset--spacing--20);
}

/* Honeypot field: hidden from real visitors regardless of any inline style
   already applied by the PHP that renders the form. */
.memot-contact-form .memot-form-field-honeypot,
.memot-form-field--honeypot {
	position: absolute;
	left: -9999px;
}

.memot-notice {
	padding: 1rem 1.25rem;
	margin-bottom: var(--wp--preset--spacing--50);
	border: 1px solid transparent;
	border-radius: var(--memot-radius);
	font-size: 0.9375rem;
}

.memot-notice-success {
	background: color-mix(in srgb, var(--wp--preset--color--leaf) 12%, var(--wp--preset--color--paper));
	border-color: color-mix(in srgb, var(--wp--preset--color--leaf) 30%, transparent);
	color: var(--wp--preset--color--brand);
}

.memot-notice-error {
	background: color-mix(in srgb, var(--wp--preset--color--line) 45%, var(--wp--preset--color--sand));
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}

/* -------------------------------------------------------------------------- *
 * Map (Google Maps embed, no API key — see docs/DESIGN.md §6)
 * -------------------------------------------------------------------------- */

.memot-map {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--sand);
	border-radius: var(--memot-radius-lg);
	box-shadow: var(--memot-shadow-lg);
	color: var(--wp--preset--color--slate);
	font-size: 0.875rem;
	overflow: hidden;
}

.memot-map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

/* Kept alongside the hero's own animations (rather than in theme.css's shared
   reduced-motion block) so the override shares a cascade with what it
   disables — see the matching comment in pages/home.css. */
@media (prefers-reduced-motion: reduce) {

	.memot-contact-hero__fact-dot,
	.memot-contact-hero__orb--one,
	.memot-contact-hero__orb--two {
		animation: none;
	}
}

