/* ==========================================================================
   Axiora Global – Facility Management Page
   Hero replicates the "ProjectOne" kit: cross-fading photo slideshow, serif
   headline with a thin divider, CTA, icon counters along the bottom and
   frosted-glass cards on the right
   ========================================================================== */

.facility-page {
	--fm-serif: "Playfair Display", Georgia, serif;
	--fm-sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--fm-teal: #028183;
	--fm-teal-dark: #016668;
	--fm-ink: #011f20;

	font-family: var(--fm-sans);
	background: #ffffff;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.facility-page * {
	box-sizing: border-box;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.fm-hero {
	position: relative;
	min-height: max(800px, calc(100vh - 56px));
	min-height: max(800px, calc(100svh - 56px));
	display: flex;
	overflow: hidden;
	background: var(--fm-ink);
	color: #ffffff;
}

/* Two photos cross-fade with a slow zoom, then repeat */
.fm-hero-slides,
.fm-hero-slide {
	position: absolute;
	inset: 0;
}

.fm-hero-slide {
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: fm-slide 16s infinite;
}

/* Negative delay so the first photo is already showing on load */
.fm-hero-slide:nth-child(1) {
	animation-delay: -1.3s;
}

.fm-hero-slide:nth-child(2) {
	animation-delay: 6.7s;
}

.fm-hero-slides::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(1, 20, 21, 0.85) 0%, rgba(1, 20, 21, 0.6) 55%, rgba(1, 20, 21, 0.35) 100%);
}

@keyframes fm-slide {
	0% { opacity: 0; transform: scale(1); }
	8% { opacity: 1; }
	50% { opacity: 1; }
	58% { opacity: 0; transform: scale(1.12); }
	100% { opacity: 0; transform: scale(1); }
}

/* Copy and counters on the left, glass cards pinned bottom-right */
.fm-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 110px 20px 70px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	grid-template-rows: 1fr auto;
	column-gap: 40px;
}

.fm-hero-copy {
	grid-column: 1;
	grid-row: 1;
	max-width: 820px;
	align-self: center;
}

.fm-hero-title {
	margin: 0;
	font-family: var(--fm-serif);
	font-size: clamp(2.75rem, 4.6vw, 4.7rem);
	font-weight: 500;
	line-height: 1.2;
	color: #ffffff;
}

.fm-hero-divider {
	width: 100%;
	max-width: 600px;
	margin: 40px 0 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.fm-hero-text {
	max-width: 600px;
	margin: 0;
	padding: 20px 0 30px;
	font-size: 1.125rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

.fm-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px 12px 25px;
	border-radius: 6px;
	background: var(--fm-teal);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.fm-btn:hover,
.fm-btn:focus-visible {
	background: var(--fm-teal-dark);
	color: #ffffff;
}

.fm-hero-stats {
	grid-column: 1;
	grid-row: 2;
	list-style: none;
	margin: 80px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 30px 60px;
}

.fm-hero-stats li {
	display: flex;
	align-items: flex-start;
	gap: 25px;
}

.fm-hero-stats svg {
	flex-shrink: 0;
	margin-top: 10px;
	color: #ffffff;
	transition: color 0.3s ease;
}

.fm-hero-stats li:hover svg {
	color: #00d4c6;
}

.fm-hero-stats strong {
	display: block;
	font-size: 3.125rem;
	font-weight: 600;
	line-height: 1.04;
	color: #ffffff;
}

.fm-hero-stats span {
	display: block;
	font-size: 1.125rem;
	line-height: 1.55;
	color: #ffffff;
}

.fm-hero-cards {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Frosted glass panel */
.fm-glass {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fm-glass--media {
	padding: 0 20px;
}

.fm-media {
	margin: 20px 0;
	min-height: 220px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #ffffff;
	text-decoration: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%),
		var(--fm-card-bg) center / cover no-repeat;
}

.fm-media-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--fm-teal);
	color: #ffffff;
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 0 rgba(2, 129, 131, 0.6);
	animation: fm-pulse 2s infinite;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fm-media:hover .fm-media-btn,
.fm-media:focus-visible .fm-media-btn {
	background: #ffffff;
	color: var(--fm-teal);
}

.fm-media-label {
	font-size: 1.125rem;
	line-height: 1.55;
}

@keyframes fm-pulse {
	70% { box-shadow: 0 0 0 16px rgba(2, 129, 131, 0); }
	100% { box-shadow: 0 0 0 0 rgba(2, 129, 131, 0); }
}

.fm-glass--info {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 25px;
}

/* Overlapping round icons standing in for the reference's avatar group */
.fm-info-icons {
	display: flex;
	flex-shrink: 0;
}

.fm-info-icons span {
	width: 46px;
	height: 46px;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: var(--fm-teal);
	color: #ffffff;
	display: grid;
	place-items: center;
}

.fm-info-icons span + span {
	margin-left: -12px;
}

.fm-info-icons span:nth-child(2) {
	background: var(--fm-teal-dark);
}

.fm-info-icons span:nth-child(3) {
	background: var(--fm-ink);
}

.fm-glass--info strong {
	display: block;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.07;
	color: #ffffff;
}

.fm-glass--info div span {
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
	.fm-hero-slide {
		animation: none;
	}

	.fm-hero-slide:first-child {
		opacity: 1;
	}

	.fm-media-btn {
		animation: none;
	}
}

/* ==========================================================================
   2. ABOUT
   ========================================================================== */
.fm-container {
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 20px;
}

.fm-about {
	padding: 110px 0;
	background:
		radial-gradient(ellipse 45% 60% at 0% 100%, rgba(0, 212, 198, 0.08) 0%, transparent 70%),
		#ffffff;
}

.fm-about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 5vw, 80px);
	align-items: center;
}

