/* AMPRA Homepage — polished industrial premium */

/* —— Shared section rhythm —— */
.home-categories,
.home-featured,
.process-section,
.why-section,
.trust-section {
	padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

/* Clear space after hanging hero strip */
.home-categories {
	padding-top: clamp(1.25rem, 3vw, 2rem);
}

.home-featured {
	padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.ampra-section__head--center {
	justify-content: center;
	text-align: center;
}

.ampra-section__head--center .ampra-section__desc {
	margin-inline: auto;
}

/* —— Hero —— */
.hero {
	position: relative;
	padding: 0;
	/* Room for the benefit strip that hangs below the stage */
	padding-bottom: clamp(4.75rem, 8vw, 5.75rem);
	overflow: visible;
	background: var(--ampra-bg);
}

.hero__stage {
	position: relative;
	min-height: min(72vh, 600px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: visible;
	background: var(--ampra-navy-950);
	isolation: isolate;
}

.hero__stage > .ampra-container:not(.hero__strip-wrap) {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, var(--ampra-max));
	flex: 1 1 auto;
	display: flex;
	align-items: center;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center left;
	transform: scale(1.02);
	filter: saturate(1.05) contrast(1.02);
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* Mobile-first: darken lower/mid so white product photos don't wash out text */
	background:
		linear-gradient(to top, rgb(10 22 40 / 0.88) 0%, rgb(10 22 40 / 0.58) 38%, rgb(10 22 40 / 0.28) 62%, rgb(10 22 40 / 0.08) 82%, transparent 100%);
}

.hero__content {
	position: relative;
	z-index: 1;
	padding-block: clamp(3.25rem, 8vw, 5.25rem) clamp(2rem, 4vw, 3rem);
	max-width: 38rem;
	width: 100%;
	margin-inline: 0 auto; /* pin to inline-start (right in RTL) */
}

/* Desktop-only local scrim — avoids crushing the photo on small screens */
.hero__content::before {
	content: none;
}

.hero__brand {
	display: inline-block;
	margin: 0 0 1rem;
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	font-weight: 900;
	letter-spacing: 0.1em;
	color: #ff6b00;
	line-height: 1;
	text-shadow: 0 2px 18px rgb(10 22 40 / 0.35);
}

.hero__title {
	margin: 0 0 1.15rem;
	font-size: clamp(1.95rem, 4.4vw, 3.05rem);
	line-height: 1.26;
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.03em;
	max-width: 15ch;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgb(10 22 40 / 0.45);
}

.hero__lead {
	margin: 0 0 1.75rem;
	color: rgb(241 245 249 / 0.94);
	font-size: clamp(1.02rem, 1.55vw, 1.12rem);
	line-height: 1.85;
	max-width: 32rem;
	text-shadow: 0 1px 12px rgb(10 22 40 / 0.35);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.hero__actions .ampra-btn--primary {
	min-height: 3.15rem;
	padding-inline: 1.45rem;
	font-weight: 800;
	box-shadow: 0 10px 28px rgb(255 107 0 / 0.38);
}

.hero__actions .ampra-btn--primary:hover {
	box-shadow: 0 12px 32px rgb(255 107 0 / 0.48);
}

.hero__btn-ghost {
	min-height: 3.15rem;
	padding-inline: 1.35rem;
	background: rgb(255 255 255 / 0.12) !important;
	border-color: rgb(255 255 255 / 0.55) !important;
	color: #fff !important;
	font-weight: 800;
	backdrop-filter: blur(6px);
}

.hero__btn-ghost:hover {
	background: #fff !important;
	color: var(--ampra-navy-900) !important;
	border-color: #fff !important;
}

/* —— Benefit strip hanging cleanly from hero stage —— */
.hero__strip-wrap {
	position: relative;
	z-index: 3;
	width: min(100% - 2rem, var(--ampra-max));
	margin-inline: auto;
	/* Hang half the strip below the dark stage */
	transform: translateY(50%);
	margin-top: auto;
	padding-block: 0;
}

.hero__strip {
	list-style: none;
	margin: 0;
	padding: 0.35rem;
	display: grid;
	gap: 0;
	background: #fff;
	border: 1px solid rgb(226 232 240 / 0.95);
	border-radius: 20px;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.04),
		0 16px 40px rgb(15 23 42 / 0.12);
	overflow: hidden;
}

.hero__strip-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.05rem 1.15rem;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	min-width: 0;
	transition: background var(--ampra-ease);
}

.hero__strip-item + .hero__strip-item {
	border-top: 1px solid var(--ampra-border);
}

.hero__strip-item:hover {
	background: rgb(255 107 0 / 0.04);
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

.hero__strip-item:nth-child(1) .hero__strip-icon {
	background: var(--ampra-accent-soft);
	color: var(--ampra-accent);
}

.hero__strip-item:nth-child(2) .hero__strip-icon {
	background: #eef2ff;
	color: #334155;
}

.hero__strip-item:nth-child(3) .hero__strip-icon {
	background: #ecfdf3;
	color: #15803d;
}

.hero__strip-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 13px;
	flex: 0 0 2.65rem;
	line-height: 0;
	box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.04);
}

