/* Home video hero white top fade */
.bbt-home-hero-banner {
	position: relative;
	overflow: hidden;
}

.bbt-home-hero-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0.6) 0%,
		rgba(255,255,255,0.4) 10%,
		rgba(255,255,255,0.22) 20%,
		rgba(255,255,255,0.1) 30%,
		rgba(255,255,255,0.03) 42%,
		rgba(255,255,255,0) 60%
	);
}

/* Keep content above gradient */
.bbt-home-hero-banner .wp-block-cover__inner-container {
	position: relative;
	z-index: 3;
}

/* Keep video underneath */
.bbt-home-hero-banner video,
.bbt-home-hero-banner .wp-block-cover__video-background {
	position: relative;
	z-index: 1;
}

/* ==================================
HOME LAYOUT
================================== */

/* Homepage image band titles */
h1.bbt-home-hero-title {
	margin-bottom: 0 !important;
	font-size: clamp(3.25rem, 9vw, 7.8125rem) !important;
	line-height: 0.92;
	color: #fff;
	text-shadow:
		0 0 4px rgba(0, 0, 0, 1),
		0 4px 12px rgba(0, 0, 0, 0.75),
		0 10px 28px rgba(0, 0, 0, 0.55);
}

h2.bbt-home-hero-subtitle {
	margin-top: 0 !important;
	font-size: clamp(1.25rem, 3.8vw, 3.125rem) !important;
	line-height: 1.05;
	letter-spacing: 0.12em;
	color: #fff !important;
	text-shadow:
		0 0 4px rgba(0, 0, 0, 1),
		0 4px 12px rgba(0, 0, 0, 0.75),
		0 10px 28px rgba(0, 0, 0, 0.55);
}

h2.bbt-home-section-title {
	margin-bottom: 0 !important;
    font-size: clamp(2.6rem, 6.5vw, 4.75rem) !important;
	line-height: 0.92;
	color: #fff;
	text-shadow:
		0 0 4px rgba(0, 0, 0, 1),
		0 4px 12px rgba(0, 0, 0, 0.75),
		0 10px 28px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
	h1.bbt-home-hero-title {
		line-height: 0.96;
	}

	h2.bbt-home-hero-subtitle {
		letter-spacing: 0.08em;
	}

    h2.bbt-home-section-title {
		line-height: 1.25;
    }
}

/* Home content row system */
.bbt-home-row {
	margin: 0 0 56px;
}

.bbt-home-row__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.bbt-home-row__column {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bbt-home-row__heading {
	margin: 0 0 16px;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--ast-global-color-3);
}

.bbt-home-row__heading a,
.bbt-home-row__heading a:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.18em;
	color: var(--ast-global-color-3);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bbt-home-row__heading a:hover {
	color: var(--ast-global-color-0);
}

.bbt-home-row__items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	min-width: 0;
}

.bbt-home-row__items--1 {
	grid-template-columns: 1fr;
}

.bbt-no-results {
	margin: 0;
}

/* Community spotlight row layout */
.bbt-home-row--community-spotlight .bbt-home-row__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
}

.bbt-home-row--community-spotlight .bbt-home-row__column--pet-adoption {
	grid-column: 1;
}

.bbt-home-row--community-spotlight .bbt-home-row__column--food-pantry {
	grid-column: 2;
}

.bbt-home-row--community-spotlight .bbt-home-row__items {
	background: transparent;
	flex: 1 1 auto;
	align-content: stretch;
}

/* Home property row */
.bbt-home-property-row {
	padding: 20px;
}

.bbt-home-property-row__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	align-items: stretch;
}

.bbt-home-property-row__column {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Homepage section headings */
.bbt-home-property-row__heading,
.bbt-home-row__heading,
.bbt-home-research__heading {
	margin: 0 0 16px;
	font-size: clamp(1.35rem, 1.6vw, 1.75rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--ast-global-color-3);
}


/* Spotlight row headings */
.bbt-home-row--community-spotlight .bbt-home-row__heading {
	margin-bottom: 16px;
	font-size: clamp(1.35rem, 1.6vw, 1.9rem);
	line-height: 1;
	letter-spacing: 0.02em;
}

@media (max-width: 768px) {
	.bbt-home-row--community-spotlight .bbt-home-row__heading {
		font-size: clamp(2rem, 3vw, 3rem);
	}
}

.bbt-home-property-row__heading a,
.bbt-home-property-row__heading a:visited,
.bbt-home-row__heading a,
.bbt-home-row__heading a:visited,
.bbt-home-research__heading a,
.bbt-home-research__heading a:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.18em;
	color: var(--ast-global-color-3);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bbt-home-property-row__heading a:hover,
.bbt-home-row__heading a:hover,
.bbt-home-research__heading a:hover {
	color: var(--ast-global-color-0);
}

/* Property row headings */
.bbt-home-property-row__heading {
	margin-bottom: 16px;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1;
	letter-spacing: 0.02em;
}

/* Research section headings */
.bbt-home-research__heading {
	margin-bottom: 20px;
}

/* Research heading wrapper spacing */
.bbt-home-research__heading-wrap {
	margin-bottom: 20px;
}

.bbt-home-property-row__column .bbt-listing-grid {
	display: flex;
	flex: 1;
}

.bbt-home-property-row__column .bbt-listing-grid > * {
	width: 100%;
}

.bbt-home-property-row__column .bbt-card--listing {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.bbt-home-property-row__column .bbt-card--listing .bbt-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bbt-home-property-row__column .bbt-listing-card-link {
	margin-top: auto;
}

@media (max-width: 768px) {
	.bbt-home-row__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bbt-home-row__heading {
		font-size: clamp(1.5rem, 7vw, 2.1rem);
	}

	.bbt-home-row--community-spotlight .bbt-home-row__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bbt-home-row--community-spotlight .bbt-home-row__column--pet-adoption,
	.bbt-home-row--community-spotlight .bbt-home-row__column--food-pantry {
		grid-column: auto;
	}

	.bbt-home-property-row {
		padding: 10px;
	}
}


/* ----------------------------------
HOMEPAGE RESEARCH SECTION
---------------------------------- */

.bbt-home-research {
	width: 100%;
}

.bbt-home-research__heading {
	margin: 0;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ast-global-color-2);
}

.bbt-home-research__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 28px;
	align-items: stretch;
}

