/*
 * Homepage-only styles for Island Retreat.
 * Enqueued only when is_front_page() is true.
 */

/* Hero image is injected inline from the theme directory, this is the fallback */
.ec959c-hero {
	min-height: 64vh;
}

.ec959c-hero-in {
	padding-bottom: 60px;
}

.ec959c-hero h1 {
	max-width: 22ch;
	text-wrap: balance;
}

.ec959c-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 32px;
	align-items: end;
	width: 100%;
}

.ec959c-hero-aside {
	border-left: 1px solid rgba(255, 255, 255, .28);
	padding-left: 24px;
}
.ec959c-hero-aside p {
	font-size: 15px;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 14px;
}
.ec959c-hero-aside ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ec959c-hero-aside li {
	font-family: var(--font-head);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .92);
	display: flex;
	align-items: center;
	gap: 8px;
}
.ec959c-hero-aside li::before {
	content: "";
	width: 14px;
	height: 1px;
	background: var(--accent);
	flex: 0 0 14px;
}

/* Bento pick grid: the lead card gets a little more air */
.ec959c-bento--pick .ec959c-card {
	height: 100%;
}

/* Wall grid keeps a fixed rhythm regardless of source aspect ratio */
.ec959c-bento--wall .ec959c-wall-item {
	aspect-ratio: auto;
	min-height: 190px;
}

/* Collection tiles read as a set: same header rhythm, bullets at the bottom */
.ec959c-bento--coll .ec959c-tile {
	min-height: 210px;
}

.ec959c-bento--coll .ec959c-tile:nth-child(1),
.ec959c-bento--coll .ec959c-tile:nth-child(6) {
	background: var(--bg);
}

/* Newsletter sits on the deep tone strip so it reads as the closing block */
.ec959c-sec--sub {
	background: var(--bg-deep);
	padding: 46px 0 56px;
}
.ec959c-sec--sub .ec959c-sub {
	background: #fff;
	border-color: transparent;
	box-shadow: 0 20px 44px -34px rgba(26, 29, 33, .5);
}

@media (max-width: 1080px) {
	.ec959c-hero-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}
	.ec959c-hero-aside {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .22);
		padding-top: 16px;
	}
	.ec959c-bento--wall .ec959c-wall-item { min-height: 160px; }
}

@media (max-width: 900px) {
	.ec959c-hero { min-height: 56vh; }
	.ec959c-hero-split { gap: 18px; }
	.ec959c-hero-aside ul { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
	.ec959c-bento--coll .ec959c-tile { min-height: 0; }
	.ec959c-bento--wall .ec959c-wall-item { min-height: 150px; }
}
