/* ==========================================================================
   Clubes Associados 2026 — estilos do tema sobre Bootstrap 5.3
   ========================================================================== */

:root {
	--ca-green: #20977e;
	--ca-green-dark: #177561;
	--ca-green-light: #e8f5f2;
	--ca-orange: #ff9600;
	--ca-orange-dark: #e68700;
	--ca-navy: #141953;
	--ca-ink: #2f3849;
	--ca-slate: #343746;
	--ca-bg: #f6f8f8;
	--ca-radius: 1rem;
	--ca-header-h: 84px;

	--bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bs-body-color: #3c4456;
	--bs-body-bg: #ffffff;
	--bs-emphasis-color: var(--ca-navy);
	--bs-heading-color: var(--ca-navy);
	--bs-primary: var(--ca-green);
	--bs-primary-rgb: 32, 151, 126;
	--bs-primary-text-emphasis: #0d3c32;
	--bs-primary-bg-subtle: var(--ca-green-light);
	--bs-primary-border-subtle: #a6d5cb;
	--bs-link-color: var(--ca-green-dark);
	--bs-link-color-rgb: 23, 117, 97;
	--bs-link-hover-color: var(--ca-navy);
	--bs-link-hover-color-rgb: 20, 25, 83;
	--bs-border-radius: .625rem;
	--bs-border-radius-lg: .875rem;
	--bs-focus-ring-color: rgba(32, 151, 126, .3);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ca-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }

img { max-width: 100%; height: auto; }

.skip-link {
	position: absolute;
	top: .5rem;
	left: .5rem;
	z-index: 2000;
	padding: .5rem 1rem;
	background: #fff;
	border-radius: var(--bs-border-radius);
	box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .15);
}

/* ---------- Botões ---------- */
.btn { font-weight: 700; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.75rem; --bs-btn-font-size: 1.0625rem; }

.btn-primary {
	--bs-btn-bg: var(--ca-green);
	--bs-btn-border-color: var(--ca-green);
	--bs-btn-hover-bg: var(--ca-green-dark);
	--bs-btn-hover-border-color: var(--ca-green-dark);
	--bs-btn-active-bg: var(--ca-green-dark);
	--bs-btn-active-border-color: var(--ca-green-dark);
	--bs-btn-focus-shadow-rgb: 32, 151, 126;
}

.btn-outline-primary {
	--bs-btn-color: var(--ca-green-dark);
	--bs-btn-border-color: var(--ca-green);
	--bs-btn-hover-bg: var(--ca-green);
	--bs-btn-hover-border-color: var(--ca-green);
	--bs-btn-active-bg: var(--ca-green-dark);
	--bs-btn-active-border-color: var(--ca-green-dark);
	--bs-btn-focus-shadow-rgb: 32, 151, 126;
	border-width: 2px;
}

.btn-outline-secondary {
	--bs-btn-color: var(--ca-ink);
	--bs-btn-border-color: #cfd5dd;
	--bs-btn-hover-bg: var(--ca-ink);
	--bs-btn-hover-border-color: var(--ca-ink);
	border-width: 2px;
}

.btn-accent {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--ca-orange);
	--bs-btn-border-color: var(--ca-orange);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--ca-orange-dark);
	--bs-btn-hover-border-color: var(--ca-orange-dark);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--ca-orange-dark);
	--bs-btn-active-border-color: var(--ca-orange-dark);
	--bs-btn-focus-shadow-rgb: 255, 150, 0;
	text-transform: uppercase;
	letter-spacing: .02em;
	box-shadow: 0 .5rem 1.25rem rgba(255, 150, 0, .28);
}

.btn-store {
	--bs-btn-color: #fff;
	--bs-btn-bg: rgba(255, 255, 255, .12);
	--bs-btn-border-color: rgba(255, 255, 255, .35);
	--bs-btn-hover-color: var(--ca-green-dark);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
}

.text-primary { color: var(--ca-green) !important; }
.text-bg-primary-subtle { color: var(--ca-green-dark) !important; background-color: var(--ca-green-light) !important; }

