/* ============================================================
   Escórrea Advocacia — base
   Tokens, reset, tipografia, botões e utilitários
   ============================================================ */

:root {
  --burgundy: #481a36;
  --wine: #481a36;
  --wine-deep: #2f1123;
  --gold: #c6a45a;
  --gold-soft: #e0c48a;
  --navy: #17243b;
  --cream: #f7f4ef;
  --sand: #efe8dd;
  --muted: #6b7280;
  --line: rgba(23, 36, 59, .14);
  --line-light: rgba(255, 255, 255, .18);
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 6vw, 64px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- tipografia ---------- */

.h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.h2 em {
  font-style: italic;
  color: var(--burgundy);
}

.h2--light { color: #fff; }
.h2--light em { color: var(--gold-soft); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.kicker--dark { color: var(--burgundy); }
.kicker--light { color: var(--gold-soft); }

.kicker__line {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
  opacity: .8;
}

/* ---------- botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}

.btn span { font-size: 14px; line-height: 1; }

.btn:active { transform: scale(.985); }

.btn--gold {
  background: var(--gold);
  color: var(--wine-deep);
  border-color: var(--gold);
}

.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
  transition: gap .25s var(--ease), color .25s var(--ease);
}

.link-arrow span { font-size: 13px; }

.link-arrow:hover { gap: 16px; color: var(--wine); }

.btn:focus-visible,
.link-arrow:focus-visible { outline-offset: 5px; }

/* ---------- acessibilidade ---------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--wine-deep);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- reveal (só quando há JS) ---------- */

html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

html:not(.no-js) .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- botão flutuante de WhatsApp ---------- */

.zap {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0;
  border-radius: 28px;
  background: linear-gradient(155deg, #dcc07a 0%, var(--gold) 55%, #a8873f 100%);
  color: var(--wine-deep);
  box-shadow: 0 14px 32px rgba(12, 4, 5, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .25s var(--ease);
}

.zap.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.zap:hover {
  box-shadow: 0 18px 38px rgba(12, 4, 5, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.zap.is-pendente { cursor: default; }

.zap__ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.zap__ico svg { width: 26px; height: 26px; }

/* no mobile é só o disco; a partir de 760px vira pílula com o rótulo */
.zap__texto {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: max-width .35s var(--ease), padding-right .35s var(--ease);
}

@media (min-width: 760px) {
  .zap { padding-right: 20px; }
  .zap__texto { max-width: 170px; padding-right: 2px; }
}

@media print {
  .zap { display: none; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
