/* =========================================================
   DYNAMIC HERO BANNER — structural + effects CSS
   Colors are injected inline per-section from the dashboard;
   this file only handles layout, animation & responsiveness.
   ========================================================= */

.hor-banner,
.hor-banner * {
	box-sizing: border-box;
}

.hor-banner {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: 0;

	position: relative;
	display: block;
	overflow: hidden;

	font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
	padding: clamp(52px, 6vw, 88px) clamp(20px, 6vw, 96px);
}

.hor-inner {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;

	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(38px, 5vw, 86px);
}

.hor-banner.hor-reverse .hor-inner {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hor-banner.hor-reverse .hor-content { order: 2; }
.hor-banner.hor-reverse .hor-visual  { order: 1; }

/* =========================
   CONTENT
   ========================= */

.hor-content { min-width: 0; }

.hor-tagline {
	margin: 0 0 22px;
	font-size: clamp(10px, .9vw, 13px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: clamp(2px, .25vw, 3px);
	text-transform: uppercase;
}

.hor-title {
	margin: 0 0 24px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(46px, 5.7vw, 78px);
	font-weight: 400;
	line-height: 1.03;
	letter-spacing: -.035em;
}

.hor-title em {
	display: block;
	margin-top: 2px;
	font-style: normal;
	font-weight: 400;
}

.hor-desc {
	max-width: 520px;
	margin: 0 0 36px;
	font-size: clamp(14px, 1.25vw, 17px);
	line-height: 1.75;
}

/* =========================
   BUTTONS
   ========================= */

.hor-buttons {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.hor-banner .btn {
	min-height: 52px;
	padding: 15px 27px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .9px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .4s cubic-bezier(.22,1,.36,1),
		background-color .35s ease, color .35s ease,
		border-color .35s ease, box-shadow .4s ease;
}

.hor-banner .btn-outline { background: transparent; }

.hor-banner.hor-hover-on .btn:hover,
.hor-banner.hor-hover-on .btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.hor-banner .btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* =========================
   IMAGE
   ========================= */

.hor-visual { width: 100%; min-width: 0; }

.hor-image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: clamp(10px, 1vw, 16px);
	background: rgba(0,0,0,.04);
	box-shadow: 0 30px 65px rgba(0,0,0,.15);
	transition: transform .55s cubic-bezier(.22,1,.36,1), box-shadow .55s ease;
}

.hor-banner.hor-hover-on .hor-image-wrap:hover {
	transform: translateY(-6px);
	box-shadow: 0 42px 80px rgba(0,0,0,.22);
}

.hor-image-wrap img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transform: scale(1);
	transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.hor-banner.hor-hover-on .hor-image-wrap:hover img {
	transform: scale(1.035);
}

.hor-caption {
	margin: 16px 0 0;
	font-family: inherit;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
}

/* =========================
   ENTRANCE ANIMATION (opt-in per section)
   ========================= */

.hor-banner.hor-anim-on .hor-content,
.hor-banner.hor-anim-on .hor-tagline,
.hor-banner.hor-anim-on .hor-title,
.hor-banner.hor-anim-on .hor-desc,
.hor-banner.hor-anim-on .hor-buttons {
	opacity: 0;
	animation: horFadeUp .9s cubic-bezier(.22,1,.36,1) forwards;
}
.hor-banner.hor-anim-on .hor-tagline  { animation-delay: .15s; }
.hor-banner.hor-anim-on .hor-title    { animation-delay: .25s; }
.hor-banner.hor-anim-on .hor-desc     { animation-delay: .35s; }
.hor-banner.hor-anim-on .hor-buttons  { animation-delay: .45s; }
.hor-banner.hor-anim-on .hor-content  { animation-delay: .05s; }

.hor-banner.hor-anim-on .hor-visual {
	opacity: 0;
	animation: horImageReveal 1s cubic-bezier(.22,1,.36,1) .15s forwards;
}

@keyframes horFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes horImageReveal {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
	.hor-banner { padding: 58px 6vw 64px; }

	.hor-inner,
	.hor-banner.hor-reverse .hor-inner {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.hor-content,
	.hor-banner.hor-reverse .hor-content {
		order: 1;
		text-align: center;
	}
	.hor-visual,
	.hor-banner.hor-reverse .hor-visual {
		order: 2;
	}

	.hor-tagline { margin-bottom: 18px; }
	.hor-desc { margin-left: auto; margin-right: auto; }
	.hor-buttons { justify-content: center; }

	.hor-banner.hor-hover-on .hor-image-wrap:hover { transform: translateY(-3px); }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {
	.hor-inner,
	.hor-banner.hor-reverse .hor-inner {
		display: grid;
		grid-template-columns: 1fr;
	}

	.hor-content, .hor-banner.hor-reverse .hor-content { order: 1 !important; }
	.hor-visual,  .hor-banner.hor-reverse .hor-visual  { order: 2 !important; }

	.hor-banner {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		padding: 38px 18px 44px;
	}

	.hor-inner { gap: 32px; }

	.hor-tagline { margin-bottom: 16px; font-size: 9px; letter-spacing: 2px; }
	.hor-title { margin-bottom: 18px; font-size: clamp(40px, 12vw, 52px); line-height: 1.04; }
	.hor-desc { margin-bottom: 28px; font-size: 14px; line-height: 1.7; }

	.hor-buttons { width: 100%; gap: 10px; }

	.hor-banner .btn {
		flex: 1 1 calc(50% - 5px);
		min-width: 0;
		min-height: 48px;
		padding: 13px 12px;
		font-size: 9px;
		letter-spacing: .65px;
		white-space: normal;
	}

	.hor-image-wrap { border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.14); }
	.hor-caption { margin-top: 12px; font-size: 8px; letter-spacing: 1.5px; }
}

@media (max-width: 380px) {
	.hor-banner { padding: 32px 14px 38px; }
	.hor-inner { gap: 28px; }
	.hor-tagline { font-size: 8px; letter-spacing: 1.6px; }
	.hor-title { font-size: 36px; }
	.hor-desc { font-size: 13px; }
	.hor-banner .btn { font-size: 8px; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.hor-banner.hor-anim-on .hor-content,
	.hor-banner.hor-anim-on .hor-tagline,
	.hor-banner.hor-anim-on .hor-title,
	.hor-banner.hor-anim-on .hor-desc,
	.hor-banner.hor-anim-on .hor-buttons,
	.hor-banner.hor-anim-on .hor-visual {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.hor-image-wrap, .hor-image-wrap img, .hor-banner .btn {
		transition: none !important;
	}
}
