/*
 * Carolina Holdings Homepage
 *
 * The page markup keeps the approved design's inline styles. This file:
 *  1. Neutralises theme / Elementor global styles (fonts, line-height, link
 *     colours, list and image resets, box-sizing) inside #chh-home, so the page
 *     renders the same as the approved index.html in any theme.
 *  2. Carries the design's own small stylesheet (smooth scroll, link colours,
 *     mobile breakpoint), scoped to #chh-home.
 * The ID selector outranks theme and Elementor kit selectors; inline styles in
 * the markup still win over everything here.
 */

html { scroll-behavior: smooth; }

body.chh-full-page {
	margin: 0;
	padding: 0;
	background: #FFFFFF;
}

/* ---------- 1. Reset to browser defaults inside the page ---------- */

#chh-home {
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	word-spacing: normal;
	-webkit-text-size-adjust: 100%;
}

#chh-home *,
#chh-home *::before,
#chh-home *::after {
	box-sizing: content-box;
}

#chh-home h1,
#chh-home h2,
#chh-home h3 {
	font-family: inherit;
	font-style: inherit;
	color: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: inherit;
	padding: 0;
	border: 0;
	background: none;
	text-shadow: none;
}
#chh-home h1 { font-size: 2em; margin: 0.67em 0; font-weight: 700; }
#chh-home h2 { font-size: 1.5em; margin: 0.83em 0; font-weight: 700; }
#chh-home h3 { font-size: 1.17em; margin: 1em 0; font-weight: 700; }

#chh-home p {
	margin: 1em 0;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	letter-spacing: inherit;
}

#chh-home span,
#chh-home div,
#chh-home article,
#chh-home section,
#chh-home nav,
#chh-home header,
#chh-home footer {
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

#chh-home ul {
	margin: 1em 0;
	padding-left: 40px;
	list-style: disc outside;
}
#chh-home li {
	margin: 0;
	padding: 0;
	list-style: inherit;
	font-family: inherit;
	line-height: inherit;
	background: none;
	border: 0;
}
#chh-home li::before,
#chh-home li::after { content: none; }

#chh-home img {
	max-width: none;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	vertical-align: baseline;
}

#chh-home a {
	color: #1A2477;
	text-decoration: underline;
	font-family: inherit;
	box-shadow: none;
	border: 0;
	background-image: none;
	transition: none;
}
#chh-home a:hover,
#chh-home a:focus { color: #000548; }
#chh-home a:focus-visible { outline: 2px solid #8E98E8; outline-offset: 2px; }

/* ---------- 2. The design's own styles ---------- */

/* Section links land just below the pinned header (height set by homepage.js). */
#chh-home section[id] { scroll-margin-top: var(--chh-header-h, 80px); }

#chh-home .chh-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Phone/tablet menu (below 900px, where the full menu would wrap) ---------- */

#chh-home .chh-menu-toggle { display: none; }

@media (max-width: 899px) {
	html.chh-js #chh-home .chh-header-inner {
		padding: 12px 16px !important;
		flex-wrap: nowrap !important;
	}
	html.chh-js #chh-home .chh-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 1px solid #DDE1F6;
		border-radius: 4px;
		background: #FFFFFF;
		color: #000548;
		box-shadow: none;
		cursor: pointer;
		font: inherit;
	}
	html.chh-js #chh-home .chh-menu-toggle:hover,
	html.chh-js #chh-home .chh-menu-toggle:focus { background: #F7F8FC; color: #000548; border-color: #8E98E8; }
	html.chh-js #chh-home .chh-menu-toggle:focus-visible { outline: 2px solid #8E98E8; outline-offset: 2px; }
	#chh-home .chh-menu-icon,
	#chh-home .chh-menu-icon::before,
	#chh-home .chh-menu-icon::after {
		display: block;
		width: 20px;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	#chh-home .chh-menu-icon { position: relative; }
	#chh-home .chh-menu-icon::before,
	#chh-home .chh-menu-icon::after { content: ""; position: absolute; left: 0; }
	#chh-home .chh-menu-icon::before { top: -6px; }
	#chh-home .chh-menu-icon::after { top: 6px; }
	#chh-home .chh-header.is-open .chh-menu-icon { background: transparent; }
	#chh-home .chh-header.is-open .chh-menu-icon::before { transform: translateY(6px) rotate(45deg); }
	#chh-home .chh-header.is-open .chh-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

	html.chh-js #chh-home .chh-nav { display: none !important; }
	html.chh-js #chh-home .chh-header.is-open .chh-nav {
		display: flex !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 0 !important;
		padding: 4px 16px 16px;
		background: #FFFFFF;
		border-bottom: 1px solid #DDE1F6;
		box-shadow: 0 14px 28px rgba(0, 5, 72, 0.12);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	html.chh-js #chh-home .chh-header.is-open .chh-nav a {
		padding: 14px 4px !important;
		border-bottom: 1px solid #EEF0FA;
	}
	html.chh-js #chh-home .chh-header.is-open .chh-nav a.chh-nav-cta {
		margin: 14px 0 0 !important;
		padding: 14px 20px !important;
		border-bottom: 0;
		text-align: center;
	}
}

