/*
 * AceHCT Components — ACE Design System v1
 * Visual direction inspired by the clean, spacious ACE Behavioral Health
 * reference: strong blue typography, white surfaces, soft blue section tints,
 * restrained accents, rounded-but-not-pill-heavy cards, and clear CTAs.
 */

:root {
	--acehct-deep: #244A9A;
	--acehct-deep-2: #1B3978;
	--acehct-navy: #17356F;
	--acehct-sky: #2BB0E6;
	--acehct-sky-deep: #218FC0;
	--acehct-green: #6BBF59;
	--acehct-green-deep: #4F9F43;

	--acehct-ink: #17315F;
	--acehct-slate: #5F6F86;
	--acehct-muted: #7A8799;
	--acehct-mist: #F5F8FC;
	--acehct-mist-blue: #EDF5FC;
	--acehct-line: #DCE5F0;
	--acehct-white: #FFFFFF;

	--acehct-radius: 18px;
	--acehct-radius-sm: 12px;
	--acehct-radius-lg: 28px;

	--acehct-shadow: 0 8px 28px rgba(23, 49, 95, 0.07);
	--acehct-shadow-lg: 0 18px 48px rgba(23, 49, 95, 0.12);

	--acehct-container: 76rem;
	--acehct-container-wide: 84rem;
}

/* Layout */
.acehct-section {
	padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.acehct-section--mist {
	background: var(--acehct-mist);
}

.acehct-section--tint {
	background: var(--acehct-mist-blue);
}

.acehct-container {
	width: 100%;
	max-width: var(--acehct-container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 3vw, 2rem);
	box-sizing: border-box;
}

.acehct-container--wide {
	max-width: var(--acehct-container-wide);
}

/* Eyebrows */
.acehct-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--acehct-eyebrow-color, var(--acehct-deep));
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.acehct-eyebrow::before {
	content: "";
	width: 30px;
	height: 4px;
	border-radius: 3px;
	flex: none;
	background: linear-gradient(
		90deg,
		var(--acehct-deep) 0 62%,
		var(--acehct-sky) 62% 100%
	);
}

".acehct-eyebrow--light {
	color: #D8EEFA;
	background: transparent;
	border: 0;
}
.acehct-eyebrow--light::before {
	background: linear-gradient(90deg, #D9E6F4 0 62%, #2BB0E6 62% 100%);
}

/* Section headings */
.acehct-head {
	max-width: var(--acehct-head-width, 48rem);
	margin-inline: auto;
	margin-bottom: var(--acehct-head-margin-bottom, clamp(2.5rem, 5vw, 4rem));
	display: grid;
	justify-items: center;
	gap: 1rem;
	text-align: center;
}

.acehct-head--left {
	margin-inline: 0;
	justify-items: start;
	text-align: left;
}

.acehct-head--right {
	margin-inline: 0 0 0 auto;
	justify-items: end;
	text-align: right;
}

.acehct-head__title {
	margin: 0;
	color: var(--acehct-head-title-color, var(--acehct-ink));
	font-size: var(--acehct-head-title-size, clamp(2rem, 4vw, 3.25rem));
	font-weight: var(--acehct-head-title-weight, 700);
	line-height: var(--acehct-head-title-line_height, 1.12);
	letter-spacing: var(--acehct-head-title-letter_spacing, -.025em);
	text-wrap: balance;
}

.acehct-head__bar {
	width: 48px;
	height: 3px;
	border-radius: 99px;
	background: var(--acehct-deep);
}

.acehct-head__desc {
	margin: 0;
	max-width: 43rem;
	color: var(--acehct-head-desc-color, var(--acehct-slate));
	font-size: var(--acehct-head-desc-size, 1.05rem);
	line-height: var(--acehct-head-desc-line_height, 1.75);
}

/* Buttons */
.acehct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 48px;
	padding: .82rem 1.35rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .005em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
	box-sizing: border-box;
}

.acehct-btn:hover {
	text-decoration: none;
	transform: translateY(-2px);
}

.acehct-btn svg,
.acehct-btn i {
	width: 1em;
	height: 1em;
	flex: none;
}

.acehct-btn--primary {
	background: var(--acehct-deep);
	color: #fff;
	box-shadow: 0 7px 18px rgba(36, 74, 154, .18);
}

