/* MindNest Psychology — custom layout system for rebuilt pages.
   Namespaced with "mn-" so it never collides with the theme's own classes. */

/* Sticky header — the theme sets .page_wrap { overflow: hidden }, which breaks
   position:sticky on any descendant since it becomes the clipping context. */
.page_wrap {
	overflow: visible !important;
}
.top_panel {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(47, 59, 52, 0.08);
}

.mn-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
	box-sizing: border-box;
}

.mn-section {
	padding: 4rem 0;
}
.mn-section--tight {
	padding: 2.5rem 0;
}
.mn-section--hero {
	padding: 5rem 0 3rem;
}

.mn-eyebrow {
	display: block;
	text-align: center;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7fb98d;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.mn-heading {
	text-align: center;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: #2f3b34;
	line-height: 1.2;
}
.mn-heading--left {
	text-align: left;
}

.mn-lede {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 2.5rem;
	color: #5c6b60;
	font-size: 1.1rem;
	line-height: 1.7;
}

.mn-hero-image {
	display: block;
	width: 100%;
	max-width: 900px;
	height: 380px;
	object-fit: cover;
	border-radius: 16px;
	margin: 0 auto;
	box-shadow: 0 20px 50px -20px rgba(47, 59, 52, 0.35);
}

.mn-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.mn-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}
.mn-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
	.mn-grid,
	.mn-grid--2,
	.mn-grid--4 {
		grid-template-columns: 1fr;
	}
}

.mn-card {
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(47, 59, 52, 0.06), 0 1px 2px rgba(47, 59, 52, 0.04);
	border: 1px solid #ece6da;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mn-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(47, 59, 52, 0.12);
}
.mn-card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.mn-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}
.mn-card-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #2f3b34;
	margin: 0;
}
.mn-card-text {
	color: #5c6b60;
	line-height: 1.6;
	font-size: 0.98rem;
	margin: 0;
	flex: 1;
}
.mn-card-link {
	color: #4f7a5c;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
}
.mn-card-link:hover {
	text-decoration: underline;
}

.mn-portrait {
	display: block;
	width: 100%;
	max-width: 420px;
	height: 420px;
	object-fit: cover;
	border-radius: 16px;
	margin: 0 auto 2.5rem;
	box-shadow: 0 20px 50px -20px rgba(47, 59, 52, 0.3);
}

.mn-inline-image {
	width: 100%;
	max-width: 780px;
	height: 340px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	margin: 0 auto 2.5rem;
	box-shadow: 0 16px 40px -18px rgba(47, 59, 52, 0.3);
}

.mn-prose {
	max-width: 720px;
	margin: 0 auto 3rem;
	color: #3d4a41;
	line-height: 1.75;
	font-size: 1.05rem;
}
.mn-prose h4 {
	font-size: 1.3rem;
	color: #2f3b34;
	margin: 0 0 0.75rem;
}
.mn-prose p {
	margin: 0 0 1.5rem;
}
.mn-prose h6 {
	font-size: 1.05rem;
	color: #2f3b34;
	margin: 1.5rem 0 0.4rem;
}

.mn-list-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 2rem;
	max-width: 720px;
	margin: 0 auto 3rem;
}
@media (max-width: 640px) {
	.mn-list-grid { grid-template-columns: 1fr; }
}
.mn-list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: #3d4a41;
	line-height: 1.5;
}
.mn-list-item::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 0.5em;
	border-radius: 50%;
	background: #7fb98d;
}

.mn-cta-row {
	text-align: center;
	margin-top: 1rem;
}

.mn-quote-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	max-width: 980px;
	margin: 0 auto;
}
@media (max-width: 900px) {
	.mn-quote-grid { grid-template-columns: 1fr; }
}
.mn-quote {
	background: #f5f1ea;
	border-radius: 12px;
	padding: 1.75rem;
	color: #3d4a41;
	font-style: italic;
	line-height: 1.6;
	margin: 0;
}
.mn-quote footer {
	margin-top: 1rem;
	font-style: normal;
	font-weight: 600;
	color: #4f7a5c;
	font-size: 0.9rem;
}

.mn-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}
@media (max-width: 900px) {
	.mn-two-col { grid-template-columns: 1fr; }
}

.mn-form p {
	margin: 0 0 1rem;
}
.mn-form label {
	display: block;
	font-weight: 600;
	color: #2f3b34;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}
.mn-form input,
.mn-form select,
.mn-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 1px solid #ddd3c2;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	color: #2f3b34;
	background: #ffffff;
}
.mn-form input:focus,
.mn-form select:focus,
.mn-form textarea:focus {
	outline: 2px solid #7fb98d;
	outline-offset: 1px;
	border-color: #7fb98d;
}

