/**
 * Strategic Core — global components:
 * Top Banner, Back to Top, Grain overlay, Grid lines, Boxed layout,
 * Custom cursor, Portfolio, Social, Maintenance, Elementor canvas.
 */

/* --------------------------------------------------------------------------
 * Boxed layout (no wrapper div: the body itself is the box)
 * ------------------------------------------------------------------------ */
html:has(body.st-layout-boxed) {
	background: var(--st-boxed-outer-bg, #e7eaf0);
}

body.st-layout-boxed {
	max-width: var(--st-boxed-width, 1360px);
	margin-inline: auto;
	box-shadow: 0 0 60px -20px rgba(14, 19, 31, 0.25);
	isolation: isolate;
}

/* --------------------------------------------------------------------------
 * Top banner
 * ------------------------------------------------------------------------ */
.stc-top-banner {
	position: relative;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 48px;
	background: var(--st-banner-bg, #0e131f);
	color: var(--st-banner-color, #fff);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-align: center;
	transition: transform 0.28s ease, margin 0.28s ease;
}

.stc-top-banner a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.stc-top-banner__close {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.75;
}

.stc-top-banner__close:hover,
.stc-top-banner__close:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
}

.stc-top-banner.is-hidden-scroll {
	transform: translateY(-100%);
}

.stc-top-banner[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
 * Back to top
 * ------------------------------------------------------------------------ */
.stc-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--st-btt-radius, 999px);
	background: var(--st-btt-bg, var(--st-primary-color, #2f5bff));
	color: var(--st-btt-color, #fff);
	box-shadow: 0 14px 30px -14px rgba(14, 19, 31, 0.6);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 16px, 0) scale(0.9);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.stc-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0) scale(1);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.stc-back-to-top:hover {
	transform: translate3d(0, -3px, 0) scale(1);
}

@media (max-width: 767px) {
	.stc-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}

	.stc-back-to-top--no-mobile {
		display: none;
	}
}

/* --------------------------------------------------------------------------
 * Grain overlay (static SVG feTurbulence noise)
 * ------------------------------------------------------------------------ */
body.st-has-grain::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 2147483000;
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: var(--st-grain-opacity, 0.06);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Vertical grid lines (pure CSS)
 * ------------------------------------------------------------------------ */
body.st-has-grid-lines {
	isolation: isolate;
}

body.st-has-grid-lines::before {
	--_cols: var(--st-grid-columns, 4);
	--_gutter: var(--st-container-gutter, 24px);
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	--_w: var(--st-grid-weight, 1px);
	width: min(var(--st-container-width, 1200px), 100% - (var(--_gutter) * 2));
	margin-inline: auto;
	background-image: repeating-linear-gradient(
		to right,
		var(--st-grid-color, rgba(14, 19, 31, 0.08)) 0 var(--_w),
		transparent var(--_w) calc(100% / var(--_cols))
	);
	border-right: var(--_w) solid var(--st-grid-color, rgba(14, 19, 31, 0.08));
	pointer-events: none;
}

body.st-has-grid-lines.st-grid-full::before {
	width: 100%;
}

/* --------------------------------------------------------------------------
 * Moldura do site (passe-partout)
 * ------------------------------------------------------------------------ */
body.st-has-site-border::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	border: var(--st-site-border-width, 16px) solid var(--st-site-border-color, #2f5bff);
	pointer-events: none;
}

body.st-has-site-border {
	padding: var(--st-site-border-width, 16px);
}

/* --------------------------------------------------------------------------
 * Top banner: duas colunas, fixo
 * ------------------------------------------------------------------------ */
.stc-top-banner {
	padding-block: var(--st-banner-padding, 10px);
	font-size: var(--st-banner-font-size, 13px);
}

.stc-top-banner a {
	color: var(--st-banner-link-color, inherit);
}

.stc-top-banner__inner {
	width: min(var(--st-container-width, 1280px), 100%);
}

.stc-top-banner--two .stc-top-banner__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.stc-top-banner .stc-align-left { text-align: left; }
.stc-top-banner .stc-align-center { text-align: center; }
.stc-top-banner .stc-align-right { text-align: right; }

.stc-top-banner--sticky {
	position: sticky;
	top: 0;
}

.admin-bar .stc-top-banner--sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 767px) {
	.stc-top-banner--two .stc-top-banner__inner {
		grid-template-columns: 1fr;
	}

	.stc-top-banner--two .stc-top-banner__col:last-child {
		display: none;
	}
}

/* Estilos do cursor */
.st-cursor-ring .stc-cursor-dot,
.st-cursor-dot .stc-cursor {
	display: none;
}

.st-cursor-outline .stc-cursor { border-style: dashed; border-width: 2px; }
.st-cursor-blob .stc-cursor { border: 0; border-radius: 47% 53% 63% 37% / 40% 42% 58% 60%; background: color-mix(in srgb, var(--st-cursor-color, #2f5bff) 24%, transparent); }
.st-cursor-crosshair .stc-cursor { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; border-radius: 0; background: linear-gradient(var(--st-cursor-color, #2f5bff),var(--st-cursor-color, #2f5bff)) center/1px 100% no-repeat, linear-gradient(var(--st-cursor-color, #2f5bff),var(--st-cursor-color, #2f5bff)) center/100% 1px no-repeat; }

.st-cursor-hide-native,
.st-cursor-hide-native a,
.st-cursor-hide-native button {
	cursor: none;
}



/* --------------------------------------------------------------------------
 * Custom cursor
 * ------------------------------------------------------------------------ */
.stc-cursor,
.stc-cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483001;
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
}

.stc-cursor {
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 1.5px solid var(--st-cursor-color, #2f5bff);
	opacity: 0;
	transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.stc-cursor-dot {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	background: var(--st-cursor-color, #2f5bff);
	opacity: 0;
}

.stc-cursor.is-ready,
.stc-cursor-dot.is-ready {
	opacity: 1;
}

.stc-cursor.is-hover {
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	background: color-mix(in srgb, var(--st-cursor-color, #2f5bff) 14%, transparent);
}

.st-cursor-hover-none .stc-cursor.is-hover {
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	background: transparent;
}

.st-cursor-hover-fill .stc-cursor.is-hover {
	background: color-mix(in srgb, var(--st-cursor-color, #2f5bff) 45%, transparent);
}

.stc-cursor.is-down {
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
}

/* --------------------------------------------------------------------------
 * Social
 * ------------------------------------------------------------------------ */
.stc-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stc-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
}

.stc-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* --------------------------------------------------------------------------
 * Portfolio (Grid / Masonry / Hover FX)
 * ------------------------------------------------------------------------ */
.stc-portfolio-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.stc-portfolio-filter button {
	padding: 8px 16px;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stc-portfolio-filter button.is-active,
.stc-portfolio-filter button:hover {
	border-color: var(--st-primary-color, #2f5bff);
	background: var(--st-primary-color, #2f5bff);
	color: #fff;
}

.stc-portfolio {
	--stc-columns: 3;
	--stc-gap: 24px;
}

.stc-portfolio--grid {
	display: grid;
	grid-template-columns: repeat(var(--stc-columns), minmax(0, 1fr));
	gap: var(--stc-gap);
}

.stc-portfolio--masonry {
	column-count: var(--stc-columns);
	column-gap: var(--stc-gap);
}

.stc-portfolio--masonry .stc-portfolio__item {
	break-inside: avoid;
	margin-bottom: var(--stc-gap);
}

.stc-portfolio__item[hidden] {
	display: none;
}

.stc-portfolio__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
}

.stc-portfolio__media {
	margin: 0;
	aspect-ratio: auto;
	background: var(--st-light-neutral-color, #f3f5f9);
}

.stc-portfolio--grid .stc-portfolio__media {
	aspect-ratio: 1 / 1;
}

.stc-portfolio__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}

.stc-portfolio__caption {
	padding: 14px 2px 0;
}

.stc-portfolio__title {
	margin: 0;
	font-size: 1.125rem;
}

.stc-portfolio__terms {
	display: block;
	margin-top: 4px;
	opacity: 0.7;
	font-size: 0.875rem;
}

/* FX: zoom */
.stc-fx--zoom .stc-portfolio__link:hover img,
.stc-fx--zoom .stc-portfolio__link:focus-visible img {
	transform: scale(1.06);
}

/* FX: overlay + slide-up (caption over the image) */
.stc-fx--overlay .stc-portfolio__caption,
.stc-fx--slide-up .stc-portfolio__caption {
	position: absolute;
	inset: auto 0 0;
	padding: 24px;
	background: linear-gradient(to top, rgba(14, 19, 31, 0.85), transparent);
	color: #fff;
}

.stc-fx--overlay .stc-portfolio__caption {
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: rgba(14, 19, 31, 0.6);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.stc-fx--overlay .stc-portfolio__link:hover .stc-portfolio__caption,
.stc-fx--overlay .stc-portfolio__link:focus-visible .stc-portfolio__caption {
	opacity: 1;
}

.stc-fx--overlay .stc-portfolio__title,
.stc-fx--slide-up .stc-portfolio__title {
	color: #fff;
}

.stc-fx--slide-up .stc-portfolio__caption {
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stc-fx--slide-up .stc-portfolio__link:hover .stc-portfolio__caption,
.stc-fx--slide-up .stc-portfolio__link:focus-visible .stc-portfolio__caption {
	transform: translateY(0);
}

/* FX: grayscale */
.stc-fx--grayscale .stc-portfolio__media img {
	filter: grayscale(1);
}

.stc-fx--grayscale .stc-portfolio__link:hover img,
.stc-fx--grayscale .stc-portfolio__link:focus-visible img {
	filter: grayscale(0);
}

@media (max-width: 1024px) {
	.stc-portfolio {
		--stc-columns: 2 !important;
	}
}

@media (max-width: 600px) {
	.stc-portfolio {
		--stc-columns: 1 !important;
	}
}

/* --------------------------------------------------------------------------
 * Shortcode helpers
 * ------------------------------------------------------------------------ */
.stc-posts {
	display: grid;
	grid-template-columns: repeat(var(--stc-columns, 3), minmax(0, 1fr));
	gap: 32px;
}

@media (max-width: 1024px) {
	.stc-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.stc-posts {
		grid-template-columns: 1fr;
	}
}

.stc-featured-image {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
 * Maintenance + canvas
 * ------------------------------------------------------------------------ */
.stc-maintenance {
	display: grid;
	min-height: 100vh;
	place-items: center;
	margin: 0;
	padding: 24px;
	background: var(--st-dark-neutral-color, #0e131f);
	color: #fff;
}

.stc-maintenance__box {
	max-width: 560px;
	text-align: center;
}

.stc-maintenance__box h1 {
	color: #fff;
}

.stc-maintenance__message {
	opacity: 0.8;
}

body.stc-canvas {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.stc-back-to-top,
	.stc-top-banner,
	.stc-portfolio__media img,
	.stc-portfolio__caption {
		transition: none !important;
	}
}
