/* ==========================================================
   Guilherme Menke Advocacia
   Charcoal + off-white, com uma única cor de destaque.
   Para testar outra cor, troque --accent e --accent-deep abaixo.
   ========================================================== */

:root {
  --char: #131415;
  --char-2: #1d1e20;
  --char-3: #26272a;
  --off: #f4f1eb;
  --off-2: #e9e5dc;
  --ink: #131415;
  --text-dark: #c4c0b7;    /* texto corrido sobre charcoal */
  --text-light: #45423d;   /* texto corrido sobre off-white */
  --rule-dark: rgba(244, 241, 235, .16);
  --rule-light: rgba(19, 20, 21, .16);

  --accent: #98b3cc;       /* destaque sobre charcoal (azul-aço) */
  --accent-deep: #31557a;  /* destaque sobre off-white (mais escuro, para leitura) */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.1vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.9rem); line-height: 1.06; }
h1 em, h2 em { font-style: italic; color: var(--accent-deep); }

.dark { background: var(--char); color: var(--text-dark); position: relative; }
.dark h1, .dark h2, .dark h3 { color: var(--off); }
.dark h1 em, .dark h2 em { color: var(--accent); }

/* granulação sutil nas áreas escuras */
.dark::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .06;
}
.dark > * { position: relative; z-index: 4; }

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

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

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--off); color: var(--ink); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 1rem; font-weight: 500; line-height: 20px; /* altura de linha em px inteiros: o texto centraliza sem meio pixel */
  padding: 17px 28px 19px; border-radius: 999px; border: 1px solid transparent; /* 1px a menos em cima: centraliza as minúsculas */
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
/* botão colorido: gradiente discreto na cor de destaque, com um leve brilho na borda de cima */
.btn--accent, .header__cta {
  color: var(--char);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 26px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: filter .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn--accent:hover, .header__cta:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 32px color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-1px); }
.btn--line { border-color: rgba(244, 241, 235, .32); color: var(--off); }
.btn--line:hover { border-color: var(--off); }
.btn--dark { background: linear-gradient(135deg, #34363a 0%, var(--char) 60%); color: var(--off); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--dark:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--accent-deep) 82%, #fff) 0%, var(--accent-deep) 60%); color: #fff; }
.btn--lg { padding: 20px 34px 22px; font-size: 1.0625rem; line-height: 22px; }
.btn--sm { padding: 13px 22px 15px; font-size: 0.9375rem; font-weight: 600; }
/* ícones em linha */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* ajuste ótico: os ícones descem 1px para alinhar com o meio das letras minúsculas */
.btn .icon, .header__cta .icon { position: relative; top: 1px; }
/* seta dos botões: um chevron simples, que desliza um pouco ao passar o mouse */
.btn__arrow { width: 18px; height: 18px; margin-left: -2px; stroke-width: 2.75; transition: transform .35s var(--ease); }
/* o desenho do chevron não ocupa a caixa inteira do ícone: a margem negativa iguala a folga
   da direita à folga entre a borda do botão e o ícone do WhatsApp */
.btn .btn__arrow { margin-right: -7px; }
.btn:hover .btn__arrow, .header__cta:hover .btn__arrow { transform: translateX(4px); }
/* ícone do WhatsApp maior, para ser reconhecido de imediato */
.btn > .icon:not(.btn__arrow) { width: 26px; height: 26px; margin-left: -4px; }
.btn--lg > .icon:not(.btn__arrow) { width: 30px; height: 30px; }

/* ---------- Navegação (barra flutuante) ---------- */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding-inline: 16px; pointer-events: none; transition: transform .8s var(--ease), opacity .8s ease; }
.header__inner {
  pointer-events: auto; position: relative; isolation: isolate;
  max-width: 1136px; height: 62px; margin-inline: auto; padding: 0 8px 0 22px; /* 8px à direita = folga do botão em cima e embaixo */
  display: flex; align-items: center;
  border-radius: 999px;
}
.header__inner::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(24, 25, 27, .74); border: 1px solid rgba(244, 241, 235, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
}

.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--off); position: relative; z-index: 2; }
.brand img { width: 28px; height: 28px; filter: grayscale(1) brightness(1.5); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; padding-inline: 12px; }
.nav a {
  color: var(--text-dark); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  padding: 10px 15px; border-radius: 999px; transition: color .3s, background-color .3s;
}
.nav a:hover { color: var(--off); }
.nav a.is-active { color: var(--off); background: rgba(244, 241, 235, .1); }
.nav__mobile-cta { display: none; }

