/**
 * RAÍZES CONTÁBIL — DESIGN SYSTEM OFICIAL (UNIFIED ECOSYSTEM)
 * Full Width, Full Screen, Immersive Canvas, 3D Tilt, Glow, Micro-interactions.
 * Baseado 100% na Identidade Institucional da Home (rz-home.html).
 */

:root {
  --bg: #060d1f;
  --bg-deep: #030712;
  --card: rgba(255, 255, 255, 0.055);
  --card-hover: rgba(255, 255, 255, 0.085);
  --card-solid: #0c1836;
  --line: rgba(255, 255, 255, 0.12);
  --line-glow: rgba(61, 224, 0, 0.35);
  --txt: #e9eefa;
  --mut: #b6c4dd;
  --g: #3de000;
  --g-glow: rgba(61, 224, 0, 0.4);
  --g-soft: #9df07a;
  --navy: #162d5a;
  --blue-accent: #4489de;
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max-w: 1600px;
  --page-pad: clamp(20px, 4.5vw, 64px);
}

/* RESET E BASE GLOBAL FULL-WIDTH */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--bg);
}

body {
  margin: 0;
  font: 20px/1.75 var(--font-main);
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
}

/* CANVAS DE FUNDO TECNOLÓGICO IMERSIVO */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 18% 12%, rgba(61, 224, 0, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(68, 137, 222, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(22, 45, 90, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* TIPOGRAFIA OFICIAL */
h1, h2, h3, h4 {
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
  font-family: var(--font-main);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
}

p, li {
  margin: 0 0 18px;
  color: var(--mut);
  font-size: 1.15rem;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTAINERS AMPLOS FULL-WIDTH SEM ENCAIXOTAMENTO */
.wrap, .w, .rz-wrap, .container, main > section {
  width: 100%;
  max-width: var(--max-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--page-pad) !important;
  padding-right: var(--page-pad) !important;
}

section {
  position: relative;
  width: 100%;
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* SELO EYEBROW */
.eb, .rz-eyebrow, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--g-soft);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

/* BOTÕES INSTITUCIONAIS COM MICROINTERAÇÕES E PULSE */
.b, .btn, .rz-btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}

.b:hover, .btn:hover, .rz-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.b.wa, .btn.wa, .btn-primary, .b.big {
  background: var(--g) !important;
  color: #06260a !important;
  box-shadow: 0 10px 30px rgba(61, 224, 0, 0.3);
  border: none;
}

.b.big, .btn-hero {
  min-height: 64px;
  padding: 18px 36px;
  font-size: 18px;
  animation: pulse-glow 2.5s infinite;
  position: relative;
  overflow: hidden;
}

.b.big::after, .btn-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3.2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(61, 224, 0, 0.6), 0 16px 40px rgba(61, 224, 0, 0.35); }
  70% { box-shadow: 0 0 0 20px rgba(61, 224, 0, 0), 0 16px 40px rgba(61, 224, 0, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(61, 224, 0, 0), 0 16px 40px rgba(61, 224, 0, 0.35); }
}

@keyframes shine-sweep {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.b.wh, .btn-sec {
  background: #ffffff !important;
  color: #071533 !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.b.gh, .btn.gh, .btn-outline {
  border: 1px solid var(--line) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px);
}

.b.gh:hover, .btn.gh:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* CABEÇALHO INSTITUCIONAL PÍLULA FLUTUANTE */
header.h, header.inst-header {
  position: sticky;
  top: 14px;
  z-index: 999;
  max-width: var(--max-w) !important;
  margin: 14px auto 0 !important;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(10, 22, 48, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

header.h img, header.inst-header img {
  height: 48px;
  width: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 3px 8px;
}

header.h nav, header.inst-header nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

header.h nav a, header.inst-header nav a {
  text-decoration: none;
  color: #dbe5f7;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

header.h nav a:hover, header.inst-header nav a:hover {
  color: var(--g);
  background: rgba(61, 224, 0, 0.08);
  text-shadow: 0 0 14px rgba(61, 224, 0, 0.5);
}

/* CARDS COM PROFUNDIDADE 3D E BORDAS ILUMINADAS */
.card, .rz-card, .service-card, .feature-card, .plan-card, article.card-eq, .rz-3d {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover, .rz-card:hover, .service-card:hover, .plan-card:hover, .rz-3d:hover {
  border-color: rgba(61, 224, 0, 0.4) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(61, 224, 0, 0.15);
}

/* GRID RESPONSIVO AMPLO */
.grid, .rz-grid, .grid3, .grid2, .steps {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  width: 100%;
}

.grid2, .two { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid3, .three { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* SEÇÕES FULL-WIDTH IMERSIVAS */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
}

/* FORMULÁRIO PADRONIZADO DA RAÍZES */
.rz-form, form.lead-form {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.rz-form input, .rz-form select, .rz-form textarea,
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  color: #ffffff;
  font-size: 16px;
  font-family: var(--font-main);
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.rz-form input:focus, .rz-form select:focus, form.lead-form input:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 16px rgba(61, 224, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* BARRAS DE PROGRESSO E INDICADORES */
.bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 10px 0 18px;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3de000, #9df07a);
  border-radius: 100px;
  box-shadow: 0 0 14px rgba(61, 224, 0, 0.6);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* WHATSAPP FLUTUANTE FIXO COM PULSO */
.wa-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 12px 35px rgba(61, 224, 0, 0.45);
  transition: transform 0.3s ease;
  animation: pulse-glow 2.5s infinite;
}

.wa-float-btn:hover {
  transform: scale(1.1);
}

.wa-float-btn svg {
  width: 34px;
  height: 34px;
  fill: #06260a;
}

/* RODAPÉ INSTITUCIONAL */
footer.inst-footer, footer.f {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

/* RESPONSIVIDADE E AJUSTES MOBILE */
@media (max-width: 980px) {
  header.h, header.inst-header {
    border-radius: 24px;
    padding: 12px 20px;
  }
  .grid2, .grid3, .two, .three {
    grid-template-columns: 1fr;
  }
}






/* ===== RAÍZES CONTÁBIL — TIPOGRAFIA RESPONSIVA E EQUILIBRADA ===== */
:root {
  --font-body: clamp(16px, 0.45vw + 14.5px, 18px);
  --font-body-large: clamp(17px, 0.5vw + 15.5px, 20px);
  --font-card: clamp(15px, 0.25vw + 14.2px, 16px);
  --font-card-title: clamp(17px, 0.5vw + 15.5px, 20px);
  --font-section-sub: clamp(19px, 0.7vw + 16.5px, 24px);
  --font-section-title: clamp(28px, 1.8vw + 21px, 40px);
  --font-hero-title: clamp(34px, 2.8vw + 24px, 54px);
  --font-btn: clamp(15px, 0.35vw + 13.8px, 17px);
  --font-small: clamp(13.5px, 0.25vw + 13px, 15px);
  --line-height-body: 1.62;
  --line-height-tight: 1.16;
}

html {
  font-size: 16px;
}

body, body.contabil, body.legal {
  font-size: var(--font-body);
  line-height: var(--line-height-body);
  letter-spacing: -0.01em;
}

p, li, dd {
  font-size: var(--font-body);
  line-height: var(--line-height-body);
  margin-bottom: 16px;
  max-width: 72ch;
}

.lead, p.lead, .intro-text, .rz-lead {
  font-size: var(--font-body-large);
  line-height: 1.6;
  color: #dbe5f7;
}

small, .muted, p.muted, .rz-muted, footer p, .footnote {
  font-size: var(--font-small);
  line-height: 1.55;
}

h1, .hero h1, .rz-h1 {
  font-size: var(--font-hero-title);
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 18px;
}

h2, .section h2, .rz-h2 {
  font-size: var(--font-section-title);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}

h3, .rz-h3 {
  font-size: var(--font-section-sub);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 12px;
}

/* CARDS E GRIDS DE SERVIÇOS */
.card, .service-card, .rz-card, .panel, article.card-eq, .review-card {
  padding: clamp(20px, 2.5vw, 32px);
}

.card h3, .service-card h3, .rz-card h3, .card-eq h3 {
  font-size: var(--font-card-title);
  line-height: 1.25;
  margin-bottom: 10px;
}

.card p, .service-card p, .rz-card p, .card-eq p, .review-card p {
  font-size: var(--font-card);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* BOTÕES E CTAS */
.b, .btn, .rz-btn, a.btn, a.b {
  font-size: var(--font-btn);
  padding: 12px 24px;
  min-height: 48px;
  font-weight: 700;
}

.b.big, .btn-hero, .b.wa.big {
  font-size: clamp(16px, 0.4vw + 14.5px, 18px);
  min-height: 56px;
  padding: 16px 32px;
}