/* ---------- Topo ---------- */
.topbar {
	background: var(--ca-ink);
	color: rgba(255, 255, 255, .85);
	padding: .4rem 0;
	font-size: .875rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .bi-whatsapp { color: #25d366; }

.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--ca-green); color: #fff; }
.social .list-inline-item:not(:last-child) { margin-right: .25rem; }

.site-header {
	background: #fff; /* sem backdrop-filter: ele prenderia o offcanvas (position: fixed) dentro do cabeçalho */
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled {
	border-color: #e9edf0;
	box-shadow: 0 .25rem 1.25rem rgba(20, 25, 83, .07);
}
.site-header .navbar { min-height: var(--ca-header-h); padding: .5rem 0; }
.navbar-brand img { width: auto; height: 56px; transition: height .25s; }
.site-header.is-scrolled .navbar-brand img { height: 46px; }

.site-header .nav-link {
	--bs-nav-link-color: var(--ca-ink);
	--bs-nav-link-hover-color: var(--ca-green-dark);
	font-weight: 700;
	font-size: .9375rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	position: relative;
}
.site-header .nav-link.active { color: var(--ca-green-dark); }

@media (min-width: 1200px) {
	.navbar-expand-xl .offcanvas .offcanvas-body { flex-grow: 1; }
	.site-header .navbar-nav { gap: .25rem; }
	.site-header .nav-link { padding: .5rem .7rem !important; }
	.site-header .nav-link::after {
		content: "";
		position: absolute;
		left: .7rem;
		right: .7rem;
		bottom: .2rem;
		height: 2px;
		background: var(--ca-green);
		transform: scaleX(0);
		transition: transform .2s;
	}
	.site-header .nav-link:hover::after,
	.site-header .nav-link.active::after { transform: scaleX(1); }
	.nav-actions .btn { --bs-btn-padding-y: .45rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .875rem; }
}

@media (max-width: 1199.98px) {
	:root { --ca-header-h: 68px; }
	.navbar-brand img { height: 44px; }
	.site-header .navbar-nav .nav-link { padding: .75rem 0; border-bottom: 1px solid #eef1f3; font-size: 1rem; }
}

/* ---------- Estrutura de seções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-header { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; }
.section-title strong { font-weight: 900; }
.section-lead { font-size: 1.125rem; color: #5b6475; margin-bottom: 0; }

.eyebrow {
	display: inline-block;
	font-size: .8125rem;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ca-green);
	margin-bottom: .75rem;
}

.container-narrow { max-width: 880px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6.5rem) 0;
	background:
		radial-gradient(60rem 30rem at 100% 0%, rgba(32, 151, 126, .12), transparent 60%),
		radial-gradient(40rem 25rem at 0% 100%, rgba(255, 150, 0, .08), transparent 60%),
		var(--ca-bg);
	overflow: hidden;
}
.hero h1 { color: var(--ca-navy); line-height: 1.1; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #4b5466; max-width: 40rem; margin-top: 1.25rem; }

.hero-highlights { display: grid; gap: 1rem; }
.hero-highlights li {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: #fff;
	border-radius: var(--ca-radius);
	padding: 1rem 1.25rem;
	box-shadow: 0 .75rem 2rem rgba(20, 25, 83, .07);
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--ca-navy);
	line-height: 1.3;
}
.hero-highlights img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }

/* ---------- Aplicativo ---------- */
.section-app {
	background: linear-gradient(135deg, var(--ca-green) 0%, var(--ca-green-dark) 100%);
	color: rgba(255, 255, 255, .92);
}
.section-app .section-title { font-weight: 400; }
.app-phone { max-height: 520px; filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, .25)); }

.form-card {
	background: #fff;
	color: var(--bs-body-color);
	border-radius: var(--ca-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .12);
}
.form-card-light { box-shadow: 0 1rem 2.5rem rgba(20, 25, 83, .08); border: 1px solid #e9edf0; }
.rd-form { min-height: 120px; }
/* Ajustes leves para os formulários do RD Station */
.rd-form .bricks-form__fieldset { margin-bottom: .75rem; }
.rd-form input[type="text"], .rd-form input[type="email"], .rd-form input[type="tel"], .rd-form select, .rd-form textarea {
	border-radius: var(--bs-border-radius) !important;
}

/* ---------- Funcionalidades ---------- */
.feature-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding: 1.75rem 1rem;
	background: #fff;
	border: 1px solid #e9edf0;
	border-radius: var(--ca-radius);
	transition: background-color .2s, transform .2s, box-shadow .2s;
}
.feature-icon {
	width: 72px;
	height: 72px;
	background: var(--icon) center / contain no-repeat;
	transition: background-image .2s;
}
.feature-label { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ca-navy); margin: 0; }
.feature-card:hover {
	background: var(--ca-slate);
	border-color: var(--ca-slate);
	transform: translateY(-4px);
	box-shadow: 0 1rem 2rem rgba(20, 25, 83, .15);
}
.feature-card:hover .feature-icon { background-image: var(--icon-hover); }
.feature-card:hover .feature-label { color: #fff; }

@media (max-width: 575.98px) {
	.feature-card { padding: 1.25rem .75rem; }
	.feature-icon { width: 56px; height: 56px; }
	.feature-label { font-size: .9375rem; }
}

/* ---------- Cards informativos ---------- */
.info-card {
	background: var(--ca-bg);
	border-radius: var(--ca-radius);
	padding: 2rem;
	text-align: center;
}
.info-card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.25rem; }

