/* =========================================================
   Home page (front-page.php) — v1.6.0
   Same palette and type as the listing pages.
   ========================================================= */

.ich-home{
	/* Astra's content wrapper (.ast-container) is a flex row on desktop;
	   without these the page shrinks to its content and sits flush left. */
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--ich-ink);
	background: var(--ich-bg);
	font-size: 1rem;
	line-height: 1.6;
}
.ich-home h1,
.ich-home h2,
.ich-home h3{
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	color: var(--ich-ink);
	line-height: 1.12;
	letter-spacing: -0.005em;
	margin: 0;
}
.ich-home .ich-wrap{
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.ich-home .ich-h2{ font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.ich-home .ich-h3{ font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.ich-eyebrow{
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ich-brass);
}
.ich-eyebrow--light{ color: #E3CF9F; }
.ich-prose p{ margin: 0 0 1em; }
.ich-prose p:last-child{ margin-bottom: 0; }

/* ---- Buttons ---- */
.ich-btn-row{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 30px;
}
.ich-home .ich-btn{
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ich-home .ich-btn--solid,
.ich-home .ich-btn--light,
.ich-home .ich-btn--ghost{ padding: 14px 26px; border: 1px solid transparent; }
.ich-home .ich-btn--solid{ background: var(--ich-accent); color: #fff; }
.ich-home .ich-btn--solid:hover{ background: var(--ich-ink); color: #fff; }
.ich-home .ich-btn--light{ background: var(--ich-bg); color: var(--ich-ink); }
.ich-home .ich-btn--light:hover{ background: #fff; color: var(--ich-accent); }
.ich-home .ich-btn--ghost{ border-color: rgba(255,255,255,0.7); color: #fff; }
.ich-home .ich-btn--ghost:hover{ background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.ich-home .ich-btn--text{
	color: var(--ich-accent);
	padding: 4px 0;
	border-bottom: 1px solid var(--ich-accent-soft);
	white-space: nowrap;
}
.ich-home .ich-btn--text::after{ content: " \2192"; }
.ich-home .ich-btn--text:hover{ color: var(--ich-ink); border-color: var(--ich-ink); }
/* "View All …" section buttons (1.26.0 Featured Listings, 1.27.0 Home).
   Compact outline button: smaller than the main buttons, but clearly a
   button. Desktop: beside the section heading. 860px and below: under the
   cards, right after the listings (see the tablet/phone block below). */
.ich-home .ich-btn--view-all{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border: 1px solid var(--ich-accent);
	background: var(--ich-card);
	color: var(--ich-accent);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.ich-home .ich-btn--view-all::after{
	content: "\2192";
	transition: transform 0.2s ease;
}
.ich-home .ich-btn--view-all:hover,
.ich-home .ich-btn--view-all:focus-visible{
	background: var(--ich-accent);
	border-color: var(--ich-accent);
	color: #fff;
}
.ich-home .ich-btn--view-all:hover::after{ transform: translateX(3px); }
.ich-view-all--after{ display: none; }

.ich-home a:focus-visible,
.ich-home button:focus-visible{ outline: 2px solid var(--ich-accent); outline-offset: 3px; }

/* ---- 1. Video hero ---- */
.ich-hero{
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 900px);
	min-height: min(88svh, 900px);
	overflow: hidden;
	background: var(--ich-ink);
	color: #fff;
	isolation: isolate;
}
.ich-hero.is-plain{ background: linear-gradient(135deg, var(--ich-accent) 0%, var(--ich-ink) 100%); }
.ich-hero-media,
.ich-hero-media img,
.ich-hero-video{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ich-hero-media{ z-index: -2; }
.ich-hero-video{
	opacity: 0;
	transition: opacity 0.8s ease;
}
.ich-hero.is-playing .ich-hero-video{ opacity: 1; }
/* Shade so white type stays readable over any footage */
.ich-hero::before{
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(20,22,26,0.78) 0%, rgba(20,22,26,0.35) 45%, rgba(20,22,26,0.15) 100%),
		linear-gradient(to right, rgba(20,22,26,0.45) 0%, rgba(20,22,26,0) 60%);
}
.ich-hero-inner{
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 120px 24px clamp(56px, 9vh, 104px);
}
.ich-home .ich-hero-heading{
	max-width: 15ch;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	font-weight: 400;
	line-height: 1.04;
	color: #fff;
}
.ich-hero-sub{
	max-width: 40em;
	margin: 20px 0 0;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: rgba(255,255,255,0.88);
}
.ich-home .ich-hero-toggle{
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	background: rgba(20,22,26,0.45);
	border: 1px solid rgba(255,255,255,0.45);
	border-radius: 999px;
	color: #fff;
	font-family: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
}
.ich-home .ich-hero-toggle:hover{ background: rgba(20,22,26,0.7); color: #fff; }
.ich-home .ich-hero-toggle:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }
.ich-hero-toggle[hidden]{ display: none !important; }
/* Play triangle by default; two pause bars while playing */
.ich-hero-toggle-icon{
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
	margin-left: 2px;
}
.ich-hero.is-playing .ich-hero-toggle-icon{
	width: 8px;
	height: 10px;
	border: 0;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
	margin-left: 0;
}

/* ---- 2. Introduction ---- */
.ich-intro{ padding: clamp(64px, 9vw, 120px) 0; }
.ich-intro-grid{
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 32px 72px;
	align-items: start;
}
.ich-intro-body{
	font-size: 1.08rem;
	line-height: 1.75;
	padding-top: 6px;
}
.ich-intro-body .ich-btn-row{ margin-top: 32px; }

/* ---- 3. Three panels ---- */
.ich-panels{ padding: 0 0 clamp(64px, 9vw, 120px); }
.ich-panel-list{
	list-style: none;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.ich-panel a{
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ich-card);
	border: 1px solid var(--ich-line);
	color: var(--ich-ink);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.ich-panel a:hover{ border-color: var(--ich-accent); }
.ich-panel-media{
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ich-band);
}
.ich-panel-media.is-empty{
	aspect-ratio: auto;
	height: 6px;
	background: var(--ich-accent);
}
.ich-panel-media img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ich-panel a:hover .ich-panel-media img,
.ich-panel a:focus-visible .ich-panel-media img{ transform: scale(1.08); }
.ich-panel-body{
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 26px 26px 28px;
}
.ich-panel-num{
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-size: 0.95rem;
	color: var(--ich-brass);
}
.ich-panel-title{
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.45rem;
	line-height: 1.2;
}
.ich-panel-text{
	color: var(--ich-ink-soft);
	font-size: 0.97rem;
	flex: 1;
}
.ich-panel-link{
	align-self: flex-start;
	margin-top: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ich-accent);
	border-bottom: 1px solid var(--ich-accent-soft);
}
.ich-panel-link::after{ content: " \2192"; }

/* ---- 4. Featured listings ---- */
.ich-featured{
	padding: clamp(64px, 9vw, 112px) 0;
	background: var(--ich-card);
	border-top: 1px solid var(--ich-line);
	border-bottom: 1px solid var(--ich-line);
}
.ich-section-head{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
	margin-bottom: 34px;
}
.ich-section-head--sub{
	margin-top: clamp(56px, 7vw, 84px);
	padding-top: 32px;
	border-top: 1px solid var(--ich-line);
	margin-bottom: 26px;
}
.ich-section-intro{
	margin: 10px 0 0;
	max-width: 40em;
	color: var(--ich-ink-soft);
}
.ich-cards{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.ich-card a{
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--ich-ink);
	text-decoration: none;
}
.ich-card-media{
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ich-band);
}
.ich-card-media img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ich-card a:hover .ich-card-media img,
.ich-card a:focus-visible .ich-card-media img{ transform: scale(1.08); }
.ich-card-badge{
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 5px 11px;
	background: rgba(246,244,239,0.94);
	color: var(--ich-accent);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	border-radius: 2px;
}
.ich-card-body{
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 18px 2px 4px;
}
.ich-card-price{
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.4rem;
	color: var(--ich-accent);
}
.ich-card-title{
	font-weight: 500;
	font-size: 1.02rem;
}
.ich-card a:hover .ich-card-title{ text-decoration: underline; text-underline-offset: 3px; }
.ich-card-meta,
.ich-card-facts{
	font-size: 0.9rem;
	color: var(--ich-ink-soft);
}
.ich-card-facts{ margin-top: 4px; }
.ich-card--commercial .ich-card-price{ font-size: 1.2rem; }

/* ---- 5. About ---- */
.ich-about{ padding: clamp(64px, 9vw, 120px) 0; }
.ich-about-grid{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px 72px;
	align-items: center;
}
.ich-about.no-image .ich-about-grid{ grid-template-columns: minmax(0, 760px); justify-content: center; }
.ich-about-media img{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.ich-about-body .ich-prose{
	margin: 22px 0 26px;
	font-size: 1.05rem;
	line-height: 1.75;
}

/* ---- 6. Closing call to action ---- */
.ich-closing{
	padding: clamp(64px, 8vw, 104px) 0;
	background: var(--ich-accent);
	color: rgba(255,255,255,0.88);
	text-align: center;
}
.ich-home .ich-closing h2{ color: #fff; }
.ich-closing p{ margin: 14px auto 0; max-width: 34em; font-size: 1.05rem; }
.ich-closing .ich-btn-row{ justify-content: center; }
.ich-home .ich-closing-phone{
	color: #fff;
	text-decoration: none;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	border-bottom: 1px solid rgba(255,255,255,0.5);
	padding: 4px 0;
}
.ich-home .ich-closing-phone:hover{ border-color: #fff; color: #fff; }
.ich-home .ich-closing a:focus-visible{ outline-color: #fff; }

/* ---- Tablet / phone ---- */
@media (max-width: 860px){
	.ich-hero{ min-height: 78vh; min-height: 78svh; }
	.ich-hero-inner{ padding-bottom: 84px; } /* clear of the pause button */
	.ich-home .ich-hero-toggle{ right: 16px; bottom: 18px; }
	.ich-hero-toggle-label{
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.ich-home .ich-hero-toggle{ padding: 10px; }
	.ich-hero-toggle-icon{ margin-left: 2px; }

	.ich-intro-grid,
	.ich-about-grid{ grid-template-columns: 1fr; }
	.ich-about-media img{ aspect-ratio: 4 / 3; }

	.ich-panel-list{ grid-template-columns: 1fr; gap: 16px; }
	.ich-panel a{ flex-direction: row; }
	.ich-panel-media{ flex: 0 0 34%; aspect-ratio: auto; }
	.ich-panel-media.is-empty{ flex: 0 0 6px; height: auto; }
	.ich-panel-body{ padding: 18px 18px 20px; }
	.ich-panel-text{ font-size: 0.92rem; }

	/* Featured rows swipe sideways, with the next card peeking in */
	.ich-cards{
		display: flex;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		margin: 0 -24px;
		padding: 0 24px 6px;
		scroll-padding: 0 24px;
		scrollbar-width: none;
	}
	.ich-cards::-webkit-scrollbar{ display: none; }
	.ich-card{ flex: 0 0 82%; scroll-snap-align: start; }
	.ich-cards:has(.ich-card:only-child) .ich-card{ flex-basis: 100%; }
	/* "View All …" moves from the heading to right after the cards */
	.ich-home .ich-btn--view-all.ich-view-all--head{ display: none; }
	.ich-view-all--after{
		display: flex;
		justify-content: center;
		margin-top: 30px;
	}
	.ich-home .ich-view-all--after .ich-btn--view-all{
		justify-content: center;
		min-width: min(100%, 300px);
		padding: 13px 22px;
		white-space: normal;
		text-align: center;
	}
}
@media (max-width: 520px){
	.ich-home .ich-view-all--after .ich-btn--view-all{ width: 100%; }
	.ich-btn-row .ich-btn--solid,
	.ich-btn-row .ich-btn--light,
	.ich-btn-row .ich-btn--ghost{ flex: 1 1 100%; text-align: center; }
	.ich-panel-media{ flex-basis: 38%; }
}

@media (prefers-reduced-motion: reduce){
	.ich-home .ich-btn--view-all::after,
	.ich-home .ich-btn,
	.ich-hero-video,
	.ich-panel a,
	.ich-panel-media img,
	.ich-card-media img{ transition: none; }
	.ich-panel a:hover .ich-panel-media img,
	.ich-panel a:focus-visible .ich-panel-media img,
	.ich-card a:hover .ich-card-media img,
	.ich-card a:focus-visible .ich-card-media img{ transform: none; }
}

/* Home page: let the full-width sections run edge to edge whatever
   container width/padding the Astra Customizer has set. */
.home .site-content > .ast-container,
.ich-full-width .site-content > .ast-container{
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

@media print{
	.ich-btn--view-all, .ich-view-all--after{ display: none !important; }
	.ich-hero-video,
	.ich-hero-toggle{ display: none !important; }
	.ich-hero{ min-height: 0; }
}
