/*
Theme Name: UTR
Theme URI: https://utr.ua
Description: Юнік Трейд corporate block theme, built from the 2026 design concept.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.3
Author: Unique Trade
Text Domain: utr
*/

/* ==========================================================================
   Base — extracted from design-concept/*.dc.html (shared <style> + wrappers)
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

a {
	text-decoration: none;
}

a:hover {
	color: var(--wp--preset--color--accent);
}

/* Design section shell: 96px vertical / 56px horizontal on desktop. */
.utr-section {
	padding: 96px 56px;
}

/* Eyebrow/kicker line used above every big heading in the design. */
.utr-kicker {
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin: 0 0 24px;
}

/* Section H2 scale (design: 700 clamp(24px,2.4vw,36px) Unbounded, uppercase). */
.utr-section-title {
	font-size: clamp(24px, 2.4vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0;
}

/* Skewed red parallelogram bullet (the design's signature accent). */
.utr-flag {
	position: relative;
	padding-left: 44px;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 700;
	margin: 0;
}

.utr-flag::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 26px;
	height: 34px;
	background: var(--wp--preset--color--accent);
	transform: skewX(-14deg);
}

/* Larger hero variant of the flag bullet. */
.utr-flag-lg {
	padding-left: 56px;
	font-size: 15.5px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--wp--preset--color--grey-300);
	max-width: 230px;
}

.utr-flag-lg::before {
	width: 34px;
	height: 44px;
	top: 0;
}

.utr-flag-lg strong {
	color: #fff;
	font-weight: 800;
}

/* ==========================================================================
   Buttons — square corners, Manrope 800, tight letter-spacing (design)
   ========================================================================== */

.wp-block-button__link,
.utr-submit,
.utr-tel-btn {
	border-radius: 0;
	text-transform: uppercase;
}

.wp-block-button__link {
	padding: 18px 32px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* Ghost button on dark surfaces (ORDER24 in the header, socials, ТЕЛ. 7577). */
.utr-btn-ghost .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
}

/* Ghost with the darker #3a404b border (footer / CTA band in the design). */
.utr-btn-ghost-grey .wp-block-button__link {
	background: transparent;
	border: 1px solid #3a404b;
	color: #fff;
	letter-spacing: 0.04em;
}

/* Outline on light surfaces (ТЕЛ. 7577 next to the lead form). */
.utr-btn-outline-dark .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--dark);
	color: var(--wp--preset--color--dark);
}

/* ==========================================================================
   Header (parts/header.html) — fixed dark bar in the design; sticky here so
   generic templates never get overlapped. 18px 56px padding, blur backdrop.
   ========================================================================== */

.utr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 18px 56px;
	background: rgba(16, 19, 24, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utr-header .utr-logo a {
	color: #fff;
}

.utr-header .wp-block-navigation a {
	color: var(--wp--preset--color--grey-200);
}

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

.utr-header .wp-block-navigation .wp-block-navigation__container {
	gap: 30px;
}

.utr-header .wp-block-button__link {
	padding: 11px 22px;
	font-size: 13px;
	letter-spacing: 0.03em;
}

/* ==========================================================================
   Hero (patterns/hero.php)
   ========================================================================== */

.utr-hero .wp-block-cover__inner-container {
	width: 100%;
	padding: 140px 56px 96px;
}

.utr-hero-title {
	font-size: clamp(44px, 5.6vw, 84px);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0 0 44px;
}

.utr-hero-title mark {
	background: none;
	color: var(--wp--preset--color--accent);
}

.utr-hero-usps {
	margin-top: 64px;
}

/* ==========================================================================
   Stats — "Про Юнік Трейд" (patterns/about-stats.php)
   ========================================================================== */

.utr-stats {
	padding: 32px 0 0;
}

.utr-stats .utr-section-title {
	padding: 48px 56px 40px;
	font-size: clamp(24px, 2.2vw, 34px);
}

.utr-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.utr-stat {
	padding: 36px 36px 48px;
	border-top: 1px solid var(--wp--preset--color--surface-dark);
}

.utr-stat:nth-child(3n + 1) {
	padding-left: 56px;
}

.utr-stat:not(:nth-child(3n)) {
	border-right: 1px solid var(--wp--preset--color--surface-dark);
}

.utr-stat-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(32px, 2.6vw, 46px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0;
}

.utr-stat-num.is-accent {
	color: var(--wp--preset--color--accent);
}

.utr-stat-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-500);
	margin: 10px 0 0;
}

/* ==========================================================================
   Official brands grid (patterns/official-brands.php)
   ========================================================================== */

.utr-brands-head {
	margin-bottom: 34px;
}

.utr-brands-all {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
}

.utr-brands-all a {
	color: var(--wp--preset--color--accent);
}

