/*
Theme Name: Captus
Description: Tema institucional da Captus Consultoria, migrado do projeto Lovable "Captus: Estratégia que Gera Valor".
Version: 1.0.0
Author: Captus Consultoria
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: captus
*/

:root {
	--radius: 0.5rem;
	--background: oklch(0.99 0.002 90);
	--foreground: oklch(0.20 0.02 250);
	--primary: oklch(0.30 0.06 155);
	--primary-foreground: oklch(0.99 0.002 90);
	--secondary: oklch(0.96 0.008 155);
	--secondary-foreground: oklch(0.25 0.04 155);
	--muted-foreground: oklch(0.50 0.02 250);
	--border: oklch(0.91 0.008 90);
	--ring: oklch(0.40 0.06 155);
	--green-light: oklch(0.42 0.08 155);
	--warm: oklch(0.97 0.008 85);
	--on-primary-80: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
	--on-primary-70: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
	--on-primary-60: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
	--on-primary-50: color-mix(in oklab, var(--primary-foreground) 50%, transparent);
	--on-primary-40: color-mix(in oklab, var(--primary-foreground) 40%, transparent);
	--on-primary-30: color-mix(in oklab, var(--primary-foreground) 30%, transparent);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: 'Inter', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: -0.02em; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
input, textarea, button { font: inherit; color: inherit; margin: 0; }
button { background: none; cursor: pointer; }

/* Layout */
.section-padding { padding: 5rem 1.5rem; }
.container-narrow { margin-inline: auto; max-width: 72rem; }
.bg-background { background: var(--background); }
.bg-warm { background: var(--warm); }
.bg-primary { background: var(--primary); }
.site-main { padding-top: 4rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.text-center { text-align: center; }

/* Typography */
.eyebrow {
	margin-bottom: 1rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--primary);
}
.page-title { max-width: 48rem; font-size: 2.25rem; line-height: 1.25; font-weight: 700; }
.section-title { max-width: 42rem; font-size: 1.875rem; line-height: 1.25; font-weight: 700; }
.lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
.body-sm { font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.card-title { margin-bottom: 0.75rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.5rem;
	padding: 0.5rem 1.25rem;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: all 0.3s;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-cta {
	background: var(--primary);
	color: var(--primary-foreground);
	box-shadow: var(--shadow-lg);
	font-size: 0.75rem;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}
.btn-cta:hover { background: var(--green-light); box-shadow: var(--shadow-xl); transform: translateY(-0.125rem); }
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
.btn-xl { height: 3.5rem; padding: 0 2.5rem; border-radius: var(--radius); font-size: 1rem; }
.btn-outline-light { border: 2px solid var(--on-primary-30); color: var(--primary-foreground); }
.btn-outline-light:hover { background: var(--primary-foreground); color: var(--primary); }
.btn-ghost-light { color: var(--on-primary-80); }
.btn-ghost-light:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); color: var(--primary-foreground); }
.btn-block { width: 100%; }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	background: color-mix(in oklab, var(--background) 90%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-inline: auto;
	max-width: 80rem;
	height: 4rem;
	padding-inline: 1.5rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 2rem; width: auto; }
.nav-desktop, .header-cta { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 1.5rem; }
.nav-desktop a, .nav-mobile a:not(.btn) {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	color: var(--muted-foreground);
	transition: color 0.2s;
}
.nav-desktop a { white-space: nowrap; }
.nav-desktop a:hover, .nav-desktop .current-menu-item > a, .nav-mobile .current-menu-item > a { color: var(--primary); }
.menu-toggle { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.5rem; }
.menu-toggle span { display: block; width: 1.5rem; height: 0.125rem; background: var(--foreground); transition: all 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }
.nav-mobile { background: var(--background); border-top: 1px solid var(--border); padding: 1rem 1.5rem; animation: fade-in 0.5s ease-out both; }
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile li a { display: block; padding-block: 0.75rem; border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.nav-mobile__cta { padding-top: 1rem; }

/* Footer */
.site-footer { background: var(--primary); color: var(--primary-foreground); }
.site-footer__grid { gap: 3rem; }
.site-footer__logo { height: 2rem; width: auto; filter: brightness(0) invert(1); }
.site-footer__tagline { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.625; color: var(--on-primary-70); }
.site-footer h4 {
	margin-bottom: 1rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--on-primary-50);
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__nav a { display: block; font-size: 0.875rem; line-height: 1.25rem; color: var(--on-primary-70); transition: color 0.15s; }
.site-footer__nav a:hover { color: var(--primary-foreground); }
.site-footer__text { font-size: 0.875rem; line-height: 1.625; color: var(--on-primary-70); }
.site-footer__text + .site-footer__text { margin-top: 0.25rem; }
.site-footer__copy {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 10%, transparent);
	text-align: center;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--on-primary-40);
}

