/**
 * Loaded AFTER Elementor + theme CSS on single project pages.
 * Wins cascade conflicts so the widget matches single-project.html.
 */

body.brabco-single-project {
	background-color: #0a0f14 !important;
	color: #f5f5f5;
}

body.brabco-single-project .site-main,
body.brabco-single-project .page-content,
body.brabco-single-project .elementor {
	background-color: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

/* Inter font — override Elementor kit Roboto on project widget */
body.brabco-single-project .brabco-project-single {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Buttons: template uses black text on orange */
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__cta,
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__cta:visited,
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__cta:hover,
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__enquire,
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__enquire:visited,
body.brabco-single-project .elementor-widget-brabco-project-single a.brabco-project-single__enquire:hover {
	color: #000000 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

/* Key details icon — force template colors over Elementor saved styles */
body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__detail-icon {
	background-color: rgba(230, 137, 64, 0.1) !important;
	color: #e68940 !important;
}

body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__detail-icon svg,
body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__detail-icon .brabco-project-single__icon-svg {
	stroke: #e68940 !important;
	fill: none !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	display: block !important;
}

/* Sidebar typography resets */
body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__sidebar h1.brabco-project-single__title {
	font-size: 2.25rem !important;
	font-weight: 700 !important;
	color: #f5f5f5 !important;
	margin: 0 0 1.5rem !important;
	letter-spacing: -0.02em !important;
	line-height: 1.2 !important;
}

@media (min-width: 768px) {
	body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__sidebar h1.brabco-project-single__title {
		font-size: 3rem !important;
	}
}

body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__key-details-title {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: #f5f5f5 !important;
	margin: 0 0 1.5rem !important;
}

body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__detail-label {
	color: #a0a0a0 !important;
	font-size: 0.875rem !important;
	margin: 0 !important;
}

body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__detail-value {
	color: #f5f5f5 !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	margin: 0 !important;
}

body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__status.status-under_construction {
	background-color: rgba(230, 137, 64, 0.2) !important;
	color: #e68940 !important;
	border-color: rgba(230, 137, 64, 0.3) !important;
}

/* Back nav arrow SVG */
body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__back-icon svg,
body.brabco-single-project .elementor-widget-brabco-project-single .brabco-project-single__back-icon .brabco-project-single__icon-svg {
	width: 20px !important;
	height: 20px !important;
	stroke: currentColor !important;
	fill: none !important;
}

/* Gallery: thumbs fill column height on desktop */
@media (min-width: 1024px) {
	body.brabco-single-project .brabco-project-single__gallery-grid--has-thumbs {
		align-items: stretch;
	}

	body.brabco-single-project .brabco-project-single__gallery-grid--has-thumbs .brabco-project-single__thumbs {
		height: 80vh;
		min-height: 100%;
	}

	body.brabco-single-project .brabco-project-single__gallery-grid--has-thumbs .brabco-project-single__thumb {
		height: 100%;
		min-height: 0;
		flex: 1;
	}
}

/* Hide polluted duplicate markup if it leaks into overview */
body.brabco-single-project .brabco-project-single__overview-content .brabco-project-single,
body.brabco-single-project .brabco-project-single__overview-content [data-brabco-hero-gallery],
body.brabco-single-project .brabco-project-single__overview-content nav.brabco-project-single__nav {
	display: none !important;
}
