/*
 * Casetti: the about page's blocks (proje/aktarim/icerik/56.html; live: Elementor page 56 + snippet 757113).
 * .c-about-intro (photo and text), .c-about-band (a photo band, fixed while scrolling on large screens, with the three
 * numbers in a white box), .c-about-values (mission and vision). The page head: pages.css (.c-page-head).
 */

.c-about-intro,
.c-about-values {
	padding: 0 var(--casetti-gutter);
}

.c-about-intro > .wp-block-columns,
.c-about-values > .wp-block-columns {
	max-width: var(--myco-container);
	margin: 0 auto;
}

/* Photo and text: the white page head continues over the photo's top. */
.c-about-intro {
	padding-bottom: 64px;
	background: linear-gradient(180deg, var(--myco-color-bg) 16%, transparent 16%);
}

.c-about-intro > .wp-block-columns {
	gap: 0;
	align-items: center;
}

.c-about-intro__text {
	align-self: center; /* The columns block keeps its columns' tops in line; the text sits mid-photo, as live. */
}

/* Spacing inside the columns (on the column itself it would unbalance the block's equal split). */
.c-about-intro__photo {
	margin: 0 80px 0 0;
}

.c-about-intro__photo img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 40px 60px -25px rgba(15, 23, 28, 0.22);
}

.c-about-intro__text p,
.c-about-values p {
	margin: 0 0 15px;
	color: #3f3a34;
	font: 400 15px/1.85 var(--myco-font-sans);
}

/* The band: a photo behind, three numbers in a white box at its foot. */
.c-about-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 500px var(--casetti-gutter) 0;
	background: #a3a3a3;
}

.c-about-band__bg {
	position: absolute;
	z-index: -2;
	inset: 0;
	margin: 0;
}

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

.c-about-band::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: rgba(2, 1, 1, 0.345);
	content: "";
}

.c-about-band__mobile {
	display: none;
	margin: 0;
}

.c-about-stats {
	display: flex;
	flex-wrap: wrap;
	max-width: var(--myco-container);
	margin: 0 auto;
	padding: 40px 0;
	background: var(--myco-color-bg);
}

.c-about-stat {
	flex: 0 0 33%;
	max-width: 33%;
	border-right: 1px solid var(--myco-color-border);
	text-align: center;
}

.c-about-stat > * {
	margin: 0;
}

.c-about-stat__num {
	color: var(--casetti-gold);
	font-family: var(--casetti-font-display);
	font-size: clamp(38px, 4.4vw, 56px);
	font-weight: 400;
	line-height: 1.05;
}

.c-about-stat__label {
	margin-top: 10px;
	color: var(--casetti-muted);
	font: 500 10px/1.6 var(--myco-font-sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Mission and vision */
.c-about-values {
	padding-top: 72px;
	padding-bottom: 72px;
}

.c-about-values > .wp-block-columns {
	gap: 0;
}

.c-about-values .wp-block-column > p {
	padding-right: 80px;
}

.c-about-values__title {
	margin: 0 0 20px;
	color: var(--casetti-ink-strong);
	font-family: var(--casetti-font-display);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.005em;
}

/* Large screens: the band's photo stays put while the page scrolls (the live page's fixed background). */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
	.c-about-band {
		clip-path: inset(0);
	}

	.c-about-band__bg img {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
	}
}

@media (max-width: 1024px) {
	.c-about-intro {
		padding-inline: 50px;
		padding-bottom: 44px;
	}

	.c-about-intro__photo {
		margin-right: 40px;
	}

	.c-about-band {
		padding-top: 400px;
	}

	.c-about-values {
		padding: 48px 50px;
	}

	.c-about-values .wp-block-column > p {
		padding-right: 40px;
	}
}

@media (max-width: 781px) {
	.c-about-intro > .wp-block-columns,
	.c-about-values > .wp-block-columns {
		gap: 24px;
	}

	.c-about-intro__photo {
		margin-right: 0;
	}

	.c-about-values .wp-block-column > p {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.c-about-intro {
		padding-inline: 24px;
	}

	.c-about-band {
		padding: 0;
		background: var(--myco-color-bg);
	}

	.c-about-band__bg,
	.c-about-band::before {
		display: none;
	}

	.c-about-band__mobile {
		display: block;
	}

	.c-about-band__mobile img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 390 / 330;
		object-fit: cover;
		object-position: top center;
	}

	.c-about-stats {
		padding: 40px 0;
	}

	.c-about-stat {
		flex-basis: 50%;
		max-width: 50%;
	}

	.c-about-stat:first-child {
		margin-bottom: 32px;
	}

	.c-about-stat:nth-child(2) {
		border-right: 0;
	}

	.c-about-values {
		padding: 48px 30px;
	}

	.c-about-values .wp-block-column > p {
		padding-right: 8px;
	}
}
