/* =========================================================
   HELENA VASCONCELLOS · projeto conceitual (cliente fictício)
   Este arquivo vale para as 4 páginas desta pasta.
   Ideia visual: o fio de luz dourada do corredor do vídeo
   volta no resto do site (linhas, cartões e método).
   ========================================================= */

/* ---------- 1. CORES E MEDIDAS ---------- */
:root {
  --preto: #111111;        /* mesma cor de fundo das imagens: é por isso que elas somem no fundo */
  --off-white: #F5F2EC;
  --dourado: #B69A68;
  --grafite: #353535;
  --bege: #D9D0C2;
  --dourado-escuro: #6F5A30; /* o dourado em versão legível sobre fundo claro */

  --titulo: "Instrument Serif", Georgia, serif;
  --texto: "Manrope", system-ui, sans-serif;

  --margem: clamp(22px, 5.5vw, 88px);
  --respiro: clamp(88px, 12vw, 176px);
  --suave: cubic-bezier(.2, .7, .2, 1);

  /* Cores que mudam entre seção escura e clara */
  --fundo: var(--preto);
  --tinta: var(--off-white);
  --tinta-suave: #BDB6AB;
  --acento: var(--dourado);
  --linha: rgb(245 242 236 / .16);
}

/* Seções claras: trocam só as cores, o resto continua igual */
.claro, .bege {
  --fundo: var(--off-white);
  --tinta: var(--preto);
  --tinta-suave: #55504A;
  --acento: var(--dourado-escuro);
  --linha: rgb(17 17 17 / .18);
}
.bege { --fundo: var(--bege); --tinta-suave: #47423B; --acento: #57451F; }


/* ---------- 2. BASE ---------- */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--off-white);
  font: 400 clamp(1rem, .96rem + .2vw, 1.125rem)/1.7 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; max-width: 60ch; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--titulo); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.015em; }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.15; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; }
::selection { background: var(--dourado); color: var(--preto); }

.pular { position: absolute; left: -999px; }
.pular:focus { left: 16px; top: 16px; z-index: 99; padding: 12px 18px; background: var(--off-white); color: var(--preto); }

.secao {
  position: relative;
  padding: var(--respiro) var(--margem);
  background: var(--fundo);
  color: var(--tinta);
  overflow: clip;
}
.secao p { color: var(--tinta-suave); }


/* ---------- 3. TOPO ---------- */
/* Faixa de transparência: aparece em todas as páginas */
.aviso {
  position: relative;
  z-index: 31;
  margin: 0;
  max-width: none;
  padding: 8px var(--margem);
  background: var(--preto);
  color: var(--bege);
  font-size: .8125rem;
  line-height: 1.5;
  text-align: center;
}
.aviso a { text-underline-offset: 3px; }

.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  height: 76px;
  margin-bottom: -76px;      /* o conteúdo passa por baixo do menu */
  padding: 0 var(--margem);
  transition: background-color .5s;
}
.topo.rolou, .menu-aberto .topo { background: var(--preto); }
.marca {
  margin-right: auto;
  font: 400 1.5rem/1 var(--titulo);
  text-decoration: none;
  white-space: nowrap;
}
.menu { display: flex; gap: clamp(20px, 2.6vw, 40px); align-items: center; }
.menu a { font-size: .9375rem; text-decoration: none; padding: 10px 0; }

/* Microinteração: o fio dourado corre embaixo do link */
.menu a:not(.botao), .seta {
  background: linear-gradient(var(--acento), var(--acento)) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--suave);
}
.menu a:not(.botao):hover, .menu a[aria-current] { background-size: 100% 1px; }
.menu-botao { display: none; }


/* ---------- 4. BOTÕES E LINKS ---------- */
.botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--acento);
  background: linear-gradient(var(--acento), var(--acento)) 0 100% / 100% 0 no-repeat;
  color: var(--tinta);
  font: 500 .9688rem/1 var(--texto);
  text-decoration: none;
  cursor: pointer;
  transition: background-size .45s var(--suave), color .3s;
}
.botao:hover { background-size: 100% 100%; color: var(--fundo); }
.botao--cheio { background-size: 100% 100%; color: var(--fundo); }
.botao--cheio:hover { background-size: 100% 0; color: var(--tinta); }
.topo .botao { min-height: 44px; padding: 0 20px; }
.botoes { display: flex; flex-wrap: wrap; gap: 14px; }

.seta { display: inline-block; padding: 6px 0; text-decoration: none; background-size: 100% 1px; font-weight: 500; }
.seta:hover { background-size: 32px 1px; }


