/* ============================================================
   COUTAX — sistema compartilhado
   Accounting · Tax · Advisory · Capital
   Carregado depois do <style> inline das páginas legadas:
   com a mesma especificidade, o que está aqui prevalece.
   ============================================================ */

:root {
  --bg:        #F7F4EC;
  --bg-alt:    #EFEAE0;
  --bg-paper:  #FBF9F4;
  --ink:       #0A0A0A;
  --ink-soft:  #2C2A26;
  --ink-mute:  #6B655B;
  --ink-faint: #9A938A;
  --line:        rgba(10,10,10,0.08);
  --line-strong: rgba(10,10,10,0.16);

  --gold:        #8B6F2E;    /* display: itálicos grandes, filetes, marcadores */
  --gold-text:   #755D26;    /* rótulos e textos pequenos — 5.0:1 sobre o creme */
  --gold-warm:   #B8924A;
  --gold-bright: #D4B27A;
  --gold-glow:   rgba(184,146,74,0.16);

  --night:   #0A0A0A;
  --night-2: #14130F;

  --serif: 'Newsreader', 'Tiempos Headline', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 86px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold-warm); color: #fff; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 14px 20px; border-radius: 0 0 12px 0;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.no-rule::before { display: none; }

.section-h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.section-h .ital { font-style: italic; font-weight: 300; color: var(--gold); }

.lead {
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}
.lead strong { font-weight: 500; color: var(--ink); }

/* ============================================================
   HEADER — liquid glass full-bleed
   ============================================================ */
.nav-shell {
  position: fixed; top: 0; left: 0;
  width: 100%; max-width: none;
  z-index: 120;
  border-radius: 0 0 24px 24px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(251,249,244,0.55) 0%, rgba(247,244,236,0.38) 100%);
  backdrop-filter: blur(28px) saturate(220%) brightness(1.04) contrast(1.02);
  -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.04) contrast(1.02);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 -8px 24px rgba(184,146,74,0.04) inset,
    0 0 0 0.5px rgba(10,10,10,0.06),
    0 8px 20px rgba(10,10,10,0.06),
    0 24px 60px rgba(10,10,10,0.10);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.nav-shell::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 18%),
    linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 35%);
  mix-blend-mode: screen; opacity: 0.95; z-index: 1;
}
.nav-shell::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 88%, rgba(184,146,74,0.18) 99%, transparent 100%);
  z-index: 2;
}
.nav-shell.scrolled {
  background: linear-gradient(180deg, rgba(251,249,244,0.78) 0%, rgba(247,244,236,0.6) 100%);
  backdrop-filter: blur(36px) saturate(240%) brightness(1.03);
  -webkit-backdrop-filter: blur(36px) saturate(240%) brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 0 1px rgba(255,255,255,0.7) inset,
    0 12px 32px rgba(10,10,10,0.10),
    0 32px 80px rgba(10,10,10,0.12);
}
.nav-inner {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 2.4vw, 40px);
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand picture { display: block; }
.brand img {
  height: 62px; width: auto; display: block; max-height: 62px;
  filter: drop-shadow(0 1px 2px rgba(10,10,10,0.08));
}
@media (max-width: 720px) { .brand img { height: 46px; max-height: 46px; } }