.acehct-btn--primary:hover {
	background: var(--acehct-deep-2);
	color: #fff;
	box-shadow: 0 10px 24px rgba(36, 74, 154, .23);
}

.acehct-btn--outline {
	background: #fff;
	border-color: var(--acehct-deep);
	color: var(--acehct-deep);
}

.acehct-btn--outline:hover {
	background: var(--acehct-deep);
	border-color: var(--acehct-deep);
	color: #fff;
}

.acehct-btn--light {
	background: #fff;
	color: var(--acehct-deep);
	box-shadow: 0 8px 22px rgba(10, 28, 64, .12);
}

.acehct-btn--light:hover {
	background: #F5F8FC;
	color: var(--acehct-deep);
}

.acehct-btn--ghost {
	background: var(--acehct-mist-blue);
	color: var(--acehct-deep);
}

.acehct-btn--ghost:hover {
	background: #DDEEF9;
	color: var(--acehct-deep);
}

/* Cards */
.acehct-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--acehct-line);
	border-radius: var(--acehct-radius);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: none;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.acehct-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background: var(--acehct-card-accent, var(--acehct-sky));
	transition: height .25s ease;
}

.acehct-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--acehct-shadow);
	border-color: #C8D7E8;
}

.acehct-card:hover::before {
	height: 100%;
}

.acehct-card__title {
	margin: 0;
	color: var(--acehct-card-title-color, var(--acehct-ink));
}

.acehct-card__desc {
	margin: 0;
}

/* Icon */
.acehct-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	flex: none;
	background: #EAF6FC;
	color: var(--acehct-chip-accent, var(--acehct-deep));
}

.acehct-chip svg {
	width: 25px;
	height: 25px;
}

.acehct-chip i {
	font-size: 25px;
}

.acehct-chip--round {
	border-radius: 50%;
}

/* Links */
.acehct-link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--acehct-link-color, var(--acehct-deep));
}

.acehct-link:hover {
	color: var(--acehct-link-hover, var(--acehct-sky-deep));
}

.acehct-link svg {
	width: 1.05em;
	height: 1.05em;
	transition: transform .2s ease;
}

.acehct-link:hover svg {
	transform: translateX(4px);
}

/* Utility */
.acehct-mesh {
	position: relative;
	overflow: hidden;
}

.acehct-mesh__blob,
.acehct-mesh__dots {
	pointer-events: none;
}

.acehct-mesh__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .12;
}

.acehct-mesh__blob--a {
	width: 30rem;
	height: 30rem;
	top: -14rem;
	left: -12rem;
	background: var(--acehct-mesh-a, var(--acehct-sky));
}

.acehct-mesh__blob--b {
	width: 26rem;
	height: 26rem;
	right: -10rem;
	bottom: -12rem;
	background: var(--acehct-mesh-b, var(--acehct-green));
}

.acehct-mesh__dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(36,74,154,.11) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: .25;
	-webkit-mask-image: radial-gradient(60% 60% at 75% 20%, #000 0%, transparent 70%);
	mask-image: radial-gradient(60% 60% at 75% 20%, #000 0%, transparent 70%);
}

.acehct-mesh__dots--dark {
	background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
}

/* Grid */
.acehct-grid {
	display: grid;
	grid-template-columns: repeat(var(--acehct-cols, 3), minmax(0, 1fr));
	gap: var(--acehct-gap, 1.5rem);
}

/* Responsive */
@media (max-width: 1024px) {
	.acehct-grid,
	.acehct-list,
	.acehct-team,
	.acehct-resource {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.acehct-section {
		padding: 4rem 0;
	}
	.acehct-grid,
	.acehct-list,
	.acehct-team,
	.acehct-resource {
		grid-template-columns: minmax(0, 1fr);
	}
	.acehct-btn {
		min-height: 46px;
	}
}

/* Component content width
 * Keep page sections readable on very wide screens. The site header,
 * footer and hero intentionally manage their own full-width shell.
 */
[data-acehct-widget]:not(.acehct-hero):not(.acehct-site-header):not(.acehct-site-footer) {
	width: 100%;
	max-width: var(--acehct-container);
	margin-inline: auto;
	box-sizing: border-box;
}

@media (min-width: 1200px) {
	[data-acehct-widget]:not(.acehct-hero):not(.acehct-site-header):not(.acehct-site-footer) {
		padding-inline: clamp(1.25rem, 3vw, 2rem);
	}
}