/* ---------- 5. ABERTURA (o vídeo anda com a rolagem) ---------- */
.cine { position: relative; height: 100svh; background: var(--preto); }
.cine.toca { height: 460vh; }
.palco {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: url("assets/frames/desktop/f_0001.webp") center / cover;
}
.palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Véu escuro atrás do texto: fica mais forte no fim, quando a janela clareia a imagem */
.palco::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(17 17 17 / .94) 0%, rgb(17 17 17 / .62) 34%, rgb(17 17 17 / 0) 68%),
    linear-gradient(to bottom, rgb(17 17 17 / .6), rgb(17 17 17 / 0) 22%),
    rgb(17 17 17 / calc(var(--avanco, 0) * .28));
}
.momento {
  position: absolute;
  z-index: 2;
  left: var(--margem);
  right: var(--margem);
  bottom: clamp(48px, 9vh, 96px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity .8s var(--suave), transform .8s var(--suave), visibility 0s .8s;
}
.momento.ativo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.momento h1 { max-width: 11.5em; }
.momento p { margin: 22px 0 0; max-width: 46ch; color: var(--bege); }
.momento .frase { max-width: 17em; margin: 0; font: 400 clamp(2.1rem, 1.3rem + 3.2vw, 4.4rem)/1.06 var(--titulo); letter-spacing: -.015em; color: var(--off-white); text-wrap: balance; }
.momento .botoes { margin-top: 32px; }


/* ---------- 6. ARTES QUE SE FUNDEM AO FUNDO ---------- */
/* mix-blend-mode: lighten faz o preto da foto sumir; a máscara apaga as bordas */
.arte {
  position: absolute;
  z-index: 0;
  top: 50%;
  translate: 0 -50%;
  width: min(68vw, 1180px);
  max-width: none;
  mix-blend-mode: lighten;
  pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.arte--direita { right: -4vw; }
.arte--esquerda { left: 0; }
.arte--retrato { right: -2vw; width: min(62vw, 1060px); }
.secao > :not(.arte) { position: relative; z-index: 1; }


/* ---------- 7. A ADVOGADA ---------- */
.apresenta { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.apresenta .coluna { max-width: 560px; }
.coluna h2 { margin-bottom: 32px; }
.trajetoria { margin-top: 44px; }
.trajetoria li { padding: 14px 0; border-top: 1px solid var(--linha); }
.trajetoria li:last-child { border-bottom: 1px solid var(--linha); }
.nota { margin-top: 18px; font-size: .875rem; }


/* ---------- 8. SERVIÇOS ---------- */
.cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(44px, 6vw, 80px); }
.cabeca h2 { max-width: 13em; }
.cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linha); border-block: 1px solid var(--linha); }
.cartao {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 32px clamp(20px, 2.4vw, 36px);
  background: var(--fundo);
  text-decoration: none;
  transition: background-color .5s, color .5s;
}
.cartao p { margin: auto 0 0; padding-top: 32px; transition: color .5s; }
/* O fio de luz acende no topo do cartão */
.cartao::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--suave);
}
.cartao:hover, .cartao:focus-visible { background: var(--preto); color: var(--off-white); }
.cartao:hover p, .cartao:focus-visible p { color: var(--bege); }
.cartao:hover::before, .cartao:focus-visible::before { transform: none; }


/* ---------- 9. MÉTODO (o fio de luz desce com a rolagem) ---------- */
.metodo-texto { max-width: 560px; margin-left: auto; }
.passos { position: relative; margin-top: 56px; padding-left: 40px; }
.passos::before, .passos::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--linha); }
.passos::after { width: 2px; background: var(--dourado); box-shadow: 0 0 18px rgb(182 154 104 / .7); transform: scaleY(var(--fio, 1)); transform-origin: top; }
.passos li + li { margin-top: 44px; }
.passos p { margin: 10px 0 0; }


/* ---------- 10. DEPOIMENTOS FICTÍCIOS ---------- */
.depoimentos { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.depoimentos figure:first-child { grid-row: span 2; align-self: start; }
.depoimentos blockquote { font: 400 clamp(1.4rem, 1.2rem + .8vw, 1.9rem)/1.3 var(--titulo); text-wrap: pretty; }
.depoimentos figure:first-child blockquote { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); line-height: 1.1; letter-spacing: -.01em; }
.depoimentos figcaption { margin-top: 20px; font-size: .9375rem; color: var(--tinta-suave); }
.depoimentos figcaption strong { display: block; font-weight: 600; color: var(--acento); }


/* ---------- 11. LISTA DE ARTIGOS E PERGUNTAS ---------- */
.lista a { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px 48px; padding: 32px 0; border-top: 1px solid var(--linha); text-decoration: none; transition: padding .5s var(--suave); }
.lista li:last-child a { border-bottom: 1px solid var(--linha); }
.lista p { margin: 0; }
.lista a:hover { padding-left: 20px; }
.lista a:hover h3 { color: var(--acento); }

.perguntas { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
details { border-top: 1px solid var(--linha); }
details:last-child { border-bottom: 1px solid var(--linha); }
summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.75rem/1 var(--titulo); color: var(--acento); transition: rotate .4s var(--suave); }
details[open] summary::after { rotate: 45deg; }
details p { padding-bottom: 10px; }


/* ---------- 12. PÁGINAS INTERNAS ---------- */
.capa { min-height: 78svh; display: flex; flex-direction: column; justify-content: end; padding-top: 180px; padding-bottom: clamp(56px, 8vw, 104px); }
.capa h1 { max-width: 9em; }
.capa p { margin: 28px 0 0; max-width: 44ch; }

