/* ============================================================
   Henrique Garcia · Advocacia Tributária — site institucional
   Implementação de "Site Institucional.dc.html" (Claude Design)
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* superfícies */
  --deep:      #08170F;
  --mid:       #0B1F14;
  --glow:      #143323;
  --cream:     #F2EFE4;

  /* ouro */
  --gold:      #D8B65C;
  --gold-lt:   #EBD48F;
  --gold-br:   #E3C674;
  --gold-dk:   #C9A23F;
  --gold-ink:  #8A6E1C;   /* ouro legível sobre creme */

  /* traços e textos derivados */
  --hair:      rgba(216, 182, 92, .16);
  --hair-soft: rgba(216, 182, 92, .14);
  --ink-72:    rgba(242, 239, 228, .72);
  --ink-66:    rgba(242, 239, 228, .66);
  --ink-60:    rgba(242, 239, 228, .60);
  --ink-40:    rgba(242, 239, 228, .40);

  /* tipografia */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* layout */
  --wrap:   1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --pad-y:  clamp(72px, 9vw, 112px);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
a:hover { color: var(--gold-lt); }

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

.icon { fill: currentColor; flex: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--mid);
  font-weight: 700;
}
.skip-link:focus-visible { left: 12px; top: 12px; color: var(--mid); }

/* ── PRIMITIVOS COMPARTILHADOS ─────────────────────────────── */

/* Grade de fio de cabelo: 1px de gap sobre fundo dourado translúcido,
   com células opacas por cima. Reutilizada em stats, cards e facts. */
.grid-hair {
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.eyebrow--rule > span { white-space: nowrap; }
.eyebrow--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 182, 92, .4), transparent);
}
.eyebrow--muted { color: var(--ink-40); letter-spacing: .18em; font-size: 11.5px; }
.eyebrow--muted-gold { color: rgba(216, 182, 92, .7); letter-spacing: .18em; font-size: 11.5px; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--gold); }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-66);
  max-width: 520px;
  text-wrap: pretty;
}

.body-lg {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(242, 239, 228, .7);
  text-wrap: pretty;
}

/* Cabeçalho de seção: título à esquerda, texto de apoio à direita,
   empilhando sozinho quando não couberem lado a lado. */
.section__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 64px);
}
.section__head--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* ── BOTÕES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  padding: 18px 34px;
  white-space: nowrap;
  max-width: 100%;
  border: 1px solid transparent;
  transition: color .18s ease, background-color .18s ease,
              border-color .18s ease, filter .18s ease, transform .18s ease;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-br) 0%, var(--gold-dk) 100%);
  color: var(--mid);
}
.btn--gold:hover { color: var(--mid); filter: brightness(1.07); transform: translateY(-1px); }

.btn--outline {
  border-color: rgba(242, 239, 228, .22);
  color: var(--cream);
  font-weight: 600;
  padding: 18px 32px;
  gap: 10px;
}
.btn--outline:hover { border-color: rgba(216, 182, 92, .5); color: var(--gold); }

.btn--ghost-gold {
  border-color: rgba(216, 182, 92, .45);
  color: var(--gold);
}
.btn--ghost-gold:hover { background: rgba(216, 182, 92, .1); color: var(--gold-lt); }

.btn--sm { font-size: 14px; font-weight: 600; padding: 11px 20px; gap: 9px; }
.btn--lg { font-size: 18px; padding: 19px 38px; }

.link-arrow {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-arrow span { font-size: 16px; }
.link-arrow--static { margin-top: 6px; padding-top: 0; }

/* ── CABEÇALHO ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 23, 15, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.brand__kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(216, 182, 92, .85);
}
.brand--footer .brand__name { font-size: 22px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 30px);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav__links a { color: var(--ink-72); }
.site-nav__links a:hover { color: var(--gold); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-inline: var(--gutter);
  background: radial-gradient(120% 90% at 50% 0%, var(--glow) 0%, var(--mid) 45%, var(--deep) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 182, 92, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 182, 92, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 110px) clamp(64px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(216, 182, 92, .35);
  border-radius: 100px;
  background: rgba(216, 182, 92, .06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-top: 34px;
  max-width: 940px;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-72);
  max-width: 660px;
  margin-top: 26px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  width: 100%;
  max-width: 900px;
  margin-top: clamp(56px, 7vw, 80px);
}
.stats__cell {
  background: rgba(11, 31, 20, .72);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stats__num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--gold-br);
}
.stats__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-60);
  text-wrap: pretty;
}

/* ── SEÇÕES ────────────────────────────────────────────────── */
.section { padding: var(--pad-y) var(--gutter); }
.section--deep  { background: var(--deep); }
.section--mid   { background: var(--mid); border-top: 1px solid var(--hair-soft); }
.section--cream { background: var(--cream); color: var(--mid); }

.section--cream .eyebrow { color: var(--gold-ink); }
.section--cream .h2 em   { color: var(--gold-ink); }

/* ── CARDS DE ATUAÇÃO ──────────────────────────────────────── */
.cards { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }

.card {
  background: var(--deep);
  padding: clamp(28px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card__numeral {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(216, 182, 92, .6);
}
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-60);
  text-wrap: pretty;
}

/* ── ETAPAS ────────────────────────────────────────────────── */
.steps { border-top: 1px solid rgba(11, 31, 20, .16); }

.step {
  display: grid;
  grid-template-columns: clamp(52px, 6vw, 80px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(11, 31, 20, .16);
}
.step__num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: .9;
  color: rgba(11, 31, 20, .28);
  font-variant-numeric: tabular-nums;
}
.step__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: start;
}
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.step__text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(11, 31, 20, .66);
  text-wrap: pretty;
}