.mn-faq-item {
	margin-bottom: 1.5rem;
}
.mn-faq-item h6 {
	font-size: 1.05rem;
	color: #2f3b34;
	margin: 0 0 0.4rem;
}
.mn-faq-item p {
	margin: 0;
	color: #5c6b60;
	line-height: 1.6;
}

.custom-logo-link img,
.sc_layouts_logo img {
	max-height: 68px;
}

.sc_layouts_menu_nav > li > a {
	font-size: 0.9em !important;
}

/* Mobile header: burger row now also carries the Consult Now button,
   since the separate compact promo row above it was removed. */
.mn-mobile-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}
.mn-mobile-consult {
	padding: 0.5em 1.1em !important;
	font-size: 0.85em !important;
}

/* Mobile menu overlay: full white background top to bottom, every nav
   row the same size/weight/case, generous left padding. The theme's own
   CSS fights all of this (dark bg, absolute-positioned dropdown, mixed
   font sizes/case/opacity per row) so everything here is forced. */
.menu_mobile,
.menu_mobile .menu_mobile_inner,
.menu_mobile .menu_mobile_nav_area {
	background: #ffffff !important;
}
.menu_mobile_nav,
.menu_mobile_nav .sub-menu {
	background: #ffffff !important;
}
.menu_mobile_nav > li,
.menu_mobile_nav .sub-menu > li,
.menu_mobile_nav ul {
	position: relative !important;
	width: auto !important;
	padding-left: 2.5rem !important;
	opacity: 1 !important;
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
}

/* Our own simple bullet, standing in for the theme's broken marker —
   a small dot for top-level items, a lighter dash for submenu items. */
.menu_mobile_nav > li > a:before {
	content: '';
	position: absolute;
	left: -1.75rem;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7fb98d;
}
.menu_mobile_nav > li.mn-submenu-item > span:before {
	content: '';
	position: absolute;
	left: 0.75rem;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7fb98d;
}
.menu_mobile_nav .sub-menu > li > a:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 8px;
	height: 2px;
	background: #c9915a;
}

/* #menu_mobile carries an ID selector so this reliably beats the theme's
   own .scheme_default...>li li>a color rule, which otherwise wins on
   specificity and renders these links white-on-white. */
#menu_mobile > li > a,
#menu_mobile > li > span,
#menu_mobile .sub-menu > li > a {
	display: block;
	visibility: visible !important;
	opacity: 1 !important;
	font-size: 1.05em !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #2f3b34 !important;
}

/* The theme draws a bullet/indicator before each nav row (and possibly as
   a list ::marker) — with the white background it just floats there
   disconnected from the text. Drop every mechanism that could produce it. */
.menu_mobile_nav_area li:before,
.menu_mobile_nav_area li:after,
.menu_mobile_nav_area li > a:after,
.menu_mobile_nav_area li > span:after {
	content: none !important;
	display: none !important;
}
.menu_mobile_nav_area li::marker,
.menu_mobile_nav_area li *::marker {
	content: none !important;
}

/* .sub-menu itself carries a ::after "dropdown pointer" triangle meant for
   the desktop hover flyout. Since .sub-menu is position:static here, that
   absolutely-positioned pseudo escapes to a distant positioned ancestor
   and renders as a stray orange diamond near the top of the menu instead
   of next to its own dropdown. Kill it outright — we don't use a flyout. */
.menu_mobile_nav_area .sub-menu:before,
.menu_mobile_nav_area .sub-menu:after {
	content: none !important;
	display: none !important;
}

/* Mobile menu overlay logo: the default 264x76 render was cramped —
   give it a bit of breathing room and a sane cap on its own line. */
.mn-mobile-logo {
	display: block;
	margin: 0 auto 1.5rem;
}
.mn-mobile-logo img {
	max-width: 320px !important;
	width: 320px !important;
	max-height: none !important;
	height: auto !important;
}

/* Mobile menu: "Individual Counselling" has only two children, so skip the
   accordion/toggle entirely and just show them — the theme's JS-generated
   opener icon (.open_child_menu) doesn't render reliably here anyway. */
.menu_mobile_nav .open_child_menu {
	display: none !important;
}
.menu_mobile_nav .sub-menu {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
	box-shadow: none !important;
	padding-left: 1rem !important;
	margin: 0 !important;
}
.menu_mobile_nav .sub-menu > li {
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
}
