/**
 * Landing institucional (Elementor Canvas) — vídeo de fundo no hero.
 *
 * @author  Rafael Silva
 * @version 2.0
 */

:root {
	--starstore-content-max: 1250px;
	--starstore-copy-max: 38rem;
	--starstore-bg-panel: #0c0f14;
	--starstore-overlay-strong: rgba(5, 8, 16, 0.82);
	--starstore-overlay-mid: rgba(5, 8, 16, 0.58);
	--starstore-overlay-soft: rgba(5, 8, 16, 0.28);
	--starstore-text: #ffffff;
	--starstore-text-muted: rgba(255, 255, 255, 0.88);
	--starstore-primary: #006fff;
	--starstore-font-display: "Outfit", system-ui, sans-serif;
	--starstore-font-body: "DM Sans", system-ui, sans-serif;
	--starstore-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero com camada de vídeo absoluta ---------------------------------------- */

.starstore-hero--with-video {
	position: relative;
	overflow: hidden;
}

/* Gradiente lateral — legibilidade sobre o vídeo (como na home) */
.starstore-hero--with-video::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		var(--starstore-overlay-strong) 0%,
		var(--starstore-overlay-mid) 40%,
		var(--starstore-overlay-soft) 66%,
		transparent 100%
	);
}

.starstore-hero--with-video > .elementor-widget-html:first-child,
.starstore-hero--with-video #starstore-hero-video {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	pointer-events: none;
}

.starstore-hero--with-video > .elementor-widget-html:first-child > .elementor-widget-container,
.starstore-hero--with-video #starstore-hero-video > .elementor-widget-container {
	height: 100%;
	padding: 0 !important;
}

/* Painel de copy — coluna 1250px, bloco max 38rem (padrão front-page) */
.starstore-hero--with-video > .starstore-hero-copy,
.starstore-hero--with-video > .elementor-element.starstore-hero-copy {
	position: relative;
	z-index: 4;
	width: min(var(--starstore-copy-max), calc(100% - 3rem));
	max-width: var(--starstore-copy-max);
	margin-left: max(1.5rem, calc((100% - min(var(--starstore-content-max), calc(100% - 2.5rem))) / 2));
	margin-right: auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 2.5rem);
	background: linear-gradient(
		135deg,
		rgba(5, 8, 16, 0.88) 0%,
		rgba(5, 8, 16, 0.72) 55%,
		rgba(5, 8, 16, 0.55) 100%
	);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.starstore-hero-copy .elementor-widget-heading .elementor-heading-title {
	margin: 0 0 1rem;
	color: var(--starstore-text) !important;
	font-family: var(--starstore-font-display);
	font-size: clamp(1.85rem, 4.5vw, 3.25rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.starstore-hero-copy .starstore-headline-accent {
	color: var(--starstore-primary);
}

.starstore-hero-copy .elementor-widget-button .elementor-button {
	background-color: var(--starstore-primary);
	color: var(--starstore-text);
	border: none;
	font-family: var(--starstore-font-body);
	font-weight: 600;
	transition: background-color 0.2s var(--starstore-ease-out), transform 0.2s var(--starstore-ease-out);
}

.starstore-hero-copy .elementor-widget-button .elementor-button:hover,
.starstore-hero-copy .elementor-widget-button .elementor-button:focus-visible {
	background-color: #0056cc;
	color: var(--starstore-text);
}

.starstore-hero-copy .elementor-widget-text-editor {
	color: var(--starstore-text-muted);
	font-family: var(--starstore-font-body);
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.65;
}

.starstore-hero-copy .elementor-widget-text-editor p {
	margin: 0 0 0.75rem;
}

.starstore-hero-copy .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.starstore-hero-copy > .e-con {
	width: 100% !important;
	max-width: 100%;
	padding-top: 1.25rem !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Reutiliza o stage Vimeo da home -------------------------------------------- */

.starstore-vimeo-wrapper {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
	background: var(--starstore-bg-panel);
}

.starstore-vimeo-poster--business {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 70% 50% at 70% 30%, rgba(30, 104, 196, 0.12), transparent 65%),
		linear-gradient(160deg, #0a1020 0%, #050810 100%);
	transition: opacity 0.9s var(--starstore-ease-out);
}

.starstore-vimeo-poster--starlink {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 60% 45% at 30% 50%, rgba(0, 111, 255, 0.1), transparent 60%),
		linear-gradient(200deg, #0c111c 0%, #04060c 100%);
	transition: opacity 0.9s var(--starstore-ease-out);
}

.starstore-vimeo-poster--starmini {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 65% 50% at 60% 40%, rgba(100, 180, 255, 0.08), transparent 65%),
		linear-gradient(180deg, #0a0e18 0%, #030508 100%);
	transition: opacity 0.9s var(--starstore-ease-out);
}

.starstore-vimeo-vignette {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background:
		radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.45) 0%,
			transparent 28%,
			transparent 72%,
			rgba(0, 0, 0, 0.55) 100%
		);
}

.starstore-vimeo-wrapper iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 177.78vh);
	height: max(56.25vw, 100%);
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%) scale(1.06);
	border: 0;
	opacity: 0;
	filter: saturate(0.92) contrast(1.04);
	transition: opacity 1s var(--starstore-ease-out);
	z-index: 2;
}