/* Collage: photo top-right, larger photo bottom-left, framed photo
   overlapping bottom-right, sparkles in the empty top-left corner */
.fm-about-media {
	position: relative;
	aspect-ratio: 620 / 560;
}

.fm-about-spark {
	position: absolute;
	top: 3%;
	left: 6%;
	color: var(--fm-teal);
}

.fm-about-img {
	position: absolute;
	display: block;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 18px 40px rgba(1, 31, 32, 0.12);
}

.fm-about-img--top {
	top: 0;
	right: 6%;
	width: 58%;
	height: 52%;
}

.fm-about-img--main {
	left: 0;
	bottom: 0;
	width: 52%;
	height: 66%;
	object-position: 40% center;
	z-index: 1;
}

.fm-about-img--small {
	right: 12%;
	bottom: 2%;
	width: 42%;
	height: 42%;
	z-index: 2;
	border: 8px solid #ffffff;
}

.fm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fm-teal);
}

.fm-eyebrow::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2c.9 5 2.4 6.5 7.4 7.4-5 .9-6.5 2.4-7.4 7.4-.9-5-2.4-6.5-7.4-7.4C6.6 8.5 8.1 7 9 2zm9 11c.5 2.8 1.3 3.6 4.1 4.1-2.8.5-3.6 1.3-4.1 4.1-.5-2.8-1.3-3.6-4.1-4.1 2.8-.5 3.6-1.3 4.1-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2c.9 5 2.4 6.5 7.4 7.4-5 .9-6.5 2.4-7.4 7.4-.9-5-2.4-6.5-7.4-7.4C6.6 8.5 8.1 7 9 2zm9 11c.5 2.8 1.3 3.6 4.1 4.1-2.8.5-3.6 1.3-4.1 4.1-.5-2.8-1.3-3.6-4.1-4.1 2.8-.5 3.6-1.3 4.1-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fm-title {
	margin: 0 0 20px;
	font-family: var(--fm-sans);
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fm-ink);
}

.fm-about-text {
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #5b6b6c;
}

.fm-about-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 28px;
	border-bottom: 1px solid #dbe7e7;
}

.fm-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.fm-checklist li {
	position: relative;
	padding-left: 28px;
	font-size: 1rem;
	color: #3d4f50;
}

.fm-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 18px;
	border: 1.6px solid var(--fm-teal);
	border-radius: 50%;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23028183' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 12.5 10.5 17 18 8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.fm-stat-box {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 26px;
	border-radius: 6px;
	background: #e9f6f6;
}

.fm-stat-box strong {
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1;
	color: var(--fm-teal);
}

.fm-stat-box span {
	max-width: 90px;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #5b6b6c;
}

.fm-about-features {
	list-style: none;
	margin: 0;
	padding: 28px 0 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
}

.fm-about-features li {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 240px;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--fm-ink);
}

.fm-about-features svg {
	flex-shrink: 0;
	color: var(--fm-teal);
}

.fm-about-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 32px;
}

.fm-btn--pill {
	border-radius: 999px;
	padding: 14px 28px;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}

.fm-about-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.fm-about-contact-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid #e9f6f6;
	background: #ffffff;
	color: var(--fm-teal);
	display: grid;
	place-items: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fm-about-contact:hover .fm-about-contact-icon,
.fm-about-contact:focus-visible .fm-about-contact-icon {
	background: var(--fm-teal);
	color: #ffffff;
}

.fm-about-contact strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--fm-ink);
}

.fm-about-contact small {
	display: block;
	font-size: 0.875rem;
	color: #5b6b6c;
}

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
.fm-services {
	position: relative;
	padding: 100px 0;
	overflow: hidden;
	background:
		linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.45) 38.2%, transparent 52%),
		linear-gradient(160deg, #eef8f8 0%, #d4eeed 100%);
}

.fm-services-head {
	max-width: 720px;
	margin: 0 auto 50px;
	text-align: center;
}

