/* ══════════════════════════════════════════════════════════════════
   AF ASSESSORIA CONTÁBIL — edição editorial
   Paleta “private bank”:
     tinta      #0A1622   (quase-preto azulado, profundidade)
     petróleo   #102B3F   (superfícies escuras)
     champanhe  #C3A572   (ouro sóbrio — nunca amarelo)
     champanhe+ #E2CDA4   (realce)
     marfim     #F5F1E8   (papel quente, nada de branco estéril)
   Tipografia: Playfair Display (display/serif) · Inter (apoio)
   ══════════════════════════════════════════════════════════════════ */
:root {
  --ink: #0a1622;
  --ink-2: #0e2233;
  --petrol: #102b3f;
  --gold: #c3a572;
  --gold-hi: #e2cda4;
  --gold-dim: rgba(195, 165, 114, 0.35);
  --ivory: #f5f1e8;
  --ivory-2: #ede7d9;
  --txt-d: #1a2733;          /* texto sobre marfim */
  --txt-soft: #5b6a76;
  --txt-l: #c9d4dc;          /* texto sobre tinta */
  --hair-d: rgba(10, 22, 34, 0.14);
  --hair-l: rgba(226, 205, 164, 0.18);
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--ink);
  color: var(--txt-l);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.only-d { display: inline; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }

::selection { background: var(--gold); color: var(--ink); }

/* ── grão de filme (textura premium) ── */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) }
  40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-2%) } 80% { transform: translate(3%,3%) }
}

/* ── cursor customizado (desktop fino) ── */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; z-index: 300; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-hi); pointer-events: none; transform: translate(-50%, -50%); transition: opacity .3s; }
  .cursor-ring { display: block; position: fixed; z-index: 299; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--gold-dim); pointer-events: none; transform: translate(-50%, -50%);
    transition: width .3s var(--ease), height .3s var(--ease), border-color .3s; }
  .cursor-ring.on { width: 58px; height: 58px; border-color: var(--gold); }
}

/* ── preloader ── */
.loader {
  position: fixed; inset: 0; z-index: 400; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease) 0.1s;
}
.loader.done { transform: translateY(-100%); }
.loader-mark { text-align: center; }
.loader-mark .lm-a, .loader-mark .lm-f {
  font-family: "Playfair Display", serif; font-size: clamp(3.4rem, 9vw, 6rem); color: var(--gold-hi);
  display: inline-block; opacity: 0; transform: translateY(40px); animation: lmIn 0.8s var(--ease) forwards;
}
.loader-mark .lm-f { animation-delay: 0.14s; color: var(--gold); }
@keyframes lmIn { to { opacity: 1; transform: none; } }
.lm-rule { display: block; height: 1px; background: var(--gold-dim); margin: 14px auto 12px; width: 0; animation: lmRule 0.7s var(--ease) 0.5s forwards; }
@keyframes lmRule { to { width: min(240px, 60vw); } }
.loader-mark em {
  font-family: "Inter", sans-serif; font-style: normal; font-size: 0.72rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--txt-l); opacity: 0; animation: lmFade 0.6s ease 0.75s forwards;
}
@keyframes lmFade { to { opacity: 0.8; } }
body.loading { overflow: hidden; }

/* ── revelações no scroll ── */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
/* delays em cascata dentro de grupos */
.deps-grid .dep:nth-child(2), .firma-stats .fs:nth-child(2) { transition-delay: 0.12s; }
.deps-grid .dep:nth-child(3), .firma-stats .fs:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .ln span, .tl { opacity: 1 !important; transform: none !important; transition: none !important; }
  .grain, .ticker-track, .hero-more svg { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ══ HEADER ══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, transform .45s var(--ease);
}
.header.solid { padding: 14px 0; background: rgba(10, 22, 34, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair-l); }
.header.hide { transform: translateY(-110%); }
.header-in { display: flex; align-items: center; gap: 34px; }

.wordmark { display: inline-flex; align-items: baseline; gap: 12px; }
.wm-mono { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 600; color: var(--gold-hi); letter-spacing: 0.04em; }
.wm-sep { width: 1px; height: 18px; background: var(--gold-dim); align-self: center; }
.wm-name { font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--txt-l); font-weight: 500; }
.wordmark.dim .wm-mono { color: var(--gold); }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--txt-l);
  padding: 8px 14px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 100%; bottom: 4px; height: 1px;
  background: var(--gold); transition: right .35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 14px; }