.starstore-vimeo-wrapper.is-ready iframe {
	opacity: 1;
}

.starstore-vimeo-wrapper.is-ready .starstore-vimeo-poster--business,
.starstore-vimeo-wrapper.is-ready .starstore-vimeo-poster--starlink,
.starstore-vimeo-wrapper.is-ready .starstore-vimeo-poster--starmini {
	opacity: 0;
}

@media (max-width: 767px) {
	.starstore-hero--with-video::after {
		background: linear-gradient(
			to bottom,
			var(--starstore-overlay-strong) 0%,
			var(--starstore-overlay-mid) 45%,
			rgba(5, 8, 16, 0.35) 100%
		);
	}

	.starstore-hero--with-video > .starstore-hero-copy,
	.starstore-hero--with-video > .elementor-element.starstore-hero-copy {
		width: calc(100% - 2rem);
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.starstore-vimeo-wrapper iframe {
		opacity: 1;
	}

	.starstore-vimeo-poster--business,
	.starstore-vimeo-poster--starlink,
	.starstore-vimeo-poster--starmini {
		opacity: 1 !important;
	}
}

/* Breadcrumbs — abaixo do header (shoptimizer_content_top) -------------------- */

.starstore-breadcrumbs {
	position: relative;
	z-index: 1;
	max-width: var(--starstore-content-max);
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	font-family: var(--starstore-font-body);
	font-size: 0.8125rem;
}

.starstore-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.starstore-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: rgba(255, 255, 255, 0.45);
}

.starstore-breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.starstore-breadcrumbs a:hover,
.starstore-breadcrumbs a:focus-visible {
	color: var(--starstore-primary);
}

.starstore-breadcrumbs span[aria-current="page"] {
	color: rgba(255, 255, 255, 0.65);
}

body:not(.page-template-elementor_canvas):not(.starstore-institutional--orbital) .starstore-breadcrumbs li:not(:last-child)::after,
body:not(.page-template-elementor_canvas):not(.starstore-institutional--orbital) .starstore-breadcrumbs span[aria-current="page"] {
	color: #666;
}

body:not(.page-template-elementor_canvas):not(.starstore-institutional--orbital) .starstore-breadcrumbs a {
	color: #333;
}
/* Segmentos — grid desktop + carrossel snap mobile -------------------------------- */

.starstore-segments {
	position: relative;
}

.starstore-segments > .e-con-inner,
.starstore-segments.e-con > .e-con-inner {
	width: 100%;
	max-width: var(--starstore-content-max);
	margin-inline: auto;
}

.starstore-segments .elementor-widget-heading .elementor-heading-title {
	font-family: var(--starstore-font-display);
	letter-spacing: -0.02em;
}

.starstore-segments__nav {
	display: none;
	gap: 0.5rem;
	justify-content: flex-end;
	margin: 0 0 1rem;
}

.starstore-segments__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgba(0, 111, 255, 0.25);
	border-radius: 999px;
	background: #fff;
	color: var(--starstore-primary);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s var(--starstore-ease-out), border-color 0.2s var(--starstore-ease-out), transform 0.2s var(--starstore-ease-out);
}

