/* ==========================================================================
   Contact page — "Atelier Editorial"
   Scoped entirely under .contact-page so nothing leaks into the global theme.
   Tokens (--bg, --ink, --accent, --line-soft, --serif, --sans, …) are
   inherited from style.css :root. Hard rules: 0px radius, no shadows,
   1px hairline borders only, generous whitespace, gold eyebrow labels.
   ========================================================================== */

.contact-page {
	--cp-gap: clamp(72px, 9vw, 128px);
	--cp-rail: 1px solid var(--line-soft);
	color: var(--ink);
	background: var(--bg);
}

/* --------------------------------------------------------------------------
   1 · Header band
   -------------------------------------------------------------------------- */
.contact-page .contact-hero {
	padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 64px);
	border-bottom: var(--cp-rail);
}

.contact-page .contact-hero__inner {
	max-width: 60ch;
}

.contact-page .contact-hero .eyebrow {
	margin-bottom: 18px;
}

.contact-page .contact-hero__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.8rem, 6.2vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
	margin: 0 0 0.32em;
}

.contact-page .contact-hero__intro {
	font-family: var(--sans);
	color: var(--muted);
	font-size: clamp(1.05rem, 1.6vw, 1.28rem);
	line-height: 1.65;
	max-width: 52ch;
	margin: 0;
}

/* --------------------------------------------------------------------------
   2 · Asymmetric editorial split
   -------------------------------------------------------------------------- */
.contact-page .contact-split {
	padding: clamp(56px, 7vw, 104px) 0;
}

.contact-page .contact-split__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

/* --- Left rail · studio details --- */
.contact-page .contact-info {
	position: relative;
	padding-right: clamp(20px, 3vw, 48px);
}

/* Vertical hairline rail separating the two columns (desktop only) */
.contact-page .contact-info::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: -8px;
	width: 1px;
	background: var(--line-soft);
}

.contact-page .contact-info__portrait {
	margin: 0 0 32px;
	border: var(--cp-rail);
	background: var(--bg-soft);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.contact-page .contact-info__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(0.12) contrast(1.02);
}

.contact-page .contact-info .eyebrow {
	margin-bottom: 14px;
}

.contact-page .contact-info__lede {
	font-family: var(--serif);
	font-size: clamp(1.2rem, 1.9vw, 1.55rem);
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 0 0 36px;
	max-width: 30ch;
}

.contact-page .contact-info__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: var(--cp-rail);
}

.contact-page .contact-info__item {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 24px 0;
	border-bottom: var(--cp-rail);
}

.contact-page .contact-info__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--cp-rail);
	color: var(--accent);
}

.contact-page .contact-info__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.contact-page .contact-info__body {
	display: block;
	padding-top: 2px;
	min-width: 0;
	flex: 1 1 auto;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.contact-page .contact-info__label {
	display: block;
	font-family: var(--sans);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 6px;
}

.contact-page .contact-info__value {
	display: block;
	font-family: var(--serif);
	font-size: 1.12rem;
	line-height: 1.45;
	color: var(--ink);
}

.contact-page .contact-info__value a {
	color: var(--ink);
	border-bottom: 1px solid var(--line-soft);
	padding-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}

.contact-page .contact-info__value a:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* --- Right · inquiry form --- */
.contact-page .contact-form {
	min-width: 0;
}

.contact-page .contact-form__head {
	margin-bottom: 34px;
}

.contact-page .contact-form__head .eyebrow {
	margin-bottom: 12px;
}

.contact-page .contact-form__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Contact Form 7 — styled to match the design system
   -------------------------------------------------------------------------- */
.contact-page .wpcf7 {
	font-family: var(--sans);
}

.contact-page .wpcf7-form {
	margin: 0;
}

/* Layout grid the CF7 markup hooks into (.cf-grid wraps fields) */
.contact-page .wpcf7 .cf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 32px;
}

/* Each labelled field; .cf-field--full spans the row */
.contact-page .wpcf7 .cf-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.contact-page .wpcf7 .cf-field--full,
.contact-page .wpcf7 .cf-submit {
	grid-column: 1 / -1;
}

/* Label above, eyebrow style */
.contact-page .wpcf7 .cf-field > label,
.contact-page .wpcf7 .cf-label {
	font-family: var(--sans);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 12px;
	display: block;
}

/* Inputs — transparent, single bottom hairline, gold focus */
.contact-page .wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not([type="acceptance"]),
.contact-page .wpcf7 input[type="text"],
.contact-page .wpcf7 input[type="email"],
.contact-page .wpcf7 input[type="tel"],
.contact-page .wpcf7 input[type="url"],
.contact-page .wpcf7 input[type="number"],
.contact-page .wpcf7 input[type="date"],
.contact-page .wpcf7 select,
.contact-page .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--sans);
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line-soft);
	border-radius: 0;
	padding: 10px 2px;
	transition: border-color 0.25s ease, color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.contact-page .wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.7;
}

/* Custom dropdown chevron drawn with a hairline-stroked gradient */
.contact-page .wpcf7 select {
	background-image:
		linear-gradient(45deg, transparent 50%, var(--accent) 50%),
		linear-gradient(135deg, var(--accent) 50%, transparent 50%);
	background-position:
		calc(100% - 12px) 1.05em,
		calc(100% - 7px) 1.05em;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 28px;
	cursor: pointer;
}

