/**
 * "O nama" (phase 10, section 1): its own sections (page-o-nama.php).
 * Visual idea: kraft paper, the box template drawing (cuts and folds) and the shop's own
 * products as cut-outs, so the page looks like a packing table.
 */

.is-about-page .site-main {
	padding-top: 0;
	padding-bottom: 0;
}

/* Small red label above a heading ("Ko smo", "Za koga radimo"). */
.about-eyebrow,
.about-hero__eyebrow {
	margin: 0 0 var(--space-xs);
	color: var(--color-on-button-tinted);
	font-size: var(--text-footnote);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.about-heading {
	margin: 0 0 var(--space-lg);
	font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* ---------- 1. Statement with the product collage ---------- */

.about-hero {
	position: relative;
	overflow: hidden;
	background: var(--color-kraft);
}

/* The box template, large, faint, behind the products. */
.about-hero__template {
	position: absolute;
	right: -4%;
	bottom: -18%;
	width: min(820px, 90vw);
	height: auto;
	color: var(--color-kraft-line);
	pointer-events: none;
}

.about-hero__inner {
	position: relative;
	display: grid;
	gap: var(--space-xl);
	align-items: center;
	padding-block: var(--space-lg) clamp(40px, 3rem + 2vw, 72px);
}

.about-hero .breadcrumbs {
	margin-bottom: var(--space-lg);
}

.about-hero__title {
	margin: 0;
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.about-hero__lead {
	max-width: 46ch;
	margin: var(--space-md) 0 0;
	color: var(--color-text-secondary);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
	line-height: 1.55;
}

/* The products as if set on a table: overlapping, slightly turned. */
.about-collage {
	position: relative;
	height: clamp(280px, 40vw, 440px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-collage__item {
	position: absolute;
	filter: drop-shadow(0 12px 18px rgba(80, 60, 30, 0.16));
	transform: rotate(var(--turn, 0deg));
	transition: transform var(--transition-fast);
}

.about-collage__item a {
	display: block;
}

.about-collage__item img {
	display: block;
	width: 100%;
	height: auto;
}

.about-collage__item:hover {
	transform: translateY(-4px) rotate(var(--turn, 0deg));
}

/* Positions as share of the collage box: closed box, open box, film, cup, bag, tape, strap. */
.about-collage__item--1 { --turn: -3deg; left: 4%; top: 36%; width: 46%; z-index: 2; }
.about-collage__item--2 { --turn: 4deg; left: 34%; top: 4%; width: 44%; z-index: 1; }
.about-collage__item--3 { --turn: -8deg; left: 72%; top: 0; width: 28%; z-index: 1; }
.about-collage__item--4 { --turn: 0deg; left: 68%; top: 40%; width: 26%; z-index: 3; }
.about-collage__item--5 { --turn: 10deg; left: 38%; top: 50%; width: 34%; z-index: 4; }
.about-collage__item--6 { --turn: -6deg; left: 8%; top: 4%; width: 28%; z-index: 3; }
.about-collage__item--7 { --turn: 6deg; left: 76%; top: 62%; width: 22%; z-index: 2; }

@media (min-width: 1024px) {
	.about-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: clamp(32px, 4vw, 72px);
		min-height: 480px;
	}
}

/*
 * With the banner pictures (their background is exactly the kraft tone, #f6f1ea, so the
 * picture and the band meet without an edge).
 * Phones and tablets: the picture across the top, the text below the products.
 * Computers: the picture behind the whole band, products on the right, text on the left.
 */
.about-hero--banner .about-hero__banner {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
}

.about-hero__banner-image {
	display: block;
	width: 100%;
	height: auto;
}

/* Text starts where the products end: phone picture 3 : 4, products in the top 40 %. */
.about-hero--banner .about-hero__inner {
	padding-top: 54vw;
}

@media (min-width: 768px) and (max-width: 1023px) {
	/* Tablet picture 4 : 3, products in the top 40 %. */
	.about-hero--banner .about-hero__inner {
		padding-top: 31vw;
	}
}

@media (min-width: 1024px) {
	.about-hero--banner .about-hero__banner {
		bottom: 0;
	}

	.about-hero--banner .about-hero__banner-image {
		height: 100%;
		object-fit: cover;
		object-position: right center;
	}

	.about-hero--banner .about-hero__inner {
		grid-template-columns: minmax(0, 46%);
		min-height: clamp(420px, 34vw, 560px);
		padding-top: var(--space-lg);
	}
}

/* ---------- 2. In numbers ---------- */

.about-numbers {
	border-block: 1px solid var(--color-kraft-line);
	background: var(--color-background);
}

.about-numbers__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.about-numbers__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: var(--space-xxs);
	padding: var(--space-lg) var(--space-md);
}

.about-numbers__item + .about-numbers__item {
	border-left: 1px solid var(--color-border);
}

.about-numbers__item:nth-child(3) {
	border-top: 1px solid var(--color-border);
	border-left: 0;
}

.about-numbers__item:nth-child(4) {
	border-top: 1px solid var(--color-border);
}

.about-numbers__item dd {
	margin: 0;
	color: var(--color-on-button-tinted);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.about-numbers__item dt {
	color: var(--color-text-secondary);
	font-size: var(--text-subheadline);
}

@media (min-width: 900px) {
	.about-numbers__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.about-numbers__item {
		padding: var(--space-xl) var(--space-lg);
	}

	.about-numbers__item:first-child {
		padding-left: 0;
	}

	.about-numbers__item:nth-child(3),
	.about-numbers__item:nth-child(4) {
		border-top: 0;
	}

	.about-numbers__item:nth-child(3) {
		border-left: 1px solid var(--color-border);
	}
}

/* ---------- 3. Who we are ---------- */

.about-story {
	padding-block: clamp(56px, 3.5rem + 3vw, 104px);
}

.about-story__inner {
	display: grid;
	gap: var(--space-xxl);
	align-items: center;
}

.about-story__text {
	max-width: 58ch;
	margin: 0 0 var(--space-md);
	color: var(--color-text-secondary);
	font-size: var(--text-body);
	line-height: 1.65;
}

.about-story__text:first-of-type {
	color: var(--color-text-primary);
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.about-story__text:last-child {
	margin-bottom: 0;
}

/* Two photos overlapping, like prints laid on the table. */
.about-story__photos {
	position: relative;
	padding: 0 12% 18% 0;
}

.about-story__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-lg);
	object-fit: cover;
}

.about-story__photo--2 {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 52%;
	border: 6px solid var(--color-background);
	box-shadow: 0 16px 32px rgba(80, 60, 30, 0.18);
}

@media (min-width: 900px) {
	.about-story__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: clamp(40px, 5vw, 88px);
	}
}

/* ---------- 4. Who we work for ---------- */

.about-sectors {
	padding-block: clamp(56px, 3.5rem + 3vw, 104px);
	background: var(--color-kraft);
}

.about-sectors__list {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.about-sectors__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-lg);
	}
}

