/* Rocha Cleaning Services: movimento e interações.
   Três camadas, nada além delas: a entrada do hero (uma vez, ao carregar), dois momentos em seções
   próprias (antes/depois e a frase da promessa) e a resposta de botões, cards e links ao ponteiro. */

:root {
	--rc-ink: #0B3F4F;
	--rc-deep: #082F3B;
	--rc-teal: #0FA3A8;
	--rc-aqua: #1CC6C0;
	--rc-mint: #3DDC97;
	--rc-ease: cubic-bezier(.2, .8, .2, 1);
	--rc-enter: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 64px; }

/* ---------- Foco visível em tudo que se clica */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.elementor-button:focus-visible {
	outline: 2px solid var(--rc-teal);
	outline-offset: 2px;
}

/* ---------- Cabeçalho */
.rc-header { border-bottom: 1px solid rgba(11, 63, 79, .08); }
.rc-nav .elementor-heading-title a { position: relative; }
.rc-nav .elementor-heading-title a::after,
.rc-topbar .elementor-heading-title a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 120ms var(--rc-ease);
}
.rc-topbar .elementor-heading-title a { position: relative; }
.rc-nav .elementor-heading-title a:hover::after,
.rc-nav .elementor-heading-title a:focus-visible::after,
.rc-topbar .elementor-heading-title a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
	transition-duration: 150ms;
}

/* ---------- Botões: passo para cima no hover, afunda no clique */
.elementor-button {
	transition: transform 120ms var(--rc-ease), filter 120ms var(--rc-ease), background-color 150ms var(--rc-ease),
		color 150ms var(--rc-ease), border-color 150ms var(--rc-ease), box-shadow 150ms var(--rc-ease) !important;
}
@media (hover: hover) and (pointer: fine) {
	.elementor-button:hover { transform: translateY(-1px); filter: brightness(.95); transition-duration: 150ms !important; }
}
.elementor-button:active { transform: translateY(1px) scale(.985); transition-duration: 90ms !important; }
.elementor-field-type-submit .elementor-button:active { transform: translateY(1px) scale(.985); }

/* ---------- Cards de serviço: sobem 2px e ganham uma sombra suave */
.rc-card {
	transition: transform 180ms var(--rc-ease), box-shadow 180ms var(--rc-ease), border-color 180ms var(--rc-ease);
}
@media (hover: hover) and (pointer: fine) {
	.rc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11, 63, 79, .10); }
}
.rc-card:focus-within { box-shadow: 0 12px 24px rgba(11, 63, 79, .10); }

/* ---------- Entrada do hero: o título sobe linha a linha, depois o texto e os botões */
.rc-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.rc-wi { display: inline-block; }
html.rc-enter:not(.rc-enter-done) .rc-h1 .elementor-heading-title,
html.rc-enter:not(.rc-enter-done) .rc-hero-lead,
html.rc-enter:not(.rc-enter-done) .rc-hero-actions,
html.rc-enter:not(.rc-enter-done) .rc-hero-eyebrow { opacity: 0; }
html.rc-enter.rc-enter-done:not(.rc-entering):not(.rc-entered) .rc-h1 .elementor-heading-title,
html.rc-enter.rc-enter-done:not(.rc-entering):not(.rc-entered) .rc-hero-lead,
html.rc-enter.rc-enter-done:not(.rc-entering):not(.rc-entered) .rc-hero-actions,
html.rc-enter.rc-enter-done:not(.rc-entering):not(.rc-entered) .rc-hero-eyebrow { animation: rc-show 400ms var(--rc-ease) both; }
html.rc-entering .rc-h1 .elementor-heading-title,
html.rc-entering .rc-hero-lead,
html.rc-entering .rc-hero-actions,
html.rc-entering .rc-hero-eyebrow { opacity: 1; }
html.rc-entering .rc-wi { transform: translateY(105%); animation: rc-rise 700ms var(--rc-enter) forwards; animation-delay: var(--d, 0ms); }
html.rc-entering .rc-fade { opacity: 0; animation: rc-fadeup 520ms var(--rc-enter) forwards; animation-delay: var(--d, 0ms); }
@keyframes rc-rise { to { transform: none; } }
@keyframes rc-fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rc-show { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Antes e depois */
.rc-ba-widget { width: 100%; }
/* Linha incompleta (5 pares) fica centralizada em vez de deixar um buraco. */
.rc-ba-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 28px; width: 100%; }
.rc-ba-grid > .rc-ba { flex: 0 0 calc((100% - 56px) / 3); min-width: 0; }
@media (max-width: 1024px) { .rc-ba-grid > .rc-ba { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 640px) { .rc-ba-grid { gap: 28px; } .rc-ba-grid > .rc-ba { flex-basis: 100%; } }
.rc-ba__title {
	margin: 0 0 12px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--rc-ink);
}
.rc-ba__frame {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 18px;
	background: #E8F4F3;
	box-shadow: 0 10px 30px rgba(11, 63, 79, .12);
	--pos: 50%;
}
.rc-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.rc-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rc-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(11, 63, 79, .18);
	pointer-events: none;
}
.rc-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3F4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 4px 14px rgba(11, 63, 79, .28);
	transition: transform 150ms var(--rc-ease);
}
.rc-ba__frame:hover .rc-ba__handle::after { transform: scale(1.06); }
.rc-ba__frame:focus-within .rc-ba__handle::after { outline: 2px solid var(--rc-teal); outline-offset: 2px; }
.rc-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	touch-action: pan-y;
}
.rc-ba__tag {
	position: absolute;
	top: 14px;
	padding: 7px 12px;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	pointer-events: none;
}
.rc-ba__tag--before { left: 14px; background: rgba(11, 63, 79, .88); color: #FFFFFF; }
.rc-ba__tag--after { right: 14px; background: linear-gradient(90deg, var(--rc-mint), var(--rc-aqua)); color: var(--rc-deep); }

/* ---------- A promessa: a frase acende palavra por palavra durante a rolagem */
.rc-statement p {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3.4vw, 46px);
	line-height: 1.2;
	letter-spacing: -.01em;
	text-wrap: pretty;
	color: #FFFFFF;
	margin: 0;
}
.rc-statement em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; }
.rc-statement strong { font-weight: inherit; color: var(--rc-mint); }
html.rc-js:not(.rc-reduced) .rc-statement.is-live .rc-hw { color: rgba(255, 255, 255, .30); transition: color 160ms ease; }
html.rc-js:not(.rc-reduced) .rc-statement.is-live .rc-hw.is-on { color: #FFFFFF; }
html.rc-js:not(.rc-reduced) .rc-statement.is-live strong .rc-hw.is-on { color: var(--rc-mint); }

/* ---------- Sem movimento quando o sistema pede */
@media (prefers-reduced-motion: reduce) {
	.elementor-button, .rc-card, .rc-ba__handle::after { transition-property: color, background-color, border-color, opacity !important; }
	.elementor-button:hover, .elementor-button:active, .rc-card:hover { transform: none !important; }
	.rc-wi, .rc-fade { animation: none !important; transform: none !important; opacity: 1 !important; }
}
