/*
Theme Name:   IPB Prev — Hello Elementor Child
Theme URI:    https://ipbprev.digital
Description:  Child theme do Hello Elementor para o Instituto Previdência Brasil. Injeta o widget Helena (Chatwoot) e mantém customizações CSS.
Author:       Boldman
Author URI:   https://boldman.cc
Template:     hello-elementor
Version:      1.3.1
Text Domain:  hello-elementor-mgtm
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
	--teal: #0F6C7A;
	--navy: #020817;
	--ink:  #222222;
	--mute: #F9FCFD;
	--line: #C4C4C4;
	--white: #FFFFFF;
}

body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }

/* ---------- FAQ: card estático esquerda + accordions direita ---------- */
.ipb-faq-static {
	background: #F4F8F9;
	border-left: 4px solid #0F6C7A;
	border-radius: 12px;
	padding: 32px 32px 32px 28px;
	color: #475569;
	font: 400 16px/1.6 'Inter', sans-serif;
}
.ipb-faq-static p { margin: 0 0 16px; }
.ipb-faq-static p:last-of-type { margin-bottom: 0; }
.ipb-faq-static strong { color: #0F6C7A; font-weight: 700; }
.ipb-faq-static__subtitle {
	font-weight: 700 !important;
	color: #020817 !important;
	margin: 24px 0 12px !important;
}
.ipb-faq-static ul {
	margin: 12px 0 0;
	padding-left: 20px;
}
.ipb-faq-static ul li { margin-bottom: 8px; line-height: 1.5; }

/* ---------- FAQ accordion (HTML5 details) — Figma: item aberto vira card #F4F8F9 ---------- */
.ipb-faq details {
	background: transparent;
	border: none;
	border-bottom: 1px solid #E5E7EB;
	border-radius: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	transition: background-color .25s ease, border-radius .25s ease, border-color .25s ease;
}
.ipb-faq details[open] {
	background: #F4F8F9;
	border-bottom-color: transparent;
	border-radius: 12px;
	margin-bottom: 8px;
}
.ipb-faq details:last-child { border-bottom: none; }
.ipb-faq details:has(+ details[open]) { border-bottom-color: transparent; }
.ipb-faq details[open] + details { border-top: 1px solid transparent; }

.ipb-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font: 700 16px/1.4 'Plus Jakarta Sans', sans-serif;
	color: var(--navy);
	gap: 16px;
}
.ipb-faq summary::-webkit-details-marker { display: none; }
.ipb-faq summary::marker { display: none; }

.ipb-faq__icon {
	width: 32px; height: 32px;
	border-radius: 999px;
	background: var(--teal);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center; justify-content: center;
	flex-shrink: 0;
	font-size: 0;
	position: relative;
	transition: transform .25s ease, background-color .25s ease;
}
.ipb-faq__icon::before,
.ipb-faq__icon::after {
	content: '';
	position: absolute;
	background: #FFFFFF;
	border-radius: 1px;
}
.ipb-faq__icon::before { width: 12px; height: 2px; }
.ipb-faq__icon::after { width: 2px; height: 12px; }
.ipb-faq details[open] .ipb-faq__icon { transform: rotate(45deg); }

.ipb-faq__a {
	padding: 0 24px 24px;
	font: 400 14px/1.65 'Inter', sans-serif;
	color: #3F4756;
}
.ipb-faq__a p { margin: 0 0 12px; }
.ipb-faq__a p:last-child { margin-bottom: 0; }
.ipb-faq__a ul { margin: 8px 0 0; padding-left: 20px; }
.ipb-faq__a li { margin-bottom: 6px; }
.ipb-faq__a strong { color: var(--navy); }

/* ---------- Star Rating: cor mostarda do Figma ---------- */
body .testimonial-card .elementor-star-full,
body .testimonial-card .elementor-star-rating i {
	color: #DFC964 !important;
}

/* ---------- CTAs ---------- */
.elementor-button {
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease !important;
	will-change: transform;
}
.elementor-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(15, 108, 122, 0.25);
}

/* ---------- Header logo ---------- */
.header-logo img { display: block; }

/* ---------- Eyebrow uniforme ---------- */
.eyebrow {
	text-transform: uppercase;
}

/* ---------- Hero: bg + overlay gradient + margin via API Elementor ----------
   Layout (z-index, position relative pra herdar stacking) sobra aqui;
   margin-top, background, overlay, posicionamento agora 100% via JSON. */