@media (max-width: 767px) {
	/* Photo captions: wrap, and stay clear of the TrustedSite badge (bottom right). */
	#chh-home .chh-caption {
		left: 16px !important;
		right: auto !important;
		bottom: 16px !important;
		max-width: calc(100% - 168px);
		white-space: normal;
		line-height: 1.4;
	}
}

/* ---------- Laptop and up: one section per screen ---------- */

@media (min-width: 1024px) {
	#chh-home .chh-sec-inner { padding-top: 64px !important; padding-bottom: 64px !important; }
	#chh-home .chh-partners-band { padding-top: 64px !important; padding-bottom: 112px !important; }
	#chh-home .chh-partners-body { padding-bottom: 64px !important; }

	/* About: quote on the left, the paragraphs in two columns beside it. */
	#chh-home .chh-about-body {
		flex: 0 1 1000px !important;
		display: grid !important;
		grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 48px;
		row-gap: 6px !important;
		align-items: start;
	}
	#chh-home .chh-about-label { grid-column: 1 / -1; grid-row: 1; }
	#chh-home .chh-about-quote { grid-column: 1; grid-row: 2; }
	#chh-home .chh-about-paras {
		grid-column: 2;
		grid-row: 2;
		display: block !important;
		column-count: 2;
		column-gap: 32px;
		padding-top: 6px;
	}
	#chh-home .chh-about-paras p { margin: 0 0 16px !important; break-inside: avoid; }
	#chh-home .about-shade {
		width: 84% !important;
		background: linear-gradient(90deg, #111111 0%, #111111 74%, rgba(17, 17, 17, 0) 100%) !important;
	}

	#chh-home .chh-footprint-map { max-height: 420px; object-fit: contain; }
	#chh-home .chh-project-img { height: 200px !important; }
	#chh-home .chh-stat { padding: 20px !important; }
	#chh-home .chh-tile-anchor { min-height: 72px !important; }
	#chh-home .chh-tile-sm { min-height: 52px !important; }
	#chh-home .retail-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

	/* Extra tightening so Footprint, Projects and Management fit one screen. */
	#chh-home .chh-footprint-inner { gap: 24px !important; }
	#chh-home .chh-numbers { padding: 28px 32px !important; gap: 18px !important; }
	#chh-home .chh-cities { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
	#chh-home .chh-mgmt-inner { gap: 18px !important; }
	#chh-home .chh-tenants { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	#chh-home .chh-mgmt-intro { gap: 8px !important; }
	#chh-home .chh-mgmt-map { flex: 1 1 300px !important; padding: 16px !important; }
}

/* Wide laptops and up: the four projects sit in one row. */
@media (min-width: 1200px) {
	#chh-home .chh-projects-row { flex-wrap: nowrap !important; }
	#chh-home .chh-project { flex: 1 1 0 !important; }
}

/* Contact without a photo: keep the block a comfortable width. */
#chh-home .chh-contact-solo { max-width: 760px; }

/* Keep the sticky header below the WordPress admin bar when logged in. */
.admin-bar #chh-home .chh-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #chh-home .chh-header { top: 46px; }
}
@media screen and (max-width: 600px) {
	.admin-bar #chh-home .chh-header { top: 0; }
}

@media (max-width: 760px) {
	#chh-home .about-img { left: 0 !important; width: 100% !important; }
	#chh-home .about-shade { width: 100% !important; background: rgba(17, 17, 17, 0.82) !important; }
	#chh-home .states-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-flow: row !important; }
	#chh-home .retail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	#chh-home .contact-grid { grid-template-columns: 1fr !important; }
}

/* When placed with the Elementor widget, let the page run edge to edge. */
.elementor-widget-chh_homepage,
.elementor-widget-chh_homepage > .elementor-widget-container {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}