.header__cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 0.9375rem; font-weight: 600; line-height: 20px; text-decoration: none;
  padding: 12px 18px 14px 22px; border-radius: 999px;
}

.nav-toggle { display: none; flex: none; margin-left: auto; position: relative; z-index: 2; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--off); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Abertura ---------- */
.hero { min-height: clamp(540px, 80vh, 700px); display: flex; flex-direction: column; overflow: hidden; }
.hero.dark > .hero__media { position: absolute; z-index: 1; }
.hero__media { top: 0; right: 0; bottom: 0; width: min(50%, 760px); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: brightness(.8) contrast(1.05); will-change: transform; }
.hero__media::after {
  /* avança 7% para a esquerda: cobre a sobra da foto enquanto ela está ampliada na animação de entrada */
  content: ''; position: absolute; inset: 0 0 0 -7%;
  background:
    linear-gradient(90deg, var(--char) 0%, var(--char) 7%, rgba(19, 20, 21, .78) 27%, rgba(19, 20, 21, 0) 62%),
    linear-gradient(0deg, var(--char) 0%, rgba(19, 20, 21, 0) 34%),
    linear-gradient(180deg, rgba(19, 20, 21, .6) 0%, rgba(19, 20, 21, 0) 24%),
    radial-gradient(120% 90% at 40% 45%, rgba(19, 20, 21, 0) 45%, rgba(19, 20, 21, .55) 100%);
}

.hero__content { margin-top: auto; padding-top: 120px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; }
.hero__lead { margin-top: 24px; max-width: 30em; font-size: 1.1875rem; color: #d6d2c9; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__foot {
  margin-top: 44px; padding-block: 20px 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px;
  font-size: 0.9375rem;
}
.hero__foot::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--rule-dark); transform-origin: left; }
.hero__foot strong { color: var(--off); font-weight: 600; }
.hero__urgent { display: inline-flex; align-items: center; gap: 10px; color: var(--off); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }

/* sequência de entrada da abertura */
.js .hero__media { opacity: 0; }
.js .hero__media img { transform: scale(1.1); }
.js .hero h1 .line > span { transform: translateY(108%); }
.js .hero__lead, .js .hero__actions, .js .hero__foot > p { opacity: 0; transform: translateY(14px); }
.js .hero__foot::before { transform: scaleX(0); }
.js .header { opacity: 0; transform: translateY(-24px); }

/* ordem: navbar, título, texto, botões e rodapé da abertura, em sequência curta;
   a foto surge ao fundo ao mesmo tempo, sem segurar o resto */
.js .is-loaded .header { opacity: 1; transform: none; transition-duration: .7s; transition-delay: 0s; }
.js .is-loaded .hero__media { opacity: 1; transition: opacity 1.2s ease; }
.js .is-loaded .hero__media img { transform: scale(1); transition: transform 2.2s var(--ease); }
.js .is-loaded .hero h1 .line > span { transform: none; transition: transform .9s var(--ease); }
.js .is-loaded .hero h1 .line:nth-child(1) > span { transition-delay: .1s; }
.js .is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .2s; }
.js .is-loaded .hero__lead, .js .is-loaded .hero__actions, .js .is-loaded .hero__foot > p {
  opacity: 1; transform: none; transition: opacity .7s ease, transform .7s var(--ease);
}
.js .is-loaded .hero__lead { transition-delay: .4s; }
.js .is-loaded .hero__actions { transition-delay: .52s; }
.js .is-loaded .hero__foot > p { transition-delay: .68s; }
.js .is-loaded .hero__foot::before { transform: none; transition: transform 1.1s var(--ease) .6s; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(60px, 7.5vw, 104px); }
.head { margin-bottom: clamp(24px, 3vw, 36px); }
.head__sub { margin-top: 10px; font-size: 1.0625rem; }