.servico { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px clamp(40px, 7vw, 120px); padding: clamp(44px, 5vw, 72px) 0; border-top: 1px solid var(--linha); }
.servico h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); }
.servico ul { margin-top: 24px; }
.servico li { padding: 10px 0 10px 28px; position: relative; }
.servico li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 14px; height: 1px; background: var(--acento); }

.artigo { max-width: 720px; margin: 0 auto; }
.artigo + .artigo { margin-top: var(--respiro); padding-top: var(--respiro); border-top: 1px solid var(--linha); }
.artigo h2 { margin-bottom: 32px; }
.artigo h3 { margin: 40px 0 12px; }
.artigo .abre { font: 400 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.4 var(--titulo); color: var(--tinta); }

.contato { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px clamp(40px, 7vw, 120px); }
.dados dt { font-size: .9375rem; color: var(--acento); font-weight: 600; }
.dados dd { margin-bottom: 26px; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.6rem)/1.35 var(--titulo); overflow-wrap: anywhere; }
.form { display: grid; gap: 26px; }
.campo label { display: block; font-size: .9375rem; font-weight: 600; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--tinta-suave);
  border-radius: 0;
  background: transparent;
  color: var(--tinta);
  font: inherit;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo :is(input, select, textarea):focus { outline: 0; border-color: var(--acento); box-shadow: 0 1px 0 var(--acento); }
.campo .falta { display: none; margin: 8px 0 0; font-size: .875rem; color: #9B2C1F; }
.campo.erro .falta { display: block; }
.campo.erro :is(input, textarea) { border-color: #9B2C1F; }
.form .botao { justify-self: start; }
.form-status { margin: 0; }
.form-status:empty { display: none; }


/* ---------- 13. CONVITE FINAL, RODAPÉ E WHATSAPP ---------- */
.convite { min-height: 88svh; display: flex; align-items: center; justify-content: flex-end; }
.convite > div { max-width: 540px; }
.convite p { margin: 24px 0 34px; }

.rodape { padding: 56px var(--margem) 110px; background: var(--preto); border-top: 1px solid var(--linha); font-size: .9375rem; color: var(--tinta-suave); }
.rodape .marca { display: inline-block; margin-bottom: 20px; color: var(--off-white); }
.rodape p { max-width: 78ch; }

.whats {
  position: fixed;
  z-index: 25;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--dourado);
  border-radius: 50%;
  background: var(--preto);
  color: var(--dourado);
  cursor: pointer;
  transition: background-color .3s, color .3s, opacity .4s, visibility .4s;
}
.whats:hover { background: var(--dourado); color: var(--preto); }
.whats.escondido { opacity: 0; visibility: hidden; }

.demo { max-width: min(460px, calc(100vw - 40px)); padding: 36px; border: 1px solid var(--dourado); background: var(--preto); color: var(--off-white); }
.demo::backdrop { background: rgb(17 17 17 / .78); }
.demo p { margin: 16px 0 28px; color: var(--bege); }


/* ---------- 14. ANIMAÇÃO DE ENTRADA ---------- */
/* Só esconde se o JavaScript estiver funcionando (classe "js" no <html>) */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--suave), transform 1s var(--suave); }
.js .revelar.visto { opacity: 1; transform: none; }


/* ---------- 15. TABLET E CELULAR ---------- */
@media (max-width: 1000px) {
  .cartoes { grid-template-columns: repeat(2, 1fr); }

  /* A arte fica em cima do texto, e não atrás dele */
  .arte {
    position: relative;
    top: auto;
    left: auto;
    right: auto !important;
    translate: none;
    width: 100%;
    height: clamp(300px, 46vw, 440px);
    margin-bottom: 20px;
    object-fit: cover;
  }
  .arte--direita { object-position: 78% 50%; }
  .arte--esquerda, .arte--espelho { object-position: 22% 50%; }
  .arte--retrato { height: clamp(400px, 60vw, 560px); object-position: 50% 10%; }
  .apresenta, .convite { min-height: 0; display: block; }
  .metodo-texto { margin-left: 0; }
}

@media (max-width: 800px) {
  .menu-botao {
    display: block;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font: 500 1rem/1 var(--texto);
    cursor: pointer;
  }
  .menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 90px var(--margem) 40px;
    background: var(--preto);
    visibility: hidden;
    opacity: 0;
    transition: opacity .4s, visibility .4s;
  }
  .menu-aberto .menu { visibility: visible; opacity: 1; }
  .menu-aberto { overflow: hidden; }
  .menu a:not(.botao) { font: 400 2.6rem/1.1 var(--titulo); }
  .menu .botao { margin-top: 24px; }

  .palco { background-image: url("assets/frames/mobile/f_0001.webp"); }
  .depoimentos, .perguntas, .servico, .contato, .lista a { grid-template-columns: 1fr; }

  .momento { bottom: 146px; } /* deixa espaço para o botão do WhatsApp */
  .capa { min-height: 88svh; padding-top: 110px; }
}

@media (max-width: 560px) {
  .cartoes { grid-template-columns: 1fr; }
  .cartao { min-height: 0; }
  .marca { font-size: 1.3rem; }
}


/* ---------- 16. MENOS MOVIMENTO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
}
