/* Auditares — sistema de design.
   Paleta "granito capixaba": tons de pedra e grafite; o laranja do logo é reservado a ações.
   Tema escuro (padrão) e claro ([data-theme="light"]). */
:root {
  --bg: #15171A;
  --bg-alt: #1A1D20;
  --bg-footer: #111315;
  --surface: #1E2124;
  --line: #2A2E32;
  --line-strong: #3A3F44;
  --text: #ECEBE7;
  --text-body: #AEB1B3;
  --text-muted: #8C9094;
  --text-faint: #868A8F;
  --accent: #EE8A34;
  --accent-hover: #F5A85C;
  --accent-text: #F09A4E;
  --on-accent: #15171A;
  --header-bg: rgba(21, 23, 26, 0.88);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 80px;
  --section-y: 136px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --glass-bg: rgba(30, 33, 36, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg: #EDECE8;
  --bg-alt: #E5E4DF;
  --bg-footer: #E0DFDA;
  --surface: #F6F5F2;
  --line: #D2D1CC;
  --line-strong: #B9B8B2;
  --text: #1D2023;
  --text-body: #4A4E53;
  --text-muted: #5C6167;
  --text-faint: #5F6368;
  --accent: #E8782A;
  --accent-hover: #CF6519;
  --accent-text: #964709;
  --on-accent: #1D2023;
  --header-bg: rgba(237, 236, 232, 0.9);
  --glass-bg: rgba(250, 249, 246, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 12px 32px rgba(29, 32, 35, 0.10), 0 2px 6px rgba(29, 32, 35, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .whatsapp, .text-link, .nav__list a { transition: none; }
  .btn:active, .whatsapp:active { transform: none; }
  .nav.is-open { animation: none; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--text); text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--font-display); }
h3 { line-height: 1.3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.on-light { display: none; }
[data-theme="light"] .on-light { display: block; }
[data-theme="light"] .on-dark { display: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 500; text-decoration: none; z-index: 100;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.hero + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; }

.h2 { font-size: 46px; line-height: 1.12; letter-spacing: -0.012em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--text-body); }
.muted { color: var(--text-muted); }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition-property: background-color, border-color, transform;
  transition-duration: 160ms; transition-timing-function: ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; margin-left: -2px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text-muted); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 6px; font-size: 15px; font-weight: 500;
}
.text-link { transition: text-decoration-color 160ms ease; }
.text-link:hover { text-decoration-color: var(--accent); }

/* Cabeçalho: cápsula de vidro ("liquid glass") flutuante */
.site-header { position: sticky; top: 12px; z-index: 50; padding-inline: 12px; margin-top: 12px; }
.site-header__inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 64px; max-width: calc(var(--container) - 2 * var(--gutter) + 40px); margin-inline: auto;
  padding: 0 8px 0 20px; border-radius: 18px;
}
/* Material de vidro reutilizável.
   O desfoque fica num pseudo-elemento (::after) para que o próprio elemento não vire
   "raiz de backdrop" — assim o menu do celular, filho da cápsula, também desfoca a página. */
.glass {
  position: relative; isolation: isolate;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), inset 0 -1px 1px rgba(255, 255, 255, 0.18);
}
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.18) 100%);
  opacity: .55;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass::after { background: var(--surface); }
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__symbol { height: 32px; width: auto; }
.brand__word { height: 18px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a { text-decoration: none; font-size: 15px; color: var(--text-muted); }
.nav__list a { transition: color 160ms ease; }
.nav__list a:hover { color: var(--text); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--text); cursor: pointer;
}

/* Hero */
.hero { padding-block: 112px 128px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: 56px; align-items: center; }
.hero__text { gap: 32px; }
.hero__place { font-size: 15px; color: var(--text-muted); }
.hero h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.02em; }
.hero .lead { max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 4px; }