.contact-page .wpcf7 ::placeholder {
	color: var(--muted);
	opacity: 0.55;
}

.contact-page .wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus,
.contact-page .wpcf7 input:focus,
.contact-page .wpcf7 select:focus,
.contact-page .wpcf7 textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
	color: var(--ink);
}

/* Field that CF7 flags as invalid */
.contact-page .wpcf7 .wpcf7-not-valid {
	border-bottom-color: var(--sold);
}

.contact-page .wpcf7 .wpcf7-not-valid-tip {
	font-size: 0.78rem;
	color: var(--sold);
	margin-top: 8px;
	letter-spacing: 0.01em;
}

/* Acceptance / checkbox rows */
.contact-page .wpcf7 .wpcf7-acceptance,
.contact-page .wpcf7 .cf-consent {
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.55;
}

.contact-page .wpcf7 .wpcf7-list-item {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contact-page .wpcf7 input[type="checkbox"],
.contact-page .wpcf7 input[type="radio"] {
	width: 16px;
	height: 16px;
	margin-top: 3px;
	accent-color: var(--accent);
	border-radius: 0;
}

/* Submit — ghost / gold button matching .btn */
.contact-page .wpcf7 .cf-submit {
	margin-top: 8px;
}

.contact-page .wpcf7 input.wpcf7-submit {
	display: inline-block;
	width: auto;
	font-family: var(--sans);
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 16px 40px;
	border: 1px solid var(--accent);
	border-radius: 0;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.contact-page .wpcf7 input.wpcf7-submit:hover,
.contact-page .wpcf7 input.wpcf7-submit:focus-visible {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

/* CF7 ajax spinner */
.contact-page .wpcf7 .wpcf7-spinner {
	margin: 0 0 0 16px;
	background-color: var(--accent);
}

/* CF7 response messages (success / error / validation summary) */
.contact-page .wpcf7 form .wpcf7-response-output {
	margin: 28px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--line-soft);
	border-radius: 0;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.contact-page .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--accent);
	color: var(--accent);
}

.contact-page .wpcf7 form.invalid .wpcf7-response-output,
.contact-page .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-page .wpcf7 form.failed .wpcf7-response-output,
.contact-page .wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--sold);
	color: var(--sold);
}

/* --------------------------------------------------------------------------
   3 · Full-width framed map
   -------------------------------------------------------------------------- */
.contact-page .contact-map {
	padding: 0 0 var(--cp-gap);
}

.contact-page .contact-map__head {
	margin-bottom: 28px;
}

.contact-page .contact-map__head .eyebrow {
	margin-bottom: 10px;
}

.contact-page .contact-map__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
}

.contact-page .contact-map__frame {
	position: relative;
	border: 1px solid var(--line-soft);
	background: var(--bg-soft);
	padding: 10px;
}

/* Inner gold hairline framing the map like a mounted plate */
.contact-page .contact-map__frame::before {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid var(--line-soft);
	pointer-events: none;
	z-index: 1;
}

.contact-page .contact-map__frame iframe {
	display: block;
	width: 100%;
	height: clamp(360px, 48vw, 520px);
	border: 0;
	filter: grayscale(0.35) contrast(1.04);
	transition: filter 0.4s ease;
}

.contact-page .contact-map__frame:hover iframe {
	filter: grayscale(0) contrast(1);
}

/* --------------------------------------------------------------------------
   Responsive — stack to a single column on tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.contact-page .contact-split__grid {
		grid-template-columns: 1fr;
		gap: clamp(48px, 8vw, 72px);
	}

	.contact-page .contact-info {
		padding-right: 0;
		padding-bottom: clamp(40px, 7vw, 56px);
		border-bottom: var(--cp-rail);
	}

	/* Swap the vertical rail for a horizontal one when stacked */
	.contact-page .contact-info::after {
		display: none;
	}
}

@media (max-width: 600px) {
	.contact-page .wpcf7 .cf-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.contact-page .contact-info__portrait {
		aspect-ratio: 3 / 2;
	}

	.contact-page .wpcf7 input.wpcf7-submit {
		width: 100%;
		text-align: center;
	}
}

/* --------------------------------------------------------------------------
   Entrance reveals — CSS-only, motion-safe
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.contact-page [data-reveal] {
		opacity: 0;
		transform: translateY(20px);
		animation: cp-reveal 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
	}

	.contact-page .contact-hero__inner {
		animation-delay: 0.05s;
	}

	.contact-page .contact-info {
		animation-delay: 0.12s;
	}

	.contact-page .contact-form {
		animation-delay: 0.22s;
	}

	.contact-page .contact-map__head {
		animation-delay: 0.06s;
	}

	.contact-page .contact-map__frame {
		animation-delay: 0.16s;
	}

	@keyframes cp-reveal {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

/* privacy note under the form + anchor offset for the sticky header */
.contact-page .cf-note{font-size:.8rem;color:var(--muted);line-height:1.55;margin:4px 0 18px}
.contact-page .cf-note a{color:var(--accent)}
#write{scroll-margin-top:110px}
