/* Property Hero Banner — Styles */

.phb-wrapper { width: 100%; }

.phb-banner {
	position: relative;
	width: 100%;
	height: 95vh;
	overflow: hidden;
	background-color: #2c1f16;
}

.phb-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.phb-bg-image,
.phb-bg-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* !important is used defensively here: some WordPress themes automatically
   enhance every <video> tag on the page with the built-in MediaElement.js
   skin (adding a visible control bar and forcing the player back to its
   native pixel size via inline styles). These rules make sure the
   background video always fills the banner regardless of that. */
.phb-bg-video {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center;
}

.phb-bg-fallback {
	z-index: 1;
}

.phb-bg-video {
	z-index: 2;
}

.phb-bg-youtube {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}

.phb-bg-youtube iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100vh;
	min-width: 177.78vh; /* 16:9 */
	transform: translate(-50%, -50%);
	border: 0;
}

/* Hide the fallback image once the video/iframe is ready to paint (kept
   underneath as a safety net if playback is blocked or still buffering). */
.phb-bg-video, .phb-bg-youtube { background-color: transparent; }

/* Defensive override for WordPress's default MediaElement.js video skin,
   in case the active theme auto-applies it site-wide. If it isn't present
   these selectors simply match nothing and have no effect. */
.phb-bg .mejs-container,
.phb-bg .mejs-inner,
.phb-bg .mejs-mediaelement {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
}

.phb-bg .mejs-controls,
.phb-bg .mejs-overlay-play,
.phb-bg .mejs-overlay-button,
.phb-bg .mejs-poster {
	display: none !important;
}

.phb-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background-color: #2c1f16;
	opacity: 0.55;
}

.phb-overlay.phb-has-gradient::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20,14,10,0.75) 0%, rgba(20,14,10,0) 45%);
}

.phb-content {
	position: relative;
	z-index: 4;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 1000px;
	padding: 0 60px;
	color: #fff;
	box-sizing: border-box;
}

.phb-logo-wrap {
	margin-bottom: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.phb-logo-wrap.phb-logo-circle {
	border: 1px solid #d9b98c;
	border-radius: 50%;
	padding: 10px;
	box-sizing: content-box;
}

.phb-logo {
	display: block;
	width: 90px;
	height: 90px;
	object-fit: contain;
}

.phb-eyebrow {
	font-size: 13px;
	letter-spacing: 3px;
	font-weight: 600;
	color: #f0ece3;
	text-transform: uppercase;
	margin-bottom: 24px;
}

.phb-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: 82px;
	line-height: 1.08;
	color: #f7f2e9;
	margin: 0 0 26px 0;
}

.phb-title-line {
	display: block;
}

.phb-subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #e7ddd0;
	max-width: 560px;
	margin: 0 0 36px 0;
}

.phb-buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 56px;
}

.phb-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 18px 30px;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.phb-btn-1 {
	background-color: #c9793f;
	color: #ffffff;
}

.phb-btn-1:hover {
	background-color: #a8622e;
}

.phb-btn-2 {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid #ffffff;
}

.phb-btn-2:hover {
	background-color: #ffffff;
	color: #2c1f16;
}

.phb-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.phb-btn:hover .phb-btn-arrow {
	transform: translateX(5px);
}

/* Stats row */
.phb-stats-row {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.phb-stat-number {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 32px;
	color: #f7f2e9;
	line-height: 1;
	margin-bottom: 8px;
}

.phb-stat-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	color: #c9c2b4;
}

/* Scroll indicator */
.phb-scroll-indicator {
	position: absolute;
	left: 50%;
	bottom: 30px;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.phb-scroll-text {
	font-size: 10px;
	letter-spacing: 2px;
	color: #c9c2b4;
	white-space: nowrap;
}

.phb-scroll-line {
	position: relative;
	width: 1px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.phb-scroll-line::before {
	content: "";
	position: absolute;
	left: 0;
	top: -100%;
	width: 100%;
	height: 100%;
	background-color: #f7f2e9;
	animation: phbScrollLine 2s ease-in-out infinite;
}

@keyframes phbScrollLine {
	0%   { top: -100%; }
	50%  { top: 0%; }
	100% { top: 100%; }
}

/* Entrance animation */
.phb-wrapper[data-entrance="true"] .phb-entrance-item {
	opacity: 0;
}

.phb-wrapper[data-entrance="true"] .phb-entrance-item.phb-in-view {
	animation-name: phbFadeUp;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

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

/* Responsive */
@media (max-width: 991px) {
	.phb-title { font-size: 56px; }
	.phb-content { padding: 0 36px; }
	.phb-stats-row { gap: 36px; }
}

@media (max-width: 600px) {
	.phb-banner { height: 100vh; }
	.phb-title { font-size: 38px; }
	.phb-subtitle { font-size: 15px; }
	.phb-btn { padding: 14px 22px; font-size: 11px; }
	.phb-content { padding: 0 24px; }
	.phb-stats-row { gap: 24px; }
	.phb-stat-number { font-size: 24px; }
}
