/**
 * Brand statement.
 *
 * Single source of truth for the Statement section.
 *
 * @package Cypros_Core
 */

.cy-statement {
	background: var(--cypros-white);
	border-bottom: 1px solid var(--cypros-color-border);
}

/* ----------------------------------------------------------
 * Header
 * ---------------------------------------------------------- */

.cy-statement__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--cypros-black);
}

.cy-statement__index,
.cy-statement__label {
	margin: 0;
	color: var(--cypros-black);
	font-size: var(--cypros-font-size-xs);
	font-weight: var(--cypros-font-weight-bold);
	line-height: 1;
	letter-spacing: var(--cypros-letter-spacing-wide);
	text-transform: uppercase;
}

.cy-statement__label {
	color: var(--cypros-gray-700);
}

/* ----------------------------------------------------------
 * Composition
 * ---------------------------------------------------------- */

.cy-statement__grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.35fr)
		minmax(24rem, 0.65fr);
	align-items: center;
	gap: clamp(2.5rem, 3vw, 3.5rem);
	padding-top: clamp(2.25rem, 3.25vw, 3.25rem);
}

.cy-statement__headline {
	min-width: 0;
}

.cy-statement__headline h2 {
	max-width: 18ch;
	margin: 0;
	color: var(--cypros-black);
	font-size: clamp(2.7rem, 4vw, 4.4rem);
	font-weight: var(--cypros-font-weight-black);
	line-height: 0.94;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.cy-statement__headline h2 span,
.cy-statement__headline h2 strong {
	display: block;
}

.cy-statement__headline h2 strong {
	margin-top: 0.14em;
	font-weight: inherit;
}

.cy-statement__headline h2 strong::before {
	display: inline-block;
	width: 0.16em;
	height: 0.16em;
	margin-right: 0.16em;
	background: var(--cypros-yellow);
	border-radius: 50%;
	content: "";
	vertical-align: 0.18em;
}

/* ----------------------------------------------------------
 * Supporting content
 * ---------------------------------------------------------- */

.cy-statement__content {
	align-self: center;
	width: 100%;
	max-width: 31rem;
	justify-self: end;
}

.cy-statement__accent {
	display: block;
	width: 3rem;
	height: 0.22rem;
	margin-bottom: 1.25rem;
	background: var(--cypros-yellow);
}

.cy-statement__content p {
	margin: 0;
	color: var(--cypros-graphite);
	font-size: clamp(1rem, 1.05vw, 1.1rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.cy-statement__link {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1.5rem;
	padding-bottom: 0.35rem;
	color: var(--cypros-black);
	border-bottom: 1px solid var(--cypros-black);
	font-size: 0.76rem;
	font-weight: var(--cypros-font-weight-black);
	line-height: 1;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		color var(--cypros-transition-fast),
		border-color var(--cypros-transition-fast),
		transform var(--cypros-transition-fast);
}

.cy-statement__link:hover,
.cy-statement__link:focus-visible {
	color: var(--cypros-black);
	border-color: var(--cypros-yellow);
	transform: translateY(-2px);
}

/* ----------------------------------------------------------
 * Tablet
 * ---------------------------------------------------------- */

@media (max-width: 68rem) {
	.cy-statement__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		padding-top: 2.5rem;
	}

	.cy-statement__headline h2 {
		max-width: 13ch;
		font-size: clamp(2.7rem, 6vw, 4.1rem);
	}

	.cy-statement__content {
		justify-self: start;
		max-width: 36rem;
	}
}

/* ----------------------------------------------------------
 * Mobile
 * ---------------------------------------------------------- */

@media (max-width: 48rem) {
	.cy-statement__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
		padding-bottom: 1rem;
	}

	.cy-statement__grid {
		gap: 1.75rem;
		padding-top: 2rem;
	}

	.cy-statement__headline h2 {
		max-width: 14ch;
		font-size: clamp(2rem, 8.2vw, 2.65rem);
		line-height: 1;
		letter-spacing: -0.04em;
		text-wrap: balance;
	}

	.cy-statement__headline h2 strong {
		margin-top: 0.18em;
	}

	.cy-statement__content {
		max-width: none;
	}

	.cy-statement__content p {
		font-size: 1rem;
		line-height: 1.6;
	}

	.cy-statement__accent {
		width: 2.75rem;
		margin-bottom: 1.1rem;
	}

	.cy-statement__link {
		margin-top: 1.35rem;
	}
}

/* ----------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.cy-statement__link {
		transition: none;
	}

	.cy-statement__link:hover,
	.cy-statement__link:focus-visible {
		transform: none;
	}
}