/* ==========================================================================
   Milaré Contabilidade
   Cores e tipografia do guia de aplicação da marca (v1.0, jul/25)
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #072441;   /* Pantone 289 C: fundo principal */
  --navy-700: #1c376b;   /* Pantone 288 C: fundo secundário, grafismo "m" */
  --green-500: #57bc76;  /* Pantone 2256 C: destaque, arco */

  /* Derivadas */
  --navy-950: #041829;
  --navy-800: #0d2d52;
  --green-400: #74c98e;
  --green-700: #237a41;  /* verde para texto sobre branco (5.3:1) */
  --ink: #0a2440;
  --ink-soft: #3d4f66;   /* texto corrido sobre branco (8:1) */
  --on-dark: #ffffff;
  --on-dark-soft: #c3cfdd; /* texto corrido sobre navy-900 (10:1) */
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --line: #d6dfe9;
  --line-dark: rgb(255 255 255 / 0.14);

  /* Tipografia */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --fs-h3: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  --fs-h2: clamp(2rem, 2.6vw + 1.2rem, 3.25rem);
  --fs-h1: clamp(2.5rem, 4.4vw + 1.25rem, 5rem);

  /* Espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(4.5rem, 8vw, 8rem);
  --radius: 14px;
  --radius-lg: 28px;

  /* Camadas */
  --z-sticky: 10;
  --z-menu: 20;
  --z-float: 30;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-float);
  background: var(--green-500); color: var(--navy-900); padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--navy-900); color: var(--on-dark-soft); overflow: clip; }
.section--dark > .watermark-m { right: -14%; top: -18%; }
.section--dark > .container { position: relative; z-index: 1; }
.section--deep { background: var(--navy-700); color: var(--on-dark-soft); overflow: clip; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--on-dark); }

.h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 38ch; }
.accent { color: var(--green-500); }
.section:not(.section--dark):not(.section--deep) .accent { color: var(--green-700); }
.prose { max-width: 65ch; }
.prose p + p { margin-top: 1.1em; }

.section-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: var(--fs-lead); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--green-500); --btn-fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { --btn-bg: var(--green-400); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(87 188 118 / 0.8); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: rgb(255 255 255 / 0.35); }
.btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.08); border-color: var(--on-dark); box-shadow: none; }
.btn--navy { --btn-bg: var(--navy-900); --btn-fg: var(--on-dark); }
.btn--navy:hover { --btn-bg: var(--navy-700); box-shadow: 0 10px 24px -12px rgb(7 36 65 / 0.8); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { --btn-bg: transparent; border-color: var(--ink); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--green-500); padding-bottom: 2px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow, .section--deep .link-arrow { color: var(--on-dark); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgb(7 36 65 / 0.96);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(7 36 65 / 0.88); backdrop-filter: blur(14px) saturate(140%); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 220px; height: auto; } /* 220px = redução mínima digital do guia */

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  color: var(--on-dark-soft); text-decoration: none; font-weight: 500; font-size: 0.975rem;
  padding: 0.6rem 0.8rem; border-radius: 8px; transition: color 0.2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green-500); border-radius: 0; }
.nav .btn { margin-left: 0.75rem; min-height: 46px; padding: 0.6rem 1.15rem; }

.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 12px; color: var(--on-dark); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 30px 40px -20px rgb(0 0 0 / 0.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 0.95rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--green-500); }
  .nav .btn { margin: 1.25rem 0 0; }
}
@media (max-width: 420px) {
  .brand img { width: 184px; } /* abaixo de 220px só em telas muito estreitas */
}

/* ---------- Hero (início) ---------- */
.hero {
  background: var(--navy-900); color: var(--on-dark-soft);
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem);
  position: relative; overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero h1 { color: var(--on-dark); margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; color: var(--on-dark-soft); }
.hero-note { display: flex; align-items: center; gap: 0.65rem; margin-top: 2rem; font-size: var(--fs-small); }
.hero-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 5px rgb(87 188 118 / 0.2); flex: none; }

