/* ==========================================================================
   Hero & Header Builder — Frontend Styles
   ========================================================================== */

.hhb-hero, .hhb-header, .hhb-hero * , .hhb-header * { box-sizing: border-box; }

/* ---------- Header ---------- */
.hhb-header {
	background: var(--hhb-header-bg, #111);
	color: var(--hhb-header-text, #fff);
	height: var(--hhb-header-height, 80px);
	display: flex;
	align-items: center;
	width: 100%;
	z-index: 999;
	transition: background-color .25s ease, box-shadow .25s ease;
}
.hhb-header--sticky { position: sticky; top: 0; }
.hhb-header--transparent { background: transparent; position: absolute; left: 0; right: 0; box-shadow: none; }
.hhb-header--transparent.hhb-header--scrolled { background: var(--hhb-header-bg, #111); position: sticky; box-shadow: 0 2px 12px rgba(0,0,0,.15); }

.hhb-header__inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.hhb-header__brand { display: flex; align-items: center; gap: 10px; }
.hhb-header__logo { max-height: calc(var(--hhb-header-height, 80px) - 30px); display: block; }
.hhb-header__site-title { color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .02em; }

.hhb-header--align-left .hhb-header__nav { margin-right: auto; margin-left: 40px; }
.hhb-header--align-center .hhb-header__inner { justify-content: center; position: relative; }
.hhb-header--align-center .hhb-header__nav { position: absolute; left: 50%; transform: translateX(-50%); }
.hhb-header--align-right .hhb-header__nav { margin-left: auto; }

.hhb-header__menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.hhb-header__menu a { color: inherit; text-decoration: none; font-size: 15px; opacity: .92; transition: opacity .15s ease, color .15s ease; }
.hhb-header__menu a:hover { opacity: 1; color: var(--hhb-header-accent, #E8734A); }

/* ---------- Shared hero pieces ---------- */
.hhb-hero { position: relative; width: 100%; background-size: cover; background-position: center; overflow: hidden; }
.hhb-hero__overlay { position: absolute; inset: 0; background: #000; }
.hhb-hero__eyebrow { display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.hhb-hero__title { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.01em; }
.hhb-hero__desc { font-size: 17px; line-height: 1.6; max-width: 560px; opacity: .88; margin: 0 0 30px; }
.hhb-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hhb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, opacity .15s ease; }
.hhb-btn:hover { transform: translateY(-2px); opacity: .92; }
.hhb-btn--primary { color: #fff; border: none; }
.hhb-btn--ghost { background: transparent; border: 1.5px solid currentColor; }

.hhb-align-left { text-align: left; margin-right: auto; }
.hhb-align-center { text-align: center; margin-left: auto; margin-right: auto; }
.hhb-align-right { text-align: right; margin-left: auto; }
.hhb-align-left .hhb-hero__actions { justify-content: flex-start; }
.hhb-align-center .hhb-hero__actions { justify-content: center; }
.hhb-align-right .hhb-hero__actions { justify-content: flex-end; }

/* ---------- 1. Centered Bold ---------- */
.hhb-hero--centered { padding: 130px 24px; text-align: center; }
.hhb-hero--centered .hhb-hero__content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

/* ---------- 2. Split Screen ---------- */
.hhb-hero--split { display: flex; flex-wrap: wrap; min-height: 560px; }
.hhb-hero__split-text { flex: 1 1 420px; display: flex; flex-direction: column; justify-content: center; padding: 80px 60px; }
.hhb-hero__split-media { flex: 1 1 420px; background-size: cover; background-position: center; min-height: 320px; position: relative; overflow: hidden; }
@media (max-width: 782px) { .hhb-hero--split { flex-direction: column; } .hhb-hero__split-text { padding: 50px 24px; } }

/* ---------- 3. Fullscreen Overlay ---------- */
.hhb-hero--fullscreen { min-height: 620px; display: flex; align-items: flex-end; }
.hhb-hero__bottom { position: relative; z-index: 2; padding: 60px; max-width: 700px; }
@media (max-width: 782px) { .hhb-hero__bottom { padding: 30px 24px; } }

/* ---------- 4. Minimal Left ---------- */
.hhb-hero--minimal { padding: 120px 24px; }
.hhb-hero__minimal-inner { max-width: 620px; margin: 0 60px; position: relative; z-index: 2; }
.hhb-hero__eyebrow--bar { border-left: 3px solid; padding-left: 12px; }
.hhb-hero__title--minimal { font-size: clamp(30px, 4.2vw, 46px); }
@media (max-width: 782px) { .hhb-hero__minimal-inner { margin: 0 12px; } }

/* ---------- 5. Slider / Carousel ---------- */
.hhb-hero--slider { min-height: 600px; }
.hhb-slider__track { position: relative; height: 600px; }
.hhb-slider__slide {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; transition: opacity .6s ease;
	padding: 24px;
}
.hhb-slider__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hhb-slider__slide .hhb-hero__content { position: relative; z-index: 2; max-width: 700px; }

.hhb-slider__dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hhb-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hhb-slider__dot.is-active { background: #fff; }

.hhb-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(0,0,0,.35); color: #fff; border: none;
	width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 5;
	font-size: 16px; display: flex; align-items: center; justify-content: center;
	transition: background .15s ease;
}
.hhb-slider__arrow:hover { background: rgba(0,0,0,.55); }
.hhb-slider__arrow--prev { left: 20px; }
.hhb-slider__arrow--next { right: 20px; }

@media (max-width: 600px) {
	.hhb-slider__arrow { display: none; }
}

/* ---------- Announcement / Top Bar ---------- */
.hhb-topbar { width: 100%; font-size: 13.5px; }
.hhb-topbar__inner {
	max-width: 1240px; margin: 0 auto; padding: 9px 24px;
	display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
	position: relative;
}
.hhb-topbar__link { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hhb-topbar__close {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	background: none; border: none; color: inherit; opacity: .75; cursor: pointer; font-size: 16px; line-height: 1;
}
.hhb-topbar__close:hover { opacity: 1; }
.hhb-topbar.hhb-is-dismissed { display: none; }

/* ---------- Google Font headline classes ---------- */
.hhb-font-poppins .hhb-hero__title { font-family: 'Poppins', sans-serif; }
.hhb-font-playfair .hhb-hero__title { font-family: 'Playfair Display', serif; font-weight: 800; }
.hhb-font-montserrat .hhb-hero__title { font-family: 'Montserrat', sans-serif; }
.hhb-font-merriweather .hhb-hero__title { font-family: 'Merriweather', serif; }

/* ---------- Full height hero ---------- */
.hhb-hero--full-height { min-height: 100vh; display: flex; align-items: center; }
.hhb-hero--full-height.hhb-hero--centered { padding-top: 0; padding-bottom: 0; }
.hhb-hero--full-height.hhb-hero--split,
.hhb-hero--full-height.hhb-hero--fullscreen,
.hhb-hero--full-height .hhb-slider__track { min-height: 100vh; }
.hhb-hero--full-height .hhb-hero__content,
.hhb-hero--full-height .hhb-hero__minimal-inner { width: 100%; }

/* ---------- Entrance animation ---------- */
@keyframes hhbFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hhb-hero--animated .hhb-hero__eyebrow,
.hhb-hero--animated .hhb-hero__title,
.hhb-hero--animated .hhb-hero__desc,
.hhb-hero--animated .hhb-hero__actions {
	opacity: 0;
	animation: hhbFadeUp .7s ease forwards;
}
.hhb-hero--animated .hhb-hero__eyebrow { animation-delay: .05s; }
.hhb-hero--animated .hhb-hero__title   { animation-delay: .15s; }
.hhb-hero--animated .hhb-hero__desc    { animation-delay: .28s; }
.hhb-hero--animated .hhb-hero__actions { animation-delay: .4s; }
.hhb-hero--animated .hhb-hero__split-media { opacity: 0; animation: hhbFadeUp .8s ease forwards; animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
	.hhb-hero--animated * { animation: none !important; opacity: 1 !important; }
}

/* ---------- Scroll indicator ---------- */
.hhb-scroll-indicator {
	position: absolute;
	left: 50%; bottom: 26px; transform: translateX(-50%);
	width: 26px; height: 42px;
	border: 2px solid currentColor;
	border-radius: 16px;
	opacity: .8;
	cursor: pointer;
	z-index: 3;
}
.hhb-scroll-indicator::before {
	content: "";
	position: absolute;
	top: 8px; left: 50%; transform: translateX(-50%);
	width: 4px; height: 8px;
	background: currentColor;
	border-radius: 2px;
	animation: hhbScrollDot 1.6s ease infinite;
}
@keyframes hhbScrollDot {
	0%   { opacity: 1; transform: translate(-50%, 0); }
	70%  { opacity: 0; transform: translate(-50%, 14px); }
	100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ==========================================================================
   3D / Premium Hero Designs (6–10)
   ========================================================================== */

/* ---------- 6. 3D Tilt Showcase ---------- */
.hhb-hero--tilt { display: flex; flex-wrap: wrap; align-items: center; min-height: 560px; padding: 60px 60px; gap: 40px; }
.hhb-hero__tilt-text { flex: 1 1 380px; }
.hhb-hero__tilt-stage {
	flex: 1 1 380px; position: relative; height: 380px;
	perspective: 1200px;
	display: flex; align-items: center; justify-content: center;
}
.hhb-hero__tilt-card {
	position: absolute; width: 78%; height: 78%;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover; background-position: center;
	background-color: rgba(255,255,255,.06);
	transform: rotateY(-18deg) rotateX(8deg) rotateZ(-2deg);
	box-shadow: 30px 40px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
	transition: transform .4s ease;
}
.hhb-hero__tilt-card--back {
	transform: rotateY(-18deg) rotateX(8deg) rotateZ(-2deg) translate(24px, 24px) translateZ(-40px);
	background: rgba(255,255,255,.05);
	box-shadow: none;
}
.hhb-hero--tilt:hover .hhb-hero__tilt-card:not(.hhb-hero__tilt-card--back) { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1deg) scale(1.02); }
.hhb-hero__tilt-glow {
	position: absolute; width: 60%; height: 60%; top: -10%; right: -10%;
	border-radius: 50%; filter: blur(60px); opacity: .35;
}
@media (max-width: 782px) { .hhb-hero--tilt { padding: 40px 24px; } .hhb-hero__tilt-stage { height: 260px; } }

/* ---------- 7. Glassmorphism ---------- */
.hhb-hero--glass { min-height: 620px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; padding: 40px 24px; }
.hhb-hero__glass-card {
	position: relative; z-index: 2;
	max-width: 640px; width: 100%;
	background: rgba(255,255,255,.14);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 24px;
	padding: 56px 50px;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
@media (max-width: 600px) { .hhb-hero__glass-card { padding: 36px 26px; } }

/* ---------- 8. Layered Parallax ---------- */
.hhb-hero--parallax { min-height: 640px; display: flex; align-items: center; justify-content: center; padding: 0 24px; background-attachment: fixed; }
.hhb-hero--parallax .hhb-hero__content { max-width: 700px; }
@supports ( -webkit-touch-callout: none ) { .hhb-hero--parallax { background-attachment: scroll; } }
.hhb-parallax-shape { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .35; pointer-events: none; }
.hhb-parallax-shape--1 { width: 180px; height: 180px; top: 12%; left: 8%; }
.hhb-parallax-shape--2 { width: 110px; height: 110px; bottom: 16%; left: 20%; opacity: .25; }
.hhb-parallax-shape--3 { width: 260px; height: 260px; top: 8%; right: 6%; opacity: .18; }
.hhb-hero--parallax .hhb-hero__content { position: relative; z-index: 2; }

/* ---------- 9. Floating 3D Orbs ---------- */
.hhb-hero--orbs { min-height: 600px; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.hhb-hero--orbs .hhb-hero__content { max-width: 700px; }
.hhb-hero--orbs .hhb-hero__content { position: relative; z-index: 3; text-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hhb-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; z-index: 1; }
.hhb-orb--1 { width: 260px; height: 260px; top: 8%; left: 10%; animation: hhbFloat 7s ease-in-out infinite; }
.hhb-orb--2 { width: 320px; height: 320px; bottom: 4%; right: 8%; animation: hhbFloat 9s ease-in-out infinite reverse; }
.hhb-orb--3 { width: 180px; height: 180px; top: 55%; left: 45%; animation: hhbFloat 6s ease-in-out infinite; animation-delay: -2s; }
.hhb-orb--4 { width: 140px; height: 140px; top: 15%; right: 22%; animation: hhbFloat 8s ease-in-out infinite; animation-delay: -4s; opacity: .3; }
@keyframes hhbFloat {
	0%, 100% { transform: translate(0,0) scale(1); }
	50%      { transform: translate(14px,-22px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .hhb-orb { animation: none !important; } }

/* ---------- 10. Perspective Card Stack ---------- */
.hhb-hero--stack { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 70px 60px; min-height: 580px; }
.hhb-hero__stack-text { flex: 1 1 380px; position: relative; z-index: 2; }
.hhb-hero__stack-stage {
	flex: 1 1 340px; position: relative; z-index: 2; height: 380px;
	perspective: 1400px;
	display: flex; align-items: center; justify-content: center;
}
.hhb-hero__stack-card {
	position: absolute; width: 66%; height: 74%;
	border-radius: 18px;
	overflow: hidden;
	background-size: cover; background-position: center;
	box-shadow: 0 20px 45px rgba(0,0,0,.3);
	transition: transform .35s ease;
}
.hhb-hero__stack-card--3 { transform: rotate(-14deg) translate(-38px, 6px); opacity: .55; }
.hhb-hero__stack-card--2 { transform: rotate(8deg) translate(30px, -4px); opacity: .8; }
.hhb-hero__stack-card--1 { transform: rotate(-2deg); z-index: 2; display: flex; align-items: flex-end; padding: 18px; }
.hhb-hero--stack:hover .hhb-hero__stack-card--3 { transform: rotate(-20deg) translate(-52px, 10px); }
.hhb-hero--stack:hover .hhb-hero__stack-card--2 { transform: rotate(12deg) translate(42px, -8px); }
.hhb-hero--stack:hover .hhb-hero__stack-card--1 { transform: rotate(0deg) scale(1.02); }
.hhb-hero__stack-badge {
	position: relative; z-index: 2;
	color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
	box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
@media (max-width: 782px) { .hhb-hero--stack { padding: 40px 24px; } .hhb-hero__stack-stage { height: 260px; } }

/* ==========================================================================
   Position hardening — guarantees the top bar + header always render at the
   very top, regardless of any theme/page-builder CSS that might otherwise
   push a "fixed/absolute bottom" element around.
   ========================================================================== */
#hhb-top-stack {
	position: relative !important;
	top: 0 !important;
	bottom: auto !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 9999 !important;
	display: block !important;
}
.hhb-topbar {
	position: relative !important;
	top: 0 !important;
	bottom: auto !important;
	order: -1 !important;
}

/* ---------- Mobile navigation (hamburger + slide-down menu) ---------- */
.hhb-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.hhb-header__burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.hhb-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hhb-header__burger.is-open span:nth-child(2) { opacity: 0; }
.hhb-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.hhb-header__inner { flex-wrap: wrap; }
	.hhb-header__burger { display: flex; }
	.hhb-header--align-left .hhb-header__nav,
	.hhb-header--align-right .hhb-header__nav,
	.hhb-header--align-center .hhb-header__nav {
		position: static; transform: none; margin: 0;
	}
	.hhb-header__nav {
		flex-basis: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.hhb-header__nav.is-open { max-height: 500px; }
	.hhb-header__menu {
		flex-direction: column;
		gap: 0;
		padding: 10px 0 16px;
	}
	.hhb-header__menu a { display: block; padding: 10px 4px; }
	.hhb-header--align-center .hhb-header__inner { justify-content: space-between; }
	.hhb-topbar__inner { flex-wrap: wrap; padding: 8px 40px 8px 16px; font-size: 12.5px; }
}

/* ---------- Secondary media (image or video) auto-fit ---------- */
.hhb-media-fit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
	display: block;
}

/* ---------- Announcement bar: bottom-fixed variant ---------- */
.hhb-topbar.hhb-topbar--fixed-bottom {
	position: fixed !important;
	bottom: 0 !important;
	top: auto !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 999998 !important;
	box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}

.hhb-hero__stack-texture {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: .3;
	mix-blend-mode: overlay;
}
