/*
Theme Name: IDCONT Soluções Empresariais
Theme URI: https://idcont.com
Author: DT Network
Description: Tema leve e moderno para o escritório de contabilidade IDCONT. Sem jQuery, sem plugins obrigatórios, JavaScript vanilla e fonte do sistema (zero requisições externas).
Version: 1.5.3
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: idcont
*/

/* ===== 1. Tokens ===== */
:root {
  --color-navy: #0F2A52;
  --color-navy-dark: #0A1D3B;
  --color-navy-deep: #071730;
  --color-blue: #2F6FD1;
  --color-blue-soft: #EAF1FC;
  --color-green: #0F7A38; /* AA (5.4:1) em texto e botões sobre branco */
  --color-green-dark: #0B5C2A;
  --color-green-bright: #4ADE80; /* só para detalhes sobre fundo escuro */
  --color-green-soft: #E8F5EC;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7FB;
  --color-text: #1F2937;
  --color-text-muted: #556070;
  --color-border: #E2E8F0;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 82, 0.06), 0 2px 8px rgba(15, 42, 82, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 42, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 23, 48, 0.28);
  --container-width: 1160px;
  --header-h: 72px;
}

/* ===== 2. Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--color-navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== 3. Tipografia ===== */
h1, h2, h3, h4 { margin: 0 0 var(--space-2); font-weight: 800; color: var(--color-navy); line-height: 1.15; letter-spacing: -0.02em; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); color: var(--color-text-muted); }
.lead { font-size: 1.12rem; color: var(--color-text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-green); margin-bottom: var(--space-1);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.text-gradient {
  background: linear-gradient(90deg, #8FB8FF, var(--color-green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== 4. Layout ===== */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-6) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: var(--space-5) 0; }
.section-head { max-width: 680px; margin: 0 auto var(--space-5); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }

/* ===== 5. Botões e cards ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--primary { background: var(--color-green); color: #fff; box-shadow: 0 8px 22px rgba(15, 122, 56, 0.35); }
.btn--primary:hover { background: var(--color-green-dark); }
.btn--outline { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.16); }
.btn--ghost { color: #fff; padding-left: 0.4rem; padding-right: 0.4rem; border-radius: var(--radius-sm); }
.btn--ghost:hover { color: var(--color-green-bright); transform: none; }
.btn--outline-navy { background: transparent; border-color: var(--color-navy); color: var(--color-navy); }
.btn--outline-navy:hover { background: var(--color-navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; gap: 0.4rem; font-weight: 700; color: var(--color-navy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--color-green); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d7ee; }
.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius-md); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-navy), #1d4a8f); color: #fff; margin-bottom: var(--space-2);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--soft { background: var(--color-green-soft); color: var(--color-green); }
.icon-box--blue { background: var(--color-blue-soft); color: var(--color-blue); }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; color: var(--color-text-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--color-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7A38' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ===== 6. Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9); transition: box-shadow 0.2s ease;
}
/* O vidro fica num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile (position: fixed) dentro dele. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 82, 0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-3); }
.site-header__logo img { height: 42px; width: auto; }
.site-nav__list { display: flex; gap: 1.6rem; }
.site-nav__list a {
  font-weight: 600; font-size: 0.95rem; color: var(--color-navy); padding: 0.5rem 0; border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav__list a:hover { color: var(--color-green); }
.site-nav__list a[aria-current],
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-parent > a { border-color: var(--color-green); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header__actions .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-1); color: var(--color-navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; visibility: hidden;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; padding: var(--space-4) var(--space-3); gap: 0.25rem; }
  .site-nav__list a { display: block; font-size: 1.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
  .site-header__actions .btn { display: none; }
}

/* ===== 7. Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--space-6) + 0.5rem) 0 calc(var(--space-6) + 4rem);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(47, 111, 209, 0.45), transparent 60%),
    radial-gradient(700px 420px at -5% 105%, rgba(22, 163, 74, 0.28), transparent 60%),
    linear-gradient(165deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
/* Fundo animado do hero: gráfico subindo, colunas, calculadora e símbolos. Só transform/opacity. */
.hero__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; opacity: 0.7; }
.hero__chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hfx-draw 2.6s cubic-bezier(.4, 0, .2, 1) 0.2s forwards; }
.hero__chart-area { opacity: 0; animation: hfx-fade 1.6s ease 1.4s forwards; }
.hero__cols { position: absolute; right: 4%; bottom: 0; width: 34%; height: 46%; display: flex; align-items: flex-end; gap: 1.2%; opacity: 0.55; }
.hero__cols i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(143, 184, 255, 0.22), rgba(143, 184, 255, 0.02)); transform-origin: bottom; transform: scaleY(0); animation: hfx-grow 1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 0.07s + 0.3s) forwards, hfx-breathe 7s ease-in-out calc(var(--i) * 0.4s + 2s) infinite; }
.hero__calc { position: absolute; left: 3%; bottom: 9%; width: 168px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.025); transform: rotate(-9deg); opacity: 0; animation: hfx-fade-calc 1.4s ease 0.6s forwards; }
.hero__calc-screen { grid-column: 1 / -1; margin-bottom: 4px; padding: 8px 10px; border-radius: 8px; background: rgba(74, 222, 128, 0.07); color: rgba(74, 222, 128, 0.55); font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.hero__calc b { display: grid; place-items: center; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.35); font-size: 12px; font-weight: 600; animation: hfx-key 8s ease-in-out calc(var(--i) * 0.5s + 2.5s) infinite; }
.hero__sym { position: absolute; left: var(--x); top: var(--y); font-size: calc(var(--s) * 2.2rem); font-weight: 800; color: rgba(255, 255, 255, 0.06); animation: hfx-float 16s ease-in-out var(--t) infinite; }
.hero__shine { position: absolute; top: -20%; bottom: -20%; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(143, 184, 255, 0.08), transparent); transform: translateX(-100%) skewX(-12deg); animation: hfx-shine 9s ease-in-out 1.5s infinite; }
@keyframes hfx-draw { to { stroke-dashoffset: 0; } }
@keyframes hfx-fade { to { opacity: 1; } }
@keyframes hfx-fade-calc { to { opacity: 0.6; } }
@keyframes hfx-grow { to { transform: scaleY(1); } }
@keyframes hfx-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.88); } }
@keyframes hfx-key { 0%, 8%, 100% { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.35); } 3% { background: rgba(74, 222, 128, 0.3); color: rgba(255, 255, 255, 0.85); } }
@keyframes hfx-float { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-28px); opacity: 1; } }
@keyframes hfx-shine { 0%, 55% { transform: translateX(-100%) skewX(-12deg); } 100% { transform: translateX(650%) skewX(-12deg); } }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-5); align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: var(--space-3);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #DCE7F8;
}
.hero__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-green-bright); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
.hero h1 { color: #fff; margin-bottom: var(--space-3); }
.hero h1 .text-gradient { display: block; margin-top: 0.15em; }
.hero__kicker { display: block; font-size: 0.42em; font-weight: 700; letter-spacing: 0.02em; color: #C9D6EA; margin-bottom: 0.5em; }
.hero__lead { color: #C9D6EA; font-size: 1.15rem; max-width: 36rem; }
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-top: var(--space-4); }
.hero__panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-lg); padding: var(--space-3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
.hero__panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.hero__panel-head strong { color: #fff; font-size: 1.02rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.hero__trust li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: #C9D6EA; }
.hero__trust svg { width: 16px; height: 16px; flex: none; color: var(--color-green-bright); }
.badge-ok { flex: none; white-space: nowrap; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; color: #052e16; background: var(--color-green-bright); }
.hero__list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #E6EEFB; font-size: 0.95rem; }
.hero__list li svg { width: 20px; height: 20px; flex: none; color: var(--color-green-bright); margin-top: 2px; }
.hero__mini { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero__mini-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; font-size: 0.8rem; color: #AFC1DD; }
.hero__mini-head strong { color: var(--color-green-bright); font-size: 0.85rem; }
.hero__mini-bars, .hero__mini-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hero__mini-bars { height: 92px; align-items: end; background: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 33.333%; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.hero__mini-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero__mini-col i { display: block; width: 100%; max-width: 28px; height: var(--h); border-radius: 6px 6px 2px 2px; background: #4D6B9E; transform-origin: bottom; transform: scaleY(0); animation: hfx-grow 0.8s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 0.08s + 0.4s) forwards; }
.hero__mini-col.is-current i { background: var(--color-green-bright); }
.hero__mini-tag { position: absolute; bottom: calc(var(--h) + 8px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--color-navy); font-size: 0.75rem; font-weight: 800; white-space: nowrap; opacity: 0; animation: hfx-fade 0.4s ease 1.3s forwards; }
.hero__mini-months { margin-top: 0.45rem; font-size: 0.75rem; color: #8FA0BA; text-align: center; }
.hero__bars-label { margin-top: 0.5rem; font-size: 0.76rem; color: #AFC1DD; }

/* ===== 8. Destaques ===== */
.highlights { position: relative; z-index: 2; margin-top: -3.4rem; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.highlight { padding: 1.3rem; }
.highlight .icon-box { width: 44px; height: 44px; margin-bottom: 0.8rem; }
.highlight .icon-box svg { width: 22px; height: 22px; }
.highlight h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.highlight p { margin: 0; font-size: 0.92rem; }

/* ===== 9. Quem somos ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-3) 0; }
.stat { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.1rem; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1; color: var(--color-navy); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; }
.signature { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3); }
.signature__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
}
.signature strong { display: block; color: var(--color-navy); font-size: 1.05rem; }
.signature span { font-size: 0.9rem; color: var(--color-text-muted); }
.about-visual {
  position: relative; border-radius: var(--radius-lg); padding: var(--space-4); color: #fff; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(47, 111, 209, 0.5), transparent 60%), linear-gradient(160deg, var(--color-navy), var(--color-navy-deep));
  box-shadow: var(--shadow-md);
}
.about-visual h3 { color: #fff; font-size: 1.4rem; }
.about-visual p { color: #C9D6EA; }
.about-visual .checklist li { color: #E6EEFB; }
.about-visual .checklist li::before { background-color: rgba(74, 222, 128, 0.18); }

/* ===== 10. Seção escura (inovação) ===== */
.section--dark {
  color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 0% 0%, rgba(47, 111, 209, 0.35), transparent 60%), linear-gradient(170deg, var(--color-navy-dark), var(--color-navy-deep));
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #BFCDE3; }
.section--dark .eyebrow { color: var(--color-green-bright); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.tile-dark {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-md); padding: var(--space-3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tile-dark:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.tile-dark .icon-box { background: rgba(74, 222, 128, 0.15); color: var(--color-green-bright); }
.comm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.comm-grid .tile-dark { padding: 1.3rem; }
.comm-grid h3 { font-size: 1rem; }
.comm-grid p { font-size: 0.9rem; margin: 0; }
.sub-title { color: #fff; font-size: 1.25rem; margin: var(--space-4) 0 var(--space-3); text-align: center; }

/* ===== 11. Sob medida (passos) ===== */
.steps { counter-reset: step; display: grid; gap: var(--space-2); }
.step { position: relative; display: flex; gap: var(--space-2); padding: 1.2rem 1.3rem; }
.step::before {
  counter-increment: step; content: counter(step); flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--color-green), #16a34a);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* ===== 12. Missão, visão e valores ===== */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.value { padding: 1.2rem; }
.value h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.value p { margin: 0; font-size: 0.92rem; }

/* ===== 13. Serviços (cards) ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.service-card { display: flex; flex-direction: column; }
.service-card p { flex: 1; }
.service-card .link-arrow { font-size: 0.92rem; }

/* ===== 14. Segmentos ===== */
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.segment { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; }
.segment .icon-box { width: 46px; height: 46px; margin: 0; }
.segment .icon-box svg { width: 22px; height: 22px; }
.segment h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.segment p { margin: 0; font-size: 0.9rem; }

/* ===== 15. Por que escolher + parceria ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.why { display: flex; gap: 1rem; align-items: flex-start; }
.why .icon-box { margin: 0; width: 46px; height: 46px; }
.why .icon-box svg { width: 22px; height: 22px; }
.why h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.why p { margin: 0; font-size: 0.92rem; }
.partner {
  margin-top: var(--space-5); display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid #cfe7d6;
  background: linear-gradient(120deg, var(--color-green-soft), #f4fbf6 60%, #fff);
}
.partner__text { max-width: 46rem; }
.partner__text h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.partner__text p { margin: 0 0 0.4rem; }
.partner .icon-box { background: var(--color-green); }

/* ===== 16. Abas (como funciona) ===== */
.tabs__list { display: inline-flex; gap: 0.4rem; padding: 0.4rem; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px; margin: 0 auto var(--space-4); }
.tabs { text-align: center; }
.tabs__btn {
  border: 0; background: transparent; cursor: pointer; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 700; color: var(--color-text-muted); transition: background 0.18s ease, color 0.18s ease;
}
.tabs__btn[aria-selected="true"] { background: var(--color-navy); color: #fff; box-shadow: var(--shadow-sm); }
.tabs__panel { text-align: left; }
.tabs__panel[hidden] { display: none; }
.tabs__intro { max-width: 44rem; margin: 0 auto var(--space-3); text-align: center; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); counter-reset: flow; }
.flow__item { position: relative; padding-top: 3.2rem; }
.flow__item::before {
  counter-increment: flow; content: counter(flow); position: absolute; top: 1.1rem; left: var(--space-3);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff; background: var(--color-navy);
}
.flow__item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.flow__item p { margin: 0; font-size: 0.92rem; }

/* ===== 17. FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: border-color 0.2s ease; }
.faq__item[open] { border-color: #b9cdee; box-shadow: var(--shadow-md); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 1.1rem 1.3rem; font-weight: 700; color: var(--color-navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; color: var(--color-green); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* ===== 18. CTA ===== */
.cta-banner {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-3);
  background: radial-gradient(520px 260px at 100% 0%, rgba(74, 222, 128, 0.28), transparent 60%), radial-gradient(520px 260px at 0% 100%, rgba(47, 111, 209, 0.45), transparent 60%), linear-gradient(160deg, var(--color-navy), var(--color-navy-deep));
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; max-width: 40rem; margin: 0 auto var(--space-1); }
.cta-banner p { color: #C9D6EA; max-width: 38rem; margin: 0 auto var(--space-3); }
.cta-banner .hero__actions { justify-content: center; margin-top: 0; }

/* ===== 19. Cabeçalho de página interna ===== */
.page-header {
  position: relative; overflow: hidden; text-align: center; color: #fff; padding: var(--space-6) 0 calc(var(--space-6) - 0.5rem);
  background: radial-gradient(700px 320px at 85% -10%, rgba(47, 111, 209, 0.45), transparent 60%), radial-gradient(560px 300px at 0% 120%, rgba(22, 163, 74, 0.25), transparent 60%), linear-gradient(165deg, var(--color-navy), var(--color-navy-deep));
}
.page-header .eyebrow { color: var(--color-green-bright); }
.page-header .rank-math-breadcrumb { font-size: 0.85rem; color: #8FA0BA; margin-bottom: var(--space-2); }
.page-header .rank-math-breadcrumb p { margin: 0; font-size: inherit; color: inherit; max-width: none; }
.page-header .rank-math-breadcrumb a { color: #C9D6EA; text-decoration: none; }
.page-header .rank-math-breadcrumb a:hover { color: var(--color-green-bright); }
.page-header .rank-math-breadcrumb .separator { margin: 0 0.4em; opacity: 0.6; }
.page-header h1 { color: #fff; max-width: 46rem; margin-left: auto; margin-right: auto; }
.page-header p { max-width: 40rem; margin: 0 auto; color: #C9D6EA; font-size: 1.1rem; }

/* ===== 20. Página de serviços ===== */
.services-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--space-5); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 0.2rem; }
.toc__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.toc a { padding: 0.55rem 0.9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; color: var(--color-navy); border-left: 3px solid transparent; }
.toc a:hover, .toc a.is-active { background: var(--color-bg-alt); border-left-color: var(--color-green); }
.services-detail { display: grid; gap: var(--space-3); }
.service-detail { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); padding: var(--space-4); }
.service-detail .icon-box { margin: 0; }
.service-detail h2 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.service-detail__lead { color: var(--color-navy); font-weight: 600; margin-bottom: var(--space-2); }
.service-detail .checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-3); margin-bottom: var(--space-2); }

/* ===== 21. Atuação especializada ===== */
.callout {
  display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-md);
  background: var(--color-blue-soft); border: 1px solid #cfdef6;
}
.callout .icon-box { margin: 0; width: 46px; height: 46px; }
.callout .icon-box svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.callout p { margin: 0; }
.special-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.special-card h3 { font-size: 1.2rem; }
.special-card .checklist { margin-top: var(--space-2); }
.special-card .checklist strong { color: var(--color-navy); }
.table-wrap { overflow-x: auto; margin-top: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table th { background: var(--color-bg-alt); color: var(--color-navy); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; color: var(--color-navy); white-space: nowrap; }

/* ===== 22. Contato ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; }
.contact-info__item { display: flex; gap: var(--space-2); padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.contact-info__item:last-of-type { border-bottom: 0; }
.contact-info__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-blue-soft); color: var(--color-navy); }
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__item strong { display: block; color: var(--color-navy); }
.contact-info__item p, .contact-info__item a { margin: 0; color: var(--color-text-muted); }
.contact-info__item a:hover { color: var(--color-green); }
.contact-lead { font-size: 1.05rem; }
.contact-cta { margin: 0 0 var(--space-4); }
.free-badge { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.5rem 1rem; border-radius: 999px; background: var(--color-green-soft); color: var(--color-green-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: var(--space-3); }
.free-badge svg { width: 18px; height: 18px; }
.form-card { padding: var(--space-4); box-shadow: var(--shadow-md); }
.form-field { margin-bottom: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-2); }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--color-navy); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff; color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(47, 111, 209, 0.25); }
.form-field small.error { color: #B91C1C; display: none; font-size: 0.82rem; margin-top: 0.25rem; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #DC2626; }
.form-field.has-error small.error { display: block; }
.form-status { margin: var(--space-2) 0 0; font-weight: 600; }
.form-privacy { margin: var(--space-2) 0 0; font-size: 0.82rem; color: var(--color-text-muted); text-align: center; }
.form-status--success { color: var(--color-green-dark); }

/* ===== 23. Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.post-card { padding: 0; overflow: hidden; display: block; }
.post-card__image { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--color-blue-soft), var(--color-green-soft)); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 0.85rem; }
.post-card__image svg { width: 56px; height: 56px; opacity: 0.45; }
.post-card__body { padding: var(--space-3); }
.post-card__meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin-top: var(--space-4); font-size: 1.6rem; }
.post-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-3) 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
.post-table th, .post-table td { min-width: 7.5rem; padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.post-table th { background: var(--color-bg-alt); color: var(--color-navy); font-weight: 700; }
.post-table tr:last-child td { border-bottom: 0; }
.post-content p:empty { display: none; }
.post-author { margin-top: var(--space-4); padding: 1.1rem 1.3rem; background: var(--color-bg-alt); border-left: 4px solid var(--color-green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-author p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.post-author p:last-child { margin-bottom: 0; }

/* ===== 24. Rodapé ===== */
.site-footer { background: var(--color-navy-deep); color: #B6C4DB; padding: var(--space-6) 0 var(--space-3); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-green-bright); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 1.1fr; gap: var(--space-4); }
.footer-grid h2 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-2); letter-spacing: 0; }
.footer-grid ul li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-brand p { color: #8FA0BA; font-size: 0.92rem; }
.footer-logo { display: inline-block; margin-bottom: var(--space-2); }
.footer-logo img { height: 32px; width: auto; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-top: 0.4rem; }
.footer-bottom { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; text-align: center; color: #8FA0BA; line-height: 1.7; }

/* ===== 25. WhatsApp flutuante ===== */
.cookie-bar {
  position: fixed; left: var(--space-3); bottom: var(--space-3); z-index: 59; max-width: 410px;
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.9rem 0.85rem 1.1rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: cookie-in 0.35s ease 0.6s both;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--color-text); }
.cookie-bar a { color: var(--color-navy); font-weight: 700; text-decoration: underline; }
.cookie-bar__actions { flex: none; display: flex; gap: 0.5rem; }
.cookie-bar__btn { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.88rem; box-shadow: none; }
.footer-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.whatsapp-float {
  position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 60; display: flex; align-items: center; gap: var(--space-1);
  background: var(--color-green); color: #fff; padding: 0.8rem 1.2rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(15, 122, 56, 0.45); font-weight: 700; font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.whatsapp-float:hover { background: var(--color-green-dark); color: #fff; transform: translateY(-2px); }
.whatsapp-float svg { width: 22px; height: 22px; }

/* ===== 25b. Conteúdo do editor, paginação e admin bar ===== */
.prose h2 { font-size: 1.6rem; margin-top: var(--space-4); }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-3); }
.prose ul, .prose ol { margin: 0 0 var(--space-2); padding-left: 1.3rem; color: var(--color-text-muted); }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--color-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--radius-md); }
.prose blockquote { margin: var(--space-3) 0; padding: 0.5rem 1.2rem; border-left: 4px solid var(--color-green); background: var(--color-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.pagination { margin-top: var(--space-4); }
.pagination .nav-links { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 0.5rem 0.95rem; border: 1px solid var(--color-border); border-radius: 999px; font-weight: 600; color: var(--color-navy); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ===== 26. Animação de entrada ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .tile-dark, .site-nav { transition: none; }
  .hero__fx *, .hero__fx { animation: none !important; }
  .hero__chart-line { stroke-dashoffset: 0; }
  .hero__chart-area, .hero__calc { opacity: 0.6; }
  .hero__cols i { transform: none; }
  .hero__shine { display: none; }
  .cookie-bar { animation: none; }
  .hero__mini-col i, .hero__mini-tag { animation: none; transform: none; opacity: 1; }
  .hero__mini-tag { transform: translateX(-50%); }
}

/* ===== 27. Responsivo ===== */
@media (max-width: 1100px) {
  .comm-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: calc(var(--space-6) + 3.5rem); }
  .services-grid, .segments-grid, .why-grid, .post-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .services-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .toc__title { width: 100%; }
  .toc a { border: 1px solid var(--color-border); border-radius: 999px; padding: 0.4rem 0.9rem; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .special-grid, .tech-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-footer { padding-bottom: 5.5rem; } /* espaço para o botão flutuante não cobrir o copyright */
}
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .services-grid, .segments-grid, .why-grid, .post-grid, .values, .pillars, .comm-grid, .highlights__grid, .flow, .stats, .form-row { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; padding: var(--space-3); }
  .service-detail .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__calc, .hero__sym:nth-of-type(n+5) { display: none; }
  .hero__cols { width: 70%; height: 30%; opacity: 0.4; }
  .hero__chart { height: 40%; }
  .hero__actions .btn--ghost { width: auto; }
  .tabs__list { display: flex; flex-direction: column; border-radius: var(--radius-md); width: 100%; }
  .tabs__btn { border-radius: var(--radius-sm); }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 0.9rem; }
  .signature { flex-direction: column; text-align: center; }
  .table td:first-child { white-space: normal; }

  /* Cards compactos no celular: ícone à esquerda e texto à direita (página bem mais curta). */
  .service-card, .highlight, .tile-dark { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 1.1rem; }
  .service-card > .icon-box, .highlight > .icon-box, .tile-dark > .icon-box { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .service-card > .icon-box svg, .highlight > .icon-box svg, .tile-dark > .icon-box svg { width: 22px; height: 22px; }
  .service-card > :not(.icon-box), .highlight > :not(.icon-box), .tile-dark > :not(.icon-box) { grid-column: 2; }
  .service-card h3, .tile-dark h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
  .service-card p, .tile-dark p { margin-bottom: 0.2rem; font-size: 0.95rem; }
  .service-card .link-arrow { min-height: 40px; }
  .services-grid, .highlights__grid, .tech-grid, .comm-grid { gap: 0.75rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat strong { font-size: 1.6rem; }
  .hero__panel { padding: 1.1rem; }
  .hero__panel-head strong { font-size: 0.95rem; }
  .hero__list li { padding: 0.55rem 0; font-size: 0.9rem; }
  .hero__trust { flex-direction: column; gap: 0.45rem; }
  .footer-grid ul li a { display: inline-block; padding: 0.35rem 0; }
  .footer-col--nav { display: none; } /* o menu já está no topo */
  .flow__item { padding: 1rem 1rem 1rem 3.6rem; }
  .flow__item::before { top: 1rem; left: 1rem; }
  .highlights + .section { padding-top: 2.5rem; }
  .contact-cta { width: 100%; }
  .cookie-bar { left: 12px; right: 12px; bottom: 84px; max-width: none; flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.8rem 0.9rem; }
  .cookie-bar p { font-size: 0.8rem; }
  .cookie-bar__btn { flex: 1; padding: 0.5rem 0.85rem; }
}
