/**
 * Eclipse Amenities widget: photo band with frosted-glass icon cards.
 *
 * Uses the theme's --ecl-* tokens with fallbacks.
 */

.ecl-amen {
	--ecl-amen-min: 140px;
	--ecl-amen-card: rgba(255, 255, 255, 0.12);
	--ecl-amen-card-hover: rgba(255, 255, 255, 0.22);
	--ecl-amen-card-border: rgba(255, 255, 255, 0.22);
	--ecl-amen-tile: rgba(196, 150, 78, 0.18);
	--ecl-amen-tile-border: rgba(196, 150, 78, 0.45);
	--ecl-amen-icon: var(--ecl-gold, #c4964e);
	--ecl-amen-blur: 12px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ecl-navy, #0e1d2e);
	color: var(--ecl-on-dark, #fff);
}

/* Photo (two classes to beat Elementor's `.elementor img` rule). */
.ecl-amen__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.ecl-amen .ecl-amen__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.ecl-amen__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 21, 33, 0.8) 0%, rgba(10, 21, 33, 0.45) 45%, rgba(10, 21, 33, 0.75) 100%);
	pointer-events: none;
}

/* Heading at the top, cards at the bottom. */
.ecl-amen__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 64px;
	max-width: var(--ecl-container, 1280px);
	min-height: 760px;
	margin: 0 auto;
	padding: 88px var(--ecl-gutter, 28px) 64px;
}

.ecl-amen__eyebrow {
	margin: 0 0 18px;
	color: var(--ecl-gold, #c4964e);
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	line-height: 1.5;
	text-transform: uppercase;
}

.ecl-amen__title {
	max-width: 14ch;
	margin: 0;
	color: var(--ecl-on-dark, #fff);
	font-size: var(--ecl-fs-display, clamp(2.125rem, 4.6vw, 3.625rem));
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.1;
}

/* Cards */
.ecl-amen__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ecl-amen-min)), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecl-amen__item {
	display: flex;
	margin: 0;
}

.ecl-amen__card {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 22px 12px;
	border: 1px solid var(--ecl-amen-card-border);
	border-radius: 16px;
	background: var(--ecl-amen-card);
	color: var(--ecl-on-dark, #fff);
	text-align: center;
	text-decoration: none;
	-webkit-backdrop-filter: blur(var(--ecl-amen-blur));
	backdrop-filter: blur(var(--ecl-amen-blur));
	transition: background-color 0.3s;
}

a.ecl-amen__card:hover,
a.ecl-amen__card:focus-visible {
	background: var(--ecl-amen-card-hover);
	color: var(--ecl-on-dark, #fff);
}

a.ecl-amen__card:focus-visible {
	outline: 2px solid var(--ecl-gold, #c4964e);
	outline-offset: 3px;
}

.ecl-amen__tile {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--ecl-amen-tile-border);
	border-radius: 12px;
	background: var(--ecl-amen-tile);
	color: var(--ecl-amen-icon);
	font-size: 26px; /* Icon size (icons are 1em). */
}

.ecl-amen__label {
	color: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	text-wrap: balance;
	hyphens: none;
	overflow-wrap: normal;
}