/* ---------- Faixas de chamada ---------- */
.cta-band {
	background: var(--ca-green);
	color: #fff;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
	text-align: center;
}
.cta-band-dark { background: var(--ca-slate); }
.cta-text { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 300; margin-bottom: 1.5rem; }

.cta-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	background: var(--ca-slate);
	color: #fff;
	border-radius: var(--ca-radius);
	padding: 2rem clamp(1.5rem, 4vw, 3rem);
	margin: 0 0 clamp(3rem, 6vw, 5rem);
}

/* ---------- Depoimentos ---------- */
.section-testimonials { background: var(--ca-slate); color: rgba(255, 255, 255, .9); }
.testimonial {
	position: relative;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--ca-radius);
	padding: 2rem 1.75rem 1.75rem;
}
.testimonial::before {
	content: "\201C";
	position: absolute;
	top: -.25rem;
	right: 1.25rem;
	font-size: 5rem;
	line-height: 1;
	font-family: Georgia, serif;
	color: var(--ca-green);
	opacity: .6;
}
.testimonial blockquote p { font-size: 1rem; line-height: 1.7; margin: 0; }
.testimonial figcaption { font-weight: 700; color: #fff; }
.testimonial figcaption::before { content: "— "; color: var(--ca-orange); }

.video-facade {
	border-radius: var(--ca-radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
	max-width: 360px;
	margin: 0 auto;
}
.video-facade img { object-fit: cover; width: 100%; height: 100%; opacity: .85; }
.video-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 76px;
	height: 76px;
	border: 0;
	border-radius: 50%;
	background: var(--ca-orange);
	color: #fff;
	font-size: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .35);
	transition: transform .2s;
}
.video-facade:hover .video-play { transform: scale(1.08); }

/* ---------- Sistema ---------- */
.section-system {
	background: var(--ca-green) url("../images/bg_sistema.png") center / cover no-repeat;
	padding: clamp(4rem, 9vw, 8rem) 0;
}
.section-system h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 300; line-height: 1.25; }
.section-system .btn-light { color: var(--ca-green-dark); }
@media (max-width: 767.98px) {
	.section-system { background-image: none; }
}

/* ---------- FAQ ---------- */
.accordion {
	--bs-accordion-border-color: #e9edf0;
	--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(32, 151, 126, .25);
	--bs-accordion-active-bg: var(--ca-green-light);
	--bs-accordion-active-color: var(--ca-navy);
	--bs-accordion-border-radius: var(--ca-radius);
	--bs-accordion-inner-border-radius: calc(var(--ca-radius) - 1px);
}
.accordion-button { font-weight: 700; color: var(--ca-navy); font-size: 1.0625rem; }

/* ---------- Contato ---------- */
.section-contact { background: var(--ca-bg); }
.contact-list li { display: flex; align-items: center; gap: .75rem; font-size: 1.125rem; margin-bottom: .5rem; }
.contact-list .bi { color: var(--ca-green); font-size: 1.25rem; }
.contact-list a { color: var(--ca-navy); text-decoration: none; font-weight: 700; }

