/* Homepage marketing sections — loaded only on the front page (see functions.php). */

/* Let the landing breathe: Astra’s .ast-container often adds side padding/max-width. */
body.home .site-content .ast-container,
body.home .site-content #primary.content-area.primary {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	float: none;
}

body.home .site-content #main.site-main.es-front {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	/* Space below the header promo (“yellow tape”) — set on .es-front via custom property. */
	padding-top: var(--es-front-announcement-offset);
	float: none;
}

.es-front {
	/* Keeps the landing content clear of the yellow promo strip without creating a big gap. */
	--es-front-announcement-offset: clamp(88px, 10vw, 144px);
	background: #fff;
	color: #111;
	overflow: hidden;
}

.es-front *,
.es-front *::before,
.es-front *::after {
	box-sizing: border-box;
}

.es-front__inner {
	width: min(100% - 32px, 1360px);
	margin: 0 auto;
}

.es-front-kicker {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8b795f;
}

.es-front h1,
.es-front h2,
.es-front h3,
.es-front p {
	margin-top: 0;
}

.es-front h1 {
	max-width: 740px;
	margin-bottom: 18px;
	font-size: clamp(42px, 6vw, 86px);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.es-front h2 {
	margin-bottom: 14px;
	font-size: clamp(30px, 4vw, 56px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.es-front a {
	color: inherit;
	text-decoration: none;
}

.es-front-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.es-front-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.es-front-btn--dark {
	background: #111 !important;
	color: #fff !important;
	border-color: #111 !important;
}

.es-front-btn--light {
	background: #f4ff1b !important;
	color: #111 !important;
	border-color: #f4ff1b !important;
}

.es-front-btn--yellow {
	background: #fff !important;
	color: #111 !important;
	border-color: rgba(255, 255, 255, 0.86) !important;
}

.es-front-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.es-front-hero {
	position: relative;
	min-height: clamp(560px, 74vh, 760px);
	display: flex;
	align-items: stretch;
	background: #f5f0e8;
	isolation: isolate;
}

.es-front-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 43%;
	z-index: -2;
	background-image: linear-gradient(90deg, rgba(245, 240, 232, 0.8), rgba(245, 240, 232, 0.05)), var(--es-front-hero-image);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.es-front-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at 78% 42%, rgba(0, 0, 0, 0.18), transparent 30%);
	pointer-events: none;
}

.es-front-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding: clamp(56px, 8vw, 104px) 0;
}

.es-front-hero__text {
	max-width: 520px;
	margin-bottom: 28px;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.7;
	color: #4d4a44;
}

.es-front-hero__panel {
	position: relative;
	min-height: 420px;
	align-self: stretch;
	border-radius: 28px;
	background: linear-gradient(145deg, rgba(17, 17, 17, 0.16), rgba(255, 255, 255, 0.2));
	border: 1px solid rgba(255, 255, 255, 0.32);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	overflow: hidden;
}