/* ---------- Áreas ---------- */
.area { border-bottom: 1px solid var(--rule-light); }
.area__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.area__name {
  position: relative; font-family: var(--serif); font-size: clamp(1.3rem, 1.75vw, 1.55rem); line-height: 1.2; letter-spacing: -0.02em;
  color: #6b675f; transition: color .35s, transform .5s var(--ease);
}
.area__name::before {
  content: ''; position: absolute; left: -26px; top: 50%; width: 14px; height: 2px; background: var(--accent-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.area__head:hover .area__name, .area.is-open .area__name { color: var(--ink); }
.area.is-open .area__name { transform: translateX(26px); }
.area.is-open .area__name::before { transform: scaleX(1); }

.area__icon { position: relative; flex: none; width: 15px; height: 15px; }
.area__icon::before, .area__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.area__icon::after { transform: rotate(90deg); }
.area.is-open .area__icon::after { transform: rotate(0deg); }

.area__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.area.is-open .area__body { grid-template-rows: 1fr; }
.area__inner { overflow: hidden; min-height: 0; }
html:not(.js) .area__body { grid-template-rows: 1fr; }

.area__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 20px; padding: 28px 24px;
  background: var(--char); color: var(--text-dark); border-radius: 18px;
}
/* símbolo da marca como marca-d'água no canto do painel */
.area__card::before {
  content: ''; position: absolute; right: -70px; top: -70px; width: 320px; height: 320px;
  background: url('assets/logo-symbol.png') center / contain no-repeat;
  filter: grayscale(1) brightness(2); opacity: .05; pointer-events: none;
}
.area__card > * { position: relative; }
.area__label { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.area__label .icon { width: 22px; height: 22px; margin-right: -2px; }
/* "Plantão 24h": fundo levemente tingido, texto claro e um ponto pulsando, como na abertura */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: 0.06em; padding: 5px 12px 5px 10px; border-radius: 999px;
  color: var(--off); border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pill::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.area__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.55rem, 2.9vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--off); text-wrap: balance; }
.area__text { font-size: 1.0625rem; max-width: 34em; }
/* o que cada área cobre: lista curta em duas colunas, que preenche o painel */
.area__topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--rule-dark); }
.area__topics li { position: relative; padding-left: 18px; font-size: 0.9688rem; line-height: 1.35; color: var(--off); }
.area__topics li::before { content: ''; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.area__card .btn { align-self: flex-start; margin-top: 6px; }

@media (min-width: 961px) {
  /* lista à esquerda e painel à direita na mesma grade: o painel tem a altura da lista
     (ou a lista se estica até a altura do painel), sem sobras */
  .areas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); grid-template-rows: repeat(9, auto); }
  .area { display: contents; }
  .area__head { grid-column: 1; border-bottom: 1px solid var(--rule-light); }
  .area__icon { display: none; }
  .area__body { grid-column: 2; grid-row: 1 / -1; display: block; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
  .area.is-open .area__body { opacity: 1; visibility: visible; }
  .area__inner, .area__card { height: 100%; }
  .area__card { margin: 0; padding: 40px 44px; justify-content: space-between; gap: 20px; }
  /* espaços reservados (medidos no script): nada muda de posição entre as áreas */
  .area__tag { min-height: var(--area-tag-h, 0px); }
  .area__text { min-height: var(--area-txt-h, 0px); }
  .area__topics { min-height: var(--area-top-h, 0px); align-content: start; }
}

/* ---------- Escritório ---------- */
#escritorio {
  /* brilho suave na cor de destaque, para dar profundidade ao fundo */
  background:
    radial-gradient(52% 44% at 8% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 72%),
    radial-gradient(40% 36% at 100% 46%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--char);
  overflow: hidden;
}
.office { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.office h2 { font-size: clamp(2.15rem, 4.5vw, 3.85rem); line-height: 1.03; }
.office__lead { margin-top: 24px; max-width: 32em; font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--off); }