.hero-media { position: relative; width: min(100%, 520px); justify-self: end; aspect-ratio: 1; }
.hero-media .photo { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; background: var(--navy-800); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-media .arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-media .arc circle { fill: none; stroke: var(--green-500); stroke-width: 7; stroke-linecap: butt; }
.hero-media .chip {
  position: absolute; left: -4%; bottom: 10%;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); color: var(--ink); border-radius: 18px; padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.55); font-size: 0.95rem; line-height: 1.3; max-width: 260px;
}
.hero-media .chip strong { display: block; color: var(--ink); font-weight: 600; }
.hero-media .chip .chip-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--green-500); color: var(--navy-900); display: grid; place-items: center; flex: none; }
.hero-media .chip .chip-icon svg { width: 22px; height: 22px; }

.watermark-m {
  position: absolute; pointer-events: none; opacity: 0.35; z-index: 0;
  width: clamp(360px, 46vw, 720px); aspect-ratio: 82 / 83;
  background: url("../img/grafismo-m.svg") center / contain no-repeat;
}
.hero .watermark-m { left: -12%; bottom: -38%; }
.hero > .container { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(84%, 400px); }
  .hero-media .chip { left: -6%; bottom: 2%; font-size: 0.875rem; padding: 0.65rem 0.9rem 0.65rem 0.65rem; max-width: 220px; }
  .hero-media .chip .chip-icon { width: 36px; height: 36px; }
}

/* Coreografia de entrada do hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-media .arc circle { animation: draw-arc 1.6s var(--ease-out) 0.25s both; }
  .hero-media .photo { animation: photo-in 1.1s var(--ease-out) both; }
  .hero-media .chip { animation: rise 0.9s var(--ease-out) 0.9s both; }
  .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.4s; }
}
@keyframes draw-arc { from { stroke-dashoffset: var(--arc-len, 1100); } }
@keyframes photo-in { from { opacity: 0; transform: scale(0.94); clip-path: circle(30% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Faixa de atributos ---------- */
.pillars { background: var(--navy-700); color: var(--on-dark-soft); padding-block: clamp(2.75rem, 5vw, 4rem); }
.pillars-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pillars-list li { display: grid; gap: 0.5rem; align-content: start; }
.pillars-list strong { color: var(--on-dark); font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem); font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: center; gap: 0.6rem; }
.pillars-list strong::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--green-500); flex: none; }
.pillars-list span { font-size: var(--fs-small); line-height: 1.5; max-width: 26ch; }
@media (max-width: 860px) { .pillars-list { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }
@media (max-width: 460px) { .pillars-list { gap: 1.5rem 1.25rem; } .pillars-list strong { font-size: 1.25rem; } }

/* ---------- Lista de serviços (linhas, não cards) ---------- */
.service-index { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.service-index .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.service-rows { list-style: none; border-top: 1px solid var(--line); }
.service-rows a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.5rem; align-items: center;
  padding: 1.6rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.service-rows h3 { font-size: var(--fs-h3); font-weight: 600; }
.service-rows p { grid-column: 1; font-size: var(--fs-small); color: var(--ink-soft); max-width: 52ch; }
.service-rows .go {
  grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service-rows .go svg { width: 20px; height: 20px; }
.service-rows a:hover { padding-inline: 1rem; background: var(--surface-alt); }
.service-rows a:hover .go { background: var(--green-500); border-color: var(--green-500); color: var(--navy-900); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .service-index { grid-template-columns: 1fr; }
  .service-index .section-head { position: static; }
}

/* ---------- Passos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 1.75rem 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--green-500); color: var(--ink);
  font-weight: 700; font-size: 1.25rem; margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 28px; left: 56px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6rem; }
.steps p { font-size: var(--fs-small); }
.section--alt .steps li::before { background: var(--surface-alt); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { padding: 0 0 0 80px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 56px; bottom: -2rem; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
}

/* ---------- Split (texto + foto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.split-media--wide img { aspect-ratio: 5 / 4; }
.split-media--square img { aspect-ratio: 1; }
.split-media .ring {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; border: clamp(10px, 1.6vw, 18px) solid var(--green-500);
  right: -14%; bottom: -12%; z-index: -1;
}
.split-media--ring-left .ring { right: auto; left: -14%; top: -10%; bottom: auto; }
.split-copy { display: grid; gap: 1.5rem; align-content: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 520px; }
  .split-media .ring { right: -6%; }
  .split-media--ring-left .ring { left: -6%; }
}

.checklist { list-style: none; display: grid; gap: 0.9rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; }
.checklist li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23072441' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section--dark .checklist li, .section--deep .checklist li { color: var(--on-dark); }

/* ---------- Segmentos ---------- */
.segments { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.segments li {
  padding: 0.8rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 500; background: var(--surface);
}
.segments li:nth-child(3n+1) { border-color: var(--green-500); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-weight: 600; font-size: 1.125rem; color: var(--ink); line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-alt); position: relative; transition: background-color 0.25s, transform 0.35s var(--ease-out); }
.faq-list summary .plus::before, .faq-list summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; border-radius: 2px; }
.faq-list summary .plus::after { rotate: 90deg; }
.faq-list details[open] summary .plus { background: var(--green-500); transform: rotate(45deg); }
.faq-list .answer { padding: 0 3.5rem 1.6rem 0; }
.faq-list .answer p + p { margin-top: 0.8em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-list .answer { padding-right: 0; } }

/* ---------- Chamada final ---------- */
.cta-band { background: var(--navy-900); color: var(--on-dark-soft); position: relative; overflow: clip; padding-block: clamp(4.5rem, 9vw, 8rem); }
.cta-band .container { position: relative; z-index: 1; display: grid; gap: 1.5rem; justify-items: start; }
.cta-band h2 { color: var(--on-dark); max-width: 16ch; }
.cta-band p { font-size: var(--fs-lead); max-width: 44ch; }
.cta-band .arc-ring {
  position: absolute; right: -10%; top: 50%; translate: 0 -50%;
  width: clamp(320px, 42vw, 620px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(28px, 3.6vw, 52px) solid var(--green-500);
}
.cta-band .watermark-m { right: 14%; top: -30%; width: clamp(260px, 30vw, 460px); }
@media (max-width: 860px) { .cta-band .arc-ring { right: -45%; top: auto; bottom: -55%; translate: none; } }

/* ---------- Cabeçalho de página interna ---------- */
.page-hero { background: var(--navy-900); color: var(--on-dark-soft); padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: clip; }
.page-hero .container { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
.page-hero h1 { color: var(--on-dark); max-width: 18ch; }
.page-hero .lead { max-width: 48ch; }
.page-hero .arc-ring {
  position: absolute; right: -6%; bottom: -60%; width: clamp(280px, 34vw, 520px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(24px, 3vw, 44px) solid var(--green-500);
}
.breadcrumb { font-size: var(--fs-small); }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--on-dark); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin-inline: 0.5rem; opacity: 0.6; }

/* ---------- Detalhe de serviço ---------- */
.service-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.375rem); letter-spacing: -0.02em; }
.service-detail .for { margin-top: 1rem; font-size: var(--fs-small); }
.service-detail .for strong { color: var(--ink); font-weight: 600; }
.service-detail .body { display: grid; gap: 1.5rem; align-content: start; }
.service-detail .body > p { font-size: 1.125rem; }
.service-detail .tag { display: inline-flex; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface-alt); color: var(--ink); font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } }

