/* Ramon Bittencourt · detalhes visuais e animações (sem JavaScript) */

html { scroll-behavior: smooth; }
.wp-site-blocks { overflow-x: clip; }
:where(section[id], div[id]) { scroll-margin-top: 96px; }

/* Palavra em itálico colorida nos títulos */
:where(h1, h2, h3) em { font-style: italic; color: var(--wp--preset--color--terracota); }
.rb-dark :where(h1, h2, h3) em { color: var(--wp--preset--color--terracota-clara); }
.rb-on-photo :where(h1, h2, h3) em { color: var(--wp--preset--color--pessego); }
.rb-cta :where(h1, h2, h3) em { color: inherit; }

/* Cabeçalho fixo */
.rb-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: rgba(246, 241, 234, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(43, 36, 32, 0.08);
}
.rb-mark {
	width: 40px; height: 40px; flex: none; padding: 0 !important; box-sizing: border-box;
	border-radius: 50% 50% 50% 12px;
	display: flex !important; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 20px; line-height: 1;
}
.rb-header .wp-block-site-title a, .rb-brand a { text-decoration: none; color: inherit; }
.rb-header .wp-block-navigation a { text-decoration: none; }
.rb-header .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Rótulos */
.rb-eyebrow { letter-spacing: 0.1em; text-transform: uppercase; }
.rb-dot::before {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--wp--preset--color--oliva); margin-right: 10px; vertical-align: middle;
}

/* Botão com seta */
.rb-btn-arrow .wp-block-button__link::after {
	content: "↗"; display: inline-flex; align-items: center; justify-content: center;
	width: 1.9em; height: 1.9em; margin-left: 0.75em; margin-right: -1rem; border-radius: 50%;
	background: var(--wp--preset--color--branco); color: var(--wp--preset--color--cafe);
	font-size: 0.95em; line-height: 1;
}
.wp-block-button .wp-block-button__link { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid currentColor; }

/* Topo: foto em arco, selo girando e cards flutuantes */
.rb-hero-media { position: relative; max-width: 460px; margin-inline: auto; padding-top: 24px; }
.rb-arch img { border-radius: 240px 240px 28px 28px; }
.rb-badge { position: absolute !important; top: 0; right: -8px; width: 132px; margin: 0 !important; z-index: 2; }
.rb-badge img { animation: rb-spin 22s linear infinite; }
.rb-float {
	position: absolute; z-index: 2; margin: 0 !important;
	border-radius: 20px; box-shadow: 0 16px 34px -18px rgba(43, 36, 32, 0.45);
}
.rb-float-1 { left: -36px; top: 46%; max-width: 210px; animation: rb-bob 6s ease-in-out infinite; --rb-r: -3deg; }
.rb-float-2 { right: -20px; bottom: 28px; animation: rb-bob 7s ease-in-out 1.2s infinite; --rb-r: 2deg; }
.rb-float p { margin: 0; }
.rb-big-num { font-family: var(--wp--preset--font-family--fraunces); line-height: 1 !important; }

@media (max-width: 781px) {
	.rb-float-1 { left: 0; top: auto; bottom: 120px; }
	.rb-float-2 { right: 0; bottom: 16px; }
	.rb-badge { width: 104px; right: 0; }
}

/* Faixa em movimento */
.rb-marquee { overflow: hidden; transform: rotate(-1.2deg); margin-inline: -20px !important; }
.rb-marquee-track { width: max-content; flex-wrap: nowrap !important; animation: rb-marquee 38s linear infinite; }
.rb-marquee-track { gap: 0 !important; }
.rb-marquee-track > * { white-space: nowrap; margin: 0 !important; padding-right: 2.5rem; }
.rb-marquee-track .rb-star { color: var(--wp--preset--color--terracota-clara); }

/* Sobre: foto com moldura deslocada */
.rb-framed { position: relative; max-width: 420px; margin-inline: auto; }
.rb-framed::before {
	content: ""; position: absolute; inset: 24px -16px -16px 24px;
	border: 1.5px solid var(--wp--preset--color--terracota); border-radius: 28px; pointer-events: none;
}
.rb-framed img { position: relative; border-radius: 28px; }
.rb-stats { border-top: 1px solid var(--wp--preset--color--bege); padding-top: 1.25rem; }
.rb-stats > * { flex: 1 1 140px; }

/* Cantos arredondados */
.rb-rounded-top { border-radius: 40px 40px 0 0; }
.rb-rounded, .rb-rounded img { border-radius: 28px; overflow: hidden; }
.rb-card { border-radius: 28px; }

/* Cards das áreas */
.rb-card { position: relative; overflow: hidden; }
.rb-card-num {
	position: absolute; right: 18px; bottom: -14px; margin: 0 !important; pointer-events: none;
	font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 5.5rem; line-height: 1; opacity: 0.18;
}
.rb-check { list-style: none; padding-left: 0; }
.rb-check li { position: relative; padding-left: 1.75rem; margin-bottom: 0.4rem; }
.rb-check li::before {
	content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
	border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}

