/**
 * Contact page (templates/page-contact.html) — styles scoped to
 * .wow-contact-page so nothing here can leak onto/collide with the rest of
 * the site. Loaded conditionally (see functions.php, is_page('contact')) —
 * never sitewide. Same "reuse the theme's existing design tokens rather
 * than redeclaring its own" approach as pro-page.css/about-page.css.
 */

.wow-contact-page {
	max-width: 1270px;
	margin: 0 auto;
	padding: 140px 32px 100px;
}

.wow-contact-page * {
	box-sizing: border-box;
}

@media (max-width: 700px) {
	.wow-contact-page {
		padding: 110px 20px 64px;
	}
}

/* ── Hero — photo card + Loïc's direct contact details, side by side ── */
.wow-contact-hero {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 64px;
	align-items: center;
	margin-bottom: 100px;
}

@media (max-width: 900px) {
	.wow-contact-hero {
		grid-template-columns: 1fr;
		gap: 40px;
		margin-bottom: 64px;
	}
}

.wow-contact-hero__card {
	position: relative;
	aspect-ratio: 16 / 11;
	border-radius: 24px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 14px;
	padding: 40px;
}

.wow-contact-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.wow-contact-hero__brand {
	position: relative;
	z-index: 1;
	color: #fff;
}

.wow-contact-hero__logo {
	display: block;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.5px;
}

.wow-contact-hero__tagline {
	display: block;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 4px;
}

.wow-contact-hero__ig {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--wp--preset--color--accent);
	color: #fff;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	padding: 14px 22px;
	border-radius: 999px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.wow-contact-hero__ig:hover,
.wow-contact-hero__ig:focus-visible {
	background-color: #9e2e2e;
	transform: translateY(-2px);
}

.wow-contact-hero__ig svg {
	transition: transform 0.2s ease;
}

.wow-contact-hero__ig:hover svg,
.wow-contact-hero__ig:focus-visible svg {
	transform: translate(2px, -2px);
}

.wow-contact-hero__info {
	max-width: 420px;
}

.wow-contact-hero__name {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin: 0 0 4px;
}

.wow-contact-hero__role {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 15px;
	font-weight: 300;
	color: var(--wp--preset--color--grey);
	margin: 0 0 20px;
}

.wow-contact-hero__details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 28px;
}

.wow-contact-hero__email {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.wow-contact-hero__email:hover,
.wow-contact-hero__email:focus-visible {
	text-decoration: underline;
}

.wow-contact-hero__phone {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin: 0;
}

.wow-contact-hero__text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--grey);
	margin: 0 0 18px;
}

.wow-contact-hero__text:last-child {
	margin-bottom: 0;
}

/* ── Contact form ── */
.wow-contact-form-section {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.wow-contact-form-eyebrow {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--wp--preset--color--accent);
	margin: 0 0 10px;
}

.wow-contact-form-title {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin: 0 0 36px;
}

.wow-contact-form {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Hidden from sighted visitors (not display:none — some spam bots skip
   invisible-via-display fields specifically, this is harder to detect) but
   also out of the tab order and screen-reader tree, see aria-hidden/
   tabindex on the field itself. */
.wow-contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wow-contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wow-contact-form__row label {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--grey);
}

.wow-contact-form__row input,
.wow-contact-form__row select,
.wow-contact-form__row textarea {
	width: 100%;
	background-color: #fafafa;
	border: 1px solid #e4e0da;
	border-radius: 8px;
	padding: 12px 14px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 14px;
	color: var(--wp--preset--color--text);
	transition: border-color 0.2s ease;
}

.wow-contact-form__row select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23585450' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.wow-contact-form__row textarea {
	resize: vertical;
}

.wow-contact-form__row input:hover,
.wow-contact-form__row select:hover,
.wow-contact-form__row textarea:hover,
.wow-contact-form__row input:focus-visible,
.wow-contact-form__row select:focus-visible,
.wow-contact-form__row textarea:focus-visible {
	border-color: #a8a39d;
	outline: none;
}

.wow-contact-form__submit {
	margin-top: 6px;
	background-color: var(--wp--preset--color--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 15px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wow-contact-form__submit:hover,
.wow-contact-form__submit:focus-visible {
	background-color: #9e2e2e;
}

.wow-contact-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Ajax result message — assets/js/contact-form.js drops a
   .wow-contact-form__notice (success/error variants below, same as the
   no-JS redirect banner) in here once the request finishes. Only takes up
   space once it actually has content, so there's no empty gap under the
   button before a message ever appears. */
.wow-contact-form__result:not(:empty) {
	margin-top: 16px;
}

.wow-contact-form__result .wow-contact-form__notice {
	margin: 0;
}

.wow-contact-form__notice {
	font-size: 14px;
	line-height: 1.6;
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 24px;
}

.wow-contact-form__notice--success {
	background-color: #eef6ee;
	color: #2e6b30;
}

.wow-contact-form__notice--error {
	background-color: #fbeaea;
	color: #9e2e2e;
}

.wow-contact-form__notice--error a {
	color: inherit;
	font-weight: 700;
}