/* Sparkle on both sides of the label */
.fm-eyebrow--both::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2c.9 5 2.4 6.5 7.4 7.4-5 .9-6.5 2.4-7.4 7.4-.9-5-2.4-6.5-7.4-7.4C6.6 8.5 8.1 7 9 2zm9 11c.5 2.8 1.3 3.6 4.1 4.1-2.8.5-3.6 1.3-4.1 4.1-.5-2.8-1.3-3.6-4.1-4.1 2.8-.5 3.6-1.3 4.1-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2c.9 5 2.4 6.5 7.4 7.4-5 .9-6.5 2.4-7.4 7.4-.9-5-2.4-6.5-7.4-7.4C6.6 8.5 8.1 7 9 2zm9 11c.5 2.8 1.3 3.6 4.1 4.1-2.8.5-3.6 1.3-4.1 4.1-.5-2.8-1.3-3.6-4.1-4.1 2.8-.5 3.6-1.3 4.1-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fm-services-head .fm-title {
	margin-bottom: 10px;
}

.fm-services-sub {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--fm-teal);
}

.fm-services-grid {
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.fm-services.is-collapsed .fm-svc.is-extra {
	display: none;
}

/* Card: fixed-height photo on the left, white text panel overlapping it
   on the right. The fixed height keeps every card compact and equal. */
.fm-svc {
	position: relative;
	display: flex;
	align-items: center;
	padding: 20px;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(1, 31, 32, 0.05);
}

.fm-svc-img {
	display: block;
	width: 42%;
	height: 250px;
	object-fit: cover;
	border-radius: 6px;
}

.fm-svc-panel {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 62%;
	padding: 28px 30px 26px;
	border-bottom: 3px solid rgba(2, 129, 131, 0.25);
	border-radius: 4px;
	background: #ffffff;
	box-shadow: -10px 12px 30px rgba(1, 31, 32, 0.1);
	transform: translateY(-50%);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.fm-svc:hover .fm-svc-panel {
	border-color: var(--fm-teal);
	transform: translateY(calc(-50% - 4px));
}

.fm-svc-panel h3 {
	margin: 0 0 10px;
	font-family: var(--fm-sans);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--fm-ink);
	transition: color 0.3s ease;
}

.fm-svc:hover .fm-svc-panel h3 {
	color: var(--fm-teal);
}

.fm-svc-panel p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #5b6b6c;
}

.fm-services-note {
	margin: 18px auto 0;
	font-size: 0.8rem;
	color: #5b6b6c;
}

.fm-services.is-collapsed .fm-services-note {
	display: none;
}

.fm-services-foot {
	margin-top: 40px;
	text-align: center;
}

.fm-services-foot .fm-btn {
	border: 0;
	font-family: var(--fm-sans);
	cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
	.fm-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		row-gap: 50px;
		padding: 80px 20px 50px;
	}

	.fm-hero-copy,
	.fm-hero-stats,
	.fm-hero-cards {
		grid-column: 1;
		grid-row: auto;
	}

	.fm-hero-stats {
		margin-top: 0;
	}

	.fm-hero-cards {
		flex-direction: row;
		align-items: stretch;
	}

	.fm-glass {
		flex: 1 1 0;
	}

	.fm-about {
		padding: 80px 0;
	}

	.fm-about-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fm-about-media {
		width: 100%;
		max-width: 620px;
		margin: 0 auto;
	}

	.fm-services {
		padding: 80px 0;
	}
}

@media (max-width: 991px) {
	.fm-services-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
	}
}

@media (max-width: 767px) {
	.fm-hero-inner {
		padding: 60px 16px 40px;
		text-align: center;
	}

	.fm-hero-copy {
		justify-self: center;
	}

	.fm-hero-divider,
	.fm-hero-text {
		margin-left: auto;
		margin-right: auto;
	}

	.fm-hero-stats {
		flex-direction: column;
		align-items: center;
	}

	.fm-hero-stats li {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.fm-hero-stats svg {
		margin-top: 0;
	}

	.fm-hero-stats strong {
		font-size: 2.5rem;
	}

	.fm-hero-cards {
		flex-direction: column;
	}

	.fm-glass--info {
		text-align: left;
	}

	.fm-container {
		padding: 0 16px;
	}

	.fm-about {
		padding: 60px 0;
	}

	.fm-about-img--small {
		border-width: 5px;
	}

	.fm-about-spark {
		width: 44px;
		height: 44px;
	}

	.fm-about-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-services {
		padding: 60px 0;
	}

	/* Stack: photo on top, panel overlapping its lower edge */
	.fm-svc {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 16px;
	}

	.fm-svc-img {
		width: 100%;
		height: 200px;
	}

	.fm-svc-panel {
		position: relative;
		top: auto;
		right: auto;
		width: auto;
		margin: -40px 12px 0;
		padding: 20px;
		transform: none;
		text-align: left;
	}

	.fm-svc:hover .fm-svc-panel {
		transform: translateY(-4px);
	}
}