/* ── ARTIGOS ───────────────────────────────────────────────── */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--mid);
  border: 1px solid rgba(216, 182, 92, .22);
  padding: clamp(30px, 3.4vw, 44px);
  color: var(--cream);
}
.article-card:hover { border-color: rgba(216, 182, 92, .5); color: var(--cream); }
.article-card__tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.article-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.article-card__text {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(242, 239, 228, .62);
  text-wrap: pretty;
}

.article-queue { display: flex; flex-direction: column; align-items: flex-start; }
.article-queue .eyebrow { padding-bottom: 18px; }
.article-queue__list {
  width: 100%;
  border-top: 1px solid var(--hair);
}
.article-queue__list li {
  padding-block: 22px;
  border-bottom: 1px solid var(--hair);
  font-size: 18.5px;
  line-height: 1.4;
  color: rgba(242, 239, 228, .8);
  text-wrap: pretty;
}
.article-queue .btn { margin-top: 30px; font-size: 16px; padding: 15px 28px; }

/* ── O ESCRITÓRIO ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.about__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.about__figure {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.facts {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  width: 100%;
  margin-top: 12px;
}
.facts__cell {
  background: var(--deep);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facts__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(216, 182, 92, .7);
}
.facts__value {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

/* Retrato com moldura dourada deslocada atrás da foto. */
.portrait { position: relative; width: 100%; }
.portrait__frame {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid rgba(216, 182, 92, .35);
}
.portrait picture { display: block; }
.portrait__img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(.25) contrast(1.04);
}
.portrait__caption { display: flex; flex-direction: column; gap: 4px; }
.portrait__name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.portrait__role {
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(242, 239, 228, .55);
}

/* ── CHAMADA FINAL ─────────────────────────────────────────── */
.closing {
  padding: clamp(80px, 9vw, 116px) var(--gutter);
  background: radial-gradient(90% 120% at 50% 100%, var(--glow) 0%, var(--deep) 70%);
  border-top: 1px solid var(--hair-soft);
}
.closing__inner {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 38px;
}
.closing__statement {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.closing__statement em { font-style: italic; color: var(--gold); }

/* ── RODAPÉ ────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(56px, 6vw, 76px) var(--gutter) 32px;
  background: var(--deep);
  border-top: 1px solid var(--hair-soft);
}
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}
.site-footer__blurb {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 239, 228, .5);
  text-wrap: pretty;
}
.site-footer__col { display: flex; flex-direction: column; gap: 14px; }
.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.site-footer__links a { color: rgba(242, 239, 228, .62); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold) !important;
}
.site-footer__wa:hover { color: var(--gold-lt) !important; }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-soft);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 239, 228, .38);
}
.site-footer__legal span:last-child { max-width: 460px; }

/* ── RESPONSIVO ────────────────────────────────────────────── */

/* O design de origem é uma prancheta desktop: o menu inline do cabeçalho
   estoura em telas estreitas. Abaixo de 880px sobram marca + WhatsApp,
   e a navegação continua acessível pelo rodapé. */
@media (max-width: 880px) {
  .site-nav__links { display: none; }
  .site-header__inner { gap: 16px; }
}

@media (max-width: 420px) {
  .btn--ghost-gold .btn__label { display: none; }
  .btn--ghost-gold { padding: 11px 14px; }
  .brand__name { font-size: 19px; }
}

/* Em telas estreitas o retrato vira largura total e para de "puxar"
   para a direita da grade. */
@media (max-width: 760px) {
  .about__figure { justify-self: start; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn--gold:hover { transform: none; }
}

/* Títulos da lista lateral viram links quando há artigos de verdade. */
.article-queue__list li a { color: inherit; }
.article-queue__list li a:hover { color: var(--gold); }
