/* Atlanta Contabilidade — papel de segurança */
:root {
  --paper: #edf0f5;
  --paper-hi: #f8f9fb;
  --ink: #101b33;
  --ink-soft: #3b4863;
  --navy: #17306b;
  --navy-deep: #0d1f4a;
  --red: #d3141c;
  --red-deep: #a90f16;
  --silver: #aab3c1;
  --line: rgba(23, 48, 107, .2);
  --line-strong: rgba(23, 48, 107, .55);
  --radius: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--silver) var(--paper); }

.wrap { width: min(1200px, 100% - 2 * max(20px, env(safe-area-inset-left), env(safe-area-inset-right))); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; margin: 0; line-height: 1.08; text-wrap: balance; color: var(--navy-deep); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.85rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  font: 700 1rem/1 var(--text); letter-spacing: .01em; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s var(--ease), color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 18px -8px rgba(211, 20, 28, .65); }
.btn-red:hover { background: var(--red-deep); box-shadow: 0 12px 22px -8px rgba(211, 20, 28, .7); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: #fff; color: var(--red-deep); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.btn-white:hover { background: var(--paper-hi); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 240, 245, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 900 1.3rem/1 var(--display); font-stretch: 118%; color: var(--red); letter-spacing: .01em; text-transform: uppercase; }
.brand-name i { font: 600 .72rem/1 var(--display); font-stretch: 100%; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy-deep); padding: 8px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1.5px solid var(--navy); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.85rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.04; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-addr { display: flex; align-items: center; gap: 10px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line-strong); max-width: 520px; font-size: .95rem; font-weight: 500; color: var(--navy-deep); }
.hero-addr .ico { color: var(--red); }



.wave-band { height: clamp(54px, 5vw, 68px); width: 100%; color: var(--navy); background: var(--paper-hi); border-block: 1px solid var(--line-strong); }
.wave-band canvas { display: block; }

/* Sobre */
.sobre { padding: clamp(64px, 9vw, 130px) 0; }
.sobre-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.certificate { margin: 0; }
.cert-frame { position: relative; padding: 14px; background: var(--paper-hi); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 24px 40px -28px rgba(13, 31, 74, .6); }
.cert-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.cert-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 2px; }
.certificate figcaption { margin-top: 14px; font: 600 .82rem/1.3 var(--display); font-stretch: 90%; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.sobre-copy p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 22px; max-width: 58ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.ticks .ico { margin-top: .22em; padding: 3px; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--navy); color: #fff; }
.signers { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.signers h3 { font-size: .85rem; font-stretch: 90%; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 8px; }
.signers p { margin: 0; font-weight: 600; color: var(--navy-deep); font-size: 1rem; }
.signers span { color: var(--red); padding: 0 .35em; }

/* Serviços */
.servicos { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-hi); border-block: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { margin: 18px 0 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 88px); border-top: 2px solid var(--navy-deep); }
.ledger li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px 0 26px; border-bottom: 1px solid var(--line-strong); }
.ledger h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; }
.ledger p { margin: 8px 0 0; color: var(--ink-soft); max-width: 44ch; }
.more {
  display: inline-flex; align-items: center; gap: .6em; width: fit-content; min-height: 46px; padding: 0 20px;
  font-weight: 700; font-size: .95rem; color: var(--red-deep); text-decoration: none;
  border: 1.5px solid var(--red-deep); border-radius: 999px;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) -160% 0 / 260% 100% no-repeat, transparent;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, box-shadow .35s var(--ease), transform .3s var(--ease), background-position .7s var(--ease);
}
.more .ico { transition: transform .3s var(--ease); }
.more:hover, .more:focus-visible {
  color: #fff; background-color: var(--red); border-color: var(--red);
  background-position: 160% 0, 0 0; transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(211, 20, 28, .75), 0 0 0 4px rgba(211, 20, 28, .14);
}
.more:hover .ico, .more:focus-visible .ico { transform: translateX(5px); }
.more:active { transform: translateY(0); background-color: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 4px 10px -6px rgba(211, 20, 28, .8), 0 0 0 6px rgba(211, 20, 28, .18); transition-duration: .1s; }

