/* RNS Google Reviews — valores extraídos do carrossel atual da home */
.rnsgr {
	--rnsgr-navy: #001849;
	--rnsgr-blue: #003fbc;
	--rnsgr-cyan: #01baef;
	--rnsgr-card: #fff;
	--rnsgr-radius: 24px;
	--rnsgr-gap: 24px;
	--rnsgr-cols: 3;

	position: relative;
	font-family: "Haniva", sans-serif;
}

/* ---------- navegação ---------- */
/* Posição herdada do carrossel original: as setas sobem para a linha do título.
   O deslocamento vem do atributo nav_offset do shortcode (padrão 0). */
.rnsgr-nav {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	margin-top: calc(-1 * var(--rnsgr-nav-offset, 0px));
	margin-bottom: calc(24px + var(--rnsgr-nav-offset, 0px) - 40px);
	position: relative;
	z-index: 5;
}

/* O kit global do Elementor estiliza todo <button> (fundo ciano, padding 14/28,
   texto branco). Os seletores abaixo são deliberadamente mais específicos e
   zeram essas propriedades, senão a seta vira um botão-pílula. */
.rnsgr button.rnsgr-arrow {
	box-sizing: border-box;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	background: transparent;
	background-image: none;
	border: 1px solid rgba(0, 24, 73, .18);
	border-radius: 100px;
	box-shadow: none;
	color: var(--rnsgr-navy);
	font-size: 14px;
	line-height: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.rnsgr button.rnsgr-arrow svg {
	width: 14px;
	height: 14px;
	display: block;
	fill: none;
}

.rnsgr button.rnsgr-arrow:hover:not([disabled]),
.rnsgr button.rnsgr-arrow:focus:not([disabled]) {
	background: #fff;
	border-color: var(--rnsgr-blue);
	color: var(--rnsgr-navy);
}

.rnsgr button.rnsgr-arrow:focus-visible {
	outline: 2px solid var(--rnsgr-blue);
	outline-offset: 2px;
}

.rnsgr button.rnsgr-arrow[disabled] {
	background: transparent;
	border-color: rgba(0, 24, 73, .18);
	color: var(--rnsgr-navy);
	opacity: .35;
	cursor: default;
}

/* ---------- trilho ---------- */
.rnsgr-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--rnsgr-cols) - 1) * var(--rnsgr-gap)) / var(--rnsgr-cols));
	gap: var(--rnsgr-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.rnsgr-track::-webkit-scrollbar { display: none; }
.rnsgr-track:focus-visible { outline: 2px solid var(--rnsgr-blue); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
	.rnsgr-track { scroll-behavior: auto; }
}

/* ---------- card ---------- */
.rnsgr-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--rnsgr-card);
	border-radius: var(--rnsgr-radius);
	padding: 28px 28px 24px;
}

.rnsgr-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.rnsgr-quote {
	font-size: 44px;
	line-height: .6;
	color: var(--rnsgr-cyan);
	font-family: Georgia, "Times New Roman", serif;
}

/* ---------- estrelas (SVG, sem fonte de ícone) ---------- */
.rnsgr-stars {
	display: inline-flex;
	gap: 4px;
	color: var(--rnsgr-cyan);
	flex-shrink: 0;
}

.rnsgr-star { width: 20px; height: 20px; fill: currentColor; }
.rnsgr-star--empty { opacity: .25; }

/* ---------- texto ---------- */
.rnsgr-text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--rnsgr-navy);
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.rnsgr-text[style*="--rnsgr-clamp"] {
	display: -webkit-box;
	-webkit-line-clamp: var(--rnsgr-clamp);
	line-clamp: var(--rnsgr-clamp);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- rodapé do card ---------- */
.rnsgr-card__bottom {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
}

/* Especificidade elevada: o tema zera o border-radius de todo <img>.
   Sem fundo: a foto do Google vem com cantos transparentes (br100 na URL),
   e qualquer cor de fundo aqui vira um quadrado visível em volta do círculo. */
.rnsgr .rnsgr-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.rnsgr .rnsgr-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rnsgr-blue);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .5px;
}

.rnsgr-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin-right: auto;
}

.rnsgr-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 20.8px;
	color: var(--rnsgr-blue);
	text-decoration: none;
}

a.rnsgr-name:hover { text-decoration: underline; }

.rnsgr-date {
	font-size: 13px;
	line-height: 18px;
	color: #6b7694;
}

.rnsgr-g { flex-shrink: 0; line-height: 0; }
.rnsgr-g svg { width: 20px; height: 20px; }

/* ---------- atribuição ---------- */
.rnsgr-attr {
	margin: 24px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: #6b7694;
}

.rnsgr-attr strong { color: var(--rnsgr-navy); }
.rnsgr-attr a { color: var(--rnsgr-blue); }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
	.rnsgr { --rnsgr-cols: 2; }
}

@media (max-width: 767px) {
	.rnsgr { --rnsgr-cols: 1; --rnsgr-gap: 16px; }
	.rnsgr-card { padding: 24px 20px 20px; }
	.rnsgr .rnsgr-avatar { width: 56px; height: 56px; }
}