/* --- navegação desktop, com submenus --- */
.nav-links {
  display: flex; gap: 2px; align-items: center;
  padding: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.15));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 2px rgba(10,10,10,0.03);
  backdrop-filter: blur(8px);
  list-style: none; margin: 0;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-links .nav-top {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500;
  font-family: var(--sans);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  padding: 9px 15px;
  border-radius: 11px;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links .nav-top:hover,
.nav-links li:hover > .nav-top,
.nav-links li:focus-within > .nav-top {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 6px rgba(10,10,10,0.06);
}
.nav-links .nav-top svg { transition: transform 0.25s var(--ease-out); opacity: 0.55; }
.nav-links li:hover > .nav-top svg,
.nav-links li:focus-within > .nav-top svg { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: calc(100% + 12px); left: -8px;
  min-width: 320px;
  padding: 10px;
  list-style: none; margin: 0;
  background: linear-gradient(180deg, rgba(251,249,244,0.97), rgba(247,244,236,0.94));
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 0.5px rgba(10,10,10,0.07),
    0 18px 44px rgba(10,10,10,0.14),
    0 40px 100px rgba(10,10,10,0.10);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}
.nav-links li:hover > .nav-sub,
.nav-links li:focus-within > .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-sub a {
  display: block; width: 100%;
  padding: 11px 14px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  border-radius: 11px;
  white-space: normal;
}
.nav-sub a .sub-desc {
  display: block;
  font-family: var(--mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.nav-sub a:hover { background: rgba(10,10,10,0.045); box-shadow: none; }
.nav-sub a:hover .sub-desc { color: var(--gold-text); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* portal do cliente — ainda não existe, então é rótulo, não link */
.btn-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--ink); padding: 9px 14px 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.65));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 0.5px rgba(10,10,10,0.06),
    0 2px 6px rgba(10,10,10,0.05),
    0 8px 16px rgba(10,10,10,0.04);
  cursor: default;
}
.btn-soon .soon-pill {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 1px 4px rgba(184,146,74,0.45);
}
@media (max-width: 900px) { .btn-soon { display: none; } }
.btn-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(180deg, #2a2823 0%, var(--ink) 100%);
  color: var(--bg);
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 2px 4px rgba(10,10,10,0.18),
    0 8px 20px rgba(10,10,10,0.22);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn-pill::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
}
.btn-pill:hover {
  background: linear-gradient(180deg, #36332c 0%, #050505 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(10,10,10,0.24), 0 12px 28px rgba(10,10,10,0.28), 0 24px 56px rgba(184,146,74,0.18);
}
.btn-pill svg { transition: transform 0.3s var(--ease-out); position: relative; z-index: 1; }
.btn-pill:hover svg { transform: translateX(2px); }

/* --- botão do menu mobile --- */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.65));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 6px rgba(10,10,10,0.05);
}
.nav-burger span {
  display: block; position: relative;
  width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top: 6px; }
.nav-burger[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
.nav-burger[aria-expanded="true"] span::after  { opacity: 0; }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
.btn-pill span.short { display: none; }
@media (max-width: 560px) {
  .btn-pill span.full { display: none; }
  .btn-pill span.short { display: inline; }
}

/* --- drawer mobile --- */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 115;
  background: linear-gradient(180deg, rgba(247,244,236,0.98), rgba(239,234,224,0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--nav-h) + 16px) 22px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  overscroll-behavior: contain;
}
.nav-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
body.drawer-open { overflow: hidden; }

.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-group > a,
.drawer-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 20px 2px;
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; letter-spacing: -0.02em;
  color: var(--ink); text-align: left;
}
.drawer-toggle svg { transition: transform 0.3s var(--ease-out); color: var(--gold); flex-shrink: 0; }
.drawer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out);
}
.drawer-panel > div { overflow: hidden; }
.drawer-toggle[aria-expanded="true"] + .drawer-panel { grid-template-rows: 1fr; }
.drawer-panel ul { list-style: none; margin: 0; padding: 0 0 18px; }
.drawer-panel a {
  display: block;
  padding: 12px 0 12px 18px;
  border-left: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 450; color: var(--ink-soft);
}
.drawer-panel a:hover, .drawer-panel a:focus-visible { color: var(--gold-text); border-left-color: var(--gold); }
.drawer-foot {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer-foot .btn-pill { justify-content: center; padding: 16px 24px; font-size: 15px; }
.drawer-foot .drawer-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  line-height: 1.8;
}

/* ============================================================
   BOTÕES / LINKS DE AÇÃO
   ============================================================ */
.cta-solid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.cta-solid:hover { background: var(--gold); transform: translateY(-1px); }
.cta-solid svg { transition: transform 0.25s var(--ease-out); }
.cta-solid:hover svg { transform: translateX(3px); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s;
}
.cta-ghost:hover { background: rgba(10,10,10,0.04); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text);
}
.link-arrow svg { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--night);
  color: rgba(255,255,255,0.55);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(184,146,74,0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 460px)  { .footer-grid { grid-template-columns: 1fr; } }
.foot-brand { grid-column: span 1; }
@media (max-width: 1080px) { .foot-brand { grid-column: 1 / -1; } }
.foot-brand picture { display: block; }
.foot-brand img {
  height: 120px; width: auto; max-width: 100%;
  margin-bottom: 20px; display: block;
}
@media (max-width: 720px) { .foot-brand picture { display: block; }
.foot-brand img { height: 96px; } }
.foot-brand .foot-terr {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 14px;
}
.foot-brand p {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.65; max-width: 340px; margin: 0;
}
.foot-col h3 {
  font-family: var(--mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold-bright);
  font-weight: 500; margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 13.5px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.foot-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.62);
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cap-flow-track { animation: none !important; }
}
