/* Hero — dark overlay (#221a09) with the photo at 56% opacity, 16px radius.
   Headline centred near the top third; quick-link cards anchored to the bottom. */

.hero {
	position: relative;
	background: var(--bida-dark);            /* Overlay #221a09 */
	overflow: hidden;
	isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: translate3d(100%, 0, 0);
	transition: transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.hero__slide.is-active {
	z-index: 2;
	opacity: 0.56;                            /* Figma: Hero Image opacity 56% */
	transform: translate3d(0, 0, 0);
}
.hero__slide.is-leaving {
	z-index: 1;
	opacity: 0.56;
	transform: translate3d(-100%, 0, 0);
}
.hero__slide.is-preparing {
	z-index: 3;
	opacity: 0.56;
	transform: translate3d(100%, 0, 0);
	transition: none;
}
/* Light base behind the quick-link row (Figma "Background" strip). */
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 180px;
	z-index: 1;
	background: linear-gradient(to top, rgba(245, 245, 246, 0.85), rgba(245, 245, 246, 0));
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 768px;
	padding-block: 260px 38px;                /* headline ~260px from top; cards 38px from bottom */
}

/* ---- Headline + CTA ---- */
.hero__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-8);                      /* 32px */
	text-align: center;
	max-width: 770px;
}
.hero__title {
	font-size: 72px;
	line-height: 80px;
	letter-spacing: -2.88px;
	font-weight: var(--fw-medium);
	color: rgba(255, 255, 255, 0.64);         /* faded lead */
	text-wrap: balance;
}
.hero__title-strong {
	color: var(--white);
	font-weight: var(--fw-semibold);
}
.hero__cta { font-size: var(--fs-body); padding: 8px 24px; }

/* ---- Quick-link cards ---- */
.hero__links {
	display: flex;
	gap: 20px;
	margin-top: auto;
	width: 100%;
	max-width: 1130px;
	justify-content: center;
}
.hero__links > li { flex: 1 1 0; min-width: 0; }

.quicklink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	width: 100%;
	padding: 14px;
	border: 1px solid var(--neutral-100);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--bida-blue);
	transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.quicklink:hover {
	background: var(--white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}
.quicklink__dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	background: var(--bida-green);
}
.quicklink__label {
	flex: 1 1 auto;
	margin-inline-start: 5px;                 /* 12px gap icon→text minus dot offset */
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	letter-spacing: -0.16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.quicklink__icon { flex: none; width: 14px; height: 14px; color: var(--neutral-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero__inner { min-height: 620px; padding-block: 180px 32px; }
	.hero__title { font-size: 56px; line-height: 62px; letter-spacing: -2px; }
	.hero__links { flex-wrap: wrap; max-width: 760px; }
	.hero__links > li { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 640px) {
	/* Keep the complete hero composition in the first mobile viewport: the
	   heading, CTA and all four service shortcuts share one full-height slide. */
	.hero,
	.hero__inner {
		min-height: 100vh;
		min-height: 100dvh;
	}
	.hero__inner {
		padding-block: 120px 24px;
		padding-block: clamp(104px, 18svh, 140px) clamp(20px, 4svh, 28px);
		justify-content: center;
	}
	.hero__text { gap: 20px; gap: clamp(16px, 4svh, var(--space-8)); }
	.hero__title { font-size: 40px; line-height: 46px; letter-spacing: -1.2px; }
	.hero__links {
		gap: 12px;
		gap: clamp(10px, 2svh, 16px);
		margin-top: 24px;
		margin-top: clamp(24px, 4svh, 32px);
	}
	.hero__links > li { flex: 1 1 100%; }
	.quicklink { padding-block: 11px; padding-block: clamp(10px, 1.8svh, 14px); }
}
@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition: none; }
}