.hero__strip-icon svg {
	display: block;
	width: 1.3rem;
	height: 1.3rem;
	margin: 0;
	flex-shrink: 0;
}

.hero__strip-copy {
	min-width: 0;
	flex: 1 1 auto;
	text-align: start;
}

.hero__strip-copy strong {
	display: block;
	color: var(--ampra-navy-900);
	font-size: 0.96rem;
	margin-bottom: 0.2rem;
	font-weight: 800;
	line-height: 1.35;
}

.hero__strip-copy span {
	display: block;
	color: var(--ampra-muted);
	font-size: 0.82rem;
	line-height: 1.65;
	font-weight: 600;
}

/* —— Categories —— */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-card {
	position: relative;
	display: grid;
	grid-template-rows: 11rem auto;
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
	transition:
		transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
		border-color 220ms ease;
}

.cat-card:hover {
	transform: translateY(-4px);
	border-color: rgb(255 107 0 / 0.28);
	box-shadow:
		0 4px 10px rgb(15 23 42 / 0.05),
		0 18px 40px rgb(15 23 42 / 0.1);
	color: inherit;
}

.cat-card__media {
	display: block;
	height: 11rem;
	background: var(--ampra-bg-soft);
	overflow: hidden;
	position: relative;
}

.cat-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 40%;
	background: linear-gradient(to top, rgb(15 23 42 / 0.12), transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity 220ms ease;
}

.cat-card:hover .cat-card__media::after {
	opacity: 1;
}

.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card:hover .cat-card__media img {
	transform: scale(1.045);
}

.cat-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 1.1rem 1.2rem 1.2rem;
	background: #fff;
	border-top: 1px solid var(--ampra-border);
	min-height: 4.1rem;
}

.cat-card__title {
	font-size: 1.06rem;
	font-weight: 800;
	color: var(--ampra-navy-900);
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cat-card:hover .cat-card__title {
	color: var(--ampra-navy-950);
}

.cat-card__count {
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--ampra-navy-700);
	background: var(--ampra-bg);
	border: 1px solid var(--ampra-border-strong);
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.cat-card:hover .cat-card__count {
	background: var(--ampra-accent-soft);
	border-color: rgb(255 107 0 / 0.28);
	color: var(--ampra-accent);
}

.cat-card__arrow {
	display: none;
}

/* —— Process —— */
.process-section {
	background:
		radial-gradient(720px 280px at 100% 0%, rgb(255 107 0 / 0.05), transparent 55%),
		linear-gradient(180deg, #fff 0%, var(--ampra-bg) 100%);
}

.process-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	counter-reset: none;
}

.process-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 20px;
	padding: 1.4rem 1.25rem 1.35rem;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
	height: 100%;
}

.process-card__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	background: var(--ampra-navy-900);
	color: #fff;
	font-weight: 900;
	font-size: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 0 0 4px rgb(255 107 0 / 0.14);
	letter-spacing: 0;
}

.process-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--ampra-navy-900);
}

.process-card p {
	margin: 0;
	color: var(--ampra-muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

/* —— Why AMPRA —— */
.why-grid {
	display: grid;
	gap: 1rem;
}

.why-card {
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 20px;
	padding: 1.4rem 1.3rem 1.35rem;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
	transition:
		border-color var(--ampra-ease),
		transform var(--ampra-ease),
		box-shadow var(--ampra-ease);
	position: relative;
	overflow: hidden;
}

.why-card::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--ampra-accent), rgb(255 107 0 / 0.25));
	opacity: 0.85;
}

.why-card:hover {
	border-color: rgb(255 107 0 / 0.28);
	transform: translateY(-3px);
	box-shadow:
		0 4px 10px rgb(15 23 42 / 0.05),
		0 18px 36px rgb(15 23 42 / 0.09);
}

.why-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.85rem;
	border-radius: 14px;
	background: var(--ampra-accent-soft);
	color: var(--ampra-accent);
	margin-bottom: 1rem;
	box-shadow: inset 0 0 0 1px rgb(255 107 0 / 0.12);
}

.why-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--ampra-navy-900);
}

.why-card p {
	margin: 0;
	color: var(--ampra-muted);
	font-size: 0.92rem;
	line-height: 1.8;
}

/* —— Trust / closing CTA —— */
.trust-panel {
	display: grid;
	gap: 1.75rem;
	padding: clamp(1.6rem, 3.2vw, 2.35rem);
	border-radius: 24px;
	background:
		linear-gradient(145deg, #132033 0%, #0f172a 48%, #0a1628 100%);
	color: #e2e8f0;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.06),
		0 18px 40px rgb(15 23 42 / 0.14);
	border: 1px solid rgb(255 255 255 / 0.06);
	overflow: hidden;
	position: relative;
}

.trust-panel::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--ampra-accent), transparent);
	opacity: 0.9;
}

.trust-panel .ampra-section__eyebrow {
	color: #ff6b00;
	margin-bottom: 0.65rem;
}

