/* ═══════════════════════════════════════════════════════════════
   Houngnibo – Hero widget
   ═══════════════════════════════════════════════════════════════ */

/* ---- Shared container ---- */
.hgb-wrap {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
	box-sizing: border-box;
}

/* ---- Root ---- */
.hgb-hero {
	position: relative;
	overflow: hidden;
	background-color: #321d08;
	color: #fdf9f0;
	display: flex;
	flex-direction: column;
}

/* ---- Background ---- */
.hgb-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: .4;
	mix-blend-mode: multiply;
}

.hgb-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ---- Gradient overlay ---- */
.hgb-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to right, #321d08 0%, rgba(50, 29, 8, .85) 55%, rgba(50, 29, 8, .3) 100%);
}

/* ---- Content area ---- */
.hgb-hero__content {
	position: relative;
	z-index: 2;
	padding-block: 8rem;
}

.hgb-hero__inner {
	max-width: 768px;
}

/* ---- Badge ---- */
.hgb-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .4rem .9rem;
	border: 1px solid rgba(255, 221, 178, .4);
	border-radius: 9999px;
	background: rgba(247, 243, 234, .1);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #ffddb2;
	margin-bottom: 1.5rem;
}

.hgb-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffddb2;
	flex-shrink: 0;
	animation: hgb-pulse 2s ease-in-out infinite;
}

@keyframes hgb-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .4; }
}

/* ---- Title ---- */
.hgb-hero__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.25;
	color: #fdf9f0;
	margin: 0 0 1.5rem;
}

.hgb-hero__title-main {
	display: block;
}

.hgb-hero__rotator {
	display: grid;
	grid-template-columns: 100%;
	position: relative;
	margin-top: .35rem;
}

.hgb-hero__accent {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 400;
	color: #ffddb2;
}

.hgb-hero__rotator .hgb-hero__accent {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	user-select: none;
	transform: translateY(8px);
	transition: opacity .6s cubic-bezier(.22, 1, .36, 1),
	            transform .6s cubic-bezier(.22, 1, .36, 1),
	            visibility .6s;
	pointer-events: none;
	will-change: opacity, transform;
}

.hgb-hero__rotator .hgb-hero__accent.is-active {
	opacity: 1;
	visibility: visible;
	user-select: auto;
	transform: translateY(0);
	pointer-events: auto;
	transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
	            transform .7s cubic-bezier(.22, 1, .36, 1),
	            visibility .7s;
}

.hgb-hero__rotator .hgb-hero__accent.is-leaving {
	opacity: 0;
	visibility: visible;
	user-select: none;
	transform: translateY(-6px);
	transition: opacity .45s cubic-bezier(.4, 0, 1, 1),
	            transform .45s cubic-bezier(.4, 0, 1, 1);
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.hgb-hero__rotator .hgb-hero__accent,
	.hgb-hero__rotator .hgb-hero__accent.is-active,
	.hgb-hero__rotator .hgb-hero__accent.is-leaving {
		transform: none !important;
		transition: opacity .3s ease !important;
	}
}

/* ---- Body text ---- */
.hgb-hero__text {
	font-size: 1.125rem;
	line-height: 1.625;
	color: rgba(247, 243, 234, .95);
	max-width: 640px;
	margin: 0 0 2.5rem;
}

/* ---- Actions ---- */
.hgb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hgb-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
	padding: 1rem 2rem;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	cursor: pointer;
}

.hgb-hero__btn--primary {
	background-color: #825500;
	color: #321d08;
}

.hgb-hero__btn--primary:hover {
	background-color: #ffddb2;
}

.hgb-hero__btn--ghost {
	background: transparent;
	border-color: rgba(255, 221, 178, .6);
	color: #fdf9f0;
}

.hgb-hero__btn--ghost:hover {
	background: rgba(253, 249, 240, .1);
}

.hgb-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* ---- Pillars strip ---- */
.hgb-hero__pillars {
	position: relative;
	z-index: 2;
	background-color: rgba(50, 29, 8, .95);
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.hgb-hero__pillars-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding-block: 1.5rem;
}

.hgb-hero__pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .35rem;
	padding: .5rem 1rem;
	border-right: 1px solid rgba(255, 255, 255, .1);
}

.hgb-hero__pillar:last-child {
	border-right: none;
}

.hgb-hero__pillar-icon {
	display: inline-flex;
	color: #ffddb2;
	font-size: 26px;
	margin-bottom: .25rem;
}

.hgb-hero__pillar-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #fdf9f0;
	line-height: 1.2;
}

.hgb-hero__pillar-sub {
	font-size: 11px;
	color: #bc9a7c;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.hgb-hero__content { padding-block: 3.5rem 2.25rem !important; }
	.hgb-hero__title {
		font-size: clamp(1.6rem, 6vw, 2.25rem);
		line-height: 1.2;
		margin-bottom: 1.25rem;
	}
	.hgb-hero__text {
		font-size: 0.95rem;
		line-height: 1.6;
		margin-bottom: 1.75rem;
	}
	.hgb-hero__pillars-grid {
		grid-template-columns: repeat(2, 1fr);
		padding-block: 1rem;
	}
	.hgb-hero__pillar {
		padding: .75rem .5rem;
	}
	.hgb-hero__pillar:nth-child(2) { border-right: none; }
	.hgb-hero__pillar:nth-child(1),
	.hgb-hero__pillar:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.hgb-hero__pillar-title { font-size: 0.95rem; }
	.hgb-hero__pillar-sub { font-size: 10px; }
}

@media (max-width: 560px) {
	.hgb-hero__actions {
		flex-direction: column;
		width: 100%;
		gap: .75rem;
	}
	.hgb-hero__btn {
		width: 100%;
		justify-content: center;
		padding: .875rem 1.25rem;
	}
}

@media (max-width: 360px) {
	.hgb-hero__pillars-grid { grid-template-columns: 1fr; }
	.hgb-hero__pillar { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.hgb-hero__pillar:last-child { border-bottom: none; }
}
