/* Care Point mega menu — Broward architecture, Care Point kit #12 tokens.
   Panels are fixed-position so opening one never moves the page. */

:root {
	--cp-green: #256B2E;
	--cp-green-dark: #1C4527;
	--cp-green-mid: #367F3F;
	--cp-lime: #81BC2D;
	--cp-peach: #E8A87B;
	--cp-ink: #1A1E1D;
	--cp-gray: #494E52;
	--cp-bg-1: #E9F0EA;
	--cp-bg-2: #DCF0DC;
	--cp-bg-3: #F2F8EA;
	--cp-line: #d7e3d8;
	--cp-top: 90px;
}

.cp-mega {
	font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	display: flex;
	justify-content: center;
}

.cp-mega__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-mega__item { position: relative; margin: 0; }
.cp-mega__item--mega { position: static; }

/* ---------- top bar ---------- */
.cp-mega__top {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 13px;
	background: none;
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}
.cp-mega__top:hover,
.cp-mega__item.is-open > .cp-mega__top { color: var(--cp-peach); }
.cp-mega__top:focus-visible {
	outline: 3px solid var(--cp-peach);
	outline-offset: 2px;
	border-radius: 4px;
}
.cp-mega__caret { fill: currentColor; flex: 0 0 auto; transition: transform .15s ease; }
.cp-mega__item.is-open .cp-mega__caret { transform: rotate(180deg); }

/* sticky (solid) header variants: dark text instead of white */
.cp-mega--solid .cp-mega__top,
.cp-mega--solid .cp-mega__top:hover,
.cp-mega--solid .cp-mega__top:focus { color: var(--cp-ink); }
.cp-mega--solid .cp-mega__top:hover,
.cp-mega--solid .cp-mega__item.is-open > .cp-mega__top { color: var(--cp-green); }

@media (max-width: 1439px) { .cp-mega__top { padding: 12px 10px; font-size: 15px; } }
@media (max-width: 1279px) { .cp-mega__top { padding: 11px 7px; font-size: 14px; } }

/* ---------- panels ---------- */
.cp-mega__panel {
	position: absolute;
	/* The exact top is set by menu.js on open (header bottom minus the item's own top),
	   because the trigger button is ~10px shorter than the header box and a plain
	   `100%` left the dropdown overlapping the header by that much. */
	top: 100%;
	left: 0;
	z-index: 1000;
	min-width: 240px;
	padding: 14px 0 16px;
	background: #fff;
	border: 1px solid var(--cp-line);
	border-top: 3px solid var(--cp-green);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px rgba(26, 30, 29, .16);
}
.cp-mega__panel[hidden] { display: none; }
/* Right-align the last two plain dropdowns so they stay in the viewport.
   Mega panels are excluded: they must keep left:0 + right:0 to span the full width
   (with left:auto their `width:auto` would shrink to content). */
.cp-mega__item:last-child .cp-mega__panel:not(.cp-mega__panel--mega),
.cp-mega__item:nth-last-child(2) .cp-mega__panel:not(.cp-mega__panel--mega) { left: auto; right: 0; }

/* Full-width mega panel, pinned under the header.
   left/right only (never 100vw): 100vw includes the scrollbar, so the panel would run
   under it and its inner grid would sit ~15px off from the header container. */
.cp-mega__panel--mega {
	position: fixed;
	top: var(--cp-mega-top, 90px);
	left: 0;
	right: 0;
	width: auto;
	max-width: none;
	max-height: calc(100vh - var(--cp-mega-top, 90px));
	overflow-y: auto;
	padding: 26px 0 30px;
	border-left: 0;
	border-right: 0;
	border-radius: 0 0 12px 12px;
	box-sizing: border-box;
}

/* The inner grid is anchored to the same box the header container uses, so every
   panel's first column lands on the same x as the logo. */
.cp-mega__inner { padding: 0 24px; }
.cp-mega__panel--mega .cp-mega__inner {
	display: grid;
	gap: 40px;
	max-width: 1320px;
	margin: 0 auto;
	align-items: start;
	box-sizing: border-box;
}

