/* =========================================================
   Dotyrich — Hero Overlay widget
   Scope: .dr-ho-wrap, .dr-ho
   ========================================================= */

.dr-ho-wrap {
	background: var(--dr-bg);
	overflow-x: hidden;
	max-width: 100%;
}

.dr-ho {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 720px;
	overflow: hidden;
	background: #2c5f66;
	isolation: isolate;
	box-sizing: border-box;
}

/* === Background image (fills hero) === */
.dr-ho__image {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: drHoFadeIn 1.2s var(--dr-ease) both;
}

.dr-ho__image--placeholder {
	background: linear-gradient(135deg, #1a2a35 0%, #0a1318 100%);
}

@keyframes drHoFadeIn {
	from { opacity: 0; transform: scale(1.04); }
	to   { opacity: 1; transform: scale(1); }
}

/* === Translucent panel (rectangle, no clipping) === */
.dr-ho__panel {
	position: absolute;
	z-index: 3;
	width: 55%;
	max-width: calc(100% - 24px);
	background: rgba(63, 123, 131, 0.92);
	color: #ffffff;
	box-sizing: border-box;
	animation: drHoPanelIn 1s var(--dr-ease) 0.2s both;
}

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

/* Panel horizontal positioning */
.dr-ho-pos-right .dr-ho__panel { right: 0; left: auto; }
.dr-ho-pos-left  .dr-ho__panel { left: 0;  right: auto; }
.dr-ho-pos-center .dr-ho__panel {
	left: 50%; right: auto;
	transform: translateX(-50%);
}

/* Panel vertical positioning */
.dr-ho-vert-top .dr-ho__panel { top: 0; bottom: auto; }
.dr-ho-vert-bottom .dr-ho__panel { bottom: 0; top: auto; }
.dr-ho-vert-center .dr-ho__panel {
	top: 50%; bottom: auto;
	transform: translateY(-50%);
}

/* Combine: center horizontal + center vertical */
.dr-ho-pos-center.dr-ho-vert-center .dr-ho__panel {
	transform: translate(-50%, -50%);
}

.dr-ho__panel-inner {
	padding: 56px 64px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	box-sizing: border-box;
	min-width: 0;
}

/* === Title === */
.dr-ho__title {
	font-size: clamp(1.5rem, 2.6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	color: #ffffff !important;
	margin: 0;
	letter-spacing: -0.01em;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Serif font (default) */
.dr-ho-font-serif .dr-ho__title {
	font-family: 'Source Serif Pro', 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.18;
}

/* Sans-serif option */
.dr-ho-font-sans .dr-ho__title {
	font-family: var(--dr-font) !important;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* === CTA pill buttons === */
.dr-ho__ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 32px;
	flex-shrink: 0;
}

.dr-ho__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background: #ffffff;
	color: #2c5f66 !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1.5px solid #ffffff;
	border-radius: 100px;
	transition: var(--dr-transition);
	white-space: nowrap;
	font-family: var(--dr-font);
	flex-shrink: 0;
}

.dr-ho__btn:hover {
	background: rgba(255, 255, 255, 0.88);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* === Responsive === */
@media (max-width: 1024px) {
	.dr-ho { height: 600px; }
	.dr-ho__panel { width: 70%; }
	.dr-ho__panel-inner { padding: 44px 44px; }
	.dr-ho__title { font-size: clamp(1.375rem, 3vw, 2rem); }
}

@media (max-width: 768px) {
	.dr-ho-wrap { width: 100vw; max-width: 100vw; overflow-x: hidden; }
	.dr-ho {
		height: auto !important;
		min-height: auto;
		width: 100%;
		max-width: 100vw;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}
	.dr-ho__image {
		position: relative !important;
		width: 100%;
		max-width: 100%;
		height: 260px;
		min-height: 260px;
		inset: auto;
	}
	.dr-ho__panel {
		position: relative !important;
		width: 100% !important;
		max-width: 100% !important;
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: auto !important;
		transform: none !important;
		margin: 0 !important;
		box-sizing: border-box;
	}
	.dr-ho__panel-inner {
		padding: 32px 20px;
		width: 100%;
		box-sizing: border-box;
	}
	.dr-ho__title {
		font-size: clamp(1.125rem, 5vw, 1.625rem) !important;
		line-height: 1.25 !important;
		max-width: 100% !important;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}
	.dr-ho__ctas { flex-direction: column; align-items: stretch; margin-top: 20px; gap: 10px; }
	.dr-ho__btn { width: 100%; padding: 12px 20px; font-size: 11px; }
}
