/*
Theme Name: Exivon Tech
Theme URI: https://exivontech.com/
Author: Dhiren Patel
Author URI: https://www.dhirenpatel.me/
Description: Exivon Tech site theme. A child theme of Lede with the Exivon brand colors, fonts and homepage patterns.
Template: lede
Requires at least: 6.9
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exivontech
*/

/*
 * Brand styling theme.json can't express. Lede's layout.css still owns
 * breakpoints (600/768/1024/1280) and the lede-grid-* classes.
 */

/* Text color on orange buttons: one token so it can change in one place. */
:root {
	--exivontech--on-accent: #060419;
}

/* Metric-matched fallbacks (Arial) so the font swap doesn't shift layout. */
@font-face {
	font-family: "Plus Jakarta Sans Fallback";
	src: local("Arial");
	size-adjust: 106.05%;
	ascent-override: 97.88%;
	descent-override: 20.93%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Bricolage Grotesque Fallback";
	src: local("Arial");
	size-adjust: 109.9%;
	ascent-override: 84.62%;
	descent-override: 24.57%;
	line-gap-override: 0%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header .exivontech-logo img {
	width: 240px;
	height: auto;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--cyan);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 599px) {

	.site-header .exivontech-logo img {
		width: 180px;
	}

	.site-header .exivontech-header-cta {
		display: none;
	}
}

/* ==========================================================================
   Eyebrow: cyan pill label above section headings
   ========================================================================== */

.is-style-exivontech-eyebrow {
	display: inline-block;
	padding: 0.3125rem 1rem;
	border: 1px solid var(--wp--preset--color--cyan);
	border-radius: 999px;
	background: rgb(21 202 216 / 0.08);
	color: var(--wp--preset--color--cyan);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Centers the inline pill when the paragraph is center-aligned. */
.has-text-align-center.is-style-exivontech-eyebrow {
	display: table;
	margin-inline: auto;
}

/* ==========================================================================
   Cards
   ========================================================================== */

:where(.is-style-exivontech-card, .is-style-exivontech-card-cyan, .is-style-exivontech-card-ember) {
	padding: var(--wp--preset--spacing--60);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
}

.is-style-exivontech-card-cyan {
	border-top: 4px solid var(--wp--preset--color--cyan);
}

.is-style-exivontech-card-ember {
	border-top: 4px solid var(--wp--preset--color--accent);
}

/* Navy callout with an ember left edge (consulting note, quote cards). */
:where(.is-style-exivontech-panel) {
	padding: var(--wp--preset--spacing--60);
	border: 1px solid var(--wp--preset--color--primary-light);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--primary);
}

/* Service bullet lists: plain, muted, divided from the card intro. */
.exivontech-service-list {
	margin: 0;
	padding: var(--wp--preset--spacing--50) 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	list-style: none;
	font-size: var(--wp--preset--font-size--sm);
}

.exivontech-service-list li + li {
	margin-top: 0.375rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.exivontech-hero .wp-block-cover__image-background {
	object-position: right center;
}

.exivontech-hero h1 em {
	color: var(--wp--preset--color--accent);
	font-style: normal;
}

/* ==========================================================================
   Technologies strip: white tiles so brand logos keep their own colors
   ========================================================================== */

.exivontech-tech .wp-block-group {
	padding: var(--wp--preset--spacing--40);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--primary);
}

.exivontech-tech img {
	height: 56px;
	width: auto;
}

/* ==========================================================================
   Values list (About)
   ========================================================================== */

.exivontech-values > .wp-block-group {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.exivontech-values .exivontech-values__num {
	min-width: 2rem;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

/* Execution / Innovation / Vision tags. */
.exivontech-pillars p {
	margin: 0;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--wp--preset--color--primary-light);
	border-radius: 0.25rem;
	text-transform: uppercase;
}

/* ==========================================================================
   Process timeline: a line behind the step icons from 1024 up
   ========================================================================== */

.exivontech-process {
	position: relative;
}

.exivontech-process img {
	width: 64px;
	height: 64px;
}

@media (min-width: 1024px) {

	.exivontech-process::before {
		content: "";
		position: absolute;
		top: 32px;
		left: 10%;
		right: 10%;
		border-top: 2px solid var(--wp--preset--color--primary-light);
	}

	.exivontech-process > * {
		position: relative;
	}
}

.exivontech-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--primary-light);
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--light);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

.exivontech-badge--ember {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--exivontech--on-accent);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.exivontech-chips p {
	margin: 0;
	padding: 0.5rem 1rem 0.5rem 2.25rem;
	border: 1px solid var(--wp--preset--color--primary-light);
	border-radius: 999px;
	background: url(assets/images/icons/check.svg) no-repeat 0.875rem center / 1rem;
	font-size: var(--wp--preset--font-size--sm);
}