/* Per-panel layouts, set explicitly in PHP (no :has() — equal-specificity rules were
   colliding and making About compute two 280px columns instead of three). */
.cp-mega__inner--treat      { grid-template-columns: minmax(0, 1fr); }
.cp-mega__inner--programs   { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cp-mega__inner--about      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-mega__inner--resources  { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.cp-mega__inner--admissions { grid-template-columns: repeat(2, minmax(0, 280px)); }

.cp-mega__col { min-width: 0; }
.cp-mega__panel:not(.cp-mega__panel--mega) .cp-mega__col { min-width: 230px; }

/* column heading */
.cp-mega__head {
	margin: 0 0 10px;
	padding: 0 0 7px;
	border-bottom: 1px solid var(--cp-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cp-green);
}

.cp-mega__list { margin: 0; padding: 0; list-style: none; }
.cp-mega__list li { margin: 0; }

.cp-mega__link {
	display: block;
	padding: 6px 10px;
	margin: 0 -10px;
	border-radius: 6px;
	color: var(--cp-ink);
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: break-word;
	white-space: normal;
	transition: color .12s ease, background-color .12s ease;
}
.cp-mega__link:hover,
.cp-mega__link:focus-visible { color: var(--cp-green); background: var(--cp-bg-3); text-decoration: none; }
.cp-mega__link:focus-visible { outline: 2px solid var(--cp-green); outline-offset: 1px; }
.cp-mega__link[aria-current] { color: var(--cp-green-dark); font-weight: 700; }
.cp-mega__panel:not(.cp-mega__panel--mega) .cp-mega__link { padding: 8px 10px; }

/* groups (What We Treat) */
.cp-mega__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; align-items: start; }
.cp-mega__col--wide .cp-mega__groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .cp-mega__groups, .cp-mega__col--wide .cp-mega__groups { gap: 0 20px; } }
.cp-mega__group + .cp-mega__group { margin-top: 0; }
.cp-mega__glabel {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cp-green);
}

/* feature cards (Programs): 2 x 2 grid so the panel is two balanced columns,
   cards left, CTA right, instead of one tall 470px stack. */
.cp-mega__features { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cp-mega__features li { margin: 0; }
.cp-mega__col--feature .cp-mega__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.cp-mega__col--feature { display: flex; flex-direction: column; }
/* the CTA sits in the right-hand column, top-aligned with the cards */
.cp-mega__col--feature .cp-mega__cta { margin-top: 0; }
.cp-mega__panel--mega .cp-mega__inner--programs { align-items: start; }
.cp-mega__feature,
.cp-mega__card {
	display: flex;
	gap: 12px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 8px;
	text-decoration: none;
	align-items: flex-start;
}
.cp-mega__feature:hover,
.cp-mega__feature:focus-visible,
.cp-mega__card:hover,
.cp-mega__card:focus-visible { background: var(--cp-bg-3); text-decoration: none; }
.cp-mega__feature:focus-visible,
.cp-mega__card:focus-visible { outline: 2px solid var(--cp-green); outline-offset: 1px; }

.cp-mega__icon {
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--cp-bg-2);
}
.cp-mega__icon .cp-ic { width: 17px; height: 17px; fill: var(--cp-green); }
.cp-mega__icon--card { flex: 0 0 40px; width: 40px; height: 40px; }

.cp-mega__ftext { display: grid; gap: 2px; min-width: 0; }
.cp-mega__flabel {
	font-family: Castoro, "Castoro Fallback", Georgia, serif;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--cp-green-dark);
}
.cp-mega__card .cp-mega__flabel { font-size: 18px; }
.cp-mega__fdesc { font-size: 13.5px; line-height: 1.45; color: var(--cp-gray); }

/* "View all …" link */
.cp-mega__more {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 10px;
	margin-left: -10px;
	border-radius: 6px;
	color: var(--cp-green);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
}
.cp-mega__more:hover,
.cp-mega__more:focus-visible { background: var(--cp-bg-3); text-decoration: underline; }