/* destaques: lista simples ao lado do título */
.facts { display: grid; gap: 30px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 4px; font-size: 1rem; line-height: 1.45; }
.facts .icon { grid-row: span 2; width: 34px; height: 34px; margin-top: 2px; stroke-width: 1.25; color: var(--accent); }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--off); }

/* advogado titular */
.lawyer { margin-top: clamp(52px, 7vw, 96px); display: grid; grid-template-columns: 210px minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.lawyer__photo { position: relative; margin: 0; }
.lawyer__photo::before { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--accent); border-radius: 18px; opacity: .55; }
.lawyer__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 18px; }
.lawyer .label { margin-bottom: 12px; }
.lawyer h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.05vw, 1.8rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.lawyer__oab { margin-top: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--off); }
.lawyer__bio { margin-top: 14px; }
.lawyer__edu-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lawyer__edu-title .icon { width: 22px; height: 22px; }
.creds { display: grid; row-gap: 16px; }
.creds li { display: grid; row-gap: 3px; }
.creds span { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
.creds strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--off); }
.creds em { font-style: normal; font-size: 0.9375rem; color: var(--text-dark); }

/* ---------- Como trabalhamos (linha do tempo) ---------- */
.method {
  margin-top: clamp(52px, 6.5vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-dark);
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
.method__head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.method__head p { margin-top: 10px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 7px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; }
.timeline::before { background: var(--rule-dark); }
.timeline::after { background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 76%, transparent 100%); transform-origin: left; }
.timeline li { position: relative; padding: 34px 24px 0 0; }
.timeline li::before {
  content: ''; position: absolute; z-index: 1; left: 0; top: -7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--char);
}
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.02em; }
.timeline p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.5; max-width: 15em; }