.es-front-hero__panel::before {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.es-front-hero__badge {
	position: absolute;
	top: 34px;
	left: 34px;
	z-index: 2;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f4ff1b;
	color: #111;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.es-front-hero__card {
	position: absolute;
	right: 34px;
	bottom: 34px;
	z-index: 2;
	width: min(230px, calc(100% - 68px));
	padding: 18px;
	border-radius: 18px;
	background: rgba(10, 10, 10, 0.82);
	color: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.es-front-hero__card--yellow {
	right: auto;
	left: 34px;
	bottom: 132px;
	background: #f4ff1b;
	color: #111;
}

.es-front-hero__card span {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	color: currentColor;
	opacity: 0.75;
}

.es-front-hero__card strong {
	display: block;
	font-size: 22px;
	line-height: 1.05;
}

.es-front-benefits {
	border-bottom: 1px solid #ededed;
	background: #fff;
}

.es-front-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	padding: 24px 0;
}

.es-front-benefits__grid div {
	padding: 0 22px;
	border-left: 1px solid #ededed;
}

.es-front-benefits__grid div:first-child {
	border-left: 0;
}

.es-front-benefits strong,
.es-front-benefits span {
	display: block;
}

.es-front-benefits strong {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.es-front-benefits span {
	font-size: 13px;
	color: #777;
}

.es-front-section {
	padding: clamp(58px, 8vw, 108px) 0;
}

.es-front-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.es-front-heading h2 {
	max-width: 720px;
	margin-bottom: 0;
}

.es-front-heading > a {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 2px solid #111;
}

.es-front-heading--center {
	display: block;
	text-align: center;
}

.es-front-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.es-front-category-card {
	min-height: 320px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 22px;
	border-radius: 20px;
	overflow: hidden;
	background: #111;
	color: #fff !important;
	isolation: isolate;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.es-front-category-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--es-front-card-image);
	background-position: center;
	background-size: cover;
	opacity: 0.72;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.es-front-category-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.8) 76%, rgba(0, 0, 0, 0.92) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.es-front-category-card:hover::before {
	transform: scale(1.04);
	opacity: 0.7;
}

.es-front-category-card--accent {
	background: #f4ff1b;
	color: #111 !important;
}

.es-front-category-card--accent::after {
	background:
		linear-gradient(180deg, rgba(244, 255, 27, 0.08), rgba(244, 255, 27, 0.92)),
		linear-gradient(90deg, rgba(244, 255, 27, 0.86), rgba(244, 255, 27, 0.3));
}

.es-front-category-card span {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.es-front-category-card strong {
	max-width: 260px;
	font-size: 24px;
	line-height: 1.05;
	color: currentColor;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.es-front-category-card--accent strong {
	text-shadow: none;
}

.es-front-products {
	background: #fafafa;
}

.es-front-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.es-front-product-card {
	overflow: hidden;
	border: 1px solid #ececec;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

.es-front-product-card__image {
	display: block;
	aspect-ratio: 1 / 1.08;
	overflow: hidden;
	background: #eee;
}

.es-front-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.es-front-product-card:hover .es-front-product-card__image img {
	transform: scale(1.035);
}

.es-front-product-card__body {
	padding: 16px 16px 18px;
	text-align: center;
}

.es-front-product-card__body p {
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.es-front-product-card__body h3 {
	min-height: 42px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 900;
}

.es-front-product-card__price {
	font-size: 14px;
	font-weight: 900;
}

.es-front-center {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}

.es-front-personalization {
	background:
		radial-gradient(circle at 78% 20%, rgba(244, 255, 27, 0.16), transparent 28%),
		linear-gradient(135deg, #070707 0%, #161616 58%, #222 100%);
	color: #fff;
}

.es-front-personalization .es-front-kicker {
	color: #f4ff1b;
}

.es-front-personalization__grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 74px);
	align-items: center;
}

.es-front-personalization__copy p:not(.es-front-kicker) {
	max-width: 520px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.7;
}

.es-front-service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.es-front-service-card {
	position: relative;
	min-height: 250px;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 18px;
	overflow: hidden;
	background: #1b1b1b;
	isolation: isolate;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.es-front-service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--es-front-service-image);
	background-size: cover;
	background-position: center;
	opacity: 0.36;
}

.es-front-service-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.88)),
		linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

.es-front-service-card span {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #f4ff1b;
	color: #111;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.es-front-service-card p {
	max-width: 280px;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 14px;
	line-height: 1.5;
}

.es-front-quote {
	padding: clamp(48px, 7vw, 92px) 0;
	background: #fff;
}

.es-front-quote__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(26px, 4vw, 52px);
	border-radius: 24px;
	background: #111;
	color: #fff;
}

.es-front-quote__panel .es-front-kicker {
	color: #f4ff1b;
}

