/* =========================================================
   Site header + footer (inc/site-chrome.php) — v1.7.0
   v1.19.0: "you are here" for listing/sold/blog pages (.ich-current-section),
   footer About text + Where We Build column (4 columns), directions link.
   Desktop menu above 960px; phone/tablet menu panel at 960px and below.
   ========================================================= */

.ich-hdr .screen-reader-text,
.ich-ftr .screen-reader-text{
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Header ---- */
.ich-hdr{
	position: relative;
	z-index: 200;
	background: var(--ich-card);
	border-bottom: 1px solid var(--ich-line);
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--ich-ink);
}
.ich-hdr-inner{
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.ich-hdr a:focus-visible,
.ich-hdr button:focus-visible,
.ich-ftr a:focus-visible{
	outline: 2px solid var(--ich-accent);
	outline-offset: 3px;
}

/* Brand (logo, or the site name until a logo is uploaded) */
.ich-brand{
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ich-ink);
}
.ich-brand-logo{
	display: block;
	width: auto;
	height: auto;
	max-height: 64px;
	max-width: 260px;
}
.ich-brand-name{
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.55rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.1;
}

/* 1.24.0: built-in brand = gold compass over "INTRACOASTAL / — HOMES, LLC —"
   (ich_brand_mark_html() in inc/site-chrome.php). Set like the client's logo. */
.ich-brand--mark{
	flex-direction: column;
	align-items: center;
	gap: 7px;
	color: var(--ich-ink);
}
.ich-brand-mark,
.ich-brand-mark img{ display: block; }
.ich-brand-mark img{
	width: auto;
	height: 58px;
}
.ich-brand-word{
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: 'Fraunces', Georgia, serif;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}
.ich-brand-word-1{
	font-size: 1.12rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	padding-left: 0.14em; /* balances the trailing letter-space so it stays centred */
}
.ich-brand-word-2{
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	padding-left: 0.3em;
}
.ich-brand-word-2::before,
.ich-brand-word-2::after{
	content: "";
	width: 22px;
	height: 1px;
	background: var(--ich-brass);
}

.ich-hdr-panel{
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* Line 1: phone · email · social */
.ich-hdr-contact{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 20px;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
}
.ich-hdr-contact > a{
	color: var(--ich-ink-soft);
	text-decoration: none;
}
.ich-hdr-contact > a:hover{ color: var(--ich-accent); }
.ich-hdr-phone{ font-weight: 500; }
.ich-hdr .ich-hdr-phone{ color: var(--ich-accent); }

.ich-social{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}
.ich-social a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--ich-ink-soft);
	border-radius: 50%;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.ich-social a:hover{ color: var(--ich-accent); background: var(--ich-bg); }
.ich-social .ich-icon{ width: 17px; height: 17px; }