.trust-panel h2 {
	margin: 0 0 0.7rem;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.02em;
	max-width: 18ch;
	line-height: 1.35;
}

.trust-panel__lead {
	margin: 0 0 1.35rem;
	color: rgb(226 232 240 / 0.82);
	line-height: 1.8;
	max-width: 34rem;
	font-size: 0.98rem;
}

.trust-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.trust-badges li {
	padding: 0;
	border: 0;
	background: transparent;
	border-inline-start: 2px solid rgb(255 107 0 / 0.55);
	padding-inline-start: 0.85rem;
}

.trust-badges strong {
	display: block;
	color: #fff;
	margin-bottom: 0.15rem;
	font-size: 0.95rem;
}

.trust-badges span {
	color: rgb(203 213 225 / 0.78);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.5;
}

.trust-panel__aside {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.trust-contact {
	padding: 0;
	border: 0;
	background: transparent;
}

.trust-contact h3 {
	margin: 0 0 0.65rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
}

.trust-contact p {
	margin: 0 0 0.4rem;
	font-weight: 700;
	font-size: 0.95rem;
}

.trust-contact a {
	color: rgb(241 245 249 / 0.92);
	text-decoration: none;
}

.trust-contact a:hover {
	color: #ffd7b8;
}

.trust-panel__actions {
	display: grid;
	gap: 0.65rem;
	margin-top: 0.35rem;
	padding-top: 1rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.trust-panel__ghost {
	background: transparent !important;
	border-color: rgb(255 255 255 / 0.28) !important;
	color: #fff !important;
}

.trust-panel__ghost:hover {
	background: rgb(255 255 255 / 0.08) !important;
	color: #fff !important;
}

/* Footer extras (loaded with home) */
.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.site-footer__social a {
	font-size: 0.86rem;
	font-weight: 700;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgb(255 255 255 / 0.18);
	background: rgb(255 255 255 / 0.04);
}

.site-footer__legal {
	margin-inline-start: auto;
}

.site-footer__legal a {
	opacity: 0.85;
}

/* —— Responsive —— */
@media (min-width: 640px) {
	.hero {
		padding-bottom: clamp(3.75rem, 6vw, 4.75rem);
	}

	.hero__strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		padding: 0.4rem;
	}

	.hero__strip-item {
		padding: 1.15rem 1.2rem;
	}

	.hero__strip-item + .hero__strip-item {
		border-top: 0;
		border-inline-start: 1px solid var(--ampra-border);
	}

	.cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trust-badges {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	.trust-badges li {
		border-inline-start: 0;
		padding-inline-start: 0;
		padding-top: 0.65rem;
		border-top: 2px solid rgb(255 107 0 / 0.45);
	}
}

@media (min-width: 900px) {
	.hero__stage {
		min-height: min(78vh, 660px);
	}

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

	.hero__content {
		max-width: 40rem;
		padding-inline-end: 0.5rem;
	}

	.hero__shade {
		background:
			linear-gradient(
				to left,
				rgb(10 22 40 / 0.78) 0%,
				rgb(10 22 40 / 0.52) 32%,
				rgb(10 22 40 / 0.2) 55%,
				rgb(10 22 40 / 0.06) 74%,
				transparent 100%
			),
			linear-gradient(to top, rgb(10 22 40 / 0.22) 0%, transparent 45%);
	}

	.hero__content::before {
		content: "";
		position: absolute;
		z-index: -1;
		inset-block: 0.5rem 0.25rem;
		inset-inline: -1rem 0.25rem;
		border-radius: 24px;
		pointer-events: none;
		background:
			radial-gradient(120% 90% at 100% 42%, rgb(10 22 40 / 0.48) 0%, rgb(10 22 40 / 0.18) 55%, transparent 76%);
	}

	.cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.2rem;
	}

	.process-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.35rem;
	}

	/* RTL flow: connector + chevron toward the next step (left) */
	.process-card:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 2.45rem;
		left: -0.95rem;
		width: 1.55rem;
		height: 2px;
		background: linear-gradient(to left, rgb(255 107 0 / 0.15), var(--ampra-accent));
		z-index: 1;
	}

	.process-card:not(:last-child)::before {
		content: "";
		position: absolute;
		top: 2.25rem;
		left: -0.55rem;
		width: 0.55rem;
		height: 0.55rem;
		border-top: 2px solid var(--ampra-accent);
		border-left: 2px solid var(--ampra-accent);
		transform: rotate(-45deg);
		z-index: 2;
		opacity: 0.9;
	}

	.why-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.1rem;
	}

	.trust-panel {
		grid-template-columns: 1.45fr 0.85fr;
		align-items: start;
		gap: 2.5rem;
		padding: 2.25rem 2.4rem;
	}

	.trust-panel__aside {
		padding-inline-start: 1.75rem;
		border-inline-start: 1px solid rgb(255 255 255 / 0.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat-card,
	.why-card,
	.hero__strip-item,
	.cat-card__media img,
	.cat-card__media::after {
		transition: none !important;
		transform: none !important;
	}
}