/* o ÚNICO botão de contato — discreto e nobre */
.btn-contact {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-hi); border: 1px solid var(--gold-dim); padding: 12px 26px; border-radius: 100px;
  position: relative; overflow: hidden; transition: color .35s var(--ease), border-color .35s;
}
.btn-contact::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; border-radius: inherit;
}
.btn-contact:hover { color: var(--ink); border-color: var(--gold); }
.btn-contact:hover::before { transform: none; }

.burger { display: none; }

/* menu mobile */
.mnav {
  position: fixed; inset: 0; z-index: 95; background: rgba(10, 22, 34, 0.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav a { font-family: "Playfair Display", serif; font-size: 1.7rem; color: var(--ivory); padding: 12px; opacity: 0; transform: translateY(16px); transition: .45s var(--ease); }
.mnav.open a { opacity: 1; transform: none; }
.mnav.open a:nth-child(2) { transition-delay: .06s } .mnav.open a:nth-child(3) { transition-delay: .12s }
.mnav.open a:nth-child(4) { transition-delay: .18s } .mnav.open a:nth-child(5) { transition-delay: .24s }
.mnav-cta { color: var(--gold-hi) !important; border-bottom: 1px solid var(--gold-dim); }

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(1000px 540px at 85% -10%, rgba(195, 165, 114, 0.10), transparent 60%),
    radial-gradient(700px 700px at -10% 110%, rgba(16, 43, 63, 0.9), transparent 60%),
    linear-gradient(168deg, #0c1c2b 0%, var(--ink) 60%, #081119 100%);
  overflow: hidden; padding: 140px 0 90px;
}
/* monograma ornamental gigante (parallax) — nada de PNG com fundo branco */
.hero-orn {
  position: absolute; right: -4%; top: 50%; translate: 0 -50%; z-index: 0;
  font-family: "Playfair Display", serif; font-size: clamp(20rem, 42vw, 44rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(195, 165, 114, 0.16);
  user-select: none; will-change: transform;
}
.hero-in { position: relative; z-index: 2; width: 100%; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 34px; }
.eyebrow i { display: block; width: 44px; height: 1px; background: var(--gold-dim); }

.display { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.06; color: var(--ivory); letter-spacing: -0.01em; }
.display .it { font-style: italic; color: var(--gold-hi); font-weight: 400; }
/* máscara linha a linha */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ln span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); }
.ln.go span { transform: none; }
.ln:nth-child(2) span { transition-delay: .12s } .ln:nth-child(3) span { transition-delay: .24s }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-sub { max-width: 560px; color: var(--txt-l); font-size: 1.04rem; font-weight: 300; }
.hero-more { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-more svg { animation: drift 2.2s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0) } 50% { transform: translateY(7px) } }
/* fade tardio dos apoios */
.tl { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.tl.go { opacity: 1; transform: none; }

/* ══ TICKER ══ */
.ticker { border-top: 1px solid var(--hair-l); border-bottom: 1px solid var(--hair-l); background: rgba(226, 205, 164, 0.03); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: tick 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: "Playfair Display", serif; font-style: italic; font-size: 1.02rem; color: rgba(226, 205, 164, 0.75); white-space: nowrap; }
.ticker-track i { color: var(--gold-dim); font-style: normal; font-size: 0.7rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── marcador de seção ── */
.sec-mark { display: flex; align-items: center; gap: 16px; font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--txt-soft); margin-bottom: clamp(40px, 6vw, 64px); }
.sec-mark span:first-child { font-family: "Playfair Display", serif; font-style: italic; font-size: 1rem; letter-spacing: 0.06em; color: var(--gold); }
.sec-mark i { flex: 0 0 56px; height: 1px; background: var(--hair-d); }
.sec-mark.light i, .sec-mark.ivory i { background: var(--hair-l); }
.sec-mark.light, .sec-mark.ivory { color: rgba(201, 212, 220, 0.55); }

/* ══ A FIRMA (marfim) ══ */
.firma { background: var(--ivory); color: var(--txt-d); padding: clamp(90px, 12vw, 150px) 0; }
.firma-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(44px, 7vw, 100px); align-items: start; }
.firma-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.22; color: var(--ink); margin-bottom: 30px; }
.firma-copy h2 em { color: #97753f; }
.firma-copy p { color: var(--txt-soft); margin-bottom: 18px; max-width: 60ch; }
.line-link { display: inline-block; margin-top: 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); padding-bottom: 7px; position: relative; }
.line-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform-origin: right; transition: transform .4s var(--ease); }
.line-link:hover::after { transform: scaleX(0.35); transform-origin: left; }

