/**
 * BB Real Estate theme styles.
 *
 * Layered on top of Bootstrap 5. Colors, radius, container width and font
 * size come from CSS custom properties written inline in <head> by
 * inc/enqueue.php (bb_output_custom_properties), based on Customizer
 * settings in inc/customizer.php. Keep this file free of hard-coded
 * brand colors so a theme user can restyle everything from wp-admin.
 */

:root {
	--bb-primary: #2563eb;
	--bb-secondary: #0f172a;
	--bb-radius: 12px;
	--bb-container-width: 1320px;
	--bb-font-size-base: 16px;
	--bb-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	font-family: var(--bb-font-family);
	font-size: var(--bb-font-size-base);
	color: var(--bb-secondary);
}

.container,
.container-lg,
.container-xl,
.container-xxl {
	max-width: var(--bb-container-width);
}

a {
	color: var(--bb-primary);
}

.btn-primary {
	--bs-btn-bg: var(--bb-primary);
	--bs-btn-border-color: var(--bb-primary);
	--bs-btn-hover-bg: color-mix(in srgb, var(--bb-primary) 85%, black);
	--bs-btn-hover-border-color: color-mix(in srgb, var(--bb-primary) 85%, black);
	--bs-btn-active-bg: color-mix(in srgb, var(--bb-primary) 75%, black);
	--bs-btn-active-border-color: color-mix(in srgb, var(--bb-primary) 75%, black);
}

.text-primary {
	color: var(--bb-primary) !important;
}

.card,
.btn,
.form-control,
.form-select,
.dropdown-menu {
	border-radius: var(--bb-radius);
}

/* Focus visibility (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--bb-primary);
	outline-offset: 2px;
}

/* Header */
.bb-site-header.sticky-top {
	z-index: 1030;
}

.bb-header-sticky .bb-site-header {
	transition: box-shadow 0.2s ease-in-out;
}

/* Hero */
.bb-hero {
	min-height: 480px;
	background-color: var(--bb-secondary);
	background-size: cover;
	background-position: center;
}

.bb-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.bb-hero-search {
	border-radius: var(--bb-radius);
}

/* Full width Elementor template */
.bb-full-width {
	width: 100%;
}

/* Footer */
.bb-site-footer a {
	color: inherit;
}

.bb-social-links {
	display: flex;
	gap: 1rem;
}

/* Breadcrumbs */
.bb-breadcrumbs a {
	text-decoration: none;
}

/* Mobile menu accessibility: visible focus + spacing on collapsed nav links */
.navbar-nav .nav-link {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
	.bb-hero-search {
		border-radius: calc(var(--bb-radius) * 0.75);
	}
}
