/* =========================================================
	Look Upgrade — Home page styles
	Hero, stats, industries directory, portfolio teaser,
	service teaser, blog teaser, layered on top of style.css
	========================================================= */

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-block: clamp(3rem, 4vw, 6rem) 0;
	overflow: hidden;
}

.hero__inner {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
}

.hero__col-left {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.hero__col-left .eyebrow {
	justify-content: center;
}

.hero__heading {
	font-size: var(--fs-display);
	margin-top: 1rem;
	margin-inline: auto;
	transition-delay: 0.1s;
}

.hero__col-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding-top: 0.5rem;
	min-width: 0;
	transition-delay: 0.2s;
}
.hero__col-right .lead {
	max-width: min(38ch, 100%);
}

.hero__rule {
	width: 100%;
	height: 1px;
	background: var(--line);
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* ---------- Stats ---------- */
.stats {
	padding-block: clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid var(--line);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 2.5rem;
}
.stats__grid > .stat:nth-child(2) {
	transition-delay: 0.1s;
}
.stats__grid > .stat:nth-child(3) {
	transition-delay: 0.2s;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-align: center;
}

.stat__value {
	font-family: var(--font-serif);
	font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
	font-weight: 600;
	color: var(--ink);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.stat__value .red {
	color: var(--red);
}

.stat__label {
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--gray);
}

@media (min-width: 640px) {
	.stats__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* ---------- Industries directory ---------- */
.industries {
	background-color: var(--cream);
	background-image: var(--grain);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.industries__intro {
	max-width: min(52ch, 100%);
}

.industries__list {
	margin-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
}

.industries__item {
	display: flex;
	align-items: baseline;
	gap: 1.25rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
	transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.industries__item:hover {
	padding-left: 0.75rem;
	color: var(--red);
}
.industries__item .index-num {
	font-size: 1rem;
	min-width: 2.25rem;
}
.industries__item span:last-child {
	font-family: var(--font-serif);
	font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
}

@media (min-width: 780px) {
	.industries__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(5, auto);
		grid-auto-flow: column;
		column-gap: 3rem;
	}
	.industries__item:nth-child(n+6) {
		padding-left: 3rem;
		border-left: 1px solid var(--line);
	}
	.industries__item:nth-child(n+6):hover {
		padding-left: 3.75rem;
	}
}

/* ---------- Portfolio teaser ---------- */
.portfolio-teaser__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.portfolio-teaser__grid > a:nth-child(2) {
	transition-delay: 0.1s;
}
.portfolio-teaser__grid > a:nth-child(3) {
	transition-delay: 0.2s;
}

@media (min-width: 780px) {
	.portfolio-teaser__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem;
		padding-block: 1rem;
	}
	.portfolio-teaser__grid > a:nth-child(1) {
		transform: translateY(-1.5rem) rotate(-1.25deg);
	}
	.portfolio-teaser__grid > a:nth-child(1):hover {
		transform: translateY(-2.25rem) rotate(0deg);
	}
	.portfolio-teaser__grid > a:nth-child(2) {
		transform: rotate(0.85deg);
	}
	.portfolio-teaser__grid > a:nth-child(2):hover {
		transform: translateY(-0.75rem) rotate(0deg);
	}
	.portfolio-teaser__grid > a:nth-child(3) {
		transform: translateY(1.5rem) rotate(-0.65deg);
	}
	.portfolio-teaser__grid > a:nth-child(3):hover {
		transform: translateY(0.75rem) rotate(0deg);
	}
}

.teaser-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	background: var(--paper);
	box-shadow: var(--shadow-card);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.teaser-card:hover {
	box-shadow: var(--shadow-card-hover);
}

.teaser-card__visual {
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.teaser-card__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	transition: transform 0.35s var(--ease);
}
.teaser-card:hover .teaser-card__visual img {
	transform: scale(1.03);
}

.teaser-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.teaser-card__body .tag {
	align-self: flex-start;
	color: var(--red);
	border-color: var(--red);
}
.teaser-card__body h3 {
	font-size: 1.15rem;
}
.teaser-card__body p {
	font-size: var(--fs-small);
	color: var(--gray);
}

.section-foot {
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
	text-align: center;
}

/* ---------- Service teaser ---------- */
.service-teaser__grid {
	display: grid;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.service-card {
	background: var(--paper);
	padding: clamp(1.75rem, 3vw, 2.75rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: background 0.3s var(--ease);
}
.service-card:hover {
	background: var(--cream);
}
.service-card .index-num {
	font-size: 1.5rem;
}
.service-card h3 {
	font-size: 1.375rem;
}
.service-card p {
	font-size: 0.9375rem;
	color: var(--gray);
}

@media (min-width: 780px) {
	.service-teaser__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Blog teaser ---------- */
.blog-teaser__grid {
	display: grid;
	gap: 3rem 2rem;
	grid-template-columns: 1fr;
}
.blog-teaser__grid > .post-card:nth-child(2) {
	transition-delay: 0.1s;
}
.blog-teaser__grid > .post-card:nth-child(3) {
	transition-delay: 0.2s;
}

@media (min-width: 780px) {
	.blog-teaser__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}