/* logo sobre marfim — multiply DISSOLVE o fundo branco do PNG */
.firma-plate { background: var(--ivory-2); border: 1px solid var(--hair-d); border-radius: 4px; padding: clamp(22px, 3vw, 38px); }
.firma-plate img { mix-blend-mode: multiply; filter: contrast(1.04); }

.firma-stats { margin-top: 38px; display: flex; flex-direction: column; }
.fs { display: flex; align-items: baseline; gap: 18px; padding: 20px 2px; border-top: 1px solid var(--hair-d); }
.fs:last-child { border-bottom: 1px solid var(--hair-d); }
.fs dt { font-family: "Playfair Display", serif; font-size: 2.6rem; color: var(--ink); min-width: 86px; font-weight: 500; }
.fs dd { color: var(--txt-soft); font-size: 0.9rem; }

/* ══ SERVIÇOS (tinta, lista editorial) ══ */
.servicos { background: var(--ink); padding: clamp(90px, 12vw, 150px) 0; }
.serv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 54px; flex-wrap: wrap; }
.serv-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); color: var(--ivory); line-height: 1.14; }
.serv-head h2 em { color: var(--gold-hi); }
.serv-head p { max-width: 380px; color: var(--txt-soft); font-size: 0.94rem; }

.serv-list { border-top: 1px solid var(--hair-l); }
.srow { border-bottom: 1px solid var(--hair-l); }
.srow-btn {
  width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit; color: inherit;
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 22px;
  padding: 26px 6px; text-align: left; position: relative; overflow: hidden;
}
.srow-btn::before { content: ""; position: absolute; inset: 0; background: rgba(226, 205, 164, 0.045); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.srow-btn:hover::before { transform: none; }
.srow-n { font-family: "Playfair Display", serif; font-style: italic; color: var(--gold); font-size: 1.02rem; position: relative; }
.srow-t { font-family: "Playfair Display", serif; font-size: clamp(1.2rem, 2.3vw, 1.7rem); color: var(--ivory); transition: color .3s, transform .35s var(--ease); position: relative; }
.srow-btn:hover .srow-t { color: var(--gold-hi); transform: translateX(10px); }
.srow-x { position: relative; width: 30px; height: 30px; flex: 0 0 auto; }
.srow-x::before, .srow-x::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transition: transform .4s var(--ease); }
.srow-x::before { width: 16px; height: 1px; transform: translate(-50%, -50%); }
.srow-x::after { width: 1px; height: 16px; transform: translate(-50%, -50%); }
.srow.open .srow-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.srow-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.srow-body p { padding: 0 6px 30px 96px; max-width: 74ch; color: var(--txt-l); font-weight: 300; font-size: 0.98rem; }

/* ══ PÓDIO (fundadora) ══ */
.podio {
  position: relative; background: linear-gradient(160deg, var(--petrol) 0%, var(--ink-2) 70%);
  padding: clamp(100px, 13vw, 170px) 0; overflow: hidden;
}
.podio::before {
  content: "”"; position: absolute; right: 6%; top: -6%; font-family: "Playfair Display", serif;
  font-size: 30rem; color: rgba(195, 165, 114, 0.07); line-height: 1;
}
.podio-in { position: relative; z-index: 1; }
.podio-quote p { font-family: "Playfair Display", serif; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.3; color: var(--ivory); font-weight: 400; }
.podio-quote em { color: var(--gold-hi); }
.podio-quote footer { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.pq-name { font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--gold-hi); }
.pq-role { font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--txt-soft); }
.podio-note { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--hair-l); max-width: 620px; color: var(--txt-l); font-weight: 300; }