.utr-brands-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.utr-brand-cell {
	background: var(--wp--preset--color--light);
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.utr-brand-cell figure {
	margin: 0;
}

.utr-brand-cell img {
	max-height: 40px;
	max-width: 118px;
	width: auto;
	height: auto;
	mix-blend-mode: multiply;
}

.utr-brand-more {
	background: var(--wp--preset--color--dark);
}

.utr-brand-more p {
	margin: 0;
}

.utr-brand-more a {
	color: #fff;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

/* ==========================================================================
   USP cards — 4 numbered benefits (patterns/usp-cards.php)
   ========================================================================== */

.utr-usp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.utr-usp {
	padding: 56px;
}

.utr-usp:nth-child(odd) {
	border-right: 1px solid #e2e4e8;
}

.utr-usp:nth-child(-n + 2) {
	border-bottom: 1px solid #e2e4e8;
}

.utr-usp-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	margin: 0;
}

.utr-usp-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 23px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	margin: 0;
}

.utr-usp-desc {
	font-size: 15px;
	line-height: 1.6;
	font-weight: 500;
	color: var(--wp--preset--color--grey-600);
	margin: 14px 0 0;
	text-wrap: pretty;
}

/* ==========================================================================
   СТО equipment (patterns/equipment.php)
   ========================================================================== */

.utr-eq-grid {
	display: grid;
	grid-template-columns: 1fr 480px 150px;
	gap: 48px;
	align-items: center;
}

.utr-eq-title {
	font-size: clamp(28px, 2.6vw, 42px);
	line-height: 1.08;
	margin: 0 0 18px;
}

.utr-eq-note {
	font-size: 17px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--wp--preset--color--grey-600);
	max-width: 380px;
	margin: 0 0 32px;
}

.utr-eq-main {
	height: 440px;
	background: #fff;
	margin: 0;
}

.utr-eq-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.utr-eq-thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.utr-eq-thumb {
	height: 105px;
	background: #fff;
}

/* ==========================================================================
   Cooperation benefits (patterns/cooperation-benefits.php)
   ========================================================================== */

.utr-coop-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 64px;
	margin-top: 48px;
}

/* ==========================================================================
   How to become a partner — 5 steps (patterns/partner-steps.php)
   ========================================================================== */

.utr-steps-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 40px;
	margin-top: 56px;
}

.utr-step-num {
	position: relative;
	z-index: 0;
	width: 56px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 22px;
}

.utr-step-num::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--accent);
	transform: skewX(-14deg);
}

.utr-step-text {
	font-size: 15.5px;
	line-height: 1.5;
	font-weight: 500;
	color: var(--wp--preset--color--grey-300);
	margin: 0;
}

/* ==========================================================================
   Lead form / "Залишилися питання?" (patterns/lead-form.php)
   ========================================================================== */

.utr-apply-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #e2e4e8;
}

.utr-apply-content {
	padding: 88px 64px 88px 56px;
}

.utr-apply-lede {
	font-size: 17px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--wp--preset--color--grey-600);
	max-width: 460px;
	margin: 16px 0 40px;
	text-wrap: pretty;
}

.utr-cover-img {
	margin: 0;
	height: 100%;
	min-height: 520px;
}

.utr-cover-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.utr-lead-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 520px;
}

.utr-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.utr-field label {
	font-size: 14px;
	font-weight: 800;
	color: var(--wp--preset--color--accent);
}

.utr-field input {
	height: 52px;
	border: 1px solid var(--wp--preset--color--dark);
	border-radius: 0;
	background: #fff;
	padding: 0 16px;
	font: 500 16px/1 var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--dark);
	box-sizing: border-box;
}

/* Honeypot "company" field — visually hidden, still submittable by bots. */
.utr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.utr-form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.utr-submit {
	flex: 1;
	padding: 18px 32px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.utr-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.utr-tel-btn {
	flex: none;
	padding: 18px 28px;
	border: 1px solid var(--wp--preset--color--dark);
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--dark);
}

.utr-form-status {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.utr-form-status.is-ok {
	color: #1a7f37;
}

.utr-form-status.is-error {
	color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Charity feed — "Рятуючи дитячі серця" (patterns/charity-feed.php)
   ========================================================================== */

.utr-fond {
	padding: 72px 56px;
}

.utr-fond-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 48px;
	align-items: center;
}

.utr-fond .utr-kicker {
	color: var(--wp--preset--color--accent-soft);
	font-size: 13px;
	letter-spacing: 0.2em;
	margin-bottom: 18px;
}

.utr-fond-title {
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1.05;
	margin: 0 0 16px;
}

.utr-fond-lede {
	font-size: 16px;
	line-height: 1.6;
	font-weight: 500;
	color: var(--wp--preset--color--accent-soft);
	max-width: 560px;
	margin: 0 0 24px;
	text-wrap: pretty;
}

.utr-charity-item {
	display: flex;
	gap: 16px;
	align-items: baseline;
	font-size: 16px;
	font-weight: 700;
}

.utr-charity-item .wp-block-post-date {
	opacity: 0.75;
	flex: none;
	color: #fff;
}

.utr-charity-item .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	margin: 0;
}