/* Assessoria por segmento: filete grosso como o da lista, segmentos separados por filetes verticais */
.segmentos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 2px solid var(--navy-deep); }
.segmentos h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; }
.segmentos-intro p { margin: 8px 0 18px; color: var(--ink-soft); max-width: 44ch; }
.segmentos-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.segmentos-lista li { padding: 6px 24px 8px; border-left: 1px solid var(--line-strong); font: 800 clamp(1.1rem, 1.6vw, 1.3rem)/1.18 var(--display); font-stretch: 112%; color: var(--navy-deep); }
.segmentos-lista li::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 0 16px 2px; background: var(--red); transform: rotate(45deg); }
@media (max-width: 960px) { .segmentos { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .segmentos-lista { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
  .segmentos-lista li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .segmentos-lista li::before { flex: none; margin: 0 2px; }
}

/* Diferenciais */
.diferenciais { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; background: var(--navy); color: #fff; }
.rosette-bg { position: absolute; right: -26%; top: 50%; width: min(980px, 100vw); transform: translateY(-50%); color: #fff; opacity: .11; pointer-events: none; }
.rosette-bg path { fill: none; stroke: currentColor; stroke-width: .7px; vector-effect: non-scaling-stroke; }
.sec-head-light h2 { color: #fff; }
.dif-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.dif-grid article { padding: 30px 28px 10px 0; }
.dif-grid article + article { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.dif-grid h3 { color: #fff; font-size: 1.55rem; font-weight: 800; }
.dif-grid p { margin: 12px 0 0; color: #dbe3f3; }
.dif-line { position: relative; margin: clamp(40px, 6vw, 72px) 0 0; font: 700 .85rem/1.9 var(--display); font-stretch: 90%; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.dif-line span { display: inline-block; width: 7px; height: 7px; margin: 0 .9em .1em; background: var(--red); transform: rotate(45deg); font-size: 0; }

/* Contato */
.contato { padding: clamp(64px, 9vw, 120px) 0; }
.contato-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contato address { font-style: normal; font-size: 1.15rem; line-height: 1.7; margin: 22px 0 26px; color: var(--ink-soft); }
.contato address strong { color: var(--navy-deep); }
.channels { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.channels li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channels .ico { margin-top: 4px; width: 1.4rem; height: 1.4rem; color: var(--red); }
.channels small { display: block; font: 600 .75rem/1.2 var(--display); font-stretch: 90%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.channels a { font-weight: 600; color: var(--navy-deep); overflow-wrap: anywhere; }
.channels .horario { font-weight: 600; color: var(--navy-deep); }
.map { min-height: 380px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px; background: var(--paper-hi); box-shadow: 0 24px 40px -30px rgba(13, 31, 74, .6); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 2px; }

/* Chamada final */
.close { background: var(--red); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.close-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.close h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.5rem); max-width: 22ch; }
.close p { margin: 16px 0 0; max-width: 52ch; font-size: 1.1rem; }

/* Rodapé */
.site-footer { background: var(--navy-deep); color: #cfd8ec; padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { border-radius: 50%; }
.foot p { margin: 0; }
.foot b { color: #fff; font-family: var(--display); font-stretch: 112%; font-size: 1.1rem; }
.foot-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: #9fb0d2; }

/* WhatsApp flutuante */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.fab .ico { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.08); }

/* Movimento: o guilhochê se desenha e gira devagar */
@media (prefers-reduced-motion: no-preference) {
      .js   .js   .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-hi); border-bottom: 1px solid var(--line-strong); padding: 8px 20px 20px;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility 0s .4s;
  }
  .nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .4s var(--ease); }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; }
  .nav-cta { margin-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
    .sobre-grid, .contato-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr 1fr; }
  .dif-grid article, .dif-grid article + article { padding: 26px 20px 20px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .dif-grid article:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .22); }
  .close-grid, .foot { grid-template-columns: 1fr; }
  .close .btn { width: 100%; }
}
@media (max-width: 560px) {
  .wrap { width: min(1200px, 100% - 2 * max(16px, env(safe-area-inset-left), env(safe-area-inset-right))); }
  .brand-name b { font-size: 1.1rem; }
  .actions .btn { width: 100%; }
  .dif-grid { grid-template-columns: 1fr; }
  .dif-grid article:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero h1 { font-size: 2.05rem; }
}

/* Hero */
.hero { min-height: clamp(500px, 64vh, 660px); display: flex; flex-direction: column; overflow: hidden; }
.hero-grid { flex: 1; padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
@media (max-width: 960px) { .hero { min-height: 0; } }


/* Abertura em tela cheia e hero com selo fixo */
.hero-seal { display: grid; position: relative; width: min(100%, 500px); aspect-ratio: 1; margin-inline: auto; place-items: center; }
#intro { display: none; position: fixed; inset: 0; z-index: 300; background: radial-gradient(ellipse at 50% 45%, #f1f2f4 0%, #a7a8aa 100%); transition: opacity .9s var(--ease), visibility 0s .9s; }
.js #intro { display: grid; }
#intro video { width: 100%; height: 100%; object-fit: cover; display: block; }
html.intro-done #intro { opacity: 0; visibility: hidden; pointer-events: none; }
html.intro-on { overflow: hidden; }
.intro-skip { position: absolute; right: 20px; bottom: 20px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--navy); border-radius: 999px; background: rgba(248, 249, 251, .85); color: var(--navy-deep); font: 700 .95rem var(--text); cursor: pointer; transition: background-color .25s, color .25s; }
.intro-skip:hover { background: var(--navy); color: #fff; }

.rosette { position: absolute; inset: -9%; width: 118%; height: 118%; max-width: none; color: var(--navy); }
.rosette path { fill: none; stroke: currentColor; stroke-width: .7px; vector-effect: non-scaling-stroke; }
.rosette g.red { color: var(--red); }
.rosette g.silver { color: var(--silver); }
.seal-wrap { position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 50px -24px rgba(13, 31, 74, .55), 0 6px 14px -6px rgba(13, 31, 74, .35); }
.seal { width: 100%; height: 100%; border-radius: 50%; }
@property --glint { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.seal-wrap::before, .seal-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
.seal-wrap::before { background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .55) 53%, transparent 60%) 150% 0 / 260% 100% no-repeat; }
.seal-wrap::after { background: conic-gradient(from var(--glint), transparent 0 72%, rgba(255, 255, 255, .95) 88%, transparent 96%); -webkit-mask: radial-gradient(farthest-side, transparent 80%, #000 83%, #000 99%, transparent 100%); mask: radial-gradient(farthest-side, transparent 80%, #000 83%, #000 99%, transparent 100%); mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-seal { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s; }
  html.js.intro-done .hero-seal { opacity: 1; transform: none; }
  .rosette { animation: spin 160s linear infinite; }
  .seal-wrap::before { opacity: 1; animation: sweep 7s var(--ease) 1.6s infinite; }
  .seal-wrap::after { opacity: 1; animation: glint 6s linear infinite; }
}
@keyframes sweep { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
@keyframes glint { to { --glint: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .hero-seal { width: min(100%, 380px); margin-top: 8px; } }

/* Abertura em telas em pé (celular): mostra o selo inteiro sobre o cinza do vídeo, sem cortar as laterais */
@media (max-aspect-ratio: 1/1) {
  #intro { background: #a6a7a9; place-items: center; }
  #intro video { width: 100%; height: auto; aspect-ratio: 16 / 9; transform: scale(1.9);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%); }
}

/* Barra de rolagem na paleta do site */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--silver); border: 3px solid var(--paper); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Painel de assunto: escolhe o tema, diz o nome e abre o WhatsApp já com a mensagem */
.painel { padding: clamp(64px, 9vw, 120px) 0; }
.painel-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.painel-intro p { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.painel-form { position: relative; padding: clamp(22px, 3.2vw, 38px); background: var(--paper-hi); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 24px 40px -28px rgba(13, 31, 74, .6); }
.painel-form::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.painel-form .rotulo, .campo label { display: block; padding: 0; margin-bottom: 12px; font: 700 1rem/1.3 var(--text); color: var(--navy-deep); }
.campo { margin-top: 24px; }
.campo-assunto { margin-top: 0; }
.painel-form .rotulo { display: block; margin-bottom: 12px; font: 700 1rem/1.3 var(--text); color: var(--navy-deep); }
.campo input { width: 100%; min-height: 52px; padding: 0 16px; font: 500 1.0625rem var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.campo input::placeholder { color: #66728c; }
.campo input:hover { border-color: var(--navy); }
.campo input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 48, 107, .22); }
.campo input[aria-invalid="true"] { border-color: var(--red-deep); }
.previa { margin: 22px 0 0; padding: 14px 16px; background: rgba(23, 48, 107, .06); border-radius: var(--radius); color: var(--ink-soft); font-size: .98rem; }
.previa strong { color: var(--navy-deep); font-weight: 600; }
.erro { margin: 12px 0 0; color: var(--red-deep); font-weight: 600; font-size: .95rem; }
.painel-form .btn { margin-top: 22px; width: 100%; }
@media (max-width: 960px) { .painel-grid { grid-template-columns: 1fr; } }

/* Seletor de assunto (lista que abre) */
.select { position: relative; }
.select-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; font: 500 1.0625rem var(--text); text-align: left; color: #66728c; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.select-btn.tem-valor { color: var(--ink); font-weight: 600; }
.select-btn:hover { border-color: var(--navy); }
.select-btn:focus-visible, .select-btn[aria-expanded="true"] { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 48, 107, .22); }
.select-btn[aria-invalid="true"] { border-color: var(--red-deep); }
.chev { color: var(--navy); transition: transform .3s var(--ease); }
.select-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.select-lista { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 400px; overflow: auto; background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius); box-shadow: 0 24px 40px -22px rgba(13, 31, 74, .55); }
.select-lista:focus { outline: none; }
.select-lista[hidden] { display: none; }
.select-lista li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 6px; font-weight: 500; color: var(--ink); cursor: pointer; }
.select-lista li.ativo { background: rgba(23, 48, 107, .09); }
.select-lista li[aria-selected="true"] { color: var(--navy); font-weight: 700; }
.select-lista li[aria-selected="true"]::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--navy); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) { .select-lista:not([hidden]) { animation: abre .25s var(--ease); } }
@keyframes abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Todos os botões "acendem": reflexo de luz que cruza, brilho em volta e efeito de pressão ao clicar */
:root { --shine: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); }
.btn, .fab, .intro-skip, .menu-btn { position: relative; overflow: hidden; }
.fab { position: fixed; }
.intro-skip { position: absolute; }
.btn::after, .fab::after, .intro-skip::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--shine) -160% 0 / 260% 100% no-repeat;
  transition: background-position .75s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after, .fab:hover::after, .fab:focus-visible::after, .intro-skip:hover::after, .intro-skip:focus-visible::after { background-position: 160% 0; }

.btn-red:hover, .btn-red:focus-visible { box-shadow: 0 12px 24px -8px rgba(211, 20, 28, .75), 0 0 0 4px rgba(211, 20, 28, .16); }
.btn-ghost:hover, .btn-ghost:focus-visible { box-shadow: 0 10px 22px -10px rgba(23, 48, 107, .65), 0 0 0 4px rgba(23, 48, 107, .14); }
.btn-navy:hover, .btn-navy:focus-visible { box-shadow: 0 10px 22px -8px rgba(23, 48, 107, .7), 0 0 0 4px rgba(23, 48, 107, .16); }
.btn-white:hover, .btn-white:focus-visible { box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 255, 255, .3); }
.fab:hover, .fab:focus-visible { box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .5), 0 0 0 6px rgba(31, 168, 85, .25); }
.intro-skip:hover, .intro-skip:focus-visible { box-shadow: 0 8px 18px -8px rgba(23, 48, 107, .7), 0 0 0 4px rgba(23, 48, 107, .16); }
.menu-btn:hover { background: rgba(23, 48, 107, .08); box-shadow: 0 0 0 4px rgba(23, 48, 107, .12); }

