/* Sitewide announcement bar */
.fc-announce {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 8px 16px;
	flex-wrap: wrap;
	padding: 10px 20px;
	background: var(--green);
	color: #fff;
	font-family: var(--font-accent);
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.fc-announce {
	transition: background-color .2s ease;
}

.fc-announce:hover,
.fc-announce:focus {
	background: color-mix(in srgb, var(--green), #000 8%);
	color: #fff;
}

.fc-announce__cta {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fc-announce__cta span {
	display: inline-block;
	transition: transform .2s ease;
}

.fc-announce:hover .fc-announce__cta span,
.fc-announce:focus .fc-announce__cta span {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.fc-announce__cta span {
		transition: none;
	}
}

/* All Apartments: 92 Alpine banner, a short version of the news feature card */
.fc-alpine-banner {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	align-items: stretch;
	min-height: 180px;
	background: #fff;
	border-radius: var(--fc-radius-card);
	box-shadow: var(--fc-shadow-rest);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	transition: box-shadow .3s ease, transform .3s ease;
}

/* Same hover as the listing cards: lift, deeper shadow, photo zooms. */
.fc-alpine-banner:hover {
	box-shadow: var(--fc-shadow-hover);
	transform: translateY(-4px);
}

.fc-alpine-banner__media {
	overflow: hidden;
}

.fc-alpine-banner__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.fc-alpine-banner:hover .fc-alpine-banner__media img {
	transform: scale(1.04);
}

.fc-alpine-banner__body {
	grid-column: 2 / -1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	padding: 24px 32px;
}

.fc-alpine-banner,
.fc-alpine-banner:hover,
.fc-alpine-banner:focus,
.fc-alpine-banner * {
	text-decoration: none !important;
}

.fc-alpine-banner .fc-alpine-banner__title {
	color: var(--ink);
	font-family: var(--font-display);
	/* Same as the listing card titles (home.css), accent part included. */
	font-size: 24px;
	line-height: 1em;
	letter-spacing: -0.01em;
}

.fc-alpine-banner__lead {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
}

.fc-alpine-banner__text {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--warm-gray);
}

.fc-alpine-banner .fc-alpine-banner__btn {
	margin-top: 6px;
	padding: 12px 22px;
	border-radius: var(--fc-radius-control);
	background: var(--fc-green);
	color: var(--fc-white);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background .2s ease;
}

.fc-alpine-banner:hover .fc-alpine-banner__btn {
	background: var(--fc-green-dark);
}

/* Homepage, desktop: as wide as the three Now Leasing cards, image as wide as
   the first, the same gap to the cards as between them. */
.fc-alpine-banner--home {
	grid-template-columns: 360px 1fr;
	/* Cards start 2px inside the section gutter (the track's padding), so the
	   banner is 2px in on each side until it reaches its max width. */
	width: calc(100% - 4px);
	max-width: 1112px;
	/* The track adds 24px of padding above the cards, so -8px leaves 16px between. */
	margin: 0 auto -8px;
}

/* All Apartments with no matches: the listings plugin makes .all-listings a plain
   block (fclt-no-results), leaving the banner nothing to subgrid, so it takes the
   homepage banner's size and centres. */
.finney-template.fclt-no-results .fc-alpine-banner {
	grid-template-columns: 360px 1fr;
	width: 100%;
	max-width: 1112px;
	margin-inline: auto;
}

@media (max-width: 680px) {
	.finney-template.fclt-no-results .fc-alpine-banner {
		grid-template-columns: 1fr;
	}
}

/* Same fade-up as the Now Leasing cards (home.css); template-homepage.php adds .is-in. */
@media (prefers-reduced-motion: no-preference) {
	.listings-section .fc-alpine-banner--home {
		opacity: 0;
		transform: translateY(28px);
		transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, opacity 0.5s ease;
	}

	.listings-section .fc-alpine-banner--home.is-in {
		opacity: 1;
		transform: none;
	}

	.listings-section .fc-alpine-banner--home.is-in:hover {
		transform: translateY(-4px);
	}
}

@media (max-width: 1160px) {
	.fc-alpine-banner--home {
		grid-template-columns: 1fr 2fr;
	}
}

/* Homepage, mobile menu range (921px, mobile-menu.css): the banner collapses into
   the carousel as its first card (.card.listing-card), so size, hover and
   entrance come from there. Desktop hides the card; mobile hides the banner. */
.fc-alpine-card {
	display: none !important;
}

@media (max-width: 921px) {
	.fc-alpine-card {
		display: flex !important;
	}

	.fc-alpine-banner--home {
		display: none;
	}
}

/* The body stacks so the buttons
   line up when the cards are different heights. */
.listings-section .card.listing-card {
	display: flex;
	flex-direction: column;
}

.listings-section .card.listing-card .card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.listings-section .card.listing-card .card-cta {
	margin-top: auto;
}

.fc-alpine-card .card-body h3 {
	margin-bottom: 10px;
}

.fc-alpine-card__lead {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.fc-alpine-card__text {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--warm-gray);
}

@media (max-width: 680px) {
	.fc-alpine-banner {
		grid-template-columns: 1fr;
	}

	.fc-alpine-banner__body {
		grid-column: 1;
	}

	.fc-alpine-banner__media {
		aspect-ratio: 16 / 7;
	}
}

.fc-alpine-accent {
	color: var(--fc-green);
	font-family: var(--font-accent);
	font-weight: 400;
}