.about-sector {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--space-xl) var(--space-lg) var(--space-lg);
	overflow: hidden;
	border: 1px solid var(--color-kraft-line);
	border-radius: var(--radius-lg);
	background: var(--color-background);
}

/* The card's picture: full width at the top, 16 : 9 (8 : 3 looked
   squeezed; the 8 : 3 files lose only empty background at the sides), edge to edge. A card without its
   own photo shows the product's cut-out on a kraft panel of the same size, so the
   cards' lines stay the same. */
.about-sector__photo,
.about-sector__picture {
	display: block;
	aspect-ratio: 16 / 9;
	margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg)) var(--space-lg);
	overflow: hidden;
	border-bottom: 1px solid var(--color-kraft-line);
	background: var(--color-kraft);
}

.about-sector__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-sector__picture img {
	display: block;
	width: auto;
	height: 82%;
	margin: 9% auto 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.about-sector__title {
	margin: 0 0 var(--space-xs);
	font-size: var(--text-title3);
	font-weight: var(--font-weight-bold);
}

.about-sector__text {
	margin: 0 0 var(--space-lg);
	color: var(--color-text-secondary);
	font-size: var(--text-subheadline);
	line-height: 1.55;
}

.about-sector__links {
	margin: auto 0 0;
	padding: 0;
	border-top: 1px solid var(--color-border);
	list-style: none;
}

/* One category per row: name, product count, arrow; a thin line between rows. */
.about-sector__link {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-height: var(--size-touch-target);
	padding: var(--space-xs) 0;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-primary);
	font-size: var(--text-subheadline);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.about-sector__links li:last-child .about-sector__link {
	border-bottom: 0;
}

.about-sector__name {
	flex: 1 1 auto;
}

.about-sector__count {
	color: var(--color-text-secondary);
	font-size: var(--text-footnote);
	font-weight: var(--font-weight-regular);
	white-space: nowrap;
}

.about-sector__arrow {
	display: inline-flex;
	color: var(--color-text-tertiary);
	transition: transform var(--transition-fast), color var(--transition-fast);
}

.about-sector__arrow svg {
	width: 18px;
	height: 18px;
}

.about-sector__link:hover {
	color: var(--color-on-button-tinted);
}

.about-sector__link:hover .about-sector__arrow {
	color: var(--color-on-button-tinted);
	transform: translateX(3px);
}

/* ---------- 5. From the order to the door ---------- */

.about-route {
	padding-block: clamp(56px, 3.5rem + 3vw, 104px);
}

.about-route__list {
	position: relative;
	display: grid;
	gap: var(--space-xl);
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
}

/* The dashed route: down on phones, across from 900 px. */
.about-route__list::before {
	position: absolute;
	top: 28px;
	bottom: 28px;
	left: 27px;
	border-left: 2px dashed var(--color-button-tinted-pressed);
	content: "";
}

.about-route__step {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: var(--space-md);
}

.about-route__icon {
	position: relative;
	grid-row: 1 / span 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-full);
	background: var(--color-background);
	box-shadow: inset 0 0 0 2px var(--color-button-tinted-pressed);
	color: var(--color-on-button-tinted);
}

