/*
 * Contact - Ways.
 *
 * Read from cp-all-designer css/contact.css:17-50 (.ctuways, .ctuw) and app.css:324-331 (.link-arrow) and css/app.css (the head). What the
 * Style tab sets arrives through the widget's selectors.
 *
 * Tiers: mobile up to 767px, tablet 768-1024px, desktop 1025px and up;
 * the cards also step at the design's own 1024px and 640px.
 */

/* ------------------------------------------------------------------ */
/* The band and the head — app.css:230-252, 291-294, 385-408           */
/* ------------------------------------------------------------------ */

.custom-contact-ways {
	position: relative;
	display: block;
	box-sizing: border-box;
}

.custom-contact-ways__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1920px;                     /* the content cap, every band */
	margin: 0 auto;
}

.custom-contact-ways__head {
	margin-left: auto;
	margin-right: auto;
}

.custom-contact-ways__title {
	margin: 0;
	padding: 0;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.custom-contact-ways__title strong {
	font-weight: 700;
}

/* app.css:246-252 — the highlighted part, with the soft bar under it */
.custom-contact-ways__title em {
	position: relative;
	display: inline-block;
	font-style: italic;
	font-weight: 700;
}

.custom-contact-ways__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.06em;
	height: 0.16em;
	border-radius: 3px;
	background: currentColor;
	opacity: 0.18;
}

.custom-contact-ways [data-custom-sweep-ghost] em::after {
	opacity: 0.12;                         /* app.css:275 */
}

/* app.css:291-294 — a measure of its own, its words centred inside it */
.custom-contact-ways__intro {
	margin-bottom: 0;
	font-weight: 400;
	line-height: 1.7;
}

/* app.css:3016 — a phone's lead sets tighter */
@media (max-width: 640px) {
	.custom-contact-ways__intro {
		line-height: 1.5;
	}
}

/* ------------------------------------------------------------------ */
/* The cards — contact.css:17-50                                       */
/* ------------------------------------------------------------------ */

.custom-contact-ways__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	text-align: left;
}

.custom-contact-ways__card {
	--custom-press-ground: #FFFFFF;
	--custom-press-edge: #EEF2F7;
	--custom-press-ink: #16418C;
	display: grid;
	align-content: start;
	gap: 12px;
	min-width: 0;
	box-sizing: border-box;
	border-width: 1px;
	border-style: solid;
	transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.custom-contact-ways__card:hover {
	--custom-press-edge: #50A3D5;
	--custom-press-shadow: 0 18px 44px -14px rgba(22, 65, 140, 0.2);   /* app.css:160 --sh */
	transform: translateY(-4px);
}

.custom-contact-ways__card:focus-visible {
	outline: 2px solid #50A3D5;
	outline-offset: 3px;
}

/* contact.css:37-40 */
.custom-contact-ways__ico {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 18px;
	background: #F0F9FD;
}

.custom-contact-ways__ico svg,
.custom-contact-ways__ico img {
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.custom-contact-ways__ico .is-a {
	fill: #16418C;
}

.custom-contact-ways__ico .is-b {
	fill: #50A3D5;
}

/* contact.css:41-49 */
.custom-contact-ways__card-label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 1.15px;
	text-transform: uppercase;
}

.custom-contact-ways__card-title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

.custom-contact-ways__card-text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}

.custom-contact-ways__card-value {
	font-weight: 600;
	transition: color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* app.css:324-331 .link-arrow */
.custom-contact-ways__card-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	transition: color 200ms;
}

.custom-contact-ways__arrow {
	display: inline-block;
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.custom-contact-ways__card:hover .custom-contact-ways__arrow {
	transform: translateX(5px);
}

/* the design's own steps — contact.css:96-105 */
@media (max-width: 1024px) {
	.custom-contact-ways__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.custom-contact-ways__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-contact-ways__card,
	.custom-contact-ways__arrow {
		transition: none;
	}

	a.custom-contact-ways__card:hover {
		transform: none;
	}
}
