/* Luna Martins Advocacia & Consultoria — cores e tipos tirados dos panfletos */
:root {
  --nevoa: #ebeaed;     /* fundo, igual ao panfleto */
  --branco: #ffffff;
  --roxo: #5e4b72;      /* títulos e botões */
  --roxo-escuro: #483859;
  --vinho: #5e3d48;     /* cor do logo */
  --lilas: #d39cbf;
  --ardosia: #6c7189;
  --texto: #3b3542;
  --texto-suave: #5d5766;
  --linha: #9aa7b8;

  --faixa: clamp(14px, 7vw, 112px);
  --gutter: clamp(16px, 5vw, 64px);
  --serif: "Lora", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nevoa);
  color: var(--texto);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--roxo); margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }

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

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--roxo); color: var(--branco); padding: 10px 16px;
}
.pular:focus { top: 16px; }

/* ---------- Faixa lateral ---------- */
.faixa {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--faixa);
  background: linear-gradient(180deg,
    #6c7189 0%, #93869e 12%, #d39cbf 26%, #b48aac 38%,
    #8f6c96 50%, #67537a 62%, #5e4b72 76%, #8f6c96 88%, #d39cbf 100%);
  background-size: 100% 260%;
  background-position: 0 0;
  z-index: 1;
}

main, .rodape { padding-right: var(--faixa); }

/* largura máxima do conteúdo, alinhado à esquerda */
.hero, .areas, .sobre, .contato {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botões e links ---------- */
.botao {
  display: inline-block;
  background: var(--roxo);
  color: var(--branco);
  font: 600 1rem/1 var(--sans);
  padding: 1.05em 1.8em;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.botao:hover { background: var(--roxo-escuro); }
.botao--claro { background: var(--branco); color: var(--roxo); }
.botao--claro:hover { background: var(--nevoa); }

.link {
  color: var(--roxo);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lilas);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-color: var(--roxo); }

/* ---------- Topo ---------- */
.hero {
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 48px 72px;
}
.hero__logo {
  width: clamp(200px, 30vw, 300px);
  margin: 0 auto clamp(48px, 9vh, 96px);
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.traco {
  width: 96px; height: 1px; border: 0;
  background: var(--linha);
  margin: clamp(28px, 5vh, 44px) 0;
}
.hero__texto {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--texto-suave);
}
.hero__acoes {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 32px; margin-top: 12px;
}

/* ---------- Áreas ---------- */
.areas { padding-block: 72px; }
.areas h2, .sobre h2, .contato h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.areas > h2 { margin-bottom: 44px; }

.areas__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px 64px;
}
.area {
  border-left: 3px solid var(--lilas);
  padding-left: 24px;
}
.area h3 { font-size: 1.6rem; margin-bottom: 14px; }
.area p {
  font-style: italic;            /* o itálico do panfleto */
  color: var(--texto-suave);
  max-width: 36em;
}
.area .area__processo {
  font-style: normal;
  font-size: .875rem;
  color: var(--ardosia);
}
.area .link { display: inline-block; margin-top: 4px; }

/* ---------- Sobre ---------- */
.sobre {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: 72px;
}
.sobre__foto {
  margin: 0;
  position: relative;
}
.sobre__foto::before {            /* bloco lilás deslocado atrás da foto */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--lilas);
  opacity: .55;
}
.sobre__foto img { position: relative; width: 100%; }
.sobre__oab {
  color: var(--ardosia);
  font-weight: 500;
  margin: 8px 0 24px;
}
.sobre__texto p:not(.sobre__oab) { max-width: 34em; }

/* ---------- Contato ---------- */
.contato {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 72px);
  padding-block: 72px 96px;
}
.contato__intro p { color: var(--texto-suave); max-width: 26em; }
.contato__intro h2 { margin-bottom: 16px; }
.contato__zap {
  margin-top: 36px;
  padding: 28px;
  background: var(--roxo);
  color: var(--branco);
}
.contato__zap p { color: var(--branco); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.contato__zap .botao { display: block; padding-inline: 1em; }

.form {
  background: var(--branco);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  align-content: start;
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .9rem; color: var(--roxo); }
.opcional { font-weight: 400; color: var(--texto-suave); }

.campo input, .campo select, .campo textarea {
  font: inherit;
  color: var(--texto);
  background: var(--nevoa);
  border: 1px solid transparent;
  border-bottom: 2px solid var(--linha);
  padding: 12px 14px;
  border-radius: 2px;
  width: 100%;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-bottom-color: var(--roxo);
  background: #f4f3f5;
}
.campo input:user-invalid, .campo select:user-invalid, .campo textarea:user-invalid {
  border-bottom-color: #b3261e;
}

.campo--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.campo--check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--roxo); }
.campo--check label { font-weight: 400; color: var(--texto-suave); font-size: .875rem; line-height: 1.55; }

.form .botao { justify-self: start; }
.escondido { position: absolute; left: -9999px; }

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--roxo);
  color: var(--branco);
  text-align: center;
  padding-block: 56px 40px;
  font-size: .95rem;
}
.rodape img { width: 180px; margin: 0 auto 24px; }
.rodape a { color: var(--branco); text-underline-offset: 4px; }
.rodape p { margin-bottom: .6em; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .sobre, .contato { grid-template-columns: 1fr; }
  .sobre__foto { max-width: 220px; margin-right: 18px; }
  .form { grid-template-columns: 1fr; }
  .form .botao { width: 100%; justify-self: stretch; text-align: center; }
  .hero__acoes .botao { width: 100%; text-align: center; }
  .areas, .sobre, .contato { padding-block: 56px; }
}