/* CTA band */
.cta__title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--primary-foreground); }
.home .cta__title { line-height: 1.25; }
.cta__text { margin: 1rem auto 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--on-primary-70); }
.cta__action { margin-top: 2.5rem; }

/* Home */
.hero { position: relative; display: flex; align-items: center; min-height: 90vh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right,
		color-mix(in oklab, var(--primary) 95%, transparent),
		color-mix(in oklab, var(--primary) 80%, transparent),
		color-mix(in oklab, var(--primary) 40%, transparent));
}
.hero__inner { position: relative; }
.hero__content { max-width: 42rem; }
.hero__eyebrow {
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--on-primary-60);
}
.hero__title { font-size: 2.25rem; line-height: 1.1; font-weight: 700; color: var(--primary-foreground); }
.hero__text { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: var(--on-primary-80); }
.hero__actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.fade-up { animation: fade-up 0.7s ease-out both; animation-delay: var(--delay, 0ms); }

.cols-3 { margin-top: 4rem; gap: 2rem; }
.feature__bar { width: 3rem; height: 0.25rem; margin-bottom: 1.5rem; background: var(--primary); transition: width 0.5s; }
.feature:hover .feature__bar { width: 5rem; }
.steps { margin-top: 4rem; }
.step { padding: 2rem; background: var(--background); border: 1px solid color-mix(in oklab, var(--border) 50%, transparent); transition: box-shadow 0.5s; }
.step:hover { box-shadow: var(--shadow-lg); }
.step .card-title { margin-top: 1rem; }
.number { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: color-mix(in oklab, var(--primary) 20%, transparent); }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.5s; }
.card:hover { border-color: color-mix(in oklab, var(--primary) 30%, transparent); box-shadow: var(--shadow-md); }
.card-area { height: 100%; padding: 2rem; background: var(--background); }
.card-area h3 { margin-bottom: 0.75rem; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.areas { margin-top: 4rem; gap: 1.5rem; }
.stack-8 { display: grid; gap: 2rem; }
.stack-12 { display: grid; gap: 3rem; }
.stack-16 { display: grid; gap: 4rem; }

/* Lists */
.dot-list { display: grid; gap: 0.75rem; }
.dot-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.dot-list li::before {
	content: "";
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	margin-top: 0.375rem;
	border-radius: 50%;
	background: var(--primary);
}

/* Serviços */
.service { display: flex; align-items: flex-start; gap: 1.5rem; padding: 2rem; }
.service__number { flex-shrink: 0; font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: color-mix(in oklab, var(--primary) 20%, transparent); }
.service h3 { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }

/* Diferenciais */
.diferencial { gap: 1.5rem; padding-block: 3rem; }
.diferencial .number { color: color-mix(in oklab, var(--primary) 15%, transparent); }
.diferencial h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.diferencial h3 + .body-sm { margin-top: 0.5rem; }

/* Sócios */
.socio { gap: 2rem; align-items: start; }
.socio__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(to bottom right,
		color-mix(in oklab, var(--primary) 10%, transparent),
		color-mix(in oklab, var(--primary) 5%, transparent));
}
.socio__initials { font-size: 3.75rem; line-height: 1; font-weight: 700; color: color-mix(in oklab, var(--primary) 20%, transparent); }
.socio__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.socio__name { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.socio__role { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--primary); }
.socio__bio { margin-top: 1.5rem; line-height: 1.625; color: var(--muted-foreground); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	background: var(--secondary);
	color: var(--secondary-foreground);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
}