.es-front-quote__panel h2 {
	max-width: 760px;
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.es-front {
		--es-front-announcement-offset: clamp(12px, 2.5vw, 24px);
	}

	.es-front-hero__grid,
	.es-front-personalization__grid {
		grid-template-columns: 1fr;
	}

	.es-front-hero::before {
		inset: 38% 0 0;
		opacity: 0.7;
	}

	.es-front-hero__panel {
		min-height: 360px;
	}

	.es-front-benefits__grid,
	.es-front-category-grid,
	.es-front-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.home .site-content #main.site-main.es-front {
		padding-top: 0;
	}

	.es-front {
		--es-front-announcement-offset: 0px;
	}

	.es-front__inner {
		width: min(100% - 24px, 1360px);
	}

	.es-front h1 {
		margin-bottom: 14px;
		font-size: clamp(34px, 10.5vw, 46px);
		line-height: 0.98;
		letter-spacing: -0.045em;
	}

	.es-front h2 {
		font-size: clamp(26px, 8.5vw, 36px);
		line-height: 1.05;
		letter-spacing: -0.035em;
	}

	.es-front-kicker {
		margin-bottom: 9px;
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	.es-front-hero {
		min-height: auto;
		background: linear-gradient(180deg, #f5f0e8 0%, #fff 100%);
		overflow: hidden;
	}

	.es-front-hero::before {
		inset: 0;
		opacity: 0.18;
		background-position: center top;
	}

	.es-front-hero__grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 34px 0 28px;
	}

	.es-front-hero__copy {
		width: 100%;
		padding: 22px 0 0;
	}

	.es-front-hero__text {
		margin-bottom: 22px;
		font-size: 15px;
		line-height: 1.55;
	}

	.es-front-hero__panel {
		width: 100%;
		min-height: auto;
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 14px;
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.72);
		border-color: rgba(255, 255, 255, 0.72);
		box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
		backdrop-filter: blur(8px);
	}

	.es-front-hero__panel::before {
		content: none;
	}

	.es-front-hero__badge,
	.es-front-hero__card,
	.es-front-hero__card--yellow {
		position: static;
		width: 100%;
	}

	.es-front-hero__badge {
		justify-self: start;
	}

	.es-front-hero__card {
		border-radius: 16px;
		box-shadow: none;
	}

	.es-front-hero__card strong {
		font-size: 18px;
	}

	.es-front-actions,
	.es-front-actions .es-front-btn {
		width: 100%;
	}

	.es-front-actions {
		gap: 10px;
	}

	.es-front-btn {
		min-height: 46px;
		padding: 0 18px;
		font-size: 11px;
	}

	.es-front-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 10px 0;
	}

	.es-front-category-grid,
	.es-front-product-grid,
	.es-front-service-grid {
		grid-template-columns: 1fr;
	}

	.es-front-benefits__grid div {
		padding: 14px 10px;
		border-left: 0;
		border-top: 1px solid #ededed;
	}

	.es-front-benefits__grid div:first-child,
	.es-front-benefits__grid div:nth-child(2) {
		border-top: 0;
	}

	.es-front-benefits strong {
		font-size: 10px;
	}

	.es-front-benefits span {
		font-size: 12px;
		line-height: 1.35;
	}

	.es-front-section {
		padding: 46px 0;
	}

	.es-front-heading {
		display: block;
		margin-bottom: 22px;
	}

	.es-front-heading > a {
		display: inline-flex;
		margin-top: 14px;
	}

	.es-front-category-card,
	.es-front-service-card {
		min-height: 250px;
		border-radius: 18px;
	}

	.es-front-category-card strong {
		font-size: 22px;
	}

	.es-front-product-card {
		border-radius: 16px;
	}

	.es-front-product-card__image {
		aspect-ratio: 1 / 0.92;
	}

	.es-front-personalization__copy {
		text-align: left;
	}

	.es-front-personalization__copy p:not(.es-front-kicker) {
		font-size: 15px;
		line-height: 1.6;
	}

	.es-front-quote__panel {
		display: block;
		border-radius: 18px;
	}

	.es-front-quote__panel .es-front-btn {
		width: 100%;
		margin-top: 22px;
	}
}