/* Formidable runs with its own CSS turned off; these rules style the form. */
.exivontech-form-card .frm_forms :where(input:not([type="submit"], [type="checkbox"], [type="radio"]), select, textarea) {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.375rem;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
}

.exivontech-form-card .frm_forms :where(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--cyan);
	outline-offset: 2px;
}

.exivontech-form-card .frm_form_field {
	margin-bottom: var(--wp--preset--spacing--50);
}

.exivontech-form-card .frm_primary_label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--wp--preset--color--light);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

.exivontech-form-card .frm_required {
	color: var(--wp--preset--color--accent);
}

.exivontech-form-card .frm_error,
.exivontech-form-card .frm_error_style {
	margin-top: 0.375rem;
	color: #FF8A8A;
	font-size: var(--wp--preset--font-size--sm);
}

.exivontech-form-card .frm_message {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--cyan);
	border-radius: 0.375rem;
	color: var(--wp--preset--color--contrast);
}

.exivontech-form-card .frm_button_submit {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 0.25rem;
	background: var(--wp--preset--color--accent);
	color: var(--exivontech--on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.exivontech-form-card .frm_button_submit:hover {
	background: var(--wp--preset--color--accent-light);
}

/* Honeypot and screen-reader-only helpers Formidable outputs. */
.exivontech-form-card .frm_screen_reader,
.exivontech-form-card .frm_verify {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.exivontech-next-steps strong {
	display: block;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--lg);
}

/* Big faded brand line above the footer. */
.exivontech-wordmark {
	color: var(--wp--preset--color--primary);
	line-height: 1;
	letter-spacing: -0.02em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li + li {
	margin-top: 0.5rem;
}

.site-footer a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--cyan);
}

.site-footer .exivontech-contact-list a {
	color: var(--wp--preset--color--accent);
}

.exivontech-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.exivontech-contact-list li + li {
	margin-top: 0.5rem;
}

.exivontech-contact-list a {
	color: var(--wp--preset--color--accent);
}

.exivontech-contact-list li {
	padding-left: 1.75rem;
	background: no-repeat left center / 1.125rem;
}

.exivontech-contact-list .is-mail {
	background-image: url(assets/images/icons/mail.svg);
}

.exivontech-contact-list .is-phone {
	background-image: url(assets/images/icons/phone.svg);
}

.exivontech-contact-list .is-user {
	background-image: url(assets/images/icons/user.svg);
}

.exivontech-contact-list .is-link {
	background-image: url(assets/images/icons/link.svg);
}

/* ==========================================================================
   Section grids the lede-grid-* set doesn't cover
   ========================================================================== */

/* Cards in a row share a height. */
.exivontech-stretch.is-layout-grid {
	align-items: stretch;
}

.exivontech-top.is-layout-grid {
	align-items: start;
}

/* Technologies: 2 / 4 / 7 across. */
.exivontech-tech.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Process steps: 1 / 2 / 5 across. */
.exivontech-process.is-layout-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {

	.exivontech-tech.is-layout-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.exivontech-process.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.exivontech-tech.is-layout-grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.exivontech-process.is-layout-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Hero: below 1024 the photo sits behind the text, so darken it evenly. */
@media (max-width: 1023px) {

	.exivontech-hero .wp-block-cover__background {
		background: rgb(6 4 25 / 0.85) !important;
	}
}

/* Cover forces white text; the hero intro and stat labels use body grey like the rest of the site. */
.exivontech-hero .wp-block-cover__inner-container {
	color: var(--wp--preset--color--contrast-2);
}

.exivontech-hero h1 {
	color: var(--wp--preset--color--contrast);
}

.exivontech-form-card fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.exivontech-form-card .frm_forms :where(input, select, textarea) {
	box-sizing: border-box;
	max-width: 100%;
}

.exivontech-form-card .frm_button_submit {
	font-size: 1rem;
}

/* The stats row may run wider than the hero's 560px text column. */
.exivontech-hero .exivontech-hero-stats {
	max-width: 720px;
}

/* Wide logos (WooCommerce, WP VIP) and long names stay inside their tiles. */
.exivontech-tech.is-layout-grid {
	gap: 0.75rem;
}

.exivontech-tech img {
	display: block;
	margin-inline: auto;
	max-width: min(100%, 120px);
	max-height: 56px;
	object-fit: contain;
}

.exivontech-tech p {
	font-size: 0.8125rem;
}

.exivontech-tech > .wp-block-group {
	min-width: 0;
	padding-inline: 0.5rem;
}

.exivontech-tech figure {
	max-width: 100%;
}

/* A card that spans every column of its grid (e.g. the fifth service card). */
.exivontech-span-all {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {

	.exivontech-span-all .exivontech-service-list {
		columns: 2;
		column-gap: var(--wp--preset--spacing--70);
	}

	.exivontech-span-all .exivontech-service-list li {
		break-inside: avoid;
	}

	.exivontech-span-all .exivontech-service-list li,
	.exivontech-span-all .exivontech-service-list li + li {
		margin-top: 0;
		padding-block: 0.1875rem;
	}
}

/* Founder: photo column fixed at 400px from 1024 up. */
@media (min-width: 1024px) {

	.exivontech-founder.is-layout-grid {
		grid-template-columns: 400px minmax(0, 1fr);
	}
}

.exivontech-founder .wp-block-image img {
	max-width: 100%;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.exivontech-page-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.exivontech-page-header h1 {
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* Services detail rows: every other row puts the list first from 1024 up. */
@media (min-width: 1024px) {

	.exivontech-flip.is-layout-grid > :first-child {
		order: 2;
	}

	.exivontech-contact-grid.is-layout-grid {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}
}

/* ==========================================================================
   Case studies
   ========================================================================== */

.exivontech-case-label {
	color: var(--wp--preset--color--cyan);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Result highlights: a short list pinned to the bottom of each case card. */
.exivontech-stretch > :is(.is-style-exivontech-card-cyan, .is-style-exivontech-card-ember):has(.exivontech-results) {
	display: flex;
	flex-direction: column;
	row-gap: var(--wp--preset--spacing--40); /* the only spacing between label, title and list */
}

.exivontech-stretch > :is(.is-style-exivontech-card-cyan, .is-style-exivontech-card-ember):has(.exivontech-results) > * {
	margin-block-start: 0;
}

.exivontech-results {
	display: grid;
	gap: 0.625rem;
	margin: auto 0 0 !important;
	padding: var(--wp--preset--spacing--40) 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	list-style: none;
}

.exivontech-results li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--wp--preset--color--light);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1.4;
}

.exivontech-results li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
}

/* Work page: larger stacked results in the side card. */
.exivontech-results--stack {
	gap: 0;
	padding-top: 0;
	border-top: 0;
}

.exivontech-results--stack li {
	padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--40) 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--bricolage);
	font-size: var(--wp--preset--font-size--lg);
}

.exivontech-results--stack li::before {
	top: calc(var(--wp--preset--spacing--40) + 0.55em);
}

.exivontech-results--stack li:last-child {
	border-bottom: 0;
}

/* ==========================================================================
   Services page: one card per service, text beside its list
   ========================================================================== */

.exivontech-service-row {
	padding: var(--wp--preset--spacing--70);
}

.exivontech-service-row__list {
	align-self: stretch; /* divider runs the full height of the card */
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 1024px) {

	.exivontech-service-row > .is-layout-grid {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}

	.exivontech-service-row__list {
		display: flex;
		flex-direction: column;
		justify-content: center; /* list sits in the middle of the full-height column */
		padding-top: 0;
		padding-left: var(--wp--preset--spacing--70);
		border-top: 0;
		border-left: 1px solid var(--wp--preset--color--line);
	}
}

/* The list reads as part of its service: brighter text, markers in the card's accent. */
.exivontech-service-row .exivontech-service-list {
	display: grid;
	gap: 0.875rem;
	padding: 0;
	border-top: 0;
	font-size: 1.0625rem;
}

.exivontech-service-row .exivontech-service-list li {
	position: relative;
	margin: 0;
	padding-left: 1.25rem;
	color: var(--wp--preset--color--light);
	line-height: 1.45;
}

.exivontech-service-row .exivontech-service-list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 2px;
	background: var(--wp--preset--color--cyan);
}