/* Line 2: menu */
.ich-menu,
.ich-menu .sub-menu{
	list-style: none;
	margin: 0;
	padding: 0;
}
.ich-menu{
	display: flex;
	align-items: center;
	gap: 4px 28px;
}
.ich-menu > li{ position: relative; display: flex; align-items: center; }
.ich-menu a{
	display: block;
	color: var(--ich-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.ich-menu > li > a{
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}
.ich-menu > li > a:hover,
.ich-menu > li.current-menu-item > a,
.ich-menu > li.current-menu-ancestor > a,
.ich-menu > li.current-menu-parent > a,
.ich-menu > li.ich-current-section > a{
	color: var(--ich-accent);
	border-bottom-color: var(--ich-brass);
}
.ich-hdr .ich-sub-toggle{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 28px;
	margin: 0 -6px 0 2px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--ich-ink-soft);
	cursor: pointer;
	box-shadow: none;
}
.ich-hdr .ich-sub-toggle:hover{ background: none; color: var(--ich-accent); }
.ich-sub-toggle .ich-icon{ width: 14px; height: 14px; transition: transform 0.15s ease; }
.menu-item-has-children.is-open > .ich-sub-toggle .ich-icon{ transform: rotate(180deg); }

/* Dropdowns (desktop) */
@media (min-width: 961px){
	.ich-menu .sub-menu{
		position: absolute;
		top: 100%;
		left: -18px;
		min-width: 220px;
		padding: 10px 0;
		background: var(--ich-card);
		border: 1px solid var(--ich-line);
		box-shadow: 0 12px 28px rgba(35, 38, 43, 0.10);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
	}
	.ich-menu > li:hover > .sub-menu,
	.ich-menu > li:focus-within > .sub-menu,
	.ich-menu > li.is-open > .sub-menu{
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
	.ich-menu .sub-menu a{
		padding: 9px 20px;
		font-size: 0.92rem;
		font-weight: 400;
		white-space: nowrap;
	}
	.ich-menu .sub-menu a:hover,
	.ich-menu .sub-menu .current-menu-item > a,
	.ich-menu .sub-menu .ich-current-section > a{
		background: var(--ich-bg);
		color: var(--ich-accent);
	}
	.ich-hdr-call,
	.ich-hdr-toggle{ display: none !important; }
}

/* ---- Header: phone / tablet ---- */
@media (max-width: 960px){
	.ich-hdr-inner{
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px 16px 12px 20px;
	}
	.ich-brand{ margin-right: auto; }
	.ich-brand-logo{ max-height: 46px; max-width: 200px; }
	.ich-brand-name{ font-size: 1.3rem; }
	.ich-brand--mark{ gap: 5px; }
	.ich-brand-mark img{ height: 40px; }
	.ich-brand-word-1{ font-size: 0.92rem; }
	.ich-brand-word-2{ font-size: 0.54rem; margin-top: 4px; }
	.ich-brand-word-2::before,
	.ich-brand-word-2::after{ width: 16px; }

	.ich-hdr-call{
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		color: var(--ich-accent);
		border: 1px solid var(--ich-line);
		border-radius: 50%;
	}
	.ich-hdr-call .ich-icon{ width: 18px; height: 18px; }

	.ich-hdr .ich-hdr-toggle{
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 44px;
		padding: 0 14px;
		background: none;
		border: 1px solid var(--ich-line);
		border-radius: 999px;
		color: var(--ich-ink);
		font-family: inherit;
		font-size: 0.85rem;
		font-weight: 500;
		letter-spacing: 0.04em;
		cursor: pointer;
		box-shadow: none;
	}
	.ich-hdr .ich-hdr-toggle:hover{ background: var(--ich-bg); color: var(--ich-ink); }
	/* Three-line icon that turns into an X when open */
	.ich-hdr-bars{
		position: relative;
		width: 18px;
		height: 12px;
	}
	.ich-hdr-bars::before,
	.ich-hdr-bars::after,
	.ich-hdr-bars span{
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.ich-hdr-bars::before{ top: 0; }
	.ich-hdr-bars span{ top: 5.25px; }
	.ich-hdr-bars::after{ bottom: 0; }
	.ich-hdr.is-open .ich-hdr-bars::before{ transform: translateY(5.25px) rotate(45deg); }
	.ich-hdr.is-open .ich-hdr-bars::after{ transform: translateY(-5.25px) rotate(-45deg); }
	.ich-hdr.is-open .ich-hdr-bars span{ opacity: 0; }

	/* The panel: menu first, then contact details */
	.ich-hdr-panel{
		display: none;
		order: 10;
		flex: 1 0 100%;
		margin: 6px -16px -12px -20px;
		padding: 8px 20px 24px;
		align-items: stretch;
		gap: 0;
		border-top: 1px solid var(--ich-line);
		max-height: calc(100vh - 70px);
		max-height: calc(100dvh - 70px);
		overflow-y: auto;
	}
	.ich-hdr.is-open .ich-hdr-panel{ display: flex; }
	.ich-nav{ order: 1; }
	.ich-hdr-contact{
		order: 2;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-top: 20px;
		font-size: 1rem;
	}

	.ich-menu{
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.ich-menu > li{
		flex-wrap: wrap;
		border-bottom: 1px solid var(--ich-line);
	}
	.ich-menu > li > a{
		flex: 1;
		padding: 15px 0;
		font-size: 1.05rem;
		border-bottom: 0;
	}
	.ich-menu > li > a:hover,
	.ich-menu > li.current-menu-item > a{ border-bottom: 0; }
	.ich-hdr .ich-sub-toggle{
		width: 44px;
		height: 44px;
		margin: 0 -10px 0 0;
	}
	.ich-menu .sub-menu{
		display: none;
		flex: 1 0 100%;
		padding: 0 0 12px 14px;
		border-left: 2px solid var(--ich-brass);
		margin-bottom: 14px;
	}
	.ich-menu li.is-open > .sub-menu{ display: block; }
	.ich-menu .sub-menu a{
		padding: 9px 0;
		font-weight: 400;
		color: var(--ich-ink-soft);
	}
	.ich-menu .sub-menu .current-menu-item > a,
	.ich-menu .sub-menu .ich-current-section > a{ color: var(--ich-accent); font-weight: 500; }
}

/* ---- Footer ---- */
.ich-ftr{
	background: var(--ich-ink);
	color: rgba(255, 255, 255, 0.72);
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
}
.ich-ftr-wrap{
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.ich-ftr a{
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}
.ich-ftr a:hover{ color: #fff; }
.ich-ftr a:focus-visible{ outline-color: #fff; }

.ich-ftr-main{
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 40px 48px;
	padding-top: 64px;
	padding-bottom: 48px;
}
.ich-ftr .ich-brand{ color: #fff; }
.ich-ftr .ich-brand-logo{ max-height: 72px; }
.ich-ftr .ich-brand.is-inverted .ich-brand-logo{ filter: brightness(0) invert(1); }
.ich-ftr .ich-brand--mark{ color: #fff; }
.ich-ftr .ich-brand-mark img{ height: 76px; }
.ich-ftr .ich-brand-word-1{ font-size: 1.3rem; }
.ich-ftr .ich-brand-word-2{ font-size: 0.7rem; }
.ich-ftr .ich-brand-word-2::before,
.ich-ftr .ich-brand-word-2::after{ background: #D9C38F; width: 26px; }
.ich-ftr-tagline{
	margin: 18px 0 0;
	max-width: 32em;
	font-size: 0.9rem;
	line-height: 1.65;
}
.ich-ftr-directions{ margin: 0 0 14px; font-size: 0.85rem; }
.ich-ftr .ich-ftr-directions a{
	color: #D9C38F;
	text-decoration: underline;
	text-decoration-color: rgba(217, 195, 143, 0.45);
	text-underline-offset: 3px;
}
.ich-ftr .ich-ftr-directions a:hover{ color: #fff; text-decoration-color: #fff; }
.ich-ftr .ich-social{ margin-top: 18px; gap: 8px; }
.ich-ftr .ich-social a{
	width: 36px;
	height: 36px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}
.ich-ftr .ich-social a:hover{ background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.ich-ftr .ich-ftr-h{
	margin: 0 0 16px;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #D9C38F;
}
.ich-ftr-address{
	font-style: normal;
	margin: 0 0 12px;
}
.ich-ftr-contact,
.ich-ftr-menu,
.ich-legal-menu{
	list-style: none;
	margin: 0;
	padding: 0;
}
.ich-ftr-contact li,
.ich-ftr-menu li{ margin: 0 0 8px; }

.ich-ftr-legal{
	position: relative;
	padding-top: 24px;
	padding-bottom: 32px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
}
.ich-ftr-legal::before{ /* divider lined up with the content edges */
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ich-ftr-disclaimer{
	margin: 0 0 16px;
	max-width: 70em;
}
.ich-ftr-bottom{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
}
.ich-ftr-copy{ margin: 0; }
.ich-legal-menu{
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}
.ich-ftr .ich-legal-menu a{ color: rgba(255, 255, 255, 0.7); }
.ich-ftr .ich-legal-menu a:hover{ color: #fff; }
.ich-eho{
	margin: 0 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ich-eho .ich-icon{ width: 26px; height: 26px; color: rgba(255, 255, 255, 0.8); }

@media (max-width: 1080px){
	.ich-ftr-main{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ich-ftr-brand{ grid-column: 1 / -1; }
}
@media (max-width: 860px){
	.ich-ftr-main{
		grid-template-columns: 1fr 1fr;
		padding-top: 48px;
		padding-bottom: 36px;
	}
}
@media (max-width: 520px){
	.ich-ftr-main{ grid-template-columns: 1fr; gap: 32px; }
	.ich-eho{ margin-left: 0; }
}

@media (prefers-reduced-motion: reduce){
	.ich-menu .sub-menu,
	.ich-sub-toggle .ich-icon,
	.ich-hdr-bars::before,
	.ich-hdr-bars::after,
	.ich-hdr-bars span,
	.ich-social a{ transition: none; }
}

/* Print: listing print pages already hide #masthead / #colophon. */
@media print{
	.ich-hdr,
	.ich-ftr{ display: none !important; }
}

/* ---- Header: phone / tablet, always on screen (1.25.0) ----
   Client: the bar with the logo, call button and Menu stays at the top
   while scrolling, so visitors can always call. Fixed (not sticky) so no
   parent theme overflow setting can break it; .ich-hdr-spacer keeps its
   place in the page (height set by js/ich-header.js, --ich-hdr-h).
   After scrolling a little the bar turns compact (.is-scrolled): smaller
   compass and name, same 44px call and Menu buttons. The menu panel opens
   as a sheet under the bar and scrolls on its own. */
.ich-hdr-spacer{ display: none; }
@media (max-width: 960px){
	.ich-hdr{
		position: fixed;
		top: var(--ich-hdr-top, 0px);
		left: 0;
		right: 0;
		transition: box-shadow 0.2s ease;
	}
	.ich-hdr-spacer{
		display: block;
		height: var(--ich-hdr-h, 92px);
	}
	html{ scroll-padding-top: calc(var(--ich-hdr-h, 92px) + 12px); } /* in-page links land below the bar */
	.ich-hdr.is-scrolled{ box-shadow: 0 6px 18px rgba(35, 38, 43, 0.08); }
	.ich-hdr-inner,
	.ich-hdr .ich-brand-mark img,
	.ich-hdr .ich-brand-word-1,
	.ich-hdr .ich-brand-word-2{
		transition: padding 0.2s ease, height 0.2s ease, font-size 0.2s ease, margin 0.2s ease;
	}
	.ich-hdr.is-scrolled .ich-hdr-inner{ padding-top: 8px; padding-bottom: 8px; }
	.ich-hdr.is-scrolled .ich-brand--mark{ gap: 3px; }
	.ich-hdr.is-scrolled .ich-brand-mark img{ height: 28px; }
	.ich-hdr.is-scrolled .ich-brand-word-1{ font-size: 0.8rem; }
	.ich-hdr.is-scrolled .ich-brand-word-2{ font-size: 0.48rem; margin-top: 3px; }
	.ich-hdr.is-scrolled .ich-brand-logo{ max-height: 34px; }
	.ich-hdr.no-anim,
	.ich-hdr.no-anim *{ transition: none !important; }

	/* Menu panel = sheet under the bar (the bar itself never changes height) */
	.ich-hdr .ich-hdr-panel{
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		background: var(--ich-card);
		border-bottom: 1px solid var(--ich-line);
		box-shadow: 0 14px 28px rgba(35, 38, 43, 0.12);
		max-height: var(--ich-panel-max, calc(100vh - 70px));
		overscroll-behavior: contain;
	}
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce){
	.ich-hdr,
	.ich-hdr *{ transition: none !important; }
}
@media print{
	.ich-hdr-spacer{ display: none !important; }
}
