/* ==========================================================================
   Contact page
   Loaded only on the contact template.

   After tourschanteclerc.com/contactez-nous: a pale ground, one very large
   display title across the top, and everything below it divided by dotted
   rules - horizontally under the title, vertically between the two columns.
   The dotted rule is the page's whole ornament, which is why the rest is
   left plain.
   ========================================================================== */

/* The pale ground is the page, not a panel on it. Safe to set on body here
   because this stylesheet loads on this template alone. */
body { --page-bg: var(--c-panel); background: var(--page-bg); }

.contact { padding-block: clamp(var(--sp-8), 6vw, 4.5rem) var(--sp-16); }

/* --- The title ------------------------------------------------------------- */

.contact__head {
	text-align: center;
	padding-block-end: clamp(var(--sp-12), 7vw, 5rem);
}

.contact__title {
	margin: 0 auto;
	max-width: 18ch;
	font-family: var(--font-display);
	/* Deliberately enormous: on a page with four fields and a phone number,
	   the title is the design. */
	font-size: clamp(2.75rem, 1.2rem + 6.5vw, 6.5rem);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--c-brand);
}

.contact__lead {
	max-width: 56ch;
	margin: var(--sp-6) auto 0;
	color: var(--c-ink-soft);
	font-size: clamp(var(--fs-base), 0.95rem + 0.3vw, var(--fs-lg));
	line-height: 1.65;
}

.contact__lead p:last-child { margin-block-end: 0; }

/* --- The two columns ------------------------------------------------------- */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(var(--sp-8), 5vw, 5rem);
	align-items: start;
	padding-block-start: clamp(var(--sp-8), 5vw, 4rem);
	border-block-start: 1px dotted rgb(8 50 88 / 45%);
}

/* The rule between the columns runs the height of the taller one, which is
   what a border on the column itself cannot do. */
.contact__details {
	padding-inline-end: clamp(var(--sp-6), 4vw, 3.5rem);
	border-inline-end: 1px dotted rgb(8 50 88 / 45%);
}

@media (max-width: 900px) {
	.contact__grid { grid-template-columns: minmax(0, 1fr); }

	.contact__details {
		padding-inline-end: 0;
		padding-block-end: var(--sp-8);
		border-inline-end: 0;
		border-block-end: 1px dotted rgb(8 50 88 / 45%);
	}
}

/* --- Hours and direct lines ----------------------------------------------- */

.contact__block + .contact__block {
	margin-block-start: clamp(var(--sp-6), 3vw, var(--sp-12));
	padding-block-start: clamp(var(--sp-6), 3vw, var(--sp-12));
	border-block-start: 1px dotted rgb(8 50 88 / 45%);
}

.contact__block-title {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 900;
	color: var(--c-brand);
}

.contact__hours { margin: 0; }

.contact__hours-row {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-block: var(--sp-2);
}

.contact__hours dt {
	margin: 0;
	color: var(--c-ink);
}

.contact__hours dd {
	margin: 0;
	color: var(--c-ink-soft);
	font-variant-numeric: tabular-nums;
}

.contact__hours-full { color: var(--c-ink); }

.contact__block--direct {
	display: grid;
	gap: var(--sp-4);
}

.contact__direct {
	display: block;
	color: var(--c-brand);
	text-decoration: none;
}

.contact__direct-label {
	display: block;
	margin-block-end: 2px;
	color: var(--c-ink-soft);
	font-size: var(--fs-sm);
}

.contact__direct-value {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	text-align: start;
	border-block-end: 2px solid transparent;
	transition: border-color 0.18s ease;
}

.contact__direct:hover .contact__direct-value {
	border-block-end-color: var(--c-logo-teal);
}

.contact__note {
	margin: var(--sp-6) 0 0;
	color: var(--c-ink-soft);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

/* --- The form -------------------------------------------------------------
   Outlined boxes on the pale ground, as in the reference: no fill, a navy
   hairline, and the label above rather than inside so nothing moves when a
   field is filled.
   ------------------------------------------------------------------------- */

.contact__panel-title {
	margin: 0 0 var(--sp-6);
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 900;
	color: var(--c-brand);
}

.contact__result {
	margin: 0 0 var(--sp-6);
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius-md);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

.contact__result--ok {
	background: rgb(0 169 158 / 12%);
	border: 1px solid var(--c-logo-aqua);
	color: var(--c-brand);
}

.contact__result--bad {
	background: rgb(249 116 0 / 10%);
	border: 1px solid var(--c-logo-orange);
	color: var(--c-brand);
}

.contact__result ul {
	margin: 0;
	padding-inline-start: 1.1em;
}

.contact__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-5) var(--sp-6);
}

.contact__field {
	grid-column: 1 / -1;
	margin: 0;
}

.contact__field--half { grid-column: auto; }

@media (max-width: 560px) {
	.contact__form { grid-template-columns: minmax(0, 1fr); }
	.contact__field--half { grid-column: 1 / -1; }
}

.contact__field label {
	display: block;
	margin-block-end: var(--sp-2);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--c-brand);
}

/* The asterisk is the only red on the page, so it reads as "required" rather
   than as decoration. */
.contact__req { color: #c0392b; }

.contact__field input,
.contact__field textarea {
	width: 100%;
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid rgb(8 50 88 / 55%);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--c-ink);
	font: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact__field textarea {
	resize: vertical;
	min-height: 9rem;
}

.contact__field input:hover,
.contact__field textarea:hover { border-color: var(--c-brand); }

.contact__field input:focus,
.contact__field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px rgb(0 170 203 / 30%);
}

/* Off-screen rather than display:none - a hidden input is skipped by the
   scripts this is meant to catch. */
.contact__honey {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.contact__consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	margin: var(--sp-2) 0 0;
	padding-block-start: var(--sp-5);
	border-block-start: 1px dotted rgb(8 50 88 / 45%);
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--c-ink-soft);
}

.contact__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-block-start: 2px;
	accent-color: var(--c-brand);
}

.contact__consent a {
	color: var(--c-brand);
	font-weight: 700;
	text-underline-offset: 3px;
}

.contact__submit {
	grid-column: 1 / -1;
	margin: var(--sp-2) 0 0;
}

.contact__submit button {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-8);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--c-brand);
	color: #fff;
	font-family: inherit;
	font-size: var(--fs-base);
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease, gap 0.18s ease;
}

.contact__submit button:hover {
	background: var(--c-logo-teal);
	gap: var(--sp-5);
}

.contact__submit-arrow { font-size: 0.9em; }
