/* ==========================================================================
   Contact page
   --------------------------------------------------------------------------
   Loaded only on /contact/. Uses only the existing type sizes, weights,
   spacing, radii, shadows and colours from main.css. Shared components used
   as-is: .section, .status-badge, .btn, .accordion and the plugin's form
   (.contact-form, styled in main.css).

   1. Hero
   2. The form
   3. Book a call
   4. Before you send it
   5. Reduced motion
   ========================================================================== */


/* On the dark card the paper button turns orange (ink would vanish). */
.ct-call .btn--paper:hover,
.ct-call .btn--paper:focus-visible {
	background-color: var(--color-orange);
	color: var(--color-ink);
}


/* 1. Hero
   ========================================================================== */

/* Same top offset as the home hero's headline. */
.ct-hero {
	display: grid;
	gap: var(--space-xl);
	margin-top: calc(var(--space-xl) + var(--space-xxl));
}

.ct-hero__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: var(--space-m);
}

.ct-hero__title {
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: var(--size-display);
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.ct-hero__text {
	max-width: 560px;
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 300;
	letter-spacing: -0.5px;
	line-height: 1.2;
	opacity: 0.7;
}

@media (max-width: 1200px) {
	.ct-hero {
		margin-top: calc(var(--space-xl) + var(--space-l));
	}
}

@media (max-width: 810px) {
	.ct-hero {
		gap: var(--space-l);
	}

	.ct-hero__text {
		font-size: 15px;
	}
}

@media (max-width: 478px) {
	.ct-hero {
		margin-top: var(--space-xxl);
	}
}


/* 2. The form
   ========================================================================== */

.ct-main__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
	align-items: stretch;
	gap: var(--space-m);
	width: 100%;
	scroll-margin-top: var(--space-xxl);
	font-family: var(--font-sans);
}

.ct-main {
	scroll-margin-top: var(--space-xxl);
}

.ct-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: var(--space-l);
	padding: var(--space-l);
	border-radius: var(--radius-lg);
	background-color: var(--color-paper);
	box-shadow: var(--shadow-soft);
}

.ct-form__title {
	color: var(--color-ink);
	font-size: var(--size-title-md);
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.ct-form__notice {
	font-size: 15px;
}

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

@media (max-width: 810px) {
	.ct-form {
		row-gap: var(--space-m);
		padding: var(--space-m);
	}


}

@media (max-width: 478px) {
	.ct-form {
		padding: var(--space-m) var(--space-s);
	}

	.ct-form .contact-form__submit {
		width: 100%;
		height: 45px;
	}

	/* main.css fixes the labels at 300px here — wider than this card on the
	   narrowest phones. */
	.ct-form .contact-form__label {
		width: auto;
		max-width: 100%;
		white-space: normal;
	}
}


/* 3. Book a call
   ========================================================================== */

.ct-aside {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}

/* Fills the column beside the form; the button sits at the bottom. */
.ct-call {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	row-gap: var(--space-s);
	padding: var(--space-l);
	border-radius: var(--radius-lg);
	background-color: var(--color-night);
	background-image: url("../images/ui/dark-light-rays.webp");
	background-position: right top;
	background-blend-mode: soft-light;
	box-shadow: var(--shadow-deep);
}

.ct-call__title {
	color: var(--color-paper);
	font-size: var(--size-title-md);
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.ct-call__text {
	color: var(--color-paper);
	font-size: 15px;
	font-weight: 300;
	letter-spacing: -0.5px;
	line-height: 1.2;
	opacity: 0.6;
}

.ct-call__button {
	width: 100%;
	margin-top: auto;
	padding: 0 var(--space-m);
}

@media (max-width: 810px) {
	.ct-call {
		padding: var(--space-m);
	}

	.ct-call__text {
		font-size: 14px;
	}
}

@media (max-width: 478px) {
	.ct-call {
		padding: var(--space-m) var(--space-s);
	}

	.ct-call__button {
		height: 45px;
	}
}


/* 4. Before you send it
   ========================================================================== */

.ct-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: start;
	gap: var(--space-l);
	width: 100%;
	padding-top: var(--space-s);
	border-top: 1px solid var(--color-line);
	font-family: var(--font-sans);
}

.ct-faq__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-m);
	padding-top: var(--space-m);
}

.ct-faq__title {
	color: var(--color-ink);
	font-size: var(--size-title-lg);
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.ct-faq__more {
	padding: 0 var(--space-m);
}

.ct-faq__accordion {
	width: 100%;
	padding-top: var(--space-m);
}

@media (max-width: 1200px) {
	.ct-faq__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ct-faq__head {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
}

@media (max-width: 478px) {
	.ct-faq__more {
		width: 100%;
		height: 45px;
	}
}


/* 5. Reduced motion
   ========================================================================== */


