/* ==========================================================================
   Contact (page-contact.php). Black & gold marble hero, form card over the hero's edge, details
   and map, dark "visite virtuelle" band.
   ========================================================================== */

.ct {
	--ct-ink: #141414;
	--ct-porcelain: #f4f2ee;
	--ct-line: #e3dfd6;
	--ct-text: #4f4c47;
	--ct-muted: #8a867e;
	--ct-gold: #c99a3f;
	--ct-gold-soft: #e3c27a;
	--ct-error: #b3261e;
	--ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ct-head: "Red Hat Display", var(--o-heading, sans-serif);
	font-family: var(--o-body, Arial, sans-serif);
	color: var(--ct-text);
	background: var(--ct-porcelain);
}
.ct-wrap {
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
}
.ct-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-family: var(--ct-head);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ct-gold-soft);
}
.ct-kicker span {
	width: 36px;
	height: 1px;
	background: currentColor;
}
.ct-h2 {
	margin: 0 0 24px;
	font-family: var(--ct-head);
	font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--ct-ink);
}
.ct-h3 {
	margin: 0;
	font-family: var(--ct-head);
	font-size: 20px;
	font-weight: 700;
	color: var(--ct-ink);
}

/* ------------------------------------------------------------ 1. Hero */
.ct-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(56px, 10vh, 110px)) 0 clamp(150px, 20vh, 210px);
	overflow: hidden;
	color: #fff;
	background: #0b0b0b;
	isolation: isolate;
}
.ct-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--ct-photo) 70% 55% / cover no-repeat;
	transform: scale(1.08);
	animation: ct-settle 2.6s var(--ct-ease) forwards;
}
.ct-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.7) 45%, rgba(8, 8, 8, 0.25) 100%),
		linear-gradient(0deg, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0) 40%);
}
/* Two gold veins drawn across the hero, like the marble behind. */
.ct-hero__vein {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.ct-hero__vein path {
	fill: none;
	stroke: var(--ct-gold-soft);
	stroke-width: 1.2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	opacity: 0.55;
	vector-effect: non-scaling-stroke;
	animation: ct-draw 3.2s var(--ct-ease) 0.4s forwards;
}
.ct-hero__vein path + path {
	opacity: 0.3;
	animation-delay: 0.9s;
}
.ct-hero__title {
	max-width: 14ch;
	margin: 0;
	font-family: var(--ct-head);
	font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.4rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.03em;
	animation: ct-rise 1.1s var(--ct-ease) 0.15s backwards;
}
.ct-hero__title em {
	display: block;
	font-style: normal;
	color: var(--ct-gold-soft);
}
.ct-hero__lead {
	max-width: 34ch;
	margin: 22px 0 0;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
	animation: ct-rise 1.1s var(--ct-ease) 0.3s backwards;
}
.ct-quick {
	display: grid;
	gap: 10px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
.ct-quick li {
	animation: ct-rise 0.9s var(--ct-ease) backwards;
}
.ct-quick li:nth-child(1) {
	animation-delay: 0.45s;
}
.ct-quick li:nth-child(2) {
	animation-delay: 0.55s;
}
.ct-quick li:nth-child(3) {
	animation-delay: 0.65s;
}
.ct-quick a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(12, 12, 12, 0.42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	text-decoration: none;
	transition: border-color 0.35s, background-color 0.35s, transform 0.35s var(--ct-ease);
}
.ct-quick svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--ct-gold-soft);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ct-quick span {
	display: grid;
	min-width: 0;
	font-size: 15px;
	overflow-wrap: anywhere;
}
.ct-quick small {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------ 2. Form + details */
.ct-main {
	position: relative;
	z-index: 1;
	padding-bottom: clamp(64px, 9vw, 110px);
}
.ct-main__grid {
	display: grid;
	gap: 28px;
	margin-top: -80px;
}
.ct-form-card {
	padding: clamp(24px, 4vw, 44px);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.ct-form {
	display: grid;
	gap: 18px;
}
.ct-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ct-field {
	display: grid;
	gap: 8px;
}
.ct-field label {
	font-family: var(--ct-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--ct-ink);
}
.ct-field label span {
	color: var(--ct-gold);
}
.ct-field input,
.ct-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--ct-line);
	border-radius: 12px;
	background: #faf9f6;
	color: var(--ct-ink);
	font: 16px/1.4 var(--o-body, Arial, sans-serif);
	transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.ct-field textarea {
	min-height: 150px;
	resize: vertical;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
	color: #a7a39b;
}
.ct-field input:hover,
.ct-field textarea:hover {
	border-color: #cbc5b9;
}
.ct-field input:focus,
.ct-field textarea:focus {
	border-color: var(--ct-gold);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(201, 154, 63, 0.16);
	outline: none;
}
.ct-field [aria-invalid="true"] {
	border-color: var(--ct-error);
	box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1);
}
.ct-field__error {
	min-height: 0;
	margin: 0;
	font-size: 13px;
	color: var(--ct-error);
}
.ct-field__error:empty {
	display: none;
}
.ct-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 6px;
}
.ct-submit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ct-ink);
	color: #fff;
	font-family: var(--ct-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.35s var(--ct-ease), transform 0.35s var(--ct-ease);
}
.ct-submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	transition: transform 0.45s var(--ct-ease);
}
.ct-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}
.ct-status {
	margin: 0;
	font-size: 15px;
	color: #2f7d4a;
}
.ct-status.is-error {
	color: var(--ct-error);
}