.btn:active, .fab:active, .intro-skip:active { transform: translateY(1px) scale(.98); transition-duration: .1s; }
.btn-red:active { background: var(--red-deep); box-shadow: 0 4px 10px -6px rgba(211, 20, 28, .8), 0 0 0 6px rgba(211, 20, 28, .2); }
.btn-ghost:active { background: var(--navy-deep); color: #fff; box-shadow: 0 0 0 6px rgba(23, 48, 107, .18); }
.btn-navy:active { background: var(--navy-deep); box-shadow: 0 0 0 6px rgba(23, 48, 107, .2); }
.btn-white:active { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); }
.menu-btn:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .btn::after, .fab::after, .intro-skip::after { transition: none; } .btn:hover, .btn:active, .fab:hover, .fab:active { transform: none; } }
.btn-red:hover, .btn-red:focus-visible { background: #e5242c; }
.btn-red:active { background: var(--red-deep); }

/* Celular: o botão flutuante do WhatsApp só entra depois do hero, para não cobrir os botões dele */
.fab { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.js .fab { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px) scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s, box-shadow .35s var(--ease); }
.js .fab.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.js .fab.on:hover { transform: scale(1.08); }
.js .fab.on:active { transform: translateY(1px) scale(.96); }
@media (max-width: 560px) { .fab { width: 56px; height: 56px; } .fab .ico { width: 28px; height: 28px; } }
@media (hover: none) { .btn:hover, .more:hover, .fab:hover { transform: none; } }

/* Tablet: serviços em duas colunas, sem deixar o meio da tela vazio */
@media (min-width: 640px) and (max-width: 960px) { .ledger { grid-template-columns: 1fr 1fr; } }

.select-lista.sobe { top: auto; bottom: calc(100% + 6px); }

/* ─── Item BPO na lista de serviços ─── */
.ledger-bpo {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger-bpo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,.05)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='22' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E") center/80px repeat;
  pointer-events: none;
}
.ledger-bpo h3 { color: #fff; }
.ledger-bpo p  { color: rgba(237,240,245,.85); max-width: 62ch; }
.ledger-bpo .more { color: #fff; border-color: rgba(255,255,255,.6); }
.ledger-bpo .more:hover, .ledger-bpo .more:focus-visible { color: #fff; border-color: var(--red); }
/* Fecha a lista ocupando as duas colunas, com respiro interno no fundo escuro */
.ledger .ledger-bpo { grid-column: 1 / -1; margin-top: 28px; padding: 28px clamp(20px, 3vw, 36px) 26px; border-bottom: 0; }
.ledger-bpo > * { position: relative; }
@media (min-width: 640px) {
  .ledger .ledger-bpo { flex-direction: row; align-items: center; gap: 32px; }
}

/* ─── Secção BPO Financeiro ─── */
.bpo {
  padding: 6rem 0 5rem;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* Filete decorativo superior */
.bpo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-deep), var(--red), var(--navy-deep));
}

/* Fundo guilhochê muito sutil */
.bpo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(23,48,107,.06) 0%, transparent 70%);
  pointer-events: none;
}