.service-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.service-nav a { color: var(--on-dark); text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); font-size: var(--fs-small); transition: border-color 0.2s, background-color 0.2s; }
.service-nav a:hover { border-color: var(--green-500); background: rgb(87 188 118 / 0.1); }

.pricing-note { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface-alt); }
.pricing-note .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; }
.pricing-note .icon img { width: 34px; }
.pricing-note h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
@media (max-width: 760px) { .pricing-note { grid-template-columns: 1fr; } }

/* ---------- Landing (abrir / trocar) ---------- */
.landing-hero { background: var(--navy-900); color: var(--on-dark-soft); padding-block: clamp(3rem, 6vw, 5.5rem); position: relative; overflow: clip; }
.landing-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; position: relative; z-index: 1; }
.landing-grid h1 { color: var(--on-dark); margin-bottom: 1.25rem; font-size: clamp(2.25rem, 3vw + 1.1rem, 4rem); }
.landing-grid .lead { margin-bottom: 2rem; max-width: 42ch; }
.landing-hero .checklist li { color: var(--on-dark); }
.landing-photo { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.25rem; }
.landing-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; outline: 5px solid var(--green-500); outline-offset: 4px; }
.landing-photo p { font-size: var(--fs-small); max-width: 34ch; }
.landing-hero .watermark-m { right: -10%; top: -20%; }
@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; } }

