/* Cornerstone Site 1.1.0 - global layer for the block rebuild. Wired Web Services. */

/* ---------- Tokens ---------- */
:root {
	--cfsg-text: #242424;
	--cfsg-amber: #ffbf00;
	--cfsg-grey-btn: #989fa3;
	--cfsg-grey-btn-2: #a2a9ad;
	--cfsg-light: #f8f8f8;
	--cfsg-band: #c7ced1;
	--cfsg-muted: #999999;
	--cfsg-container: 1340px;
	--cfsg-gutter: 20px;
	--cfsg-section: 56px;
	--cfsg-c-purple: #c25adb;
	--cfsg-c-amber: #fbb02a;
	--cfsg-c-red: #e14a4a;
	--cfsg-c-blue: #339eff;
	--cfsg-c-sky: #35caf8;
	--cfsg-c-teal: #4bccbc;
	--cfsg-c-orange: #ff8914;
	--cfsg-c-green: #41b863;
	--cfsg-c-grey: #a5aeb0;
}

/* ---------- Base type ---------- */
body.cfsg,
body.cfsg button,
body.cfsg input,
body.cfsg select,
body.cfsg textarea,
.editor-styles-wrapper {
	font-family: Inter, sans-serif;
}
body.cfsg {
	font-size: 14px;
	line-height: 24px;
	color: var(--cfsg-text);
	-webkit-font-smoothing: antialiased;
}
body.cfsg h1, body.cfsg h2, body.cfsg h3, body.cfsg h4, body.cfsg h5, body.cfsg h6 {
	font-family: Inter, sans-serif;
	font-weight: 400;
	color: var(--cfsg-text);
	text-transform: none;
	letter-spacing: normal;
	text-wrap: balance;
}
body.cfsg h1 { font-size: 48px; line-height: 1.2; }
body.cfsg h2 { font-size: 40px; line-height: 1.2; }
body.cfsg h3 { font-size: 32px; line-height: 1.2; }
body.cfsg .entry-content p { margin-bottom: 0; text-wrap: pretty; }
body.cfsg .entry-content p + p { margin-top: 24px; }
body.cfsg a { color: inherit; }
body.cfsg strong { font-weight: 700; }

/* Full-width canvas: no Astra container padding on rebuilt pages */
body.cfsg .site-content > .ast-container,
body.cfsg #primary,
body.cfsg .entry-content {
	max-width: none;
	padding: 0;
	margin: 0;
}
body.cfsg .entry-content > * { margin-top: 0; margin-bottom: 0; }
body.cfsg .entry-content > .wp-block-group,
body.cfsg .entry-content > .wp-block-cover { max-width: none; }
body.cfsg.ast-separate-container #primary,
body.cfsg .ast-article-single { padding: 0; margin: 0; background: none; }

/* ---------- Layout helpers ---------- */
.cfsg-section { padding: var(--cfsg-section) 0; }
.cfsg-section.is-light { background: var(--cfsg-light); }
.cfsg-container {
	max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--cfsg-gutter);
}
.cfsg-center { text-align: center; }
.cfsg-section h2.cfsg-title { text-align: center; margin: 0 0 24px; }
.cfsg-intro p { text-align: center; }
.cfsg-intro { margin-bottom: 32px; }

/* ---------- Buttons ---------- */
body.cfsg .wp-block-button.cfsg-btn .wp-block-button__link,
body.cfsg .wp-block-button.cfsg-btn .wp-element-button {
	background: var(--cfsg-grey-btn);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	border-radius: 10.4px;
	padding: 13px 26px;
	border: 0;
	transition: background-color .2s ease;
}
body.cfsg .wp-block-button.cfsg-btn .wp-block-button__link:hover { background: var(--cfsg-text); color: #fff; }
.cfsg-btn-row { margin: 32px 0 48px; }

/* ---------- Header (Astra Pro Site Builder layout) ---------- */
body.cfsg #masthead,
body.cfsg .ast-custom-header,
body.cfsg header.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
}
body.admin-bar.cfsg #masthead,
body.admin-bar.cfsg .ast-custom-header,
body.admin-bar.cfsg header.site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar.cfsg #masthead,
	body.admin-bar.cfsg .ast-custom-header,
	body.admin-bar.cfsg header.site-header { top: 0; }
}
.cfsg-header { background: #fff; }
.cfsg-header__inner {
	display: flex;
	align-items: center;
	gap: 0;
	height: 70px;
	max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--cfsg-gutter);
}
.cfsg-header .cfsg-logo { margin: 0 auto 0 0; flex: 0 0 auto; }
.cfsg-header .cfsg-logo img { width: 304px; height: auto; display: block; }
.cfsg-phone { display: inline-flex; align-items: center; color: var(--cfsg-text); padding: 0 14px 0 0; }
.cfsg-phone svg { width: 16px; height: 16px; fill: currentColor; }
.cfsg-header .cfsg-nav { flex: 0 0 auto; gap: 0; }
.cfsg-header .cfsg-nav .wp-block-navigation-item__content {
	font-size: 13px;
	font-weight: 500;
	color: var(--cfsg-text);
	padding: 0 20px;
	line-height: 70px;
	text-decoration: none;
}
.cfsg-header .cfsg-nav .wp-block-navigation-item__content:hover,
.cfsg-header .cfsg-nav .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-underline-offset: 3px; }
.cfsg-header .cfsg-search { margin: 0 0 0 20px; width: 200px; flex: 0 0 auto; position: relative; }
.cfsg-header .cfsg-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--cfsg-text);
	border-radius: 15px;
	height: 30px;
	padding: 0 4px 0 12px;
	background: #fff;
}
.cfsg-header .cfsg-search input.wp-block-search__input {
	border: 0;
	height: 28px;
	padding: 0;
	font-size: 13px;
	background: transparent;
	color: var(--cfsg-text);
}
.cfsg-header .cfsg-search .wp-block-search__button {
	background: transparent;
	color: var(--cfsg-text);
	border: 0;
	padding: 0 6px;
	margin: 0;
	min-width: 0;
}
.cfsg-header .cfsg-search .wp-block-search__button svg { width: 18px; height: 18px; fill: currentColor; }

