/*
 * Falcon Fire — Home Page
 * Complete front-page styling.
 *
 * Loaded only on the front page.
 * Depends on:
 * - tokens.css
 * - base.css
 * - products-archive.css
 */


/* =========================================================
   GLOBAL HOME RHYTHM
   ========================================================= */

.ff-section {
	padding-block: 52px;
}

@media (min-width: 768px) {
	.ff-section {
		padding-block: 64px;
	}
}

@media (min-width: 1025px) {
	.ff-section {
		padding-block: 72px;
	}
}

.ff-section--tight {
	padding-block: 38px;
}

@media (min-width: 768px) {
	.ff-section--tight {
		padding-block: 48px;
	}
}

@media (min-width: 1025px) {
	.ff-section--tight {
		padding-block: 56px;
	}
}

.ff-section--off-white {
	background-color: var(--ff-off-white);
}

.ff-section--neutral {
	background-color: var(--ff-warm-gray);
}

.ff-section-header {
	max-width: 46rem;
	margin-bottom: 28px;
}

.ff-section-header--with-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	max-width: none;
}

.ff-section-header--with-cta > div:first-child {
	max-width: 46rem;
}

.ff-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: var(--ff-font-weight-secondary);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ff-dark-red);
}

.ff-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	flex: 0 0 auto;
	background: var(--ff-primary-red);
}

.ff-section-heading {
	margin: 0 0 14px;
	font-size: clamp(1.85rem, 3vw, 2.6rem);
	font-weight: var(--ff-font-weight-heading);
	line-height: 1.1;
	letter-spacing: -0.018em;
	color: var(--ff-black);
}

.ff-section-intro {
	margin: 0;
	max-width: 46rem;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ff-charcoal);
}

.ff-section-footer {
	margin-top: 26px;
	text-align: center;
}


/* =========================================================
   HERO
   Full background image on every screen size.
   Safe readable text zone.
   ========================================================= */

.ff-home-hero {
	position: relative;
	min-height: 610px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #ffffff;
	isolation: isolate;
}

/*
 * The real <img> remains in the markup for LCP/fetchpriority,
 * but visually behaves like a full Hero background.
 */
.ff-home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.ff-home-hero__media::before,
.ff-home-hero__media::after {
	display: none;
}

.ff-home-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: 70% center;
}

/*
 * Desktop safe text area.
 * Left side remains effectively white.
 * Fade begins only after the copy area.
 */
.ff-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 1) 0%,
			rgba(255, 255, 255, 1) 38%,
			rgba(255, 255, 255, 0.99) 45%,
			rgba(255, 255, 255, 0.96) 50%,
			rgba(255, 255, 255, 0.78) 57%,
			rgba(255, 255, 255, 0.38) 65%,
			rgba(255, 255, 255, 0.08) 74%,
			rgba(255, 255, 255, 0) 82%
		);
}

.ff-home-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -180px;
	width: 420px;
	height: 420px;
	z-index: 2;
	pointer-events: none;
	border: 28px solid rgba(237, 27, 48, 0.04);
	transform: rotate(45deg);
}

.ff-home-hero__grid {
	position: relative;
	z-index: 3;
	width: 100%;
	min-height: 610px;
	display: flex;
	align-items: center;
}

.ff-home-hero__content {
	position: relative;
	z-index: 4;
	width: 45%;
	max-width: 590px;
	padding-block: 68px;
}

.ff-home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 0.75rem;
	font-weight: var(--ff-font-weight-secondary);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ff-dark-red);
}

.ff-home-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	flex: 0 0 auto;
	background: var(--ff-primary-red);
}

.ff-home-hero__title {
	margin: 0 0 22px;
	max-width: 590px;
	font-size: clamp(2.9rem, 4.35vw, 4.2rem);
	font-weight: var(--ff-font-weight-heading);
	line-height: 1.03;
	letter-spacing: -0.03em;
	color: var(--ff-black);
}

.ff-home-hero__title-accent {
	display: block;
	color: var(--ff-primary-red);
}