/* CTA block */
.cp-mega__cta {
	margin-top: 18px;
	padding: 16px;
	background: var(--cp-bg-3);
	border-radius: 10px;
}
.cp-mega__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
}
.cp-mega__btn .cp-ic { width: 16px; height: 16px; fill: currentColor; }
.cp-mega__btn--call {
	display: flex;
	font-family: Castoro, "Castoro Fallback", Georgia, serif;
	font-size: 19px;
	font-weight: 400;
	color: var(--cp-green-dark);
	text-decoration: none;
}
.cp-mega__btn--call:hover,
.cp-mega__btn--call:focus-visible { color: var(--cp-green); text-decoration: underline; }
.cp-mega__btn--verify {
	display: flex;
	width: 100%;
	margin-top: 8px;
	background: var(--cp-green);
	color: #fff;
	transition: background-color .15s ease;
}
.cp-mega__btn--verify:hover,
.cp-mega__btn--verify:focus-visible { background: var(--cp-green-dark); color: #fff; text-decoration: none; }
.cp-mega__btn:focus-visible { outline: 3px solid var(--cp-green-mid); outline-offset: 2px; }
.cp-mega__note {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--cp-gray);
}

@media (prefers-reduced-motion: reduce) {
	.cp-mega__caret, .cp-mega__top, .cp-mega__link { transition: none; }
}

/* ---------------------------------------------------------------- mobile drawer */

.cp-mmenu {
	font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}
.cp-mmenu__list { margin: 0; padding: 0; list-style: none; flex: 1 1 auto; overflow-y: auto; }
.cp-mmenu__item { margin: 0; border-bottom: 1px solid var(--cp-line); }
.cp-mmenu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 14px 4px;
	background: none;
	border: 0;
	color: var(--cp-green-dark);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.cp-mmenu__top svg { fill: currentColor; flex: 0 0 auto; transition: transform .15s ease; }
.cp-mmenu__top[aria-expanded="true"] svg { transform: rotate(180deg); }
.cp-mmenu__top:focus-visible { outline: 3px solid var(--cp-green); outline-offset: -2px; }
.cp-mmenu__sub { padding: 0 4px 14px; }
.cp-mmenu__sub[hidden] { display: none; }
.cp-mmenu__head {
	margin: 12px 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cp-green);
}
.cp-mmenu__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.cp-mmenu__links li { margin: 0; }
.cp-mmenu__link {
	display: block;
	padding: 12px 0;
	color: var(--cp-ink);
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	min-height: 44px;
	box-sizing: border-box;
}
.cp-mmenu__link[aria-current] { color: var(--cp-green); font-weight: 700; }
.cp-mmenu__cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 16px;
	padding: 16px 0 0;
	border-top: 1px solid var(--cp-line);
	flex: 0 0 auto;
}
.cp-mmenu__cta .cp-mega__btn { width: 100%; margin-top: 0; }
.cp-mmenu__cta .cp-mega__btn--call { background: var(--cp-bg-3); }

/* ---------------------------------------------------------------- hamburger + drawer shell */

.cp-drawer-root { display: none; }

/* the hamburger shows at <=1024px, where the desktop bar is hidden */
@media (max-width: 1024px) {
	.cp-drawer-root { display: block; position: relative; }
	.cp-mega { display: none !important; }
	.cp-drawer-root .cp-burger { display: inline-flex; }
}
@media (min-width: 1025px) {
	.cp-drawer-root .cp-burger { display: none; }
}

.cp-burger {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	color: currentColor;
	cursor: pointer;
}
.cp-burger:focus-visible { outline: 3px solid var(--cp-peach); outline-offset: 2px; }
.cp-burger__box { display: grid; gap: 5px; width: 24px; }
.cp-burger__box span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* dark glyph on the solid sticky header */
.cp-drawer-root .cp-burger { color: #fff; }
.elementor-sticky--active .cp-drawer-root .cp-burger,
.cp-mega--solid .cp-burger { color: var(--cp-ink); }

.cp-drawer__backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(26, 30, 29, .5);
}
.cp-drawer__backdrop[hidden] { display: none; }