.bbt-home-research__section {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

.bbt-home-research__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

/* LEFT: report column fills full section height */
.bbt-home-research__report-col {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

.bbt-home-research__report-card {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

/* RIGHT: blog cards in 2x2 */
.bbt-home-research__blog-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	min-width: 0;
	height: 100%;
	align-content: stretch;
}

.bbt-home-research__blog-card {
	display: flex;
	min-width: 0;
	height: 100%;
}

/* Make all wrappers stretch */
.bbt-home-research__report-card > *,
.bbt-home-research__blog-card > * {
	width: 100%;
	height: 100%;
	min-width: 0;
}

/* ----------------------------------
FORCE CARDS TO FILL HEIGHT
---------------------------------- */

.bbt-home-research__report-card .bbt-card--market-report,
.bbt-home-research__blog-card .bbt-card--blog {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.bbt-home-research__report-card .bbt-card--market-report .bbt-card__link,
.bbt-home-research__blog-card .bbt-card--blog .bbt-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-height: 100%;
}

/* Keep image fixed */
.bbt-home-research__report-card .bbt-card--market-report .bbt-card__image,
.bbt-home-research__blog-card .bbt-card--blog .bbt-card__image {
	flex: 0 0 auto;
}

/* Brown title band absorbs remaining height */
.bbt-home-research__report-card .bbt-card--market-report .bbt-card__title,
.bbt-home-research__blog-card .bbt-card--blog .bbt-card__title {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-height: 50px;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Optional: keep blog titles one line if desired */
.bbt-home-research__blog-card .bbt-blog-card__title-text {
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Homepage research blog cards intentionally render borderless */
.bbt-home-research__blog-card .bbt-card--blog {
	border: 0;
}

/* ----------------------------------
RESPONSIVE
---------------------------------- */

@media (max-width: 980px) {
	.bbt-home-research__grid {
		grid-template-columns: 1fr;
	}

	.bbt-home-research__section--report {
		width: 100%;
	}

	.bbt-home-research__report-card,
	.bbt-home-research__report-card > * {
		width: 100%;
		height: auto;
	}

	.bbt-home-research__blog-col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.bbt-home-research__blog-col {
		grid-template-columns: 1fr;
	}

	.bbt-home-research__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.bbt-home-research__heading-wrap {
		margin-bottom: 20px;
	}
}

/* ==================================
HOME RESEARCH CARD SHADOW MATCH
================================== */

.bbt-home-research__report-card .bbt-card--market-report,
.bbt-home-research__blog-card .bbt-card--blog {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bbt-home-research__report-card .bbt-card--market-report:hover,
.bbt-home-research__blog-card .bbt-card--blog:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}


/* Spotlight cards */

.bbt-card--spotlight,
.bbt-spotlight-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.bbt-card--spotlight .bbt-card__link,
.bbt-spotlight-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.bbt-card--spotlight .bbt-card__image,
.bbt-spotlight-card__image {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	line-height: 0;
}

.bbt-card--spotlight .bbt-card__image img,
.bbt-spotlight-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ----------------------------------
SPOTLIGHT / COMMUNITY CARD TITLES
---------------------------------- */

.bbt-card--spotlight .bbt-card__title,
.bbt-spotlight-card__title,
.bbt-card--community .bbt-card__title {
	margin: 0 0 8px;
	font-size: clamp(1.15rem, 1.4vw, 1.4rem);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ast-global-color-3);
}

.bbt-spotlight-card__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
}

.bbt-spotlight-card__more {
	margin-top: auto;
	padding-top: 18px;
	font-weight: 700;
}

.bbt-spotlight-card__more a {
	font-weight: 700;
	text-decoration: none;
}


/* Community cards */
.bbt-card--community {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.bbt-card--community .bbt-card__link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.bbt-card--community .bbt-card__image {
	margin: 0;
	line-height: 0;
}

.bbt-card--community .bbt-card__image img {
	display: block;
	width: 100%;
	height: auto;
}

.bbt-community-card__excerpt {
	margin: 0;
	color: inherit;
	font-size: 0.95rem;
	line-height: 1.5;
}

.bbt-community-card__more {
	margin-top: auto;
	padding-top: 18px;
	font-weight: 700;
}
