/*! ===========================================================================
 *
 *    ██████╗ ███████╗ ██████╗    ██████╗  ██████╗ ██╗    ██╗███████╗██████╗
 *    ██╔══██╗██╔════╝██╔════╝    ██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
 *    ██████╔╝█████╗  ██║         ██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
 *    ██╔══██╗██╔══╝  ██║         ██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
 *    ██║  ██║███████╗╚██████╗    ██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
 *    ╚═╝  ╚═╝╚══════╝ ╚═════╝    ╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝
 *
 *    REC Power — WordPress theme
 *    Designed & built by DG+ Agency
 *
 * =========================================================================== */

body {
	font-family: var(--wp--preset--font-family--new-frank, "new-frank", system-ui, -apple-system, "Helvetica Neue", sans-serif);
}

:root {
	--ty-font: var(--wp--preset--font-family--new-frank, "new-frank", system-ui, -apple-system, "Helvetica Neue", sans-serif);

	
	--ty-h1-size:              3.875rem;  
	--ty-title-size:           2.8125rem; 
	--ty-section-heading-size: 2.5rem;    
	--ty-statement-size:       2rem;      
	--ty-cta-heading-size:     1.875rem;  
	--ty-impact-size:          1.5625rem; 
	--ty-card-heading-size:    1.25rem;   
	--ty-body-size:            1.0625rem; 
	--ty-card-subtext-size:    0.9375rem; 
	--ty-button-size:          0.9375rem; 
	--ty-ui-size:              0.875rem;  
	--ty-badge-size:           0.75rem;   
}

:where(.ty-h1, .ty-title, .ty-section-heading, .ty-statement, .ty-cta-heading, .ty-impact, .ty-card-heading, .ty-card-subtext, .ty-eyebrow) { margin: 0; }
.ty-h1              { font-family: var(--ty-font); font-weight: 500; font-size: var(--ty-h1-size);              line-height: 1.1;  letter-spacing: 0; }
.ty-title           { font-family: var(--ty-font); font-weight: 500; font-size: var(--ty-title-size);           line-height: 1.1;  letter-spacing: 0; }  
.ty-section-heading { font-family: var(--ty-font); font-weight: 500; font-size: var(--ty-section-heading-size); line-height: 1.2;  letter-spacing: 0; }
.ty-statement       { font-family: var(--ty-font); font-weight: 700; font-size: var(--ty-statement-size);       line-height: 1.2;  letter-spacing: 0; }  
.ty-cta-heading     { font-family: var(--ty-font); font-weight: 500; font-size: var(--ty-cta-heading-size);     line-height: 1.1;  letter-spacing: 0; }
.ty-impact          { font-family: var(--ty-font); font-weight: 700; font-size: var(--ty-impact-size);          line-height: 1.3;  letter-spacing: 0; }  
.ty-card-heading    { font-family: var(--ty-font); font-weight: 400; font-size: var(--ty-card-heading-size);    line-height: 1.3;  letter-spacing: 1px; }
.ty-card-subtext    { font-family: var(--ty-font); font-weight: 400; font-size: var(--ty-card-subtext-size);     line-height: 1.55; letter-spacing: 0; }  
.ty-body            { font-family: var(--ty-font); font-weight: 400; font-size: var(--ty-body-size);            line-height: 1.55; letter-spacing: 0; }
.ty-emphasis        { font-family: var(--ty-font); font-weight: 700; font-size: var(--ty-body-size);            line-height: 1.55; letter-spacing: 0; }
.ty-button          { font-family: var(--ty-font); font-weight: 700; font-size: var(--ty-button-size);          line-height: 1;    letter-spacing: 0; }
.ty-ui-label        { font-family: var(--ty-font); font-weight: 400; font-size: var(--ty-ui-size);              line-height: 1.43; letter-spacing: 0; }
.ty-badge           { font-family: var(--ty-font); font-weight: 400; font-size: var(--ty-badge-size);           line-height: 1.4;  letter-spacing: 0; }