.ff-home-hero__body {
	margin: 0 0 28px;
	max-width: 530px;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ff-charcoal);
}

.ff-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}


/* ---------- Hero Tablet ---------- */

@media (max-width: 1023px) {

	.ff-home-hero,
	.ff-home-hero__grid {
		min-height: 570px;
	}

	.ff-home-hero__image {
		object-position: 69% center;
	}

	.ff-home-hero::before {
		background:
			linear-gradient(
				90deg,
				rgba(255, 255, 255, 1) 0%,
				rgba(255, 255, 255, 1) 43%,
				rgba(255, 255, 255, 0.97) 53%,
				rgba(255, 255, 255, 0.80) 64%,
				rgba(255, 255, 255, 0.38) 80%,
				rgba(255, 255, 255, 0.10) 100%
			);
	}

	.ff-home-hero::after {
		display: none;
	}

	.ff-home-hero__content {
		width: 55%;
		max-width: 550px;
		padding-block: 55px;
	}

	.ff-home-hero__title {
		max-width: 540px;
		font-size: clamp(2.55rem, 5.8vw, 3.5rem);
	}

	.ff-home-hero__body {
		max-width: 500px;
	}
}


/* ---------- Hero Mobile ---------- */

@media (max-width: 640px) {

	.ff-home-hero,
	.ff-home-hero__grid {
		min-height: 610px;
	}

	.ff-home-hero__grid {
		align-items: center;
		padding-block: 24px;
	}

	/*
	 * Image remains a background.
	 * Strong light veil ensures readability.
	 */
	.ff-home-hero::before {
		background:
			linear-gradient(
				180deg,
				rgba(255, 255, 255, 0.97) 0%,
				rgba(255, 255, 255, 0.96) 55%,
				rgba(255, 255, 255, 0.90) 72%,
				rgba(255, 255, 255, 0.68) 88%,
				rgba(255, 255, 255, 0.42) 100%
			);
	}

	.ff-home-hero__image {
		object-position: 72% center;
	}

	.ff-home-hero__content {
		width: 100%;
		max-width: 100%;
		padding: 26px 20px 28px;
		background: rgba(255, 255, 255, 0.90);
		border: 1px solid rgba(255, 255, 255, 0.78);
		border-radius: 12px;
		box-shadow: 0 16px 42px rgba(0, 0, 0, 0.055);
	}

	.ff-home-hero__eyebrow {
		margin-bottom: 13px;
		font-size: 0.67rem;
		letter-spacing: 0.10em;
	}

	.ff-home-hero__title {
		max-width: 100%;
		margin-bottom: 17px;
		font-size: clamp(2rem, 9.2vw, 2.6rem);
		line-height: 1.05;
	}

	.ff-home-hero__body {
		max-width: 100%;
		margin-bottom: 21px;
		font-size: 0.9rem;
		line-height: 1.57;
		color: #101214;
	}

	.ff-home-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
	}

	.ff-home-hero__actions .ff-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 46px;
		text-align: center;
	}
}

@media (max-width: 390px) {

	.ff-home-hero,
	.ff-home-hero__grid {
		min-height: 600px;
	}

	.ff-home-hero__content {
		padding: 23px 18px 25px;
	}

	.ff-home-hero__title {
		font-size: 1.92rem;
	}

	.ff-home-hero__body {
		font-size: 0.86rem;
		line-height: 1.55;
	}
}


/* =========================================================
   CATEGORY SHOWCASE
   Clean 3x2 desktop grid
   ========================================================= */

.ff-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ff-category-tile,
.ff-category-tile--pumps,
.ff-category-tile--alarm,
.ff-category-tile--suppression,
.ff-category-tile--valves,
.ff-category-tile--extinguishers,
.ff-category-tile--cabinets {
	position: relative;
	display: block;
	grid-column: auto;
	grid-row: auto;
	width: 100%;
	min-height: 285px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--ff-radius-md);
	background: #111315;
	text-decoration: none;
	isolation: isolate;
}