/* ══ DEPARTAMENTOS (marfim) ══ */
.deps { background: var(--ivory); color: var(--txt-d); padding: clamp(90px, 12vw, 150px) 0; }
.deps-head { margin-bottom: 54px; }
.deps-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--ink); }
.deps-head h2 em { color: #97753f; }
.deps-head p { color: var(--txt-soft); margin-top: 10px; }
.deps-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dep { padding: 38px 32px 44px; border-left: 1px solid var(--hair-d); position: relative; transition: background .35s var(--ease); }
.dep:last-child { border-right: 1px solid var(--hair-d); }
.dep::after { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--gold); transition: height .45s var(--ease); }
.dep:hover { background: rgba(195, 165, 114, 0.06); }
.dep:hover::after { height: 100%; }
.dep-n { font-family: "Playfair Display", serif; font-style: italic; font-size: 1.15rem; color: var(--gold); }
.dep h3 { font-size: 1.32rem; color: var(--ink); margin: 16px 0 12px; }
.dep p { font-size: 0.92rem; color: var(--txt-soft); min-height: 84px; }
.dep-mail { display: inline-block; margin-top: 16px; font-size: 0.86rem; font-weight: 600; color: #97753f; border-bottom: 1px solid rgba(151, 117, 63, 0.35); padding-bottom: 3px; transition: border-color .25s, color .25s; }
.dep-mail:hover { color: var(--ink); border-color: var(--ink); }

/* ══ CONTATO ══ */
.contato {
  background:
    radial-gradient(900px 480px at 110% 0%, rgba(195, 165, 114, 0.10), transparent 55%),
    var(--ink);
  padding: clamp(100px, 13vw, 170px) 0;
}
.contato-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 100px); align-items: center; }
.contato-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); color: var(--ivory); line-height: 1.16; margin-bottom: 22px; }
.contato-copy h2 em { color: var(--gold-hi); }
.contato-copy p { color: var(--txt-soft); max-width: 46ch; }

.contato-card { border: 1px solid var(--hair-l); border-radius: 4px; background: rgba(226, 205, 164, 0.03); backdrop-filter: blur(4px); }
.cc-row { display: flex; flex-direction: column; gap: 5px; padding: 24px 28px; border-bottom: 1px solid var(--hair-l); transition: background .3s var(--ease), padding-left .3s var(--ease); }
.cc-row:last-child { border-bottom: 0; }
a.cc-row:hover { background: rgba(226, 205, 164, 0.06); padding-left: 36px; }
.cc-k { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.cc-v { font-size: 1.02rem; color: var(--ivory); font-weight: 300; }
.cc-main .cc-v { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--gold-hi); }

/* ══ FOOTER ══ */
.footer { background: #071019; border-top: 1px solid var(--hair-l); padding: 44px 0; }
.footer-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-note { font-size: 0.78rem; color: var(--txt-soft); margin-left: auto; }
.foot-copy { font-size: 0.78rem; color: rgba(91, 106, 118, 0.8); }

/* ══ RESPONSIVO ══ */
@media (max-width: 960px) {
  .firma-grid, .contato-in { grid-template-columns: 1fr; }
  .deps-grid { grid-template-columns: 1fr; }
  .dep { border: 0; border-top: 1px solid var(--hair-d); }
  .dep:last-child { border-right: 0; border-bottom: 1px solid var(--hair-d); }
  .dep::after { width: 0; height: 1px; top: -1px; left: 0; transition: width .45s var(--ease); }
  .dep:hover::after { width: 100%; height: 1px; }
  .dep p { min-height: 0; }
  .hero-orn { opacity: 0.6; }
}
@media (max-width: 760px) {
  .nav, .btn-contact { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 7px; margin-left: auto; background: none; border: 0;
    cursor: pointer; padding: 10px; z-index: 110; position: relative;
  }
  .burger span { width: 30px; height: 1.5px; background: var(--gold-hi); transition: transform .3s var(--ease), opacity .3s; }
  .burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }
  .only-d { display: none; }
  .srow-btn { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .srow-body p { padding-left: 62px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .fs dt { min-width: 70px; font-size: 2.1rem; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-note { margin-left: 0; }
}