/* Movimento ao passar o mouse */
.rb-lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.rb-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(43, 36, 32, 0.45); }

/* Foto do consultório */
.rb-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
	background: rgba(246, 241, 234, 0.16); border: 1px solid rgba(246, 241, 234, 0.35);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Como funciona */
.rb-step-num {
	width: 64px; height: 64px; border-radius: 50%; padding: 0 !important; box-sizing: border-box;
	display: flex !important; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--fraunces); font-size: 1.625rem; line-height: 1;
}
.rb-step { position: relative; }
.rb-step:not(:last-child)::after {
	content: ""; position: absolute; left: 80px; right: 0; top: 32px; border-top: 1.5px dashed var(--wp--preset--color--bege);
}
@media (max-width: 781px) { .rb-step::after { display: none; } }

/* Dúvidas */
.rb-faq { border-top: 1px solid var(--wp--preset--color--bege); }
.rb-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--bege); padding: 0; margin: 0; }
.rb-faq .wp-block-details summary {
	list-style: none; cursor: pointer; min-height: 76px; padding: 18px 56px 18px 0; position: relative;
	display: flex; align-items: center;
	font-family: var(--wp--preset--font-family--fraunces); font-size: 1.375rem; line-height: 1.25;
}
.rb-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.rb-faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px;
	border: 1px solid currentColor; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--dm-sans); font-size: 20px; transition: transform .3s;
}
.rb-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.rb-faq .wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 1.5rem; max-width: 620px; color: var(--wp--preset--color--cafe-medio); }

/* Chamada final */
.rb-cta { position: relative; overflow: hidden; border-radius: 40px; }
.rb-cta::before, .rb-cta::after {
	content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); pointer-events: none;
}
.rb-cta::before { right: -120px; top: -120px; width: 420px; height: 420px; }
.rb-cta::after { right: -40px; top: -40px; width: 260px; height: 260px; }
.rb-cta > * { position: relative; z-index: 1; }
.rb-cta .wp-block-button__link { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--cafe); }
.rb-cta .wp-block-button__link:hover { background: var(--wp--preset--color--cafe); color: var(--wp--preset--color--creme); }
.rb-cta .rb-btn-arrow .wp-block-button__link::after { background: var(--wp--preset--color--cafe); color: var(--wp--preset--color--creme); }

/* Rodapé */
.rb-footer a { color: inherit; }
.rb-footer a:hover { color: var(--wp--preset--color--terracota); }

/* Blog */
.rb-post-card .wp-block-post-featured-image img { border-radius: 22px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.rb-post-card .wp-block-post-featured-image { overflow: hidden; border-radius: 22px; }
.rb-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.rb-post-card .wp-block-post-title a { text-decoration: none; }
.wp-block-post-content a { text-underline-offset: 3px; }

/* Entradas suaves */
.rb-intro { animation: rb-fadein .9s cubic-bezier(.2,.7,.2,1) both; }
.rb-intro-2 { animation: rb-fadein .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.rb-intro-3 { animation: rb-fadein .9s cubic-bezier(.2,.7,.2,1) .3s both; }
@supports (animation-timeline: view()) {
	body:not(.wp-admin) .rb-reveal { animation: rb-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

/* Aviso de privacidade (LGPD) */
.rb-consent {
	position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
	background: var(--wp--preset--color--cafe); color: var(--wp--preset--color--creme);
	border-radius: 22px; padding: 22px 24px; box-shadow: 0 24px 48px -20px rgba(43, 36, 32, 0.6);
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
	font-family: var(--wp--preset--font-family--dm-sans); font-size: 0.9375rem; line-height: 1.5;
	animation: rb-fadein .5s cubic-bezier(.2,.7,.2,1) both;
}
.rb-consent[hidden] { display: none; }
.rb-consent p { margin: 0; flex: 1 1 300px; }
.rb-consent a { color: var(--wp--preset--color--pessego); text-underline-offset: 3px; }
.rb-consent a:hover { color: var(--wp--preset--color--creme); }
.rb-consent button {
	flex: none; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--terracota); color: var(--wp--preset--color--branco);
	font: inherit; font-weight: 600;
}
.rb-consent button:hover { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--cafe); }
.rb-consent button:focus-visible { outline: 2px solid var(--wp--preset--color--creme); outline-offset: 3px; }

@keyframes rb-spin { to { transform: rotate(360deg); } }
@keyframes rb-bob { 0%, 100% { transform: translateY(0) rotate(var(--rb-r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rb-r, 0deg)); } }
@keyframes rb-marquee { to { transform: translateX(-50%); } }
@keyframes rb-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes rb-fadein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rb-consent, .rb-badge img, .rb-float-1, .rb-float-2, .rb-marquee-track, .rb-intro, .rb-intro-2, .rb-intro-3, .rb-reveal { animation: none !important; }
	.rb-lift, .wp-block-button .wp-block-button__link, .rb-post-card .wp-block-post-featured-image img { transition: none !important; }
}