.ff-category-tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.015);
	transition: transform 0.38s ease;
}

.ff-category-tile__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(5, 6, 7, 0.60);
	transition: background 0.32s ease;
}

.ff-category-tile__body {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 24px;
	color: #fff;
}

.ff-category-tile__label,
.ff-category-tile--pumps .ff-category-tile__label,
.ff-category-tile--alarm .ff-category-tile__label,
.ff-category-tile--cabinets .ff-category-tile__label {
	margin: 0;
	font-size: 1.35rem;
	font-weight: var(--ff-font-weight-heading);
	line-height: 1.18;
	color: #fff;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.ff-category-tile__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 0.78rem;
	font-weight: var(--ff-font-weight-secondary);
	color: rgba(255, 255, 255, 0.88);
}

.ff-category-tile__cta::after {
	content: "\2192";
	transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {

	.ff-category-tile:hover .ff-category-tile__image {
		transform: scale(1.045);
	}

	.ff-category-tile:hover .ff-category-tile__overlay {
		background: rgba(5, 6, 7, 0.10);
	}

	.ff-category-tile:hover .ff-category-tile__body {
		background:
			linear-gradient(
				to top,
				rgba(0, 0, 0, 0.68) 0%,
				rgba(0, 0, 0, 0.17) 48%,
				transparent 74%
			);
	}

	.ff-category-tile:hover .ff-category-tile__cta::after {
		transform: translateX(4px);
	}
}

@media (max-width: 1023px) {

	.ff-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}

	.ff-category-tile,
	.ff-category-tile--pumps,
	.ff-category-tile--alarm,
	.ff-category-tile--suppression,
	.ff-category-tile--valves,
	.ff-category-tile--extinguishers,
	.ff-category-tile--cabinets {
		min-height: 245px;
	}

	.ff-category-tile__overlay {
		background:
			linear-gradient(
				to top,
				rgba(5, 6, 7, 0.74) 0%,
				rgba(5, 6, 7, 0.37) 48%,
				rgba(5, 6, 7, 0.12) 100%
			);
	}
}

@media (max-width: 640px) {

	.ff-category-grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.ff-category-tile,
	.ff-category-tile--pumps,
	.ff-category-tile--alarm,
	.ff-category-tile--suppression,
	.ff-category-tile--valves,
	.ff-category-tile--extinguishers,
	.ff-category-tile--cabinets {
		min-height: 210px;
		aspect-ratio: 16 / 9;
	}

	.ff-category-tile__body {
		padding: 19px;
	}

	.ff-category-tile__label,
	.ff-category-tile--pumps .ff-category-tile__label,
	.ff-category-tile--alarm .ff-category-tile__label,
	.ff-category-tile--cabinets .ff-category-tile__label {
		font-size: 1.22rem;
	}
}


/* =========================================================
   FEATURED PRODUCTS
   Equal white image stages
   ========================================================= */

.ff-product-grid--featured {
	align-items: stretch;
	gap: 18px;
}

@media (min-width: 1024px) {
	.ff-product-grid--featured {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ff-product-grid--featured .ff-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: var(--ff-radius-md);
	box-shadow: none;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.ff-product-grid--featured .ff-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(237, 27, 48, 0.30);
	box-shadow: 0 13px 28px rgba(0, 0, 0, 0.055);
}

.ff-product-grid--featured .ff-product-card__media,
.ff-product-grid--featured .ff-product-card__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 265px;
	min-height: 265px;
	padding: 22px;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #ececec;
}

.ff-product-grid--featured .ff-product-card__image,
.ff-product-grid--featured .ff-product-card__media img,
.ff-product-grid--featured .ff-product-card__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	background: #fff;
}

.ff-product-grid--featured .ff-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	background: #fff;
}

.ff-product-grid--featured .ff-product-card__title {
	font-weight: var(--ff-font-weight-heading);
	line-height: 1.25;
}

.ff-product-grid--featured .ff-product-card__brand {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ff-dark-red);
}