.is-style-exivontech-card-ember.exivontech-service-row .exivontech-service-list li::before {
	background: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Case study pages
   ========================================================================== */

.exivontech-case-title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

/* Result highlights in the page header: a row from 768 up. */
.exivontech-results--inline {
	margin-top: var(--wp--preset--spacing--60) !important;
}

@media (min-width: 768px) {

	.exivontech-results--inline {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--60);
	}
}

.exivontech-case-services a {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
}

/* Body: headings spaced for reading, lists with the site's square markers. */
.exivontech-case-body h2 {
	margin-top: var(--wp--preset--spacing--70);
	font-size: var(--wp--preset--font-size--2-xl);
}

.exivontech-case-body h2:first-child {
	margin-top: 0;
}

.exivontech-case-list {
	display: grid;
	gap: 0.75rem;
	padding: 0;
	list-style: none;
}

.exivontech-case-list li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--wp--preset--color--light);
}

.exivontech-case-list li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
}

.exivontech-case-list strong {
	color: var(--wp--preset--color--contrast);
}

/* Stack: technology chips. */
.exivontech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

.exivontech-stack li {
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--wp--preset--color--primary-light);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--light);
	font-size: var(--wp--preset--font-size--sm);
}

/* Card links: pinned to the bottom of each case card. */
.exivontech-stretch > .exivontech-case-card {
	display: flex;
	flex-direction: column;
	row-gap: var(--wp--preset--spacing--40);
}

