/* Homepage — Home Plus */

.home-page {
	--hp-blue-light: #88A4CC;
	--hp-blue-mid: #203E7A;
	--hp-blue-dark: #031749;
	--hp-red: #EB0928;
	color: var(--hp-blue-dark);
}

/* Header over light hero */
.home .site-header,
.front-page .site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	width: 100%;
	background: transparent !important;
	box-shadow: none;
}

/* —— Hero —— */
.home-hero {
	position: relative;
	min-height: clamp(520px, 78vh, 720px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(105deg, #f7f9fc 0%, #d7e4f4 42%, #6e93c4 100%);
	color: var(--hp-blue-dark);
}

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.home-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(3, 23, 73, 0.55) 0%, rgba(3, 23, 73, 0.12) 18%, transparent 34%),
		linear-gradient(90deg, rgba(247, 249, 252, 0.92) 0%, rgba(247, 249, 252, 0.72) 34%, rgba(247, 249, 252, 0.12) 58%, transparent 72%);
}

.home-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 560px;
	padding: 7.5rem 1.5rem 4.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: left;
	margin-left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
	margin-right: auto;
}

.home-hero__brand {
	display: block;
	color: var(--hp-red);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	font-weight: 800;
	margin-bottom: 0.85rem;
}

.home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.85rem, 4vw, 2.85rem);
	font-weight: 800;
	line-height: 1.45;
	color: var(--hp-blue-dark);
	max-width: none;
}

.home-hero__lead {
	margin: 0 0 1.75rem;
	font-size: clamp(0.95rem, 1.5vw, 1.08rem);
	font-weight: 400;
	line-height: 1.9;
	color: rgba(3, 23, 73, 0.88);
	max-width: 28rem;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.home-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.78rem 1.45rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.home-hero__btn--primary {
	background: var(--hp-red);
	color: #fff;
}

.home-hero__btn--ghost {
	background: transparent;
	color: var(--hp-blue-dark);
	border: 1.5px solid var(--hp-blue-dark);
}

.home-hero__btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.home-hero__btn span {
	display: inline-block;
	font-size: 1.1em;
	line-height: 1;
}

/* —— Products —— */
.home-products {
	padding: 3.5rem 1.5rem 2.5rem;
	background-color: #7E9FC7;
	background: #7E9FC7;
}

.home-products__title {
	margin: 0 0 2rem;
	text-align: center;
	font-size: clamp(1.45rem, 3vw, 1.9rem);
	font-weight: 800;
	color: var(--hp-blue-dark);
}

.home-products__grid {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.home-product-card {
	position: relative;
	display: flex;
	border-radius: 18px;
	overflow: hidden;
	min-height: 220px;
	box-shadow: 0 10px 28px rgba(3, 23, 73, 0.16);
	background-color: var(--hp-blue-mid);
	background-image: var(--card-bg);
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
}

.home-product-card::before {
	content: none;
}

.home-product-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	flex: 1;
	width: 100%;
	max-width: 55%;
	min-height: inherit;
	padding: 1.6rem 1.4rem;
	margin-left: 0;
	margin-right: auto;
	color: #fff;
	direction: ltr;
	text-align: left;
}

.home-product-card__title {
	margin: 0 0 0.55rem;
	width: 100%;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	font-weight: 800;
	line-height: 1.4;
	text-align: left;
}

.home-product-card__desc {
	margin: 0 0 1.1rem;
	width: 100%;
	font-size: 0.86rem;
	font-weight: 400;
	line-height: 1.75;
	opacity: 0.95;
	text-align: left;
}

.home-product-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.35rem;
	margin-top: auto;
	padding: 0.28rem 1.1rem;
	border-radius: 8px;
	background: transparent;
	border: 1px solid #fff;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-product-card__link:hover {
	background: transparent;
	border-color: #fff;
	color: #fff;
	opacity: 0.85;
	transform: translateY(-1px);
}

/* —— Features bar —— */
.home-features {
	padding: 0 1.5rem 2.75rem;
	background: #fff;
}

.home-features__inner {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-features__item {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.35rem 1.25rem;
	text-align: center;
}

.home-features__item + .home-features__item {
	border-inline-start: 1px solid rgba(3, 23, 73, 0.1);
}

.home-features__icon {
	flex-shrink: 0;
	display: inline-flex;
	color: var(--hp-blue-mid);
}

.home-features__copy strong {
	display: block;
	font-size: 1.18rem;
	font-weight: 900;
	-webkit-text-stroke: 0.35px currentColor;
	color: var(--hp-blue-dark);
	margin-bottom: 0.25rem;
}

.home-features__copy p {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.7;
	color: rgba(3, 23, 73, 0.78);
}

/* —— Care / origami banner —— */
.home-care {
	position: relative;
	padding: 0 1.5rem 2.75rem;
}

.home-care__media {
	max-width: 1240px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	min-height: 220px;
	background: var(--hp-blue-dark);
}

.home-care__media img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	object-position: right center;
}

.home-care__content {
	position: absolute;
	inset: 0 1.5rem;
	max-width: 1240px;
	width: calc(100% - 3rem);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	direction: ltr;
	padding: 2rem 2.5rem;
	pointer-events: none;
	box-sizing: border-box;
}

.home-care__text {
	margin: 0;
	max-width: 30rem;
	width: 100%;
	font-size: clamp(1.2rem, 2.6vw, 1.75rem);
	line-height: 1.65;
	color: #fff;
	direction: rtl;
	text-align: justify;
	text-justify: inter-word;
}

.home-care__line {
	display: block;
	width: 100%;
	text-align: justify;
	text-justify: inter-word;
}

.home-care__line--lead {
	font-weight: 900;
	-webkit-text-stroke: 0.35px currentColor;
}