.about-route__icon svg {
	width: 26px;
	height: 26px;
}

/* The delivery step: a filled red circle. */
.about-route__step:nth-child(3) .about-route__icon {
	background: var(--color-button-primary);
	box-shadow: none;
	color: var(--color-on-button-primary);
}

.about-route__number {
	color: var(--color-text-tertiary);
	font-size: var(--text-footnote);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.06em;
}

.about-route__title {
	margin: 0 0 var(--space-xxs);
	font-size: var(--text-title3);
	font-weight: var(--font-weight-bold);
}

.about-route__text {
	margin: 0;
	color: var(--color-text-secondary);
	font-size: var(--text-subheadline);
	line-height: 1.55;
}

@media (min-width: 900px) {
	.about-route__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-lg);
	}

	/* From the middle of the first circle to the middle of the last: one column is (100% - 3 gaps) / 4. */
	.about-route__list::before {
		top: 27px;
		right: calc((100% - 3 * var(--space-lg)) / 8);
		bottom: auto;
		left: calc((100% - 3 * var(--space-lg)) / 8);
		border-top: 2px dashed var(--color-button-tinted-pressed);
		border-left: 0;
	}

	/* Label and title centred above the centred steps, with more room below. */
	.about-route .about-eyebrow,
	.about-route .about-heading {
		text-align: center;
	}

	.about-route__list {
		margin-top: calc(var(--space-xxl) + var(--space-md));
	}

	/* Each step centred under its circle. */
	.about-route__step {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.about-route__icon {
		margin-bottom: var(--space-md);
	}

	.about-route__text {
		max-width: 28ch;
	}

	.about-route__number {
		display: block;
		margin-bottom: var(--space-xxs);
	}
}

/* ---------- 6. Closing call ---------- */

.about-cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 3rem + 2.5vw, 88px);
	background: var(--color-button-primary);
	color: var(--color-on-button-primary);
}

.about-cta__template {
	position: absolute;
	top: -30%;
	right: -6%;
	width: min(560px, 80vw);
	height: auto;
	color: rgba(255, 255, 255, 0.18);
	pointer-events: none;
}

.about-cta__inner {
	position: relative;
	display: grid;
	gap: var(--space-xl);
	align-items: center;
}

@media (min-width: 900px) {
	.about-cta__inner {
		grid-template-columns: minmax(0, 1.4fr) auto;
	}
}

.about-cta__title {
	margin: 0;
	color: inherit;
	font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.about-cta__lead {
	max-width: 52ch;
	margin: var(--space-sm) 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: var(--text-body);
	line-height: 1.55;
}

.about-cta__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-xl);
	margin: var(--space-lg) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-subheadline);
}

.about-cta__facts li {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
}

.about-cta__facts svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.about-cta__facts a {
	color: inherit;
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

.about-cta__facts a:hover {
	text-decoration: underline;
}

.about-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* On red: white main button, outlined second one. */
.about-cta__actions .btn {
	min-height: var(--size-button);
	padding: 0 var(--space-xl);
	background: var(--color-background);
	color: var(--color-on-button-tinted);
	font-size: var(--text-headline);
}

.about-cta__actions .btn:hover {
	background: var(--color-kraft);
	color: var(--color-on-button-tinted-pressed);
}

.about-cta__actions .btn--tinted {
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	color: var(--color-on-button-primary);
}

.about-cta__actions .btn--tinted:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-on-button-primary);
}

@media (max-width: 599px) {
	.about-cta__actions .btn {
		flex: 1 1 100%;
	}
}

/* Phones: the last crumb is the label right below it. */
@media (max-width: 767px) {
	.about-hero .breadcrumbs__item:last-child {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-collage__item {
		transition: none;
	}
}