.js .timeline::after { transform: scaleX(0); transition: transform 2.2s var(--ease) .2s; }
.js .timeline li::before { transform: scale(0); transition: transform .6s var(--ease); }
.js .timeline h3, .js .timeline p { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .method.is-visible .timeline::after { transform: none; }
.js .method.is-visible .timeline li::before, .js .method.is-visible .timeline h3, .js .method.is-visible .timeline p { opacity: 1; transform: none; }
.js .method.is-visible .timeline li:nth-child(1) > *, .js .method.is-visible .timeline li:nth-child(1)::before { transition-delay: .3s; }
.js .method.is-visible .timeline li:nth-child(2) > *, .js .method.is-visible .timeline li:nth-child(2)::before { transition-delay: .7s; }
.js .method.is-visible .timeline li:nth-child(3) > *, .js .method.is-visible .timeline li:nth-child(3)::before { transition-delay: 1.1s; }
.js .method.is-visible .timeline li:nth-child(4) > *, .js .method.is-visible .timeline li:nth-child(4)::before { transition-delay: 1.5s; }

/* ---------- Dúvidas (uma aberta por vez, altura constante) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq__more { margin: 14px 0 18px; font-size: 1.0625rem; }
.faq__list { border-top: 1px solid var(--rule-light); }
.faq__item { border-bottom: 1px solid var(--rule-light); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.1875rem; font-weight: 500; color: var(--text-light); transition: color .3s;
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--ink); }
.faq__icon { position: relative; flex: none; width: 15px; height: 15px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { height: 0; overflow: hidden; transition: height .5s ease; }
.faq__item.is-open .faq__a { height: var(--faq-h, auto); }
.faq__a p { padding: 0 48px 24px 0; font-size: 1.0625rem; opacity: 0; transition: opacity .35s ease; }
.faq__item.is-open .faq__a p { opacity: 1; transition-delay: .15s; }
.faq__a a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
html:not(.js) .faq__a { height: auto; }
html:not(.js) .faq__a p { opacity: 1; }

/* ---------- Contato + rodapé (um bloco só) ---------- */
.contact { padding-bottom: clamp(44px, 5vw, 64px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.contact__title { font-size: clamp(2.8rem, 7vw, 6.1rem); line-height: .96; }
.contact__lead { margin: 22px 0 30px; font-size: 1.1875rem; color: #d6d2c9; }
.contact__rows { border-top: 1px solid var(--rule-dark); }
.contact__rows li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); }
.contact__label { display: flex; align-items: center; gap: 9px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact__rows a, .contact__rows li > span:last-child { color: var(--off); font-size: 1.1875rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.contact__rows a:hover { color: var(--accent); }

.footer { font-size: 0.9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-block: 0 30px; }

/* ---------- Entrada ao rolar ---------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s ease, transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * .12s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero *, .js .hero__media, .js .header, .js .timeline::after, .js .timeline li::before, .js .timeline h3, .js .timeline p, .js .hero__foot::before {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .js .reveal { filter: none; }
  .faq__a, .area__body { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav a { padding-inline: 11px; }
}

@media (max-width: 960px) {
  .office, .faq, .contact__grid { grid-template-columns: 1fr; }
  .contact__grid { align-items: start; }
  .method { grid-template-columns: 1fr; }
  .lawyer { grid-template-columns: 170px minmax(0, 1fr); }
  .lawyer__edu { grid-column: 1 / -1; }

  /* navegação em tela cheia */
  .header__inner { padding-right: 8px; }
  .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 0 var(--gutter); background: var(--char);
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a, .nav a.is-active {
    font-family: var(--serif); font-weight: 400; font-size: clamp(1.85rem, 7.4vw, 2.5rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--off);
    padding: 0; background: none; border-radius: 0;
    transform: translateY(16px); transition: transform .7s var(--ease);
  }
  .nav.is-open a { transform: none; }
  .nav .nav__mobile-cta { display: block; color: var(--accent); }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  body { font-size: 1rem; }

  .header { top: 10px; padding-inline: 10px; }
  .header__inner { height: 56px; padding-left: 18px; }

  .hero { min-height: 0; }
  .hero__media { left: 0; top: 40px; width: 100%; bottom: auto; height: 62%; }
  .hero__media img { object-position: 50% 0; }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--char) 6%, rgba(19, 20, 21, .8) 38%, rgba(19, 20, 21, 0) 72%),
      linear-gradient(180deg, rgba(19, 20, 21, .6) 0%, rgba(19, 20, 21, 0) 24%),
    radial-gradient(120% 90% at 40% 45%, rgba(19, 20, 21, 0) 45%, rgba(19, 20, 21, .55) 100%);
  }
  .hero__content { padding-top: 250px; }
  .hero__lead { font-size: 1.0625rem; margin-top: 18px; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__foot { margin-top: 30px; flex-direction: column; }

  .head { margin-bottom: 24px; }
  .area__name::before { display: none; }
  .area.is-open .area__name { transform: none; }
  /* no celular: "Advogado titular" vem antes da foto */
  .lawyer { grid-template-columns: 1fr; gap: 0; }
  .lawyer__id { display: contents; }
  .lawyer .label { order: -1; margin-bottom: 18px; }
  .lawyer__photo { margin-bottom: 34px; }
  .lawyer__edu { margin-top: 32px; }
  .lawyer__photo { width: 150px; }
  .creds { row-gap: 18px; }
  /* linha do tempo na vertical */
  .timeline { grid-template-columns: 1fr; padding: 0; }
  .timeline::before, .timeline::after { left: 7px; right: auto; top: 6px; bottom: 30px; width: 1px; height: auto; }
  .timeline::after { background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 76%, transparent 100%); transform-origin: top; }
  .js .timeline::after { transform: scaleY(0); }
  .timeline li { padding: 0 0 26px 40px; }
  .timeline li::before { top: 6px; }
  .timeline h3 { font-size: 1.55rem; }
  .timeline p { max-width: none; margin-top: 6px; }
  .faq__q { font-size: 1.0625rem; padding: 20px 0; }
  .faq__a p { padding-right: 0; }
  .contact .btn--lg { width: 100%; padding-inline: 18px; font-size: 1rem; }
}
