/*
 * Marketing consultancy (templates/page-consultancy.html): the other half of what the company sells, in the
 * same friendly system as the rest of the site — a bright hero, the work as cards, the sectors as a plain
 * list of pills, the steps numbered, and the enquiry beside the ways to reach us.
 *
 * Wide-screen values apply from 782px; the phone's at 781px and below. Sections lay their children out with
 * gap, so the browser's own margins on headings, paragraphs and lists are cleared.
 */

.maxkan-consultancy-page {
	--maxkan-consultancy-shadow: 0 0 0 1px var(--wp--preset--color--line);

	margin: 0;
	font-size: 16px;
	line-height: normal;
}

.maxkan-consultancy-page :where(h1, h2, h3, p, ul),
.maxkan-consultancy-page > *,
.maxkan-consultancy-page :where(.is-layout-flow) > * {
	margin: 0;
}

.maxkan-consultancy-page :where(ul) {
	padding: 0;
	list-style: none;
}

.maxkan-consultancy-page__h2 {
	color: var(--wp--preset--color--brand);
	font-size: var(--maxkan-title);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.maxkan-consultancy-page__lead {
	max-width: 62ch;
	color: var(--wp--preset--color--slate);
	font-size: 17px;
	line-height: 1.6;
}

/* The opening: the kicker, the two-tone title and the two ways on, on the pale band. */
.maxkan-consultancy-hero {
	padding: var(--maxkan-section) var(--maxkan-gutter);
	background: var(--wp--preset--color--mist);
}

.maxkan-consultancy-hero__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 820px;
}

.maxkan-consultancy-hero__kicker {
	/* The pale gold is for large type on navy; at 13px on the mist band it fails the contrast rule. */
	color: var(--wp--preset--color--green);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.maxkan-consultancy-hero__title {
	color: var(--wp--preset--color--brand);
	font-size: var(--maxkan-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.maxkan-consultancy-hero__lead {
	color: var(--wp--preset--color--slate);
	font-size: 19px;
	line-height: 1.6;
}

.maxkan-consultancy-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 6px;
}

.maxkan-consultancy-button .wp-block-button__link {
	padding: 14px 24px;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 16px;
	font-weight: 700;
	transition: var(--wp--custom--transition--base);
}

.maxkan-consultancy-button--primary .wp-block-button__link {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);

	&:hover {
		background: var(--wp--preset--color--brand-dark);
	}
}

.maxkan-consultancy-button--outline .wp-block-button__link {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line-strong);
	color: var(--wp--preset--color--brand);

	&:hover {
		box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--brand);
	}
}

/* What we do: six cards, the question in the company's voice and what you are left with underneath. */
.maxkan-consultancy-work {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: var(--maxkan-section) var(--maxkan-gutter);
}

.maxkan-consultancy-work__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.maxkan-consultancy-work__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.maxkan-consultancy-work__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	border-radius: var(--wp--custom--radius--card-large);
	background: var(--wp--preset--color--white);
	box-shadow:
		var(--maxkan-consultancy-shadow),
		0 0 0 1px var(--wp--preset--color--line);
}

.maxkan-consultancy-work__name {
	color: var(--wp--preset--color--brand);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.maxkan-consultancy-work__ask {
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.maxkan-consultancy-work__gives {
	color: var(--wp--preset--color--slate);
	font-size: 15px;
	line-height: 1.55;
}

/* Sectors: a plain list read as pills, on the pale band. */
.maxkan-consultancy-sectors {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: var(--maxkan-section) var(--maxkan-gutter);
	background: var(--wp--preset--color--mist);
}

.maxkan-consultancy-sectors__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.maxkan-consultancy-sectors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.maxkan-consultancy-sectors__list li {
	padding: 12px 18px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

/* How the work runs: four numbered steps under a gold rule. */
.maxkan-consultancy-steps {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: var(--maxkan-section) var(--maxkan-gutter);
}

.maxkan-consultancy-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.maxkan-consultancy-steps__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 18px;
	border-top: 2px solid var(--wp--preset--color--green);
}

.maxkan-consultancy-steps__number {
	color: var(--wp--preset--color--green);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.maxkan-consultancy-steps__name {
	color: var(--wp--preset--color--brand);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.maxkan-consultancy-steps__text {
	color: var(--wp--preset--color--slate);
	font-size: 15px;
	line-height: 1.55;
}

/* Starting a conversation: the words on the left, the form on the right, on the pale band. */
.maxkan-consultancy-talk {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding: var(--maxkan-section) var(--maxkan-gutter);
	background: var(--wp--preset--color--mist);
}

.maxkan-consultancy-talk__words {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/*
 * The ways to reach us are cards, not buttons: an icon badge, the name, the number under it. Left to itself
 * the action button draws a full-width pill, which at this width is a capsule with a phone number adrift in it.
 */
.maxkan-consultancy-talk__ways {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
	padding-top: 4px;
}

.maxkan-consultancy-talk .maxkan-action-button.maxkan-consultancy-talk__way {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	justify-items: start;
	gap: 0 14px;
	width: 100%;
	height: auto;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	white-space: normal;
}

.maxkan-consultancy-talk
	.maxkan-action-button.maxkan-consultancy-talk__way:hover,
.maxkan-consultancy-talk
	.maxkan-action-button.maxkan-consultancy-talk__way:focus {
	border-color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--brand-tint);
	color: var(--wp--preset--color--ink);
}

.maxkan-consultancy-talk__way .maxkan-icon {
	box-sizing: border-box;
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	padding: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--whatsapp);
	color: var(--wp--preset--color--white);
}

.maxkan-consultancy-talk__way--email .maxkan-icon {
	padding: 13px;
	background: var(--wp--preset--color--brand-tint);
	color: var(--wp--preset--color--brand);
}

.maxkan-consultancy-talk__way > span:not(.maxkan-action-button__value) {
	align-self: end;
}

.maxkan-consultancy-talk__way .maxkan-action-button__value {
	align-self: start;
	color: var(--wp--preset--color--slate);
	font-size: 14px;
	font-weight: 400;
}

/*
 * A phone: one column throughout, smaller type, and the cards and steps stacked.
 */
@media (max-width: 781px) {
	.maxkan-consultancy-hero,
	.maxkan-consultancy-work,
	.maxkan-consultancy-sectors,
	.maxkan-consultancy-steps,
	.maxkan-consultancy-talk {
		padding: 32px 16px;
	}

	.maxkan-consultancy-hero__body {
		gap: 14px;
	}

	.maxkan-consultancy-hero__lead {
		font-size: 16px;
	}

	.maxkan-consultancy-hero__actions .wp-block-button {
		width: 100%;
	}

	.maxkan-consultancy-button .wp-block-button__link {
		display: block;
		text-align: center;
	}

	.maxkan-consultancy-work,
	.maxkan-consultancy-sectors,
	.maxkan-consultancy-steps {
		gap: 20px;
	}

	.maxkan-consultancy-work__list,
	.maxkan-consultancy-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.maxkan-consultancy-work__item {
		padding: 18px 16px;
	}

	.maxkan-consultancy-work__name {
		font-size: 18px;
	}

	.maxkan-consultancy-sectors__list li {
		padding: 10px 14px;
		font-size: 14px;
	}

	.maxkan-consultancy-talk {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* A tablet: two columns of work, two of steps. */
@media (min-width: 782px) and (max-width: 1100px) {
	.maxkan-consultancy-work__list,
	.maxkan-consultancy-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.maxkan-consultancy-talk {
		grid-template-columns: minmax(0, 1fr);
	}
}