/* Details */
.ct-info {
	display: grid;
	gap: 18px;
	align-content: start;
}
.ct-details {
	display: grid;
	margin: 0;
	padding: 8px 22px;
	border: 1px solid var(--ct-line);
	border-radius: 20px;
	background: #fff;
	list-style: none;
}
.ct-details li {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ct-line);
}
.ct-details li:last-child {
	border-bottom: 0;
}
.ct-details__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ct-ink);
}
.ct-details__icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--ct-gold-soft);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ct-details li > span:last-child {
	display: grid;
	align-content: center;
	gap: 2px;
	min-width: 0;
	font-size: 16px;
	color: var(--ct-ink);
}
.ct-details small {
	font-size: 12px;
	color: var(--ct-muted);
}
.ct-details a {
	color: var(--ct-ink);
	text-decoration: underline;
	text-decoration-color: rgba(201, 154, 63, 0.5);
	text-underline-offset: 4px;
	transition: color 0.3s, text-decoration-color 0.3s;
	overflow-wrap: anywhere;
}
.ct-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-radius: 20px;
	background: var(--ct-ink);
	color: #fff;
}
.ct-social p {
	margin: 0;
	font-family: var(--ct-head);
	font-weight: 600;
}
.ct-social .socials a {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}
.ct-map {
	margin: 0;
	border: 1px solid var(--ct-line);
	border-radius: 20px;
	background: #fff;
	overflow: hidden;
}
.ct-map__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 18px 22px;
}
.ct-map__head a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--ct-ink);
	font-family: var(--ct-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.ct-map__head svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--ct-gold);
	stroke-width: 1.8;
}
.ct-map img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 1s var(--ct-ease);
}

/* ------------------------------------------------------------ 3. Virtual visit */
.ct-visit {
	padding: clamp(56px, 8vw, 96px) 0;
	color: #fff;
	background:
		radial-gradient(60% 120% at 85% 50%, rgba(227, 194, 122, 0.14), rgba(0, 0, 0, 0) 60%),
		#0d0d0c;
}
.ct-visit__inner {
	display: grid;
	gap: 26px;
	align-items: center;
}
.ct-visit__title {
	max-width: 22ch;
	margin: 0;
	font-family: var(--ct-head);
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
}
.ct-visit__btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	justify-self: start;
	min-height: 56px;
	padding: 0 24px 0 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-family: var(--ct-head);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.35s var(--ct-ease), color 0.35s, border-color 0.35s;
}
.ct-visit__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ct-gold);
}
.ct-visit__ring::after {
	content: "";
	position: absolute;
	inset: -6px;
	border: 1px solid var(--ct-gold-soft);
	border-radius: 50%;
	opacity: 0;
	animation: ct-ping 2.6s ease-out infinite;
}
.ct-visit__ring svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
}

.ct a:focus-visible,
.ct button:focus-visible {
	outline: 2px solid var(--ct-gold);
	outline-offset: 3px;
}

/* ------------------------------------------------------------ Reveal & motion */
.ct-js [data-ct-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--ct-ease), transform 0.8s var(--ct-ease);
}
.ct-js [data-ct-reveal].is-in {
	opacity: 1;
	transform: none;
}
@keyframes ct-settle {
	to {
		transform: none;
	}
}
@keyframes ct-draw {
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes ct-rise {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}
@keyframes ct-ping {
	0% {
		transform: scale(0.85);
		opacity: 0.7;
	}
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}

@media (hover: hover) {
	.ct-quick a:hover {
		border-color: rgba(227, 194, 122, 0.6);
		background: rgba(12, 12, 12, 0.62);
		transform: translateY(-2px);
	}
	.ct-submit:hover {
		background: var(--ct-gold);
	}
	.ct-submit:hover svg {
		transform: translate(3px, -3px);
	}
	.ct-details a:hover {
		color: #000;
		text-decoration-color: var(--ct-gold);
	}
	.ct-map:hover img {
		transform: scale(1.03);
	}
	.ct-visit__btn:hover {
		border-color: #fff;
		background: #fff;
		color: var(--ct-ink);
	}
}

/* ------------------------------------------------------------ Larger screens */
@media (min-width: 700px) {
	.ct-quick {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ct-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	.ct-field--full,
	.ct-form__foot,
	.ct-hp {
		grid-column: 1 / -1;
	}
	.ct-field:first-of-type {
		grid-column: 1 / -1;
	}
}
@media (min-width: 1000px) {
	.ct-main__grid {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		align-items: start;
		gap: 32px;
		margin-top: -110px;
	}
	.ct-visit__inner {
		grid-template-columns: 1fr auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-hero__media,
	.ct-hero__title,
	.ct-hero__lead,
	.ct-quick li,
	.ct-visit__ring::after {
		animation: none;
		transform: none;
	}
	.ct-hero__vein path {
		animation: none;
		stroke-dashoffset: 0;
	}
	.ct-js [data-ct-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
