/*
 * UkrPrototype design system.
 *
 * Tokens mirror the approved layout. Kadence renders the structure, everything
 * that the block settings cannot express lives here and is applied through the
 * "Additional CSS class" field of a block.
 */

:root {
	--ukrp-content: 1250px;
	--ukrp-ink: #071b38;
	--ukrp-ink-soft: #47556a;
	--ukrp-muted: #6b7683;
	--ukrp-accent: #e4fe66;
	--ukrp-accent-hover: #d6f23f;
	--ukrp-black: #000000;
	--ukrp-paper: #ffffff;
	--ukrp-surface: #f4f6f4;
	--ukrp-line: rgba(7, 27, 56, .14);
	--ukrp-line-dark: rgba(255, 255, 255, .22);
	--ukrp-radius: 2px;
	--ukrp-section-y: 60px;
	--ukrp-section-x: 80px;
}

/* --------------------------------------------------------------------------
 * Sections
 * -------------------------------------------------------------------------- */

.ukrp-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	padding-block: var(--ukrp-section-y);
	padding-inline: 20px;
}

/* Full width sections stretch edge to edge, their content still has to line up
   with the rest of the site, so every direct child gets the content width. */
.ukrp-section > * {
	max-width: var(--ukrp-content, 1250px);
	margin-inline: auto;
}

/* The theme gives headings and paragraphs generous margins of their own, inside
   a section the rhythm comes from here instead. */
.ukrp-section > * {
	margin-block: 0;
}

.ukrp-section > * + * {
	margin-top: 18px;
}

/* The theme sets its own margins on headings with a higher specificity, these
   rules have to name both the section and the element to win. */
.ukrp-section > p.ukrp-kicker {
	margin-bottom: 0;
}

.ukrp-section > p.ukrp-kicker + h2,
.ukrp-section > p.ukrp-kicker + h1 {
	margin-top: 6px;
}

.ukrp-section > h2 + * {
	margin-top: 20px;
}

.ukrp-section > .wp-block-columns,
.ukrp-section > .wp-block-buttons {
	margin-top: 36px;
}

.ukrp-section h4 {
	margin: 0 0 8px;
}