@media (max-width: 1023px) {

	.ff-product-grid--featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}

	.ff-product-grid--featured .ff-product-card__media,
	.ff-product-grid--featured .ff-product-card__image-wrap {
		height: 245px;
		min-height: 245px;
	}
}

@media (max-width: 640px) {

	.ff-product-grid--featured {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ff-product-grid--featured .ff-product-card__media,
	.ff-product-grid--featured .ff-product-card__image-wrap {
		height: 230px;
		min-height: 230px;
		padding: 18px;
	}
}


/* =========================================================
   MANUFACTURERS
   Ready for six logos
   ========================================================= */

.ff-manufacturers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 26px;
}

.ff-manufacturer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 145px;
	padding: 26px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: var(--ff-radius-md);
	text-align: center;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.ff-manufacturer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 22px;
	right: 22px;
	height: 2px;
	background: var(--ff-primary-red);
}

.ff-manufacturer:hover {
	transform: translateY(-3px);
	border-color: rgba(237, 27, 48, 0.30);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ff-manufacturer__logo {
	display: block;
	width: auto;
	height: 58px;
	max-width: 180px;
	max-height: 64px;
	object-fit: contain;
	object-position: center;
}

.ff-manufacturer__wordmark {
	font-size: 1.2rem;
	font-weight: var(--ff-font-weight-heading);
	color: var(--ff-black);
}

.ff-manufacturer__note {
	display: none;
}

.ff-manufacturers-footnote {
	margin: 20px 0 0;
	max-width: 46rem;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--ff-charcoal);
	opacity: 0.64;
}

@media (max-width: 900px) {

	.ff-manufacturers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {

	.ff-manufacturers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ff-manufacturer {
		min-height: 108px;
		padding: 17px 12px;
	}

	.ff-manufacturer__logo {
		height: 40px;
		max-width: 125px;
	}
}


/* =========================================================
   SOLUTIONS
   ========================================================= */

.ff-solutions-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

@media (min-width: 640px) {
	.ff-solutions-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.ff-solutions-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ff-solution-card {
	padding: 23px;
	background: var(--ff-white);
	border: 1px solid #e5e5e5;
	border-radius: var(--ff-radius-md);
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.ff-solution-card:hover {
	transform: translateY(-3px);
	border-color: rgba(237, 27, 48, 0.28);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
}

.ff-solution-card__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	margin-bottom: 15px;
	border-radius: var(--ff-radius-sm);
	background: var(--ff-off-white);
	color: var(--ff-primary-red);
	font-size: 0.86rem;
	font-weight: var(--ff-font-weight-heading);
}

.ff-solution-card__title {
	margin: 0 0 8px;
	font-size: 1.03rem;
	font-weight: var(--ff-font-weight-secondary);
	line-height: 1.3;
	color: var(--ff-black);
}

.ff-solution-card__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.58;
	color: var(--ff-charcoal);
}


/* =========================================================
   WHY FALCON FIRE
   ========================================================= */

.ff-why-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.ff-why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.ff-why-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 18px;
	}
}

.ff-why-item {
	padding-top: 17px;
	border-top: 2px solid var(--ff-primary-red);
}

.ff-why-item__title {
	margin: 0 0 8px;
	font-size: 0.96rem;
	font-weight: var(--ff-font-weight-secondary);
	line-height: 1.35;
	color: var(--ff-black);
}

.ff-why-item__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.58;
	color: var(--ff-charcoal);
}


/* =========================================================
   MOBILE SECTION REFINEMENTS
   ========================================================= */

@media (max-width: 640px) {

	.ff-section {
		padding-block: 42px;
	}

	.ff-section--tight {
		padding-block: 35px;
	}

	.ff-section-header {
		margin-bottom: 22px;
	}

	.ff-section-header--with-cta {
		align-items: flex-start;
		gap: 16px;
	}

	.ff-section-heading {
		font-size: clamp(1.7rem, 8vw, 2.1rem);
	}

	.ff-section-intro {
		font-size: 0.94rem;
		line-height: 1.58;
	}
}