.bpo .wrap { position: relative; z-index: 1; }

/* Eyebrow "Novo serviço" */
.bpo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 700 .72rem/1 var(--display);
  font-stretch: 100%;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(211,20,28,.08);
  border: 1px solid rgba(211,20,28,.22);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1rem;
}
.bpo-eyebrow::before { content: '●'; font-size: .55rem; }

/* Cabeçalho */
.bpo .sec-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bpo .sec-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.bpo-sub {
  display: block;
  color: var(--red);
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .3em;
}
.bpo .sec-head p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin-top: .9rem;
}

/* Grid de cards */
.bpo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card individual */
.bpo-card {
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  padding: 1.75rem 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.bpo-card:hover {
  box-shadow: 0 12px 32px rgba(23,48,107,.12);
  transform: translateY(-4px);
  border-color: rgba(23,48,107,.35);
}

/* Linha vermelha superior no hover */
.bpo-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.bpo-card:hover::after { transform: scaleX(1); }

/* Ícone */
.bpo-icon {
  font-size: 2rem;
  margin-bottom: .85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: rgba(23,48,107,.07);
  border-radius: 12px;
}

.bpo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--display);
  font-stretch: 112%;
  color: var(--navy-deep);
  margin: 0 0 .55rem;
  letter-spacing: -.005em;
}
.bpo-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Bloco CTA */
.bpo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Padrão guilhochê decorativo no CTA */
.bpo-cta::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 20px rgba(255,255,255,.04),
              0 0 0 40px rgba(255,255,255,.03),
              0 0 0 60px rgba(255,255,255,.02);
}