.exivontech-stretch > .exivontech-case-card > * {
	margin-block-start: 0;
}

.exivontech-read-more {
	font-weight: 600;
}

/* Pin the link to the bottom only inside flex case cards. */
.exivontech-stretch > .exivontech-case-card > .exivontech-read-more {
	margin-top: auto !important;
}

.exivontech-read-more a,
.exivontech-back-link a {
	color: var(--wp--preset--color--cyan);
	text-decoration: none;
}

.exivontech-read-more a:hover,
.exivontech-back-link a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.exivontech-back-link {
	margin-top: var(--wp--preset--spacing--70) !important;
	font-weight: 600;
}

/* Services page: related case studies under each service's text. */
.exivontech-related-label {
	margin-top: var(--wp--preset--spacing--50) !important;
	color: var(--wp--preset--color--contrast-2);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.exivontech-related {
	display: grid;
	gap: 0.375rem;
	margin-top: var(--wp--preset--spacing--20) !important;
	padding: 0;
	list-style: none;
}

.exivontech-related a,
.exivontech-card-link a {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
	text-decoration: none;
}

.exivontech-related a:hover,
.exivontech-card-link a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.exivontech-card-link {
	font-size: var(--wp--preset--font-size--sm);
}

/*
 * Keep list semantics for screen readers. Safari/VoiceOver stops announcing
 * a <ul> as a list when list-style is "none"; an empty marker string hides the
 * bullet without that side effect (the square markers come from ::before).
 */
:is(.exivontech-case-list, .exivontech-stack, .exivontech-related, .exivontech-results) {
	list-style-type: "";
}

/* Audit page */
.exivontech-nowrap {
	white-space: nowrap;
}

.exivontech-audit-promise {
	font-weight: 600;
}

.exivontech-step-number {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: calc(-1 * var(--wp--preset--spacing--20)) !important;
}

/* Service pages and hub links */
.exivontech-explore a {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
	text-decoration: none;
}

.exivontech-explore a:hover,
.exivontech-explore a:focus-visible {
	text-decoration: underline;
}

:is(.is-style-exivontech-card-cyan, .is-style-exivontech-card-ember, .is-style-exivontech-panel, .exivontech-work-title) a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary-light);
	text-underline-offset: 0.2em;
}

:is(.is-style-exivontech-card-cyan, .is-style-exivontech-card-ember, .is-style-exivontech-panel, .exivontech-work-title) a:hover,
:is(.is-style-exivontech-card-cyan, .is-style-exivontech-card-ember, .is-style-exivontech-panel, .exivontech-work-title) a:focus-visible {
	color: var(--wp--preset--color--cyan);
}

/* Hub "Explore" link: sits under the intro, underlined so it doesn't read as a case link. */
.exivontech-explore a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Service page founder credential: trust line, not link-coloured. */
.exivontech-credential {
	border-left: 3px solid var(--wp--preset--color--cyan);
	color: var(--wp--preset--color--light);
	font-weight: 600;
	padding-left: var(--wp--preset--spacing--30);
}

/* Service page "What we build": 1 col, 2 cols from 600px (odd last card spans), then by count. */
.exivontech-svc-grid.is-layout-grid,
.exivontech-svc-pair.is-layout-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {

	.exivontech-svc-grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.exivontech-case-list--cols {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--70);
	}
}

@media (min-width: 600px) and (max-width: 1023px) {

	.exivontech-svc-grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {

	.exivontech-svc-grid--3.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.exivontech-svc-grid--5.is-layout-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.exivontech-svc-grid--5 > * {
		grid-column: span 2;
	}

	.exivontech-svc-grid--5 > :nth-child(n+4) {
		grid-column: span 3;
	}

	.exivontech-svc-pair.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--80);
	}
}

/* Links inside body lists (e.g. Related services). */
.exivontech-case-list a {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* A single case card (e.g. Managed Services) keeps card width instead of filling the row. */
.exivontech-svc-grid--1.is-layout-grid {
	grid-template-columns: minmax(0, 560px);
}

/* "What we build" with 6 cards (3 + 3) and 7 cards (4 + 3). */
@media (min-width: 1024px) {

	.exivontech-svc-grid--6.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.exivontech-svc-grid--7.is-layout-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.exivontech-svc-grid--7 > * {
		grid-column: span 3;
	}

	.exivontech-svc-grid--7 > :nth-child(n+5) {
		grid-column: span 4;
	}
}

/* Footer "Cookie settings": a button (it opens the consent banner) styled like the links around it. */
.exivontech-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.exivontech-link-button:hover,
.exivontech-link-button:focus-visible {
	color: var(--wp--preset--color--cyan);
}