.ty-eyebrow         { font-family: var(--ty-font); font-weight: 300; font-size: var(--ty-ui-size); line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.ty-eyebrow--bold   { font-weight: 700; }

/* On-navy contrast safety net.
 * .ty-card-heading / .ty-card-subtext are colour-agnostic utilities (they inherit),
 * so card text on a navy section that lacks `has-white-color` falls to the default
 * dark ink and renders unreadably dark on navy. Scope to these two utilities only,
 * under any .has-dark-navy-background-color ancestor (the block's own section OR a
 * parent page section). :where() keeps the selector at single-class specificity so
 * an explicit `has-*-color` still wins. Light-surface cards on navy use their own
 * heading classes and set their own dark colour, so they are untouched. */
.has-dark-navy-background-color :where(.ty-card-heading, .ty-card-subtext) {
	color: var(--wp--preset--color--white);
}

.container-wide {
	width: min(calc(100% - 2 * clamp(1rem, 4vw, 2.5rem)), 1320px);
	margin-inline: auto;
	box-sizing: border-box;
}

.container-narrow {
	width: 100%;
	max-width: 880px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	box-sizing: border-box;
}

#iub-pp-container {
	width: min(calc(100% - 2 * clamp(1rem, 4vw, 2.5rem)), 1320px);
	margin-inline: auto;
	box-sizing: border-box;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.text-bold { font-weight: 700; }

.eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

:root {
	--c-heading-ink:    #231F20;  
	--c-figma-navy:     #150E40;  
	--c-input-border:   #BEBEBE;  
	--c-select-border:  #979797;  
	--c-required:       #A53F19;  
}
.ty-form-label  { font-family: var(--ty-font); font-weight: 700; font-size: 0.75rem; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--c-heading-ink); }
.ty-ui-light-14 { font-family: var(--ty-font); font-weight: 300; font-size: 14px;     line-height: 1; letter-spacing: 0; }

:root {
	--c-breadcrumb-rule: #7D7D7D;  
}

.btn {
	box-sizing: border-box;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	border-radius: 0;
}
.btn--white.btn--solid,
.btn--white.btn--outline {
	font-family: var(--ty-font);
	font-weight: 700;
	font-size: var(--ty-button-size);   
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	min-height: 40px;
	padding: 0 1.5rem;
	display: flex;                      
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}
.btn--white.btn--solid {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark-navy);
}
.btn--white.btn--solid:hover { background-color: rgba(255, 255, 255, 0.92); }
.btn--white.btn--outline {
	background-color: transparent;
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--white);
}
.btn--white.btn--outline:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn--arrow::after {
	content: "";
	width: 11px;
	height: 3px;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: url("../img/ui-arrow-right.svg") no-repeat center / contain;
	        mask: url("../img/ui-arrow-right.svg") no-repeat center / contain;
}
@media (min-width: 768px) {
	.btn--white.btn--solid,
	.btn--white.btn--outline { display: inline-flex; width: auto; }   
}

:root {
	--transition:      0.35s ease-in-out;  
	--transition-fast: 0.2s ease-in-out;   
}