.home-care__line--sub {
	font-weight: 200;
	font-size: 0.78em;
}

.home-care__brand {
	color: var(--hp-red);
}

/* —— Story —— */
.home-story {
	position: relative;
	min-height: clamp(380px, 52vh, 520px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--hp-blue-dark);
	color: #fff;
	margin-bottom: 0;
}

.home-story__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.home-story__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 540px;
	padding: 3.5rem 1.5rem;
	margin-left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
	margin-right: auto;
	text-align: left;
}

.home-story__title {
	margin: 0 0 1rem;
	font-size: clamp(1.55rem, 3.2vw, 2.35rem);
	font-weight: 800;
	line-height: 1.5;
}

.home-story__lead {
	margin: 0 0 1.6rem;
	font-size: clamp(0.92rem, 1.4vw, 1.05rem);
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.92);
	max-width: 30rem;
}

.home-story__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.52rem 1.4rem;
	border-radius: 8px;
	background: var(--hp-red);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.home-story__btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

/* —— Articles —— */
.home-articles {
	padding: 2.5rem 1.5rem 3.5rem;
	background: var(--hp-blue-light);
}

.home-articles__title {
	margin: 0 0 2rem;
	text-align: center;
	font-size: clamp(1.45rem, 3vw, 1.9rem);
	font-weight: 800;
	color: var(--hp-blue-dark);
}

.home-articles__grid {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
	align-items: stretch;
}

.home-article-card {
	border-radius: 14px;
	overflow: hidden;
	background: #164782;
	border: none;
	box-shadow: 0 4px 18px rgba(3, 23, 73, 0.12);
	display: flex;
	flex-direction: row;
	direction: ltr;
	align-items: stretch;
	min-height: 168px;
	padding: 0.7rem;
	gap: 0.7rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-article-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(3, 23, 73, 0.2);
}

.home-article-card__media {
	display: block;
	flex: 0 0 42%;
	width: 42%;
	max-width: 180px;
	align-self: stretch;
	overflow: hidden;
	border-radius: 10px;
	background: #0f355f;
}

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

.home-article-card__body {
	padding: 0.35rem 0.45rem 0.2rem 0.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
	direction: rtl;
	text-align: right;
	color: #fff;
}

.home-article-card__title {
	margin: 0;
	font-size: clamp(0.88rem, 1.1vw, 1.02rem);
	font-weight: 800;
	line-height: 1.45;
	color: #fff;
}

.home-article-card__title a {
	color: inherit;
}

.home-article-card__excerpt {
	margin: 0;
	font-size: clamp(0.72rem, 0.9vw, 0.82rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.8);
}

.home-article-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: #fff;
	font-weight: 700;
}

.home-article-card__more:hover {
	color: #fff;
	opacity: 0.85;
}

/* Homepage newsletter — single-line copy like UI */
.home .newsletter__text p,
.front-page .newsletter__text p {
	display: none;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
	.home-hero__brand,
	.home-hero__title,
	.home-hero__lead,
	.home-hero__actions {
		animation: hp-home-fade-up 0.75s ease both;
	}

	.home-hero__title { animation-delay: 0.08s; }
	.home-hero__lead { animation-delay: 0.16s; }
	.home-hero__actions { animation-delay: 0.24s; }

	.home-product-card {
		animation: hp-home-fade-up 0.7s ease both;
	}

	.home-product-card:nth-child(2) { animation-delay: 0.08s; }
	.home-product-card:nth-child(3) { animation-delay: 0.16s; }
}

@keyframes hp-home-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— Responsive —— */
@media (max-width: 1024px) {
	.home-products__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.home-articles__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.home-article-card__media {
		flex: 0 0 160px;
		width: 160px;
		max-width: 160px;
	}

	.home-product-card {
		min-height: 200px;
	}

	.home-features__inner {
		grid-template-columns: 1fr;
	}

	.home-features__item + .home-features__item {
		border-inline-start: 0;
		border-top: 1px solid rgba(3, 23, 73, 0.1);
	}

	.home-care__content {
		padding: 1.5rem;
	}

	.home-story__content {
		max-width: 480px;
	}
}

@media (max-width: 768px) {
	.home-hero {
		min-height: 560px;
		align-items: flex-end;
	}

	.home-hero__media img {
		object-position: 80% center;
	}

	.home-hero__veil {
		background:
			linear-gradient(180deg, rgba(3, 23, 73, 0.5) 0%, rgba(3, 23, 73, 0.1) 16%, transparent 28%),
			linear-gradient(180deg, transparent 35%, rgba(247, 249, 252, 0.88) 68%, rgba(247, 249, 252, 0.96) 100%);
	}

	.home-hero__content {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding: 6.5rem 1.25rem 2.5rem;
	}

	.home-hero__title {
		max-width: none;
	}

	.home-product-card__body {
		max-width: 70%;
	}

	.home-story {
		min-height: 420px;
		align-items: flex-end;
	}

	.home-story__media img {
		object-position: 85% center;
	}

	.home-story__content {
		max-width: none;
		margin: 0;
		padding: 2.5rem 1.25rem;
		background: linear-gradient(180deg, transparent, rgba(3, 23, 73, 0.88) 35%);
	}

	.home-care__text {
		max-width: 90%;
		font-size: 1.15rem;
	}
}

@media (max-width: 560px) {
	.home-hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.home-hero__btn {
		justify-content: center;
	}

	.home-product-card__body {
		max-width: 75%;
		padding: 1.25rem 1.1rem;
	}

	.home-article-card {
		min-height: 140px;
	}

	.home-article-card__media {
		flex-basis: 120px;
		width: 120px;
	}

	.home-article-card__body {
		padding: 0.9rem 1rem 1rem;
	}
}