/* Collapse the navigation earlier than the core 600px breakpoint */
@media (min-width: 600px) and (max-width: 1100px) {
	.cfsg-header .cfsg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.cfsg-header .cfsg-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 1100px) {
	.cfsg-header__inner { height: 60px; }
	.cfsg-header .cfsg-logo img { width: 206px; }
	.cfsg-header .cfsg-nav { order: 3; }
	.cfsg-phone { order: 2; padding-right: 18px; }
	.cfsg-header .cfsg-search { order: 4; width: auto; margin-left: 14px; }
	.cfsg-header .cfsg-search .wp-block-search__inside-wrapper { border-color: transparent; padding: 0; }
	.cfsg-header .cfsg-search input.wp-block-search__input { width: 0; }
	.cfsg-header .cfsg-search.is-open .wp-block-search__inside-wrapper {
		position: absolute; right: 0; top: 50%; transform: translateY(-50%);
		width: min(260px, 70vw); border-color: var(--cfsg-text); padding: 0 4px 0 12px;
	}
	.cfsg-header .cfsg-search.is-open input.wp-block-search__input { width: 100%; }
	.cfsg-header .cfsg-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
	.cfsg-header .cfsg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { line-height: 1.4; font-size: 18px; padding: 10px 0; }
}

/* ---------- Hero ---------- */
.cfsg-hero.wp-block-cover {
	min-height: 475px;
	padding: 0;
	align-items: stretch;
	overflow: hidden;
}
.cfsg-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
	position: relative;
	display: flex;
	flex-direction: column;
	color: #fff;
}
.cfsg-hero .cfsg-hero__lines {
	position: absolute;
	right: -128px;
	top: -123px;
	width: 713px;
	margin: 0;
	pointer-events: none;
	z-index: 1;
}
.cfsg-hero .cfsg-hero__lines img { width: 713px; height: auto; display: block; }
.cfsg-hero .cfsg-hero__text {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2);
	width: 100%;
	margin: 0 auto;
	padding: 48px var(--cfsg-gutter) 32px;
}
.cfsg-hero .cfsg-hero__text > * { max-width: 400px; margin-left: 0; }
body.cfsg .cfsg-hero h1 {
	color: #fff;
	font-size: 38px;
	line-height: 38px;
	text-transform: uppercase;
	margin: 0 0 32px;
	max-width: 400px;
}
body.cfsg .cfsg-hero .cfsg-hero__lead { font-size: 14px; line-height: 19px; color: #fff; max-width: 397px; }
.cfsg-hero .cfsg-hero__bar {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, .5);
	min-height: 73px;
}
.cfsg-hero .cfsg-hero__bar-inner {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2);
	margin: 0 auto;
	padding: 15px var(--cfsg-gutter);
}
.cfsg-hero .cfsg-hero__label { flex: 0 0 392px; font-size: 13px; line-height: 20px; color: #fff; padding-left: 8px; }
.cfsg-hero .cfsg-hero__form { flex: 1; min-width: 0; }

/* ---------- WPForms inline layouts (hero call-back and newsletter) ---------- */
body.cfsg .cfsg-inline-form .wpforms-container { margin: 0 !important; padding: 0 !important; }
body.cfsg .cfsg-inline-form .wpforms-form { display: flex !important; align-items: flex-start; gap: 18px; }
body.cfsg .cfsg-inline-form .wpforms-field-container { display: flex; gap: 18px; flex: 1; min-width: 0; }
body.cfsg .cfsg-inline-form .wpforms-field { flex: 1; padding: 0 !important; margin: 0 !important; min-width: 0; }
body.cfsg .cfsg-inline-form .wpforms-field-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.cfsg .cfsg-inline-form .wpforms-field input {
	width: 100% !important;
	max-width: none !important;
	height: 43px !important;
	border: .8px solid rgba(0, 0, 0, .25) !important;
	border-radius: 3px !important;
	background: #fff !important;
	font-size: 16px !important;
	padding: 0 14px !important;
	color: var(--cfsg-text) !important;
	box-shadow: none !important;
}
body.cfsg .cfsg-inline-form .wpforms-submit-container { padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
body.cfsg .cfsg-inline-form button.wpforms-submit {
	height: 41px !important;
	min-width: 160px;
	margin-top: 1px;
	background: var(--cfsg-grey-btn-2) !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	padding: 0 24px !important;
}
body.cfsg .cfsg-inline-form button.wpforms-submit:hover { background: var(--cfsg-text) !important; }
body.cfsg .cfsg-inline-form label.wpforms-error { color: #fff; font-size: 12px; }
body.cfsg .cfsg-newsletter .cfsg-inline-form label.wpforms-error { color: #d63637; }
body.cfsg .cfsg-inline-form .wpforms-confirmation-container-full { margin: 0; padding: 10px 14px; }

/* ---------- Flip cards ---------- */
.cfsg-flip {
	position: relative;
	height: 400px;
	perspective: 1200px;
	margin: 0;
}
.cfsg-flip > .cfsg-flip__front,
.cfsg-flip > .cfsg-flip__back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 24px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: transform .6s ease;
	margin: 0;
}
.cfsg-flip > .cfsg-flip__front { background: #fff; box-shadow: 0 0 6px rgba(36, 36, 36, .4); }
.cfsg-flip > .cfsg-flip__back { background: var(--cfsg-flip-c, var(--cfsg-c-blue)); color: #fff; transform: rotateY(180deg); }
@media (hover: hover) {
	.cfsg-flip:hover > .cfsg-flip__front,
	.cfsg-flip:focus-within > .cfsg-flip__front { transform: rotateY(-180deg); }
	.cfsg-flip:hover > .cfsg-flip__back,
	.cfsg-flip:focus-within > .cfsg-flip__back { transform: rotateY(0); }
}
.cfsg-flip .cfsg-flip__icon { margin: 0 0 14px; }
.cfsg-flip .cfsg-flip__icon img { width: 150px; height: 150px; display: block; }
body.cfsg .cfsg-flip h3.cfsg-flip__title,
body.cfsg .cfsg-flip .cfsg-flip__btitle { font-size: 22px; line-height: 1.2; margin: 0 0 8px; color: inherit; }
body.cfsg .cfsg-flip h3.cfsg-flip__title { color: var(--cfsg-text); }
body.cfsg .cfsg-flip p { font-size: 14px; line-height: 24px; margin: 0; }
body.cfsg .cfsg-flip .cfsg-flip__back p { color: #fff; }
.cfsg-flip a { text-decoration: none; color: inherit; }
.cfsg-flip a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.cfsg-flip a:focus-visible { outline: 2px solid var(--cfsg-text); outline-offset: 4px; }
.cfsg-c-purple { --cfsg-flip-c: var(--cfsg-c-purple); }
.cfsg-c-amber { --cfsg-flip-c: var(--cfsg-c-amber); }
.cfsg-c-red { --cfsg-flip-c: var(--cfsg-c-red); }
.cfsg-c-blue { --cfsg-flip-c: var(--cfsg-c-blue); }
.cfsg-c-sky { --cfsg-flip-c: var(--cfsg-c-sky); }
.cfsg-c-teal { --cfsg-flip-c: var(--cfsg-c-teal); }
.cfsg-c-orange { --cfsg-flip-c: var(--cfsg-c-orange); }
.cfsg-c-green { --cfsg-flip-c: var(--cfsg-c-green); }
.cfsg-c-grey { --cfsg-flip-c: var(--cfsg-c-grey); }

/* ---------- Carousels ---------- */
.cfsg-carousel { position: relative; --per: 4; --gap: 40px; }
.cfsg-carousel > .cfsg-track {
	display: flex;
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 8px 20px 12px;
	scroll-padding: 0 20px;
	margin: 0;
}
.cfsg-carousel > .cfsg-track::-webkit-scrollbar { display: none; }
.cfsg-carousel > .cfsg-track > * {
	flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
	scroll-snap-align: start;
	margin: 0 !important;
	min-width: 0;
}
.cfsg-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.cfsg-dots button {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: var(--cfsg-band); cursor: pointer;
}
.cfsg-dots button.is-active { background: var(--cfsg-text); }
.cfsg-carousel--static .cfsg-dots { display: none; }
.cfsg-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 49px; height: 49px; border: 0; background: transparent; cursor: pointer;
	color: var(--cfsg-band); font-size: 0; padding: 0;
}
.cfsg-arrow::before {
	content: ""; display: block; width: 14px; height: 14px; margin: auto;
	border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.cfsg-arrow--next::before { transform: rotate(-135deg); }
.cfsg-arrow--prev { left: -45px; }
.cfsg-arrow--next { right: -45px; }
.cfsg-arrow:hover { color: var(--cfsg-text); }
@media (max-width: 1100px) { .cfsg-cards { --per: 3; } }
@media (max-width: 820px) { .cfsg-cards { --per: 2; --gap: 24px; } }
@media (max-width: 560px) {
	.cfsg-cards { --per: 1; }
	.cfsg-cards > .cfsg-track { padding-left: calc(50% - 140px); padding-right: calc(50% - 140px); scroll-padding: 0 calc(50% - 140px); }
	.cfsg-cards > .cfsg-track > * { flex-basis: 280px; scroll-snap-align: center; }
}

/* ---------- Reviews ---------- */
.cfsg-reviews { --per: 3; --gap: 40px; }
.cfsg-reviews .cfsg-review { padding: 0 10px; }
body.cfsg .cfsg-review .cfsg-stars { color: var(--cfsg-amber); font-size: 14px; letter-spacing: 1px; margin: 0 0 6px; }
body.cfsg .cfsg-review p { font-size: 14px; line-height: 24px; margin: 0; }
body.cfsg .cfsg-review p + p { margin-top: 12px; }
body.cfsg .cfsg-review .cfsg-review__name { color: var(--cfsg-band); font-weight: 700; margin-top: 12px; }
body.cfsg .cfsg-review .cfsg-review__age { color: var(--cfsg-muted); font-size: 12.6px; line-height: 1.4; margin-top: 0; }
@media (max-width: 1100px) { .cfsg-reviews { --per: 2; } .cfsg-arrow--prev { left: -10px; } .cfsg-arrow--next { right: -10px; } }
@media (max-width: 700px) { .cfsg-reviews { --per: 1; } .cfsg-reviews > .cfsg-track { padding: 8px 44px 12px; scroll-padding: 0 44px; } }

/* ---------- Partners ---------- */
.cfsg-partners {
	background: #242424 url(/wp-content/uploads/2024/04/cfsg-black-footer-background.jpg) center / cover;
	color: #fff;
	padding: 28px 0 40px;
}
body.cfsg .cfsg-partners h2 { color: #fff; margin: 0 0 22px; text-align: center; }
.cfsg-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cfsg-marquee > .cfsg-track { display: flex; align-items: center; gap: 70px; width: max-content; margin: 0; }
.cfsg-marquee > .cfsg-track.is-ready { animation: cfsg-marquee 45s linear infinite; }
.cfsg-marquee:hover > .cfsg-track { animation-play-state: paused; }
.cfsg-marquee figure { margin: 0 !important; flex: 0 0 auto; }
.cfsg-marquee img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
@keyframes cfsg-marquee { to { transform: translateX(calc(-50% - 35px)); } }
@media (prefers-reduced-motion: reduce) { .cfsg-marquee > .cfsg-track.is-ready { animation: none; } .cfsg-marquee { overflow-x: auto; } }

/* ---------- Latest articles ---------- */
.cfsg-articles .wp-block-post-template { gap: 77px; margin: 0; }
.cfsg-articles .wp-block-post-featured-image { margin: 0 0 18px; }
.cfsg-articles .wp-block-post-featured-image img { aspect-ratio: 1024 / 538; object-fit: cover; width: 100%; height: auto; display: block; }
body.cfsg .cfsg-articles .wp-block-post-date { font-size: 11px; color: var(--cfsg-muted); line-height: 1.4; margin: 0 0 6px; }
body.cfsg .cfsg-articles .wp-block-post-title { font-size: 19.6px; font-weight: 700; line-height: 23.52px; margin: 0 0 8px; }
body.cfsg .cfsg-articles .wp-block-post-title a { text-decoration: none; color: var(--cfsg-text); }
body.cfsg .cfsg-articles .wp-block-post-excerpt__excerpt { font-size: 14px; line-height: 24px; margin: 0; }
.cfsg-articles .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 1100px) { .cfsg-articles .wp-block-post-template { gap: 40px; } }
@media (max-width: 781px) { .cfsg-articles .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter band ---------- */
.cfsg-newsletter { background: var(--cfsg-band); padding: 30px 0; }
.cfsg-newsletter__inner { display: flex; align-items: center; gap: 28px; max-width: 1140px; margin: 0 auto; padding: 0 var(--cfsg-gutter); }
.cfsg-newsletter__text { flex: 0 0 268px; }
body.cfsg .cfsg-newsletter h2 { font-size: 32px; line-height: 1.1; margin: 0; }
body.cfsg .cfsg-newsletter p { font-size: 14px; line-height: 1.3; margin: 2px 0 0; }
.cfsg-newsletter .cfsg-inline-form { flex: 1; min-width: 0; }

/* ---------- Footer ---------- */
.cfsg-footer {
	position: relative;
	background: #242424 url(/wp-content/uploads/2024/04/cfsg-black-footer-background.jpg) center / cover;
	color: #fff;
	padding: 38px 0 28px;
}
.cfsg-footer::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 10px;
	background: url(/wp-content/uploads/2024/04/footer-divider.jpg) center / 100% 100% no-repeat;
}
.cfsg-footer .cfsg-footer__cols { gap: 40px; margin: 0 0 70px; }
body.cfsg .cfsg-footer p,
body.cfsg .cfsg-footer li { color: #fff; font-size: 12px; line-height: 14.4px; }
body.cfsg .cfsg-footer .cfsg-footer__head { font-size: 14px; line-height: 24px; font-weight: 700; margin: 0 0 12px; }
.cfsg-footer ul.cfsg-flinks { list-style: none; margin: 0; padding: 0; }
.cfsg-footer ul.cfsg-flinks li { margin: 0 0 10px; }
.cfsg-footer a { color: #fff; text-decoration: none; }
.cfsg-footer a:hover { text-decoration: underline; }
body.cfsg .cfsg-footer .cfsg-footer__contact p { margin: 0 0 10px; }
.cfsg-footer .cfsg-social { gap: 6px; margin: 2px 0 0; }
.cfsg-footer .cfsg-social .wp-social-link { color: #fff; background: none !important; }
.cfsg-footer .cfsg-social .wp-social-link a { padding: 0; color: #fff; }
.cfsg-footer .cfsg-social .wp-social-link svg { width: 15px; height: 15px; fill: #fff; }
body.cfsg .cfsg-footer .cfsg-footer__legal { text-align: center; }
body.cfsg .cfsg-footer .cfsg-footer__legal p { font-size: 12px; line-height: 19px; margin: 0; }
body.cfsg .cfsg-footer .cfsg-footer__legal p + p { margin-top: 12px; }
body.cfsg .cfsg-footer .cfsg-footer__legal a { text-decoration: underline; }
body.cfsg .cfsg-footer .cfsg-footer__copy { font-size: 11px; margin-top: 28px !important; }
@media (max-width: 781px) {
	.cfsg-footer .cfsg-footer__cols { margin-bottom: 40px; }
}

/* ---------- Responsive: hero and sections ---------- */
@media (max-width: 1100px) {
	body.cfsg h1 { font-size: 40px; line-height: 48px; }
	body.cfsg h2 { font-size: 34px; }
	.cfsg-hero .cfsg-hero__label { flex-basis: 220px; }
}
@media (max-width: 900px) {
	.cfsg-hero.wp-block-cover { min-height: 0 !important; display: block; background: #fff; }
	.cfsg-hero .wp-block-cover__video-background { height: 432px !important; bottom: auto; }
	.cfsg-hero .wp-block-cover__background { height: 432px; bottom: auto; }
	.cfsg-hero .wp-block-cover__inner-container { padding-top: 432px; color: var(--cfsg-text); }
	.cfsg-hero .cfsg-hero__lines { display: none; }
	.cfsg-hero .cfsg-hero__bar { order: 1; background: var(--cfsg-light); }
	.cfsg-hero .cfsg-hero__bar-inner { padding: 21px var(--cfsg-gutter); }
	.cfsg-hero .cfsg-hero__label { display: none; }
	.cfsg-hero .cfsg-hero__text { order: 2; padding: var(--cfsg-section) var(--cfsg-gutter) 0; text-align: center; align-items: center; }
	.cfsg-hero .cfsg-hero__text > * { max-width: 760px; margin-left: auto; margin-right: auto; }
	body.cfsg .cfsg-hero h1 { color: var(--cfsg-text); text-transform: none; font-size: 40px; line-height: 48px; margin-bottom: 24px; max-width: none; }
	body.cfsg .cfsg-hero .cfsg-hero__lead { color: var(--cfsg-text); line-height: 24px; max-width: 760px; }
	body.cfsg .cfsg-hero .cfsg-inline-form .wpforms-form { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
	body.cfsg .cfsg-hero .cfsg-inline-form .wpforms-field-container { display: contents; }
	body.cfsg .cfsg-hero .cfsg-inline-form button.wpforms-submit { width: 100%; min-width: 0; height: 43px !important; margin-top: 0; }
	.cfsg-newsletter__inner { flex-direction: column; align-items: stretch; text-align: center; gap: 16px; }
	.cfsg-newsletter__text { flex: none; }
}
@media (max-width: 560px) {
	:root { --cfsg-gutter: 20px; }
	body.cfsg h2 { font-size: 30px; }
	.cfsg-hero .wp-block-cover__video-background,
	.cfsg-hero .wp-block-cover__background { height: 280px !important; }
	.cfsg-hero .wp-block-cover__inner-container { padding-top: 280px; }
	body.cfsg .cfsg-newsletter .cfsg-inline-form .wpforms-field-container { flex-direction: column; }
	body.cfsg .cfsg-newsletter .cfsg-inline-form .wpforms-submit-container { flex-basis: 100%; }
	body.cfsg .cfsg-newsletter .cfsg-inline-form button.wpforms-submit { width: 100%; }
}

/* CFSG fix layer - fold into cfsg.css before launch */
body.cfsg .wp-block-cover.cfsg-hero p, body.cfsg .wp-block-cover.cfsg-hero h1 { color: #fff !important; }
body.cfsg .cfsg-header .cfsg-search .wp-block-search__button { background: transparent !important; color: #242424 !important; box-shadow: none !important; }
#rank-math-analytics-stats-wrapper { display: none !important; }
body.cfsg .entry-content .cfsg-intro a, body.cfsg .entry-content .cfsg-flip a, body.cfsg .entry-content .cfsg-articles a { text-decoration: none !important; }
body.cfsg #ast-scroll-top { background: #989fa3; color: #fff; border-radius: 4px; }
body.cfsg #ast-scroll-top:hover { background: #242424; }
@media (max-width: 900px) {
  body.cfsg .wp-block-cover.cfsg-hero p, body.cfsg .wp-block-cover.cfsg-hero h1 { color: #242424 !important; }
}


/* ---------- Accent colours per section ---------- */
body.cfsg { --cfsg-accent: var(--cfsg-grey-btn); }
body.cfsg-acc-purple { --cfsg-accent: var(--cfsg-c-purple); }
body.cfsg-acc-amber { --cfsg-accent: var(--cfsg-c-amber); }
body.cfsg-acc-red { --cfsg-accent: var(--cfsg-c-red); }
body.cfsg-acc-blue { --cfsg-accent: var(--cfsg-c-blue); }
body.cfsg-acc-sky { --cfsg-accent: var(--cfsg-c-sky); }
body.cfsg-acc-teal { --cfsg-accent: var(--cfsg-c-teal); }
body.cfsg-acc-orange { --cfsg-accent: var(--cfsg-c-orange); }
body.cfsg-acc-green { --cfsg-accent: var(--cfsg-c-green); }
body.cfsg-acc-grey { --cfsg-accent: var(--cfsg-grey-btn); }
body.cfsg .wp-block-button.cfsg-btn.is-accent .wp-block-button__link { background: var(--cfsg-accent); font-size: 14px; letter-spacing: .5px; padding: 12px 26px; border-radius: 4px; }
body.cfsg .wp-block-button.cfsg-btn.is-accent .wp-block-button__link:hover { background: var(--cfsg-text); }

/* ---------- Header active section + sub menu ---------- */
body.cfsg-sec-individual .cfsg-nav a[href="/individual/"],
body.cfsg-sec-business .cfsg-nav a[href="/business/"],
body.cfsg-sec-about-us .cfsg-nav a[href="/about-us/"],
body.cfsg-sec-blog .cfsg-nav a[href="/blog/"],
body.cfsg-sec-contact-us .cfsg-nav a[href="/contact-us/"] { background: var(--cfsg-band); }
@media (min-width: 1101px) {
	.cfsg-header .cfsg-nav .wp-block-navigation-item__content { display: block; }
}
.cfsg-subnav {
	position: sticky; top: 70px; z-index: 998;
	background: var(--cfsg-band);
}
body.admin-bar .cfsg-subnav { top: 102px; }
.cfsg-subnav__inner { max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2); margin: 0 auto; padding: 0 var(--cfsg-gutter); }
.cfsg-subnav__list { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cfsg-subnav__list > li { position: relative; margin: 0; }
.cfsg-subnav__list a { display: block; font-size: 11px; line-height: 50px; padding: 0 20px; color: var(--cfsg-text); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cfsg-subnav__list > li.current-menu-item > a,
.cfsg-subnav__list > li.current-menu-ancestor > a,
.cfsg-subnav__list > li.current-menu-parent > a,
.cfsg-subnav__list > li.current-page-ancestor > a,
.cfsg-subnav__list a:hover { color: #fff; }
.cfsg-subnav__list .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
	background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.cfsg-subnav__list > li:hover > .sub-menu,
.cfsg-subnav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cfsg-subnav__list .sub-menu a { line-height: 1.4; padding: 10px 20px; font-size: 12px; text-transform: none; color: var(--cfsg-text); }
.cfsg-subnav__list .sub-menu a:hover, .cfsg-subnav__list .sub-menu .current-menu-item > a { background: var(--cfsg-light); color: var(--cfsg-text); }
@media (max-width: 1100px) {
	.cfsg-subnav { top: 60px; }
	body.admin-bar .cfsg-subnav { top: 92px; }
	.cfsg-subnav__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
	.cfsg-subnav__list::-webkit-scrollbar { display: none; }
	.cfsg-subnav__list .sub-menu { display: none; }
	.cfsg-subnav__list a { line-height: 44px; padding: 0 14px; }
}
@media (max-width: 782px) { body.admin-bar .cfsg-subnav { top: 60px; } }

/* ---------- Inner page hero ---------- */
.cfsg-phero.wp-block-cover {
	min-height: 475px; padding: 0; align-items: stretch; overflow: hidden;
	background-color: var(--cfsg-accent);
}
.cfsg-phero .wp-block-cover__image-background { object-position: left center; }
.cfsg-phero .wp-block-cover__inner-container { width: 100%; max-width: none; position: relative; display: flex; flex-direction: column; color: #fff; }
.cfsg-phero .cfsg-phero__lines { position: absolute; right: -150px; top: -123px; width: 713px; margin: 0; z-index: 1; pointer-events: none; }
.cfsg-phero .cfsg-phero__lines img { width: 713px; height: auto; display: block; }
.cfsg-phero .cfsg-phero__img { position: absolute; left: 50%; transform: translateX(-57%); bottom: 73px; top: 0; margin: 0; z-index: 1; pointer-events: none; display: flex; align-items: center; }
.cfsg-phero .cfsg-phero__img img { max-height: 430px; width: auto; max-width: 520px; display: block; object-fit: contain; }
.cfsg-phero .cfsg-hero__text { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2); width: 100%; margin: 0 auto; padding: 48px var(--cfsg-gutter) 32px; }
.cfsg-phero .cfsg-hero__text > * { max-width: 400px; }
body.cfsg .wp-block-cover.cfsg-phero h1 { color: #fff !important; font-size: 38px; line-height: 38px; text-transform: uppercase; margin: 0 0 14px; }
body.cfsg .wp-block-cover.cfsg-phero p.cfsg-phero__sub { color: #fff !important; font-size: 16px; line-height: 21px; }
.cfsg-phero .cfsg-hero__bar { position: relative; z-index: 2; background: rgba(0, 0, 0, .5); min-height: 73px; }
.cfsg-phero .cfsg-hero__bar-inner { display: flex; align-items: center; max-width: calc(var(--cfsg-container) + var(--cfsg-gutter) * 2); margin: 0 auto; padding: 15px var(--cfsg-gutter); }
.cfsg-phero .cfsg-hero__label { flex: 0 0 392px; font-size: 13px; line-height: 20px; color: #fff !important; padding-left: 8px; }
.cfsg-phero .cfsg-hero__form { flex: 1; min-width: 0; }
@media (max-width: 1100px) {
	.cfsg-phero .cfsg-phero__img { display: none; }
	.cfsg-phero .cfsg-hero__label { flex-basis: 220px; }
}
@media (max-width: 900px) {
	.cfsg-phero.wp-block-cover { min-height: 0 !important; display: block; background: #fff; }
	.cfsg-phero .wp-block-cover__image-background { height: 220px !important; bottom: auto; }
	.cfsg-phero .wp-block-cover__background { height: 220px; bottom: auto; }
	.cfsg-phero .wp-block-cover__inner-container { padding-top: 0; }
	.cfsg-phero .cfsg-phero__lines { right: -330px; top: -150px; transform: scale(.6); transform-origin: top right; }
	.cfsg-phero .cfsg-hero__text { min-height: 220px; padding: 30px var(--cfsg-gutter); }
	body.cfsg .wp-block-cover.cfsg-phero h1 { font-size: 30px; line-height: 32px; }
	.cfsg-phero .cfsg-hero__bar { background: var(--cfsg-light); }
	.cfsg-phero .cfsg-hero__bar-inner { padding: 21px var(--cfsg-gutter); }
	.cfsg-phero .cfsg-hero__label { display: none; }
	body.cfsg .cfsg-phero .cfsg-inline-form .wpforms-form { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
	body.cfsg .cfsg-phero .cfsg-inline-form .wpforms-field-container { display: contents; }
	body.cfsg .cfsg-phero .cfsg-inline-form button.wpforms-submit { width: 100%; min-width: 0; height: 43px !important; margin-top: 0; }
}

/* ---------- Converted page content ---------- */
.cfsg-page .cfsg-section { padding: var(--cfsg-section) 0; }
.cfsg-page .cfsg-section + .cfsg-section:not(.is-light) { padding-top: 0; }
body.cfsg .cfsg-page h2 { text-align: center; margin: 0 0 24px; }
body.cfsg .cfsg-page h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
body.cfsg .cfsg-page h4 { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 12px; }
body.cfsg .cfsg-page h5, body.cfsg .cfsg-page h6 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
body.cfsg .cfsg-page p, body.cfsg .cfsg-page li { font-size: 14px; line-height: 24px; }
body.cfsg .cfsg-page .cfsg-container > * + * { margin-top: 24px; }
body.cfsg .cfsg-page ul, body.cfsg .cfsg-page ol { margin: 0 0 0 1.3em; padding: 0; }
body.cfsg .cfsg-page .wp-block-heading + p { margin-top: 0; }
body.cfsg .cfsg-page a:not(.wp-block-button__link) { color: var(--cfsg-text); text-decoration: underline; text-underline-offset: 2px; }
.cfsg-page .wp-block-columns.cfsg-cols { gap: 1.5rem 2rem; margin: 0; align-items: stretch; }
.cfsg-page .wp-block-columns.cfsg-cols + .wp-block-columns.cfsg-cols { margin-top: 1.5rem; }
.cfsg-page .wp-block-column > * + * { margin-top: 14px; }
.cfsg-page .wp-block-column.cfsg-card {
	background: #fff; border-radius: 10px; padding: 20px;
	box-shadow: 1px 1px 10px rgba(0, 0, 0, .15);
}
.cfsg-page .wp-block-image { margin: 0; }
.cfsg-page .wp-block-image img { height: auto; max-width: 100%; }
.cfsg-page .wp-block-buttons { margin-top: 20px; }
@media (max-width: 781px) {
	.cfsg-page .wp-block-columns.cfsg-cols { flex-wrap: wrap !important; }
	.cfsg-page .wp-block-columns.cfsg-cols > .wp-block-column { flex-basis: 100% !important; }
	.cfsg-page .cfsg-section + .cfsg-section:not(.is-light) { padding-top: var(--cfsg-section); }
}

/* ---------- Tabs and side tabs ---------- */
.cfsg-tabs__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: center; margin: 0 0 28px; border-bottom: 1px solid var(--cfsg-band); }
.cfsg-tabs__btn {
	background: none !important; border: 0; border-bottom: 3px solid transparent; color: var(--cfsg-text) !important;
	font-size: 16px; font-weight: 600; padding: 10px 2px; cursor: pointer; border-radius: 0;
}
.cfsg-tabs__btn.is-active, .cfsg-tabs__btn:hover { border-bottom-color: var(--cfsg-accent); }
.cfsg-tabs.is-ready > .cfsg-tab:not(.is-active) { display: none; }
.cfsg-tabs.is-ready .cfsg-tab__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cfsg-tabs:not(.is-ready) > .cfsg-tab + .cfsg-tab { margin-top: 32px; }
.cfsg-tabs.is-tour.is-ready { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.cfsg-tabs.is-tour .cfsg-tabs__nav { flex-direction: column; align-items: flex-start; border: 0; margin: 0; gap: 0; }
.cfsg-tabs.is-tour .cfsg-tabs__btn { text-align: left; border: 0; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--cfsg-muted) !important; }
.cfsg-tabs.is-tour .cfsg-tabs__btn.is-active, .cfsg-tabs.is-tour .cfsg-tabs__btn:hover { color: var(--cfsg-text) !important; }
@media (max-width: 781px) {
	.cfsg-tabs.is-tour.is-ready { grid-template-columns: 1fr; gap: 20px; }
	.cfsg-tabs.is-tour .cfsg-tabs__nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
}

/* ---------- Accordion ---------- */
.cfsg-accordion { max-width: 1000px; margin-left: auto; margin-right: auto; }
.cfsg-accordion .wp-block-details { border-bottom: 1px solid var(--cfsg-band); margin: 0; padding: 0; }
.cfsg-accordion .wp-block-details summary {
	font-size: 16px; line-height: 1.4; padding: 16px 40px 16px 0; cursor: pointer; list-style: none; position: relative;
}
.cfsg-accordion .wp-block-details summary::-webkit-details-marker { display: none; }
.cfsg-accordion .wp-block-details summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2px solid var(--cfsg-text); border-bottom: 2px solid var(--cfsg-text); transform: rotate(45deg); transition: transform .2s;
}
.cfsg-accordion .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.cfsg-accordion .wp-block-details > *:not(summary) { margin: 0 0 16px; }

/* ---------- Icon boxes, people, pop-ups ---------- */
.cfsg-iconbox { text-align: center; }
.cfsg-iconbox .wp-block-image { display: flex; justify-content: center; }
.cfsg-iconbox .wp-block-image img { max-width: 120px; }
.cfsg-person { text-align: center; }
.cfsg-person .wp-block-image img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
body.cfsg .cfsg-person h3 { font-size: 18px; margin: 14px 0 2px; }
body.cfsg .cfsg-person .cfsg-person__role { color: var(--cfsg-muted); font-size: 13px; margin: 0; }
.cfsg-person .wp-block-details, .cfsg-popup.wp-block-details { text-align: left; margin-top: 12px; }
.cfsg-person .wp-block-details summary, .cfsg-popup.wp-block-details summary { text-align: center; font-size: 13px; text-transform: uppercase; color: var(--cfsg-text); cursor: pointer; }

/* ---------- Post grids (blog hubs) ---------- */
.cfsg-postgrid .wp-block-post-template { gap: 40px 50px; margin: 0; }
.cfsg-postgrid .wp-block-post-featured-image { margin: 0 0 16px; }
.cfsg-postgrid .wp-block-post-featured-image img { aspect-ratio: 1024 / 538; object-fit: cover; width: 100%; height: auto; display: block; }
body.cfsg .cfsg-postgrid .wp-block-post-date { font-size: 11px; color: var(--cfsg-muted); margin: 0 0 6px; }
body.cfsg .cfsg-postgrid .wp-block-post-title { font-size: 19.6px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; text-align: left; }
body.cfsg .cfsg-postgrid .wp-block-post-title a { text-decoration: none !important; }
body.cfsg .cfsg-postgrid .wp-block-post-excerpt__excerpt { font-size: 14px; line-height: 24px; margin: 0; }
.cfsg-postgrid .wp-block-query-pagination { margin-top: 40px; justify-content: center; gap: 8px; }
@media (max-width: 781px) { .cfsg-postgrid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- Single posts ---------- */
body.cfsg.single-post .site-content > .ast-container { max-width: 960px; margin: 0 auto; padding: 56px var(--cfsg-gutter); }
body.cfsg.single-post .entry-title { font-size: 40px; line-height: 1.2; font-weight: 400; }
body.cfsg.single-post .entry-meta, body.cfsg.single-post .entry-meta a { color: var(--cfsg-muted); font-size: 12px; }
body.cfsg.single-post .post-thumb img, body.cfsg.single-post .ast-single-post-featured-section img { width: 100%; height: auto; border-radius: 0; }
body.cfsg.single-post .entry-content > * + * { margin-top: 18px; }
body.cfsg.single-post .entry-content h2 { font-size: 26px; font-weight: 700; text-align: left; margin-top: 36px; }
body.cfsg.single-post .entry-content h3 { font-size: 20px; font-weight: 700; margin-top: 28px; }
body.cfsg.single-post .entry-content h4 { font-size: 17px; font-weight: 700; margin-top: 24px; }
body.cfsg.single-post .entry-content p, body.cfsg.single-post .entry-content li { font-size: 15px; line-height: 26px; }
body.cfsg.single-post .entry-content ul, body.cfsg.single-post .entry-content ol { margin-left: 1.3em; }
body.cfsg.single-post .entry-content img { height: auto; max-width: 100%; }
body.cfsg.single-post .entry-content a { text-decoration: underline; }