.starstore-segments__btn:hover,
.starstore-segments__btn:focus-visible {
	background: var(--starstore-primary);
	border-color: var(--starstore-primary);
	color: #fff;
	outline: none;
}

.starstore-segments__btn:active {
	transform: scale(0.96);
}

.starstore-segments__track {
	counter-reset: starstore-segment;
	width: 100% !important;
	max-width: 100% !important;
}

.starstore-segments__track > .e-con-inner {
	width: 100% !important;
	max-width: 100% !important;
}

.starstore-segments__track > .e-con-inner > .starstore-segment-card {
	counter-increment: starstore-segment;
	min-width: 0;
	max-width: none !important;
	flex: none !important;
	--flex-grow: 0 !important;
	--flex-shrink: 1 !important;
	--flex-basis: auto !important;
	width: auto !important;
	word-break: normal;
	overflow-wrap: anywhere;
}

.starstore-segments .starstore-segment-card.elementor-widget {
	position: relative;
	height: 100%;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-wrapper {
	position: relative;
	height: 100%;
	padding: 1.5rem 1.35rem 1.35rem;
	background: #fff;
	border: 1px solid rgba(0, 111, 255, 0.14);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(5, 8, 16, 0.04);
	transition: border-color 0.22s var(--starstore-ease-out), box-shadow 0.22s var(--starstore-ease-out), transform 0.22s var(--starstore-ease-out);
}

.starstore-segments .starstore-segment-card .elementor-icon-box-wrapper::before {
	content: counter(starstore-segment, decimal-leading-zero);
	display: block;
	margin-bottom: 0.85rem;
	font-family: var(--starstore-font-display);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--starstore-primary);
}

.starstore-segments .starstore-segment-card .elementor-icon-box-wrapper {
	align-items: flex-start;
	text-align: left;
	gap: 0.75rem;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	background: rgba(0, 111, 255, 0.08);
}

.starstore-segments .starstore-segment-card .elementor-icon-box-icon i,
.starstore-segments .starstore-segment-card .elementor-icon-box-icon svg {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--starstore-primary);
}

.starstore-segments .starstore-segment-card .elementor-icon-box-title {
	margin: 0 0 0.5rem;
	font-family: var(--starstore-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-title a {
	position: static;
	color: #0c0f14;
	text-decoration: none;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 8px;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-description {
	margin: 0;
	font-family: var(--starstore-font-body);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #4a5568;
}

.starstore-segments .starstore-segment-card .elementor-icon-box-description::after {
	content: "Saiba mais →";
	display: block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--starstore-primary);
}

.starstore-segments .starstore-segment-card:hover .elementor-icon-box-wrapper,
.starstore-segments .starstore-segment-card:focus-within .elementor-icon-box-wrapper {
	border-color: rgba(0, 111, 255, 0.45);
	box-shadow: 0 14px 36px rgba(0, 111, 255, 0.12);
	transform: translateY(-3px);
}

@media (min-width: 768px) {
	.starstore-segments__track.e-con > .e-con-inner {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem !important;
		flex-wrap: wrap !important;
		align-items: stretch;
	}

	.starstore-segments__track.e-con {
		display: block !important;
	}

	.starstore-segments__track > .e-con-inner > .starstore-segment-card {
		width: 100% !important;
		max-width: none !important;
		flex: initial !important;
	}
}

@media (max-width: 767px) {
	.starstore-segments__nav {
		display: flex;
	}

	.starstore-segments__track.e-con > .e-con-inner {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1rem !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1.5rem;
		padding-bottom: 0.35rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.starstore-segments__track.e-con > .e-con-inner::-webkit-scrollbar {
		display: none;
	}

	.starstore-segments__track > .e-con-inner > .starstore-segment-card {
		flex: 0 0 min(85vw, 20rem) !important;
		width: min(85vw, 20rem) !important;
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.starstore-segments .starstore-segment-card .elementor-icon-box-wrapper {
		transition: none;
	}

	.starstore-segments__track.e-con > .e-con-inner {
		scroll-behavior: auto;
	}
}