.btn,
.btn--white.btn--solid,
.btn--white.btn--outline {
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.site-header_nav-link,
.site-header_drawer-link,
.news-featured_view-link,
.news-listing_card-link,
.pcs_card-link,
.solutions-subpage-case-study_readlink,
.solutions-subpage-components-grid_card-link,
.solutions-subpage-partner-platform_link,
.about-story_body a,
.single-article_body a {
	transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.site-header_nav-item,
.site-header_megamenu-item,
.site-header_drawer-nav a {
	transition: color var(--transition-fast), background-color var(--transition-fast);
}

.about-financial-strength_card,
.about-outcomes_card,
.cta-banner_card,
.financing-pathway_card,
.home-hero_card,
.home-solutions-portfolio_card,
.home-value-prop_card,
.news-featured_card,
.news-listing_card,
.pcs_card,
.pfcs_card,
.solutions-subpage-case-study_card,
.solutions-subpage-components-grid_card,
.solutions-subpage-hero_card,
.solutions-subpage-performance_card {
	transition: transform var(--transition), box-shadow var(--transition);
}
.about-financial-strength_card:hover,
.about-outcomes_card:hover,
.cta-banner_card:hover,
.financing-pathway_card:hover,
.home-hero_card:hover,
.home-solutions-portfolio_card:hover,
.home-value-prop_card:hover,
.news-featured_card:hover,
.news-listing_card:hover,
.pcs_card:hover,
.pfcs_card:hover,
.solutions-subpage-case-study_card:hover,
.solutions-subpage-components-grid_card:hover,
.solutions-subpage-hero_card:hover,
.solutions-subpage-performance_card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
	.about-financial-strength_card:hover,
	.about-outcomes_card:hover,
	.cta-banner_card:hover,
	.financing-pathway_card:hover,
	.home-hero_card:hover,
	.home-solutions-portfolio_card:hover,
	.home-value-prop_card:hover,
	.news-featured_card:hover,
	.news-listing_card:hover,
	.pcs_card:hover,
	.pfcs_card:hover,
	.solutions-subpage-case-study_card:hover,
	.solutions-subpage-components-grid_card:hover,
	.solutions-subpage-hero_card:hover,
	.solutions-subpage-performance_card:hover {
		transform: none;
	}
}

.searchandfilter {
	--sf-panel-purple: #413C63;
}

.searchandfilter > ul {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
	margin: 0 0 clamp(2.5rem, 6vw, 4rem);
	padding: 0;
}
.searchandfilter > ul > li { margin: 0; }

.searchandfilter [class*="sf-field-taxonomy-"] > ul {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	background: var(--sf-panel-purple);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.searchandfilter [class*="sf-field-taxonomy-"] > ul > li { margin: 0; }

.searchandfilter [class*="sf-field-taxonomy-"] .sf-input-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.searchandfilter [class*="sf-field-taxonomy-"] .sf-label-radio {
	display: block;
	cursor: pointer;
	white-space: nowrap;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 20px;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.8);
	padding: 0.55rem 1rem;
	border-radius: 0;
}

.searchandfilter [class*="sf-field-taxonomy-"] .sf-option-active .sf-label-radio {
	background: #fff;
	color: var(--wp--preset--color--dark-navy, #140E3E);
	font-weight: 700;
}

.searchandfilter .sf-field-search .sf-input-text {
	width: 100%;
	background: none;
	border: 1px solid #A8A8A9;
	border-radius: 0;
	padding: 0.65rem 2.6rem 0.65rem 1rem;
	color: #fff;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 20px;
	letter-spacing: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cline x1='12.8' y1='12.8' x2='18' y2='18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 18px 18px;
}
.searchandfilter .sf-field-search .sf-input-text::placeholder {
	color: #C0C0C0;
	letter-spacing: 0;
}

.searchandfilter select.sf-input-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #352F5A;
	color: rgba(255, 255, 255, 0.8);
	font: inherit;
	font-size: 0.875rem;
	line-height: 20px;   
	letter-spacing: 0;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	padding: 0.55rem 2.5rem 0.55rem 1.1rem;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.1rem center;
	background-size: 12px 8px;
}

@media (min-width: 768px) {
	.searchandfilter > ul {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.searchandfilter .sf-field-search .sf-input-text { min-width: 28rem; }
}

@media (max-width: 767.98px) {
	.searchandfilter [class*="sf-field-taxonomy-"] > ul {
		overflow-x: visible;
		gap: clamp(0.35rem, 1.8vw, 0.7rem);
		padding: 0.3rem clamp(0.4rem, 1.5vw, 0.85rem);
		justify-content: center;
	}
	.searchandfilter [class*="sf-field-taxonomy-"] .sf-label-radio {
		padding: 0.4rem 0.45rem;
		font-size: 0.6875rem; 
		line-height: 1.2;
		text-align: center;
	}
	
	.searchandfilter > ul > li.sf-field-search,
	.searchandfilter .sf-field-search > label,
	.searchandfilter .sf-field-search .sf-input-text {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 359.98px) {
	.searchandfilter [class*="sf-field-taxonomy-"] > ul {
		gap: 0.18rem;
		padding-inline: 0.25rem;
	}
}

.searchandfilter .chosen-container {
	font-size: 0.875rem;
	vertical-align: middle;
}

.searchandfilter .chosen-container-single .chosen-single {
	display: flex;
	align-items: center;
	height: auto;
	background: #352F5A;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
	padding: 0.55rem 2.5rem 0.55rem 1.1rem;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.searchandfilter .chosen-container-single .chosen-single span { margin: 0; overflow: visible; }

.searchandfilter .chosen-container-single .chosen-single div { width: 2.5rem; }
.searchandfilter .chosen-container-single .chosen-single div b {
	background: none;
	width: 100%;
	height: 100%;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat center / 12px 8px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat center / 12px 8px;
	background-color: rgba(255, 255, 255, 0.8);
	transition: transform .15s ease;
}
.searchandfilter .chosen-container-active.chosen-with-drop .chosen-single div b { transform: rotate(180deg); }
.searchandfilter .chosen-container-active .chosen-single { background: #352F5A; }

.searchandfilter .chosen-container .chosen-drop {
	margin-top: 4px;
	background: #352F5A;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.searchandfilter .chosen-container .chosen-search { display: none; } 
.searchandfilter .chosen-container .chosen-results { margin: 0; padding: 0.4rem; max-height: 22rem; }
.searchandfilter .chosen-container .chosen-results li {
	margin: 0;
	padding: 0.55rem 0.9rem 0.55rem 1.9rem;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 20px;
	position: relative;
}
.searchandfilter .chosen-container .chosen-results li.highlighted {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.searchandfilter .chosen-container .chosen-results li.result-selected {
	color: #fff;
	font-weight: 400;
}
.searchandfilter .chosen-container .chosen-results li.result-selected::before {
	content: "\2713";
	position: absolute;
	left: 0.7rem;
}

@media (min-width: 1024px) {
	html.js-reveal [data-reveal],
	html.js-reveal .reveal {
		opacity: 0;
		transform: translateY(20px);
		
		transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition);
		will-change: opacity, transform;
	}
	html.js-reveal [data-reveal].is-revealed,
	html.js-reveal .reveal.is-revealed {
		opacity: 1;
		transform: none;
	}
}

.cursive-overlay {
	position: absolute;
	z-index: var(--cursive-z, 3);
	height: auto;
	width: var(--cursive-w, 20rem);
	aspect-ratio: var(--cursive-ar, 798 / 65);
	pointer-events: none;
	background-color: var(--cursive-color, #FFF);
	-webkit-mask-image: var(--cursive-src);  mask-image: var(--cursive-src);
	-webkit-mask-repeat: no-repeat;          mask-repeat: no-repeat;
	-webkit-mask-position: center;           mask-position: center;
	-webkit-mask-size: contain;              mask-size: contain;
	top: var(--cursive-top, auto);    left: var(--cursive-left, auto);
	right: var(--cursive-right, auto); bottom: var(--cursive-bottom, auto);
	filter: drop-shadow(0 0 6px var(--cursive-halo, transparent)) drop-shadow(0 0 3px var(--cursive-halo, transparent));
}

.cursive-overlay--animated { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s ease; }
.cursive-overlay--animated.in-view,
.cursive-overlay--animated.cursive-trigger-autoplay { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
	.cursive-overlay--animated { clip-path: none; transition: none; }
}