/* ---------- Formulário ---------- */
.form-card {
  background: var(--surface); color: var(--ink-soft); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.6);
}
.form-card h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.form-card > p { font-size: var(--fs-small); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field { display: grid; gap: 0.4rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.field .optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem; border-radius: 12px;
  border: 1.5px solid #b5c2d1; background: var(--surface); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5b6b7f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgb(87 188 118 / 0.35); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #b42318; }
.field .error { display: none; color: #b42318; font-size: 0.875rem; }
.field[data-invalid] .error { display: block; }
.consent { grid-column: span 2; display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; font-size: 0.875rem; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.consent a { color: var(--ink); font-weight: 500; }
.form-actions { grid-column: span 2; display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.form-actions .btn { width: 100%; }
.form-actions small { font-size: 0.8125rem; text-align: center; }
.form-status { grid-column: span 2; padding: 0.9rem 1rem; border-radius: 12px; background: #e3f5e9; color: #14532d; font-size: 0.95rem; }
.form-status[hidden] { display: none; }
@media (max-width: 520px) { .field--half { grid-column: span 2; } }

/* ---------- Sobre ---------- */
.manifesto { font-size: clamp(1.25rem, 0.9vw + 1rem, 1.625rem); line-height: 1.55; color: var(--ink); max-width: 34em; }
.manifesto p + p { margin-top: 1.25em; }
.manifesto .closing { font-weight: 700; font-size: 1.2em; letter-spacing: -0.01em; }
.manifesto .closing span { box-shadow: inset 0 -0.35em 0 rgb(87 188 118 / 0.45); }

.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.mvv > div { background: var(--navy-900); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1rem; align-content: start; }
.mvv h3 { color: var(--green-500); font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
.mvv p { color: var(--on-dark); font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); line-height: 1.35; font-weight: 500; }
.mvv .values { grid-column: span 2; }
.values-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.values-list strong { display: block; color: var(--on-dark); font-size: 1.375rem; font-weight: 700; margin-bottom: 0.35rem; }
.values-list span { font-size: var(--fs-small); }
@media (max-width: 860px) {
  .mvv { grid-template-columns: 1fr; }
  .mvv .values { grid-column: span 1; }
  .values-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .values-list { grid-template-columns: 1fr; } }

.voice { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem 2rem; }
.voice li { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.voice strong { color: var(--ink); font-size: 1.25rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-alt); display: grid; place-items: center; color: var(--navy-900); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 0.875rem; }
.contact-list a, .contact-list .val { color: var(--ink); font-weight: 600; font-size: 1.125rem; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-grid .form-card { box-shadow: 0 30px 60px -40px rgb(7 36 65 / 0.45); border: 1px solid var(--line); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Texto legal ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 220px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { color: var(--on-dark); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--green-500); text-underline-offset: 3px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 0.6rem; height: 60px; padding: 0 1.35rem 0 1.1rem; border-radius: 999px;
  background: var(--green-500); color: var(--navy-900); font-weight: 600; text-decoration: none;
  box-shadow: 0 16px 32px -14px rgb(7 36 65 / 0.7), 0 0 0 4px rgb(255 255 255 / 0.9);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--green-400); }
@media (max-width: 640px) { .wa-float { width: 60px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Revelação ao rolar (só aprimora; conteúdo já visível) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    .reveal-stagger > * { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes reveal-up { from { opacity: 0.001; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Página de depoimento (isolada) ---------- */
.site-header--simple .header-inner { justify-content: center; }
.testimonial-page { background: var(--navy-900); min-height: 100dvh; display: flex; flex-direction: column; }
.testimonial-page main { flex: 1; position: relative; overflow: clip; }
.testimonial-page .watermark-m { left: -16%; top: 4%; }
.testimonial-page .arc-ring {
  position: absolute; right: -14%; bottom: 8%; width: clamp(260px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(22px, 2.6vw, 40px) solid var(--green-500);
}
.testimonial-wrap {
  position: relative; z-index: 1; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.testimonial-intro { color: var(--on-dark-soft); display: grid; gap: 1.25rem; position: sticky; top: 2.5rem; }
.testimonial-intro h1 { color: var(--on-dark); font-size: clamp(2.25rem, 3vw + 1.1rem, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
.testimonial-intro .lead { max-width: 36ch; }
.prompt-list { list-style: none; display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.prompt-list li { display: grid; grid-template-columns: 34px 1fr; gap: 0.75rem; align-items: start; color: var(--on-dark); }
.prompt-list li span:first-child {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green-500); display: grid; place-items: center;
  font-weight: 700; font-size: 0.9375rem; color: var(--green-500);
}
.prompt-list li span:last-child { padding-top: 0.3rem; }
.time-note { font-size: var(--fs-small); display: flex; align-items: center; gap: 0.6rem; }
.time-note svg { width: 20px; height: 20px; color: var(--green-500); flex: none; }
@media (max-width: 900px) {
  .testimonial-wrap { grid-template-columns: 1fr; }
  .testimonial-intro { position: static; }
}

.form-card .form-section { grid-column: span 2; margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-card .form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-card .form-section h2 { font-size: 1.125rem; font-weight: 600; margin: 0; }
.field .hint { font-size: 0.875rem; color: var(--ink-soft); }
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 500; color: var(--ink); font-size: 0.95rem; padding: 0; margin-bottom: 0.4rem; }

/* Nota de 1 a 5 */
.rating { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rating label { position: relative; cursor: pointer; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid #b5c2d1; color: var(--ink); font-weight: 600; font-size: 1.125rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.rating label:hover span { border-color: var(--navy-700); }
.rating input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); transform: scale(1.06); }
.rating input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 3px; }
.rating-scale { display: flex; justify-content: space-between; max-width: 292px; font-size: 0.8125rem; margin-top: 0.35rem; }

/* Opções de publicação */
.choices { display: grid; gap: 0.6rem; }
.choices label {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; cursor: pointer;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); transition: border-color 0.2s, background-color 0.2s;
}
.choices label:hover { border-color: #b5c2d1; }
.choices label:has(input:checked) { border-color: var(--navy-700); background: var(--surface-alt); }
.choices input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.choices strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.975rem; }
.choices small { font-size: 0.875rem; }
.field[data-invalid] .choices label, .field[data-invalid] .rating span { border-color: #b42318; }

#dp-texto { min-height: 170px; }
.char-count { font-size: 0.8125rem; text-align: right; }
.form-error { grid-column: span 2; padding: 0.9rem 1rem; border-radius: 12px; background: #fdecea; color: #8a1c12; font-size: 0.95rem; }
.form-error[hidden] { display: none; }

/* Agradecimento */
.thanks { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-block: clamp(1rem, 3vw, 2rem); }
.thanks:focus { outline: none; }
.thanks .check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-500); display: grid; place-items: center; color: var(--navy-900); }
.thanks .check svg { width: 38px; height: 38px; }
.thanks h2 { font-size: clamp(1.75rem, 1.5vw + 1.2rem, 2.25rem); }
.thanks p { max-width: 40ch; }
.thanks [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .thanks:not([hidden]) .check { animation: pop 0.6s var(--ease-out) both; }
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.testimonial-footer { position: relative; z-index: 1; border-top: 1px solid var(--line-dark); color: var(--on-dark-soft); font-size: 0.8125rem; padding-block: 1.5rem; }
.testimonial-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.testimonial-footer a { color: var(--on-dark-soft); }

/* ---------- Comparativo PF x PJ (saude.html) ---------- */
.landing-note { margin-top: 1.5rem; font-size: var(--fs-small); opacity: 0.8; max-width: 52ch; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; }
.compare-col--best { background: var(--navy-900); color: var(--on-dark-soft); border-color: var(--navy-900); }
.compare-col--best .checklist li { color: var(--on-dark); }
.compare-num { font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.compare-num small { display: block; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; margin-bottom: 0.5rem; color: var(--ink-soft); }
.compare-col:not(.compare-col--best) .compare-num span { text-decoration: line-through; text-decoration-color: var(--green-500); text-decoration-thickness: 6px; }
.compare-col--best .compare-num { color: var(--green-500); }
.compare-col--best .compare-num small { color: var(--on-dark-soft); }
.steps--stack { grid-template-columns: 1fr; gap: 2rem; }
.steps--stack li { padding: 0; }
.steps--stack li::after { display: none; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare .tag { display: inline-flex; justify-self: start; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface-alt); color: var(--ink); font-size: 0.875rem; font-weight: 500; }
.compare-col--best .tag { background: var(--green-500); color: var(--navy-900); }
