/* Flare Homes — homepage sections and footer. Shared layout/component
   utilities (.fh-container, .fh-btn, site header/nav) live in main.css
   since they're used site-wide, not just on the homepage.
   Mobile-first: base rules target small screens, min-width queries layer
   on larger layouts. */

/* ---------------------------------------------------------------------
   Hero
------------------------------------------------------------------------ */
.fh-hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: center;
	background-color: var(--color-forest);
	background-size: cover;
	background-position: center;
	color: #faf6ee;
}
.fh-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 26, 20, 0.55) 0%, rgba(20, 26, 20, 0.65) 100%);
}
.fh-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 3rem 1.25rem;
}
.fh-hero__heading {
	color: #faf6ee;
	font-size: 2.2rem;
	max-width: 20ch;
	margin: 0 auto 1.25rem;
}
.fh-hero__subheading {
	max-width: 55ch;
	margin: 0 auto 2rem;
	font-size: 1.05rem;
	opacity: 0.95;
}
.fh-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

@media (min-width: 600px) {
	.fh-hero__actions {
		flex-direction: row;
		justify-content: center;
	}
	.fh-hero__heading {
		font-size: 3rem;
	}
}

/* ---------------------------------------------------------------------
   Stats
------------------------------------------------------------------------ */
.fh-stats {
	background-color: var(--color-forest);
	padding: 3rem 0;
}
.fh-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 1rem;
	text-align: center;
}
.fh-stat-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.fh-stat-card__value {
	font-family: var(--font-heading);
	font-size: 2rem;
	color: var(--color-gold);
}
.fh-stat-card__label {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #faf6ee;
	opacity: 0.85;
}

@media (min-width: 768px) {
	.fh-stats__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ---------------------------------------------------------------------
   Why Choose
------------------------------------------------------------------------ */
.fh-why-choose {
	padding: 4rem 0;
}
.fh-why-choose__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
.fh-why-choose__card {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 1.75rem 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fh-why-choose__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(43, 42, 39, 0.08);
}
.fh-why-choose__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: rgba(200, 151, 58, 0.12);
	color: var(--color-gold);
	margin-bottom: 1rem;
}
.fh-why-choose__title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}
.fh-why-choose__text {
	font-size: 0.92rem;
	color: #55534c;
	margin: 0;
}

@media (min-width: 600px) {
	.fh-why-choose__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.fh-why-choose__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------------------------------------------------------------------
   Featured Homes (section background only — .fh-card-grid/.fh-property-card
   card design itself lives in main.css since archive/taxonomy pages need
   it too now, Phase 5)
------------------------------------------------------------------------ */
.fh-featured-homes {
	padding: 4rem 0;
	background-color: #f4efe3;
}

/* ---------------------------------------------------------------------
   Destinations / Home Types (term cards)
------------------------------------------------------------------------ */
.fh-destinations,
.fh-home-types {
	padding: 4rem 0;
}
.fh-term-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}
.fh-term-card {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	aspect-ratio: 1 / 1;
}
.fh-term-card__media,
.fh-term-card__media img,
.fh-term-card__media-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.fh-term-card__media img {
	object-fit: cover;
	transition: transform 0.4s ease;
}
.fh-term-card:hover .fh-term-card__media img {
	transform: scale(1.08);
}
.fh-term-card__media-fallback {
	background: linear-gradient(135deg, var(--color-terracotta), var(--color-forest));
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
}
.fh-term-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}
.fh-term-card__name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1rem;
	color: #fff;
	font-family: var(--font-heading);
	font-size: 1.05rem;
}

@media (min-width: 640px) {
	.fh-term-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1024px) {
	.fh-term-card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------------------------------------------------------------------
   Testimonials
------------------------------------------------------------------------ */
.fh-testimonials {
	padding: 4rem 0;
	background-color: #f4efe3;
}
.fh-testimonials__viewport {
	overflow: hidden;
}
.fh-testimonials__track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.4s ease;
}
.fh-testimonial-card {
	flex: 0 0 100%;
	background-color: #fff;
	border-radius: 10px;
	padding: 2rem 1.75rem;
	margin: 0;
	box-shadow: 0 6px 18px rgba(43, 42, 39, 0.06);
}
.fh-testimonial-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1rem;
}
.fh-testimonial-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fh-testimonial-card__quote {
	font-size: 1rem;
	color: var(--color-charcoal);
	margin: 0 0 1rem;
}
.fh-testimonial-card__author {
	font-family: var(--font-heading);
	font-style: normal;
	color: var(--color-forest);
}
.fh-testimonials__controls {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}
.fh-testimonials__controls button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--color-forest);
	background: transparent;
	color: var(--color-forest);
	cursor: pointer;
	font-size: 1.1rem;
}
.fh-testimonials__controls button:hover {
	background-color: var(--color-forest);
	color: #fff;
}

@media (min-width: 640px) {
	.fh-testimonial-card {
		flex: 0 0 calc(50% - 0.75rem);
	}
}
@media (min-width: 1024px) {
	.fh-testimonial-card {
		flex: 0 0 calc(33.333% - 1rem);
	}
}

/* ---------------------------------------------------------------------
   FAQ
------------------------------------------------------------------------ */
.fh-faq {
	padding: 4rem 0;
}
.fh-faq__groups {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 3rem;
	max-width: 1000px;
	margin: 0 auto;
	align-items: start;
}

@media (min-width: 768px) {
	.fh-faq__groups {
		grid-template-columns: repeat(2, 1fr);
	}
}
.fh-faq__group-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-terracotta);
	margin: 0 0 1rem;
}
.fh-faq-item {
	border-bottom: 1px solid var(--color-border);
}
.fh-faq-item__question {
	margin: 0;
}
.fh-faq-item__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: none;
	border: none;
	text-align: left;
	padding: 1rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-charcoal);
	cursor: pointer;
}
.fh-faq-item__icon {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}
.fh-faq-item__icon::before,
.fh-faq-item__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: var(--color-forest);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}
.fh-faq-item__icon::before {
	width: 12px;
	height: 2px;
}
.fh-faq-item__icon::after {
	width: 2px;
	height: 12px;
}
.fh-faq-item__trigger[aria-expanded="true"] .fh-faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}
.fh-faq-item__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.fh-faq-item__answer-inner {
	padding: 0 0 1.25rem;
	color: #55534c;
	font-size: 0.95rem;
}