.cp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: min(420px, 92vw);
	height: 100%;
	max-height: 100vh;
	background: #fff;
	box-shadow: -12px 0 40px rgba(26, 30, 29, .22);
	transform: translateX(100%);
	transition: transform .22s ease;
	overflow: hidden;
}
.cp-drawer[hidden] { display: flex; visibility: hidden; }
.cp-drawer-root.is-open .cp-drawer { transform: translateX(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .cp-drawer { transition: none; } }

.cp-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--cp-line);
	flex: 0 0 auto;
}
.cp-drawer__brand { display: block; line-height: 0; }
.cp-drawer__logo { max-height: 46px; width: auto; }
.cp-drawer__brand { font-family: Castoro, Georgia, serif; font-size: 19px; color: var(--cp-green-dark); text-decoration: none; }
/* The kit styles every bare <button> with color: var(--e-global-color-primary) = white,
   which made this icon invisible on the white drawer. Set both colour and svg fill. */
.cp-drawer .cp-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	background: none;
	background-color: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--cp-green-dark);
	fill: var(--cp-green-dark);
	cursor: pointer;
}
.cp-drawer .cp-drawer__close svg { fill: var(--cp-green-dark); display: block; }
.cp-drawer .cp-drawer__close:hover { color: var(--cp-green); background-color: var(--cp-bg-3); }
.cp-drawer .cp-drawer__close:hover svg { fill: var(--cp-green); }
.cp-drawer .cp-drawer__close:focus-visible {
	outline: 3px solid var(--cp-green-dark);
	outline-offset: 2px;
}

.cp-drawer__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 8px 16px 16px;
	overflow: hidden;
}
.cp-drawer__body .cp-mmenu { flex: 1 1 auto; min-height: 0; }
.cp-drawer__body .cp-mmenu__list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cp-drawer__body .cp-mmenu__cta { padding-bottom: env(safe-area-inset-bottom, 0); }

body.cp-drawer-lock { overflow: hidden; }

/* keep the header row from overflowing on small screens */
@media (max-width: 1024px) {
	.cp-drawer-root { margin-left: auto; }
}

/* ---------------------------------------------------------------- neutralise Elementor button skins
   The site styles bare `button` elements as green pills (padding 16px 48px, radius 100px).
   The nav's buttons must not inherit that. */
.cp-mega .cp-mega__top,
.cp-mega .cp-mega__top:hover,
.cp-mega .cp-mega__top:focus {
	color: #fff;
	background: none;
	background-color: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 4px;
	padding: 12px 13px;
	min-height: 0;
	height: auto;
	width: auto;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
}
/* The kit sets `color: var(--e-global-color-primary)` (= white) and a dark background on
   every bare button (.elementor-kit-12 button). Both must be reset here, and the
   selector must outrank that rule, hence the .cp-drawer / .cp-mmenu prefix. */
.cp-drawer .cp-mmenu .cp-mmenu__top,
.cp-drawer .cp-mmenu .cp-mmenu__top:hover,
.cp-drawer .cp-mmenu .cp-mmenu__top:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	padding: 14px 4px;
	height: auto;
	width: 100%;
	min-height: 52px;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	color: var(--cp-green-dark);
	font-size: 17px;
	font-weight: 600;
	text-align: left;
}
.cp-drawer .cp-mmenu .cp-mmenu__top svg { fill: var(--cp-green-dark); }
.cp-drawer-root .cp-burger,
.cp-drawer-root .cp-burger:hover,
.cp-drawer-root .cp-burger:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 6px;
	padding: 0;
	min-height: 0;
	width: 44px;
	height: 44px;
}
.cp-drawer-root .cp-drawer__close,
.cp-drawer-root .cp-drawer__close:hover,
.cp-drawer-root .cp-drawer__close:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 6px;
	padding: 0;
	min-height: 0;
	width: 44px;
	height: 44px;
}

/* CTA buttons keep their own colours and are not affected by the reset above. */
.cp-mega__btn--verify,
.cp-mega__btn--verify:hover,
.cp-mega__btn--verify:focus { background: var(--cp-green); color: #fff; }
.cp-mega__btn--verify:hover { background: var(--cp-green-dark); }