.hero-section {
	position: relative;
	z-index: 1;
}
.hero-content { color: #FFFFFF; }
.hero-content h1.hero-title { color: #FFFFFF; }
.hero-content h1.hero-title .accent { color: #00A9C3; }

/* Topbar texto */
.topbar-text { color: #FFFFFF; }

/* ---------- Header sticky com topbar interna + troca de cor no scroll ---------- */
/* position: sticky preserva cálculo de width/height do container Elementor v4
   (fixed faz colapsar). Mas sticky só funciona se TODOS os ancestrais não
   tiverem overflow:hidden — Elementor + Hello Elementor cortam por padrão.
   Forçamos overflow:visible nos wrappers conhecidos; overflow-x:clip mantém
   scroll horizontal travado. */
html, body,
.page-content,
.elementor,
.elementor-inner,
.elementor-section-wrap,
.elementor-page,
main.site-main,
div.entry-content,
div.elementor-location-single,
div.hfeed.site {
	overflow: visible !important;
	overflow-x: clip;
}

.site-header {
	position: relative;
	z-index: 1000 !important;
	background: transparent;
}
.site-header .header-topbar { background: #0F6C7A !important; }
.site-header .header-nav {
	background: transparent !important;
	position: relative;
	transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
/* Estado "trancado": após scrollY > 40 (altura da topbar), JS adiciona
   .is-stuck e o nav vira fixed no topo. Site-header recebe padding-bottom
   = altura do nav (via JS) pra preservar o espaço e evitar jump no scroll. */
.site-header .header-nav.is-stuck {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(2, 8, 23, 0.92) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 16px rgba(2, 8, 23, 0.4);
}
.site-header .elementor-widget-button .elementor-button {
	background: #FFFFFF !important;
	border: 1.5px solid #FFFFFF !important;
	color: #020817 !important;
	transition: all .2s ease;
}
.site-header .elementor-widget-button .elementor-button:hover {
	background: #00A9C3 !important;
	border-color: #00A9C3 !important;
	color: #FFFFFF !important;
}
.site-header .header-nav.is-stuck .elementor-widget-button .elementor-button {
	background: #0F6C7A !important;
	border-color: #0F6C7A !important;
	color: #FFFFFF !important;
}
.site-header .header-nav.is-stuck .elementor-widget-button .elementor-button:hover {
	background: #FFFFFF !important;
	border-color: #FFFFFF !important;
	color: #0F6C7A !important;
}

/* Hero: padding vertical agora via API (section padding 80px top/bottom) +
   centralização vertical via flex (inner row + align-items center).
   CSS antigo de padding-top:120px removido em 1.0.7 — substituído por controles nativos. */

/* ---------- Mobile: ainda não desenhado, mas evita layout quebrado ---------- */
@media (max-width: 1024px) {
	/* só containers de TOPO (seção) — evita padding lateral acumulado em
	   containers aninhados (ex: hero-section > inner boxed > hero-content). */
	.e-con.e-parent {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}
@media (max-width: 768px) {
	h1.elementor-heading-title { font-size: 32px !important; line-height: 1.2 !important; }
	h2.elementor-heading-title { font-size: 28px !important; line-height: 1.2 !important; }
}
/* Mobile: nav com fundo escuro sólido (no desktop é transparente sobre o hero).
   Background responsivo não é suportado pela API Elementor — daí o CSS. Nav escuro +
   hero escuro = bloco contínuo, elimina a faixa branca acima do header. */
@media (max-width: 767px) {
	.site-header .header-nav { background: #041625 !important; }
}

/* ---------- Launcher Chatwoot → visual WhatsApp (universal, todo o site) ----------
   Bolha verde WhatsApp + glifo branco no lugar do balão padrão do Chatwoot.
   Cor do Chatwoot vem inline (style="background:rgb(31,147,255)") sem !important,
   então !important do tema vence. Ícone via mask SVG (Font Awesome brands whatsapp),
   self-contained — não depende de carregar FA brands. CSS re-aplica em re-render
   (widget é data-turbo-permanent), por isso não precisa de JS. */
/* NÃO definir position no botão: é position:fixed nativo; sobrescrever joga a bolha
   pro fluxo (cai no fim da página). O ::after absolute já ancora no fixed. */
.woot-widget-bubble.woot-elements--right { background: #25D366 !important; }
.woot-widget-bubble #woot-widget-bubble-icon { display: none !important; }
.woot-widget-bubble:not(.woot--close)::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 30px;
	height: 30px;
	background-color: #FFFFFF;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l119.7-31.4c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-156.9zM223.9 438.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-71 18.6L91 357.3l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.4-186.6 184.4zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l119.7-31.4c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-156.9zM223.9 438.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-71 18.6L91 357.3l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.4-186.6 184.4zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