.utr-charity-item .wp-block-post-title a {
	color: #fff;
}

.utr-charity-item .wp-block-post-title a:hover {
	color: var(--wp--preset--color--dark);
}

.utr-fond-logo {
	margin: 0;
	display: flex;
	justify-content: center;
}

.utr-fond-logo img {
	max-width: 230px;
	height: auto;
	background: #fff;
	padding: 22px;
	border-radius: 6px;
}

/* ==========================================================================
   Contact CTA band (patterns/contact-cta.php)
   ========================================================================== */

.utr-cta-band {
	padding: 56px;
}

.utr-cta-title {
	font-size: clamp(24px, 2.2vw, 34px);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0;
}

.utr-cta-title mark {
	background: none;
	color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   Footer (parts/footer.html)
   ========================================================================== */

.utr-footer-social {
	padding: 40px 56px;
	border-bottom: 1px solid var(--wp--preset--color--surface-dark);
}

.utr-footer-social-title {
	font-size: clamp(20px, 1.8vw, 28px);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0;
}

.utr-footer-bottom {
	padding: 26px 56px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--grey-500);
}

.utr-footer-bottom p {
	margin: 0;
}

.utr-footer-menu {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}

.utr-footer-menu a {
	color: var(--wp--preset--color--grey-400);
	letter-spacing: 0.03em;
}

.utr-footer-tel,
.utr-footer-tel a {
	color: #fff;
	font-weight: 800;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.utr-eq-grid {
		grid-template-columns: 1fr 1fr;
	}

	.utr-eq-thumbs {
		grid-column: span 2;
		flex-direction: row;
	}

	.utr-eq-thumb {
		flex: 1;
	}

	.utr-steps-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.utr-brands-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.utr-fond-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.utr-section {
		padding: 64px 24px;
	}

	.utr-header {
		padding: 14px 20px;
	}

	.utr-hero .wp-block-cover__inner-container {
		padding: 120px 24px 64px;
	}

	.utr-stats .utr-section-title {
		padding: 40px 24px 28px;
	}

	.utr-stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.utr-stat,
	.utr-stat:nth-child(3n + 1) {
		padding: 28px 24px 36px;
	}

	.utr-stat:not(:nth-child(3n)) {
		border-right: 0;
	}

	.utr-stat:nth-child(odd) {
		border-right: 1px solid var(--wp--preset--color--surface-dark);
	}

	.utr-brands-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.utr-usp-grid,
	.utr-coop-grid,
	.utr-apply-grid {
		grid-template-columns: 1fr;
	}

	.utr-usp {
		padding: 40px 24px;
		border-right: 0 !important;
		border-bottom: 1px solid #e2e4e8;
	}

	.utr-eq-grid {
		grid-template-columns: 1fr;
	}

	.utr-eq-thumbs {
		grid-column: auto;
	}

	.utr-steps-grid {
		grid-template-columns: 1fr 1fr;
	}

	.utr-apply-content {
		padding: 64px 24px;
	}

	.utr-fond {
		padding: 64px 24px;
	}

	.utr-cta-band,
	.utr-footer-social,
	.utr-footer-bottom {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 600px) {
	.utr-brands-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.utr-steps-grid {
		grid-template-columns: 1fr;
	}

	.utr-form-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ==========================================================================
   Design-port responsive rules. The homepage sections carry the design's own
   inline styles 1:1, so breakpoint overrides need !important.
   No mobile spec exists in the concept — these are pragmatic collapses.
   ========================================================================== */

@media (max-width: 1100px) {
	.utr-eq-grid { grid-template-columns: 1fr !important; }
	.utr-eq-grid > div[data-rv-delay="180"] { flex-direction: row !important; }
	.utr-steps-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.utr-brandgrid { grid-template-columns: repeat(4, 1fr) !important; }
	.utr-fond-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
	#siteHeader { padding: 14px 20px !important; }
	#siteHeader .utr-nav-desktop { display: none !important; } /* TODO(design): mobile menu not specced */
	.utr-apply-grid,
	.utr-coop-grid,
	#benefits { grid-template-columns: 1fr !important; }
	#benefits > div { border-right: 0 !important; }
	.utr-brandgrid { grid-template-columns: repeat(3, 1fr) !important; }
	#heroContent, #stats h2, #brands, #coop, #steps, #equipment { padding-left: 20px !important; padding-right: 20px !important; }
}

@media (max-width: 600px) {
	.utr-brandgrid { grid-template-columns: repeat(2, 1fr) !important; }
	.utr-steps-grid { grid-template-columns: 1fr !important; }
	#stats > div { grid-template-columns: 1fr !important; }
}

/* Language switcher (patterns/header.php): inline colors need !important.
   The header starts transparent over the hero video, whose frames can be
   bright — the text-shadow keeps both states legible on any background. */
.utr-lang { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.utr-lang a { transition: color 0.2s; }
.utr-lang a:hover { color: #fff !important; }