/* ---------- Páginas internas ---------- */
.page-hero {
	background:
		radial-gradient(50rem 22rem at 100% 0%, rgba(32, 151, 126, .12), transparent 60%),
		var(--ca-bg);
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	border-bottom: 1px solid #e9edf0;
}
.page-title { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.15; margin: .75rem 0; }
.page-hero .lead { color: #4b5466; }
.breadcrumb { --bs-breadcrumb-font-size: .875rem; --bs-breadcrumb-divider-color: #8a93a3; --bs-breadcrumb-item-active-color: #6b7486; }
.breadcrumb a { text-decoration: none; }

.module { margin-bottom: clamp(3rem, 6vw, 5rem); }
.module-title { font-size: clamp(1.5rem, 2.6vw, 2rem); position: relative; padding-bottom: .75rem; margin-bottom: 1rem; }
.module-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--ca-green); }

/* Materiais */
.material-card {
	position: relative;
	background: #fff;
	border: 1px solid #e9edf0;
	border-radius: var(--ca-radius);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.material-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(20, 25, 83, .1); }
.material-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.material-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; }
.material-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.material-body .badge { align-self: flex-start; font-weight: 700; }
.material-title { font-size: 1.0625rem; line-height: 1.35; margin: 0; flex: 1; }
.material-more { font-weight: 700; font-size: .9375rem; color: var(--ca-green-dark); }

/* Ajuda */
.page-hero-help .page-title { margin-bottom: .5rem; }
.help-search .asl_w_container { min-width: 0 !important; }
.module-link, .list-group-help .list-group-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-decoration: none;
}
.module-link {
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #e9edf0;
	border-radius: var(--bs-border-radius-lg);
	color: var(--ca-navy);
	font-weight: 700;
	transition: border-color .2s, background-color .2s, color .2s;
}
.module-link:hover { border-color: var(--ca-green); background: var(--ca-green-light); color: var(--ca-green-dark); }
.module-link .bi, .list-group-help .bi { color: var(--ca-green); flex-shrink: 0; }
.list-group-help { --bs-list-group-border-radius: var(--bs-border-radius-lg); }
.list-group-help .list-group-item { padding: .9rem 1.1rem; color: var(--ca-ink); }
.help-support { background: var(--ca-green-light); border-radius: var(--ca-radius); padding: 1.5rem; }

/* Conteúdo do editor */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: 1.625rem; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.3125rem; margin-top: 2rem; }
.entry-content img { border-radius: .75rem; height: auto; }
.entry-content-help img { box-shadow: 0 .5rem 1.5rem rgba(20, 25, 83, .12); border: 1px solid #e9edf0; }
.entry-content-help ul, .entry-content-help ol { padding-left: 1.25rem; }
.entry-content-help li + li { margin-top: .35rem; }
.entry-content .wp-block-gallery { gap: 1rem; }
.entry-content .blocks-gallery-grid { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; list-style: none; }
.entry-content .blocks-gallery-item { flex: 1 1 180px; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid #e3e7eb; opacity: 1; }
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.entry-content .wp-block-column { flex: 1 1 220px; }
.entry-content table { width: 100%; }

.section-404 { padding: clamp(5rem, 12vw, 9rem) 0; }

/* ---------- Rodapé ---------- */
.site-footer {
	background: var(--ca-ink);
	color: rgba(255, 255, 255, .85);
	padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-title { font-size: .8125rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; }
.site-footer .social a { background: rgba(255, 255, 255, .08); }
.site-footer .social a:hover { background: var(--ca-green); }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	margin-top: 3rem;
	padding: 1.5rem 0;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-core { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none !important; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1030;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	font-size: 1.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* Paginação */
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.nav-links .page-numbers { padding: .4rem .85rem; border: 1px solid #e3e7eb; border-radius: var(--bs-border-radius); text-decoration: none; }
.nav-links .current { background: var(--ca-green); border-color: var(--ca-green); color: #fff; }

/* Ajustes finais */
.lead { font-weight: 400; }
.site-header .nav-link { white-space: nowrap; }
.whatsapp-float { display: none; }
.nav-actions .btn { white-space: nowrap; }