/* On a light section the accent colour has too little contrast for a link. */
.ukrp-section:not(.ukrp-band-dark) a {
	color: var(--ukrp-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ukrp-section:not(.ukrp-band-dark) a:hover {
	color: var(--ukrp-ink-soft);
}

.ukrp-section .wp-block-button__link,
.ukrp-section .upc-card__link {
	text-decoration: none;
}

.ukrp-section .wp-block-column p {
	margin: 0;
}

.ukrp-section .wp-block-columns {
	gap: 32px;
}

/* The theme capitalises button labels, the layout keeps them as written. */
.ukrp-btn-primary .wp-block-button__link,
.ukrp-btn-ghost .wp-block-button__link {
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	border-radius: var(--ukrp-radius);
	box-shadow: none;
}

/* The header sits above the hero, the first line needs room to breathe under it. */
.ukrp-hero {
	padding-top: calc(var(--ukrp-section-y) + 48px);
}

.ukrp-hero .wp-block-columns {
	align-items: center;
}

.ukrp-hero h1 {
	margin-bottom: 18px;
}

.ukrp-hero .wp-block-image img {
	width: 100%;
	height: auto;
}

/* Full width black bands: hero, the figures strip, the closing call and footer. */
.ukrp-band-dark,
.ukrp-band-dark p,
.ukrp-band-dark li {
	background-color: var(--ukrp-black);
	color: #eceee9;
}

.ukrp-band-dark h1,
.ukrp-band-dark h2,
.ukrp-band-dark h3,
.ukrp-band-dark h4 {
	color: #ffffff;
}

.ukrp-band-dark .ukrp-kicker {
	color: var(--ukrp-accent);
}

/* --------------------------------------------------------------------------
 * Kicker, the small caps label above a heading
 * -------------------------------------------------------------------------- */

.ukrp-kicker,
.ukrp-kicker p {
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ukrp-ink);
	margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
 * Figures strip: 120 / 5 / 2000 / NATO
 * -------------------------------------------------------------------------- */

.ukrp-stats {
	border-top: 1px solid var(--ukrp-line-dark);
}

.ukrp-stat__value,
.ukrp-stat__value p {
	font-size: 64px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: -.02em;
	margin-bottom: 10px;
}

.ukrp-stat__label,
.ukrp-stat__label p {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #b7c0ba;
	margin: 0;
}

/* A thin rule between the figures, matching the layout. */
.ukrp-stat + .ukrp-stat .kt-inside-inner-col {
	border-left: 1px solid var(--ukrp-line-dark);
	padding-left: 32px;
}

/* --------------------------------------------------------------------------
 * Product cards, used in the catalogue and in "other models"
 * -------------------------------------------------------------------------- */

.ukrp-card {
	background: var(--ukrp-surface);
	border-radius: var(--ukrp-radius);
	box-shadow: 0 0 0 1px rgba(7, 27, 56, .10);
	overflow: hidden;
}

.ukrp-card__type,
.ukrp-card__type p {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ukrp-muted);
	margin: 0 0 6px;
}

/* Parameter and value on one line with a rule underneath. */
.ukrp-spec {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(7, 27, 56, .08);
}

.ukrp-spec:last-child {
	border-bottom: 0;
}

.ukrp-spec__value {
	color: var(--ukrp-ink);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Numbered scenarios
 * -------------------------------------------------------------------------- */

.ukrp-step__num,
.ukrp-step__num p {
	font-size: 13px;
	letter-spacing: .1em;
	color: var(--ukrp-accent);
	margin-bottom: 8px;
}

/* The accent yellow is unreadable on a light section, the numbers switch to ink. */
.ukrp-section:not(.ukrp-band-dark) .ukrp-step__num,
.ukrp-section:not(.ukrp-band-dark) .ukrp-step__num p {
	color: var(--ukrp-muted);
}

/* --------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */

.ukrp-btn-primary .kb-button,
.ukrp-btn-primary a {
	background: var(--ukrp-accent);
	border: 1px solid var(--ukrp-accent);
	color: var(--ukrp-ink);
	border-radius: var(--ukrp-radius);
}

.ukrp-btn-primary .kb-button:hover,
.ukrp-btn-primary a:hover {
	background: var(--ukrp-accent-hover);
	border-color: var(--ukrp-accent-hover);
}

.ukrp-btn-ghost .kb-button,
.ukrp-btn-ghost a {
	background: transparent;
	border: 1px solid var(--ukrp-line-dark);
	color: #eceee9;
	border-radius: var(--ukrp-radius);
}

.ukrp-btn-ghost .kb-button:hover,
.ukrp-btn-ghost a:hover {
	border-color: var(--ukrp-accent);
	color: var(--ukrp-accent);
}

/* --------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	:root {
		--ukrp-section-y: 48px;
		--ukrp-section-x: 20px;
	}

	.ukrp-stat__value,
	.ukrp-stat__value p {
		font-size: 40px;
	}

	.ukrp-stat + .ukrp-stat .kt-inside-inner-col {
		border-left: 0;
		padding-left: 0;
	}
}

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */

.ukrp-foot__logo {
	margin: 0 0 18px;
}

.ukrp-foot__logo img {
	width: 104px;
	height: auto;
}

.ukrp-foot__about {
	max-width: 34ch;
	font-size: 14px;
	line-height: 1.6;
	color: #b7c0ba;
}

.ukrp-foot__title {
	margin: 0 0 14px;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ukrp-accent);
}

.ukrp-foot__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: 14px;
}

.site-footer .ukrp-foot__list a {
	text-decoration: none;
}

.site-footer .ukrp-foot__list a:hover {
	color: var(--ukrp-accent);
}

.ukrp-foot__phone a {
	font-size: 18px;
	text-decoration: none;
}

/* The bottom row carries the copyright and the privacy link side by side. */
.ukrp-foot__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

/* The footer form sits on black, its fields need the dark treatment. */
.site-footer .upc-form__row label {
	color: #949c9a;
}

.site-footer .upc-form__row input,
.site-footer .upc-form__row textarea {
	background: #14181c;
	border-color: rgba(255, 255, 255, .18);
	color: #eceee9;
	font-size: 14px;
	padding: 10px 12px;
}

.site-footer .upc-form__row {
	margin-bottom: 12px;
}

.site-footer .upc-form__actions {
	margin-top: 14px;
}

@media (max-width: 767px) {
	.ukrp-foot__about {
		max-width: none;
	}
}
