/* =========================================================================
   Contact page — page-contact.php (/contact/).
   Scoped to .ct — mobile-first, min-width media queries only.
   Tokens mirror home.css / sectors.css / sector-page.css (Brand Book 2026).
   The enquiry form itself is styled by css/product.css via the .pd-enquiry
   reuse; only the contact-specific additions (video panel) live here.
   ========================================================================= */

.ct {
	/* Billi Brand Book 2026 palette */
	--ct-navy: #181d46;      /* Billi Blue — signature colour */
	--ct-lightblue: #90cdeb; /* button hover state */
	--ct-grey: #eaeaea;      /* primary grey — borders, rules */
	--ct-band-grey: #f5f5f5;
	--ct-band-blue: #f1f5f5; /* Green Grey */
	--ct-text: #000;
	--ct-muted: #6b6b72;
	--ct-gutter: 20px;

	font-family: 'FFDINStd', sans-serif;
	color: var(--ct-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.ct { --ct-gutter: 40px; }
}

.ct *,
.ct *::before,
.ct *::after { box-sizing: border-box; }

.ct img { max-width: 100%; height: auto; display: block; }

.ct-container {
	width: 100%;
	max-width: 1436px; /* 1356px content + 2 x 40px */
	margin: 0 auto;
	padding-left: var(--ct-gutter);
	padding-right: var(--ct-gutter);
}

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

.ct-hero a:focus-visible,
.ct-hero button:focus-visible { outline-color: #fff; }

/* The video toggle sits on the navy video panel, where the navy ring above
   would vanish; white ring plus a navy halo stays visible over any frame.
   The radius re-assert beats .pd's 4px focus radius from product.css. */
.ct .ct-video__toggle:focus-visible {
	outline-color: #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(24, 29, 70, 0.9);
}

/* The theme sets a global `a { font-weight: 600 }` and fades links on hover.
   Card-sized links here wrap body copy, so both are neutralised; elements
   inside set their own weight and the cards have their own hover treatment. */
.ct a.ct-route { font-weight: 400; }

.ct a.ct-route:hover,
.ct .ct-btn:hover,
.ct .ct-detail__link:hover { opacity: 1; }

/* ---- Shared -------------------------------------------------------------- */

.ct-section-heading {
	color: var(--ct-navy);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 28px;
}

@media (min-width: 900px) {
	.ct-section-heading { font-size: 32px; margin-bottom: 40px; }
}

/* Brand buttons: 2px corners (sharper-corner direction, Aug 2026), 16px Regular. */
.ct .ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* On the navy hero band: Light Blue primary (light-on-navy for contrast,
   as on the homepage solution cards), white-outline ghost. */
.ct .ct-btn--light { background: var(--ct-lightblue); color: var(--ct-navy); }
.ct .ct-btn--light:hover { background: #fff; color: var(--ct-navy); }

.ct .ct-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ct .ct-btn--ghost:hover {
	background: #fff;
	color: var(--ct-navy);
	box-shadow: inset 0 0 0 1px #fff;
}

.ct .ct-btn .ct-icon { width: 20px; height: 20px; }

/* Icon chip shared by route and detail cards. */
.ct-route__icon,
.ct-detail__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ct-band-blue);
	color: var(--ct-navy);
}

.ct-route__icon svg,
.ct-detail__icon svg { width: 24px; height: 24px; }

/* ---- Hero ---------------------------------------------------------------- */

.ct-hero {
	background: var(--ct-navy);
	color: #fff;
}

.ct-hero__inner { padding-top: 56px; padding-bottom: 56px; }

@media (min-width: 900px) {
	.ct-hero__inner { padding-top: 88px; padding-bottom: 88px; }
}

.ct-hero__content { max-width: 720px; }

.ct-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ct-lightblue);
}

/* The title is an h1, so typography.css sets it in DM Serif Display at 400.
   No font-weight here: the serif has no bold cut, and the 600 this rule
   carried from the DIN era made browsers synthesise one. */
.ct-hero__heading {
	margin: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1.15;
}

@media (min-width: 900px) {
	.ct-hero__heading { font-size: 44px; }
}

.ct-hero__intro {
	margin: 16px 0 0;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.ct-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* ---- Routes -------------------------------------------------------------- */

.ct-routes { padding: 56px 0; background: #fff; }

@media (min-width: 900px) {
	.ct-routes { padding: 88px 0; }
}

.ct-routes__grid {
	display: grid;
	gap: 16px;
}

/* Tablet 2-up stage matches the .pd-reassurance/.pd-downloads grids whose
   enquiry styles this page already reuses. */
@media (min-width: 640px) {
	.ct-routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.ct-routes__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}
}

.ct .ct-route {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--ct-grey);
	border-radius: 4px;
	color: var(--ct-text);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct .ct-route:hover {
	border-color: rgba(24, 29, 70, 0.2);
	box-shadow: 0 8px 24px rgba(24, 29, 70, 0.08);
}

.ct-route__body { min-width: 0; }

.ct-route__title {
	display: block;
	color: var(--ct-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ct-route__text {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ct-muted);
}

.ct-route__chevron {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-left: auto;
	align-self: center;
	color: var(--ct-navy);
	transition: transform 0.2s ease;
}

.ct .ct-route:hover .ct-route__chevron { transform: translateX(3px); }

.ct-routes__faq {
	margin: 24px 0 0;
	font-size: 16px;
}

.ct-routes__faq a { color: var(--ct-navy); }

/* ---- Video + enquiry ----------------------------------------------------- */

/* Offset for anchor jumps from the hero button. */
.ct #ct-enquiry { scroll-margin-top: 120px; }

/* The heading is an h2 here (it is a div on the product pages), so clear any
   global heading margins the class does not already control. */
.ct h2.pd-section-heading { margin-top: 0; }

.ct .ct-video {
	position: relative;
	margin-top: 24px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--ct-navy);
	/* Rounded corners can be lost on video elements without this. */
	transform: translateZ(0);
}

.ct .ct-video__el {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 848 / 478;
	object-fit: cover;
}

.ct .ct-video__toggle {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(24, 29, 70, 0.7);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ct .ct-video__toggle:hover { background: var(--ct-navy); }

.ct .ct-video__toggle svg { width: 16px; height: 16px; }

.ct .ct-video__toggle[data-state='playing'] .ct-video__icon-play { display: none; }
.ct .ct-video__toggle[data-state='paused'] .ct-video__icon-pause { display: none; }

.ct .ct-enquiry__alt { margin-top: 20px; }

/* ---- Details ------------------------------------------------------------- */

.ct-details { padding: 56px 0; background: var(--ct-band-grey); }

@media (min-width: 900px) {
	.ct-details { padding: 88px 0; }
}

.ct-details__grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.ct-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.ct-details__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}
}

.ct-detail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 28px;
	border-radius: 4px;
	background: #fff;
}

.ct-detail__title {
	margin: 16px 0 8px;
	color: var(--ct-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ct-detail__text {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ct-muted);
}

.ct-detail__text p { margin: 0 0 0.6em; }
.ct-detail__text p:last-child { margin-bottom: 0; }

.ct-detail__text a { color: var(--ct-navy); }

.ct .ct-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: var(--ct-navy);
	font-size: 15px;
	text-decoration: none;
}

.ct .ct-detail__link:hover { text-decoration: underline; }

.ct .ct-detail__link svg { width: 14px; height: 14px; }