.bpo-cta-text { flex: 1; }
.bpo-cta-text strong {
  display: block;
  font: 700 1.1rem/1.35 var(--display);
  font-stretch: 112%;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.bpo-cta-text p {
  font-size: .9rem;
  color: rgba(237,240,245,.75);
  margin: 0;
}
.bpo-cta .btn { flex-shrink: 0; white-space: nowrap; }

/* ─── Responsivo BPO ─── */
@media (max-width: 960px) {
  .bpo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bpo { padding: 4rem 0 3.5rem; }
  .bpo-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bpo-card { padding: 1.3rem 1.1rem; }
  .bpo-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }
  .bpo-cta::before { display: none; }
  .bpo-cta .btn { width: 100%; }
}

/* ─── Seções editadas pelo painel (/admin) ─── */

/* Avisos: data em rótulo à esquerda, texto à direita, foto opcional em moldura de certificado */
.avisos { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper-hi); border-bottom: 1px solid var(--line); }
.avisos-lista { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--navy-deep); }
.avisos-lista li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px clamp(20px, 4vw, 48px); padding: 26px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.avisos-lista li.tem-foto { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 260px); }
.aviso-data { font: 600 .8rem/1.4 var(--display); font-stretch: 90%; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); padding-top: .35em; }
.aviso-corpo h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; }
.aviso-corpo p { margin: 10px 0 0; color: var(--ink-soft); max-width: 62ch; overflow-wrap: anywhere; }
.aviso-foto { display: block; padding: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.aviso-foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (max-width: 760px) {
  .avisos-lista li, .avisos-lista li.tem-foto { grid-template-columns: 1fr; }
  .aviso-foto { max-width: 420px; }
}

/* Galeria: fotos em moldura de certificado, legenda em rótulo caixa-alta */
.galeria { padding: clamp(64px, 9vw, 120px) 0; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.galeria-grid figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.galeria-grid a { display: block; padding: 10px; background: var(--paper-hi); border: 1px solid var(--line-strong); border-radius: 4px; transition: box-shadow .3s var(--ease); }
.galeria-grid a:hover, .galeria-grid a:focus-visible { box-shadow: 0 24px 40px -28px rgba(13, 31, 74, .6); }
.galeria-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.galeria-grid figcaption { font: 600 .78rem/1.35 var(--display); font-stretch: 90%; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }

/* Links úteis: listas por categoria, linhas separadas por filetes como a lista de serviços */
.links-uteis { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-hi); border-block: 1px solid var(--line); }
.links-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px clamp(32px, 6vw, 88px); }
.links-grupo h3 { font: 600 .85rem/1.3 var(--display); font-stretch: 90%; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); padding-bottom: 12px; border-bottom: 2px solid var(--navy-deep); }
.links-grupo ul { list-style: none; margin: 0; padding: 0; }
.links-grupo li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--navy-deep); transition: background-color .25s, color .25s; }
.links-grupo li a > span { display: grid; gap: 2px; min-width: 0; }
.links-grupo li a b { font-weight: 700; overflow-wrap: anywhere; }
.links-grupo li a small { font-size: .92rem; color: var(--ink-soft); }
.links-grupo li a .ico { color: var(--red-deep); transition: transform .3s var(--ease); }
.links-grupo li a:hover, .links-grupo li a:focus-visible { background: rgba(23, 48, 107, .05); }
.links-grupo li a:hover .ico, .links-grupo li a:focus-visible .ico { transform: translateX(4px); }

/* Link da Politica de Privacidade no rodape (fundo azul-marinho escuro) */
.foot-copy a { color: #cfd8ec; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot-copy a:hover, .foot-copy a:focus-visible { color: #fff; }