/* Diagrama: quatro disciplinas convergindo */
.lens { width: 100%; }
.lens svg { width: 100%; height: auto; overflow: visible; }
.lens__label { font: 400 17px var(--font-display); fill: var(--text); }
.lens__line { fill: none; stroke: var(--text-faint); stroke-width: 1.1; }
.lens__point { fill: var(--accent); }
.lens__ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .45; }
.lens__target { font: 500 15px var(--font-body); fill: var(--text); }
.lens caption, .lens figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: no-preference) {
  .lens__line { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
  .lens__line:nth-of-type(2) { animation-delay: .12s; }
  .lens__line:nth-of-type(3) { animation-delay: .24s; }
  .lens__line:nth-of-type(4) { animation-delay: .36s; }
  .lens__point, .lens__ring, .lens__target { opacity: 0; animation: appear .5s ease 1.5s forwards; }
  .lens__ring { animation-name: appear-ring; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { opacity: 0; animation: rise 700ms var(--ease-out) forwards; }
  .hero__text > :nth-child(2) { animation-delay: 80ms; }
  .hero__text > :nth-child(3) { animation-delay: 160ms; }
  .hero__text > :nth-child(4) { animation-delay: 240ms; }
}
@keyframes appear { to { opacity: 1; } }
@keyframes appear-ring { to { opacity: .45; } }

/* Seções em duas colunas: título à margem, conteúdo à direita */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.split__head { gap: 20px; position: sticky; top: 120px; }
.split__head p { max-width: 34ch; }

/* Princípios */
.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.principle h3 { font-family: var(--font-display); font-size: 27px; margin-bottom: 10px; }
.principle p { max-width: 60ch; }

/* Serviços */
.service-groups { display: flex; flex-direction: column; gap: 64px; }
.service-group__title { font-size: 15px; font-weight: 500; color: var(--accent-text); padding-bottom: 16px; }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px;
  padding-block: 24px; border-top: 1px solid var(--line);
}
.service h3 { font-size: 18px; font-weight: 500; font-family: var(--font-body); }
.service p { font-size: 16px; line-height: 1.65; }

/* Equipe */
.team__inner { gap: 36px; max-width: 1000px; }
.team .h2 { font-size: 50px; line-height: 1.12; }
.team__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

/* Método (sequência real: numerado) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step__num { font-family: var(--font-display); font-size: 18px; color: var(--accent-text); }
.step h3 { font-family: var(--font-display); font-size: 25px; }
.step p { font-size: 16px; }

/* Atuação */
.sectors { display: flex; flex-wrap: wrap; gap: 6px 0; }
.sectors li { font-family: var(--font-display); font-size: 26px; color: var(--text); }
.sectors li:not(:last-child)::after { content: ","; margin-right: 12px; }

/* Contato */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }
.contact__text { gap: 24px; }

.contact__cta { padding-top: 8px; }
.channels { display: flex; flex-direction: column; }
.channel {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 24px; align-items: baseline;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__label { font-size: 15px; color: var(--text-muted); }
.channel__value { font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.channel__value:hover { color: var(--accent-text); }

/* WhatsApp flutuante */
.whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  color: var(--text); text-decoration: none; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition-property: transform; transition-duration: 160ms; transition-timing-function: ease;
}
.whatsapp:active { transform: scale(0.97); }
.whatsapp svg { width: 22px; height: 22px; color: var(--accent); }


/* Rodapé */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--line); padding-block: 80px 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.footer__brand { gap: 24px; }
.footer__brand img { height: 60px; width: auto; align-self: flex-start; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.footer__col { gap: 14px; }
.footer__title { font-size: 14px; color: var(--text-faint); }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 15px; color: var(--text-muted); text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.legal {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--text-faint);
}


/* Responsivo */
@media (max-width: 1180px) {
  :root { --gutter: 48px; --section-y: 112px; }
  .hero h1 { font-size: 60px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --gutter: 22px; --section-y: 64px; }
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open { animation: rise 220ms var(--ease-out); }
  .site-header__inner { padding: 0 6px 0 16px; height: 60px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 16px 16px; border-radius: 18px; isolation: isolate;
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  }
  .nav::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: flex; align-items: center; min-height: 48px; font-size: 17px; }
  .nav .btn { width: 100%; }

  .hero { padding-block: 64px 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .lead { font-size: 18px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__ctas .text-link { align-self: center; }
  .lens { max-width: 420px; }
  .h2 { font-size: 34px; }
  .team .h2 { font-size: 31px; }
  .split, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split__head { position: static; }
  .principles { gap: 32px; }
  .principle h3 { font-size: 24px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 20px; }
  .service-groups { gap: 44px; }
  .team__body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sectors li { font-size: 22px; }
  .contact__cta .btn { width: 100%; }
  .channel { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 18px; }
  .channel__value { font-size: 21px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .whatsapp { right: 16px; bottom: 16px; padding: 0 13px; }
  .whatsapp span { display: none; }
}