/* Cases */
.case { padding: 2rem; overflow: hidden; }
.case:hover { box-shadow: var(--shadow-lg); }
.case__category { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); }
.case h3 { margin: 0.75rem 0 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.case .body-sm { max-width: 48rem; }
.metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.metric {
	padding: 0.5rem 1rem;
	border-radius: calc(var(--radius) - 2px);
	background: var(--secondary);
	color: var(--secondary-foreground);
	font-size: 0.875rem;
	line-height: 1.5rem;
	font-weight: 600;
}

/* Contato */
.contact { gap: 3rem; }
.contact-form { display: grid; gap: 1.5rem; scroll-margin-top: 7rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
	display: block;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 2px);
	background: var(--background);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: color 0.15s;
}
.contact-form input { height: 3rem; padding-inline: 1rem; }
.contact-form textarea { padding: 0.75rem 1rem; resize: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ring); outline-offset: 0; }
.contact-form ::placeholder { color: var(--muted-foreground); }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { scroll-margin-top: 7rem; padding: 2rem; border-radius: var(--radius); background: var(--secondary); text-align: center; }
.form-notice h3 { margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.form-notice--error { margin-bottom: 1.5rem; }
.contact-info { display: grid; gap: 2rem; }
.contact-info h4 {
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--primary);
}
.contact-info p { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* 404 */
.not-found { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 4rem 1rem; text-align: center; }
.not-found__box { max-width: 28rem; }
.not-found h1 { font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--primary); }
.not-found h2 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.not-found p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.not-found__action { display: inline-flex; margin-top: 1.5rem; padding: 0.5rem 1rem; border-radius: calc(var(--radius) - 2px); background: var(--primary); color: var(--primary-foreground); font-size: 0.875rem; font-weight: 500; transition: background 0.15s; }
.not-found__action:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }

/* Conteúdo criado pelo editor do WordPress */
.entry-content { max-width: 48rem; line-height: 1.75; color: var(--muted-foreground); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2, .entry-content h3 { color: var(--foreground); font-weight: 700; }
.entry-content h2 { font-size: 1.5rem; line-height: 1.25; }
.entry-content h3 { font-size: 1.25rem; line-height: 1.25; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.post-list { display: grid; gap: 3rem; }
.post-list h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.post-list h2 a:hover { color: var(--primary); }
.post-list .body-sm { margin-top: 0.75rem; }

/* Animações */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease-out var(--delay, 0ms), transform 0.7s ease-out var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade-up {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.fade-up, .nav-mobile { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Telas pequenas: textos longos de botão quebram em vez de vazar */
@media (max-width: 639px) {
	.btn-xl { height: auto; min-height: 3.5rem; padding: 0.75rem 1.5rem; white-space: normal; text-align: center; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (min-width: 640px) {
	.hero__actions { flex-direction: row; }
}
@media (min-width: 768px) {
	.section-padding { padding-inline: 3rem; }
	.site-main { padding-top: 5rem; }
	.site-header__inner { height: 5rem; padding-inline: 2.5rem; }
	.site-logo img { height: 2.25rem; }
	.page-title, .hero__title { font-size: 3rem; }
	.hero__title { line-height: 1.1; }
	.section-title, .cta__title { font-size: 2.25rem; }
	.cta__title { line-height: 2.5rem; }
	.home .cta__title { line-height: 1.25; }
	.hero__text { font-size: 1.25rem; }
	.md-cols-2, .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cols-3, .steps, .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cols-3 { gap: 3rem; }
	.site-footer__grid { gap: 2rem; }
	.step, .service, .case { padding: 2.5rem; }
	.case h3 { font-size: 1.5rem; line-height: 2rem; }
	.diferencial, .socio, .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.diferencial { gap: 3rem; }
	.diferencial > :nth-child(1) { grid-column: span 1; }
	.diferencial > :nth-child(2), .socio > :nth-child(1) { grid-column: span 4; }
	.diferencial > :nth-child(3), .contact > :nth-child(1) { grid-column: span 7; }
	.socio > :nth-child(2) { grid-column: span 8; }
	.contact > :nth-child(2) { grid-column: span 5; }
	.socio { gap: 3rem; }
	.contact { gap: 4rem; }
	.btn-block { width: auto; }
}
@media (min-width: 1024px) {
	.section-padding { padding: 7rem 5rem; }
	.hero__title { font-size: 3.75rem; }
	.areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.nav-desktop { display: block; min-width: 0; }
	.header-cta { display: block; flex-shrink: 0; }
	.menu-toggle, .nav-mobile { display: none; }
}
@media (min-width: 1536px) {
	.nav-desktop ul { gap: 2rem; }
}
/* O rodapé usa o mesmo padding das seções, exceto embaixo */
.site-footer__inner.section-padding { padding-bottom: 3rem; }
