/* J&L Consultoria Jurídica — estilos
   Paleta derivada da marca atual (vinho #6E1F5C / #2B0D1B). Tipografia: Newsreader + Public Sans. */
:root {
  --ink: #1e1519;
  --muted: #625660;
  --wine: #6e1f5c;
  --wine-hover: #561849;
  --deep: #2b0d1b;
  --tint: #f6f1f4;
  --line: #e3d9df;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #e6bfd9; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 40rem; margin-top: 1rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem; border: 1px solid var(--wine); border-radius: 3px; background: var(--wine); color: #fff; font: 600 0.9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .1s; }
.btn:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.btn:active { transform: translateY(1px); }
.link { color: inherit; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 51px; height: 44px; }
.brand-name { font: 600 1.5rem/1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.brand-sub { display: block; margin-top: .3rem; font-size: .75rem; line-height: 1.2; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 2.25rem; }
.nav { display: flex; gap: 1.75rem; }
.nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding-block: .5rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--wine); border-color: var(--wine); }
.lang { display: flex; }
.lang button { min-width: 42px; height: 36px; margin-left: -1px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 600 .8125rem/1 var(--sans); letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s; }
.lang button:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.lang button:last-child { border-radius: 0 3px 3px 0; }
.lang button:hover { color: var(--ink); background: var(--tint); }
.lang button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: auto; transition: transform .25s, background-color .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(760px, calc(100svh - var(--header-h))); color: #fff; background: var(--deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
@media (max-width: 640px) { .hero-img { object-position: 38% center; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,8,20,.9) 0%, rgba(27,8,20,.68) 48%, rgba(27,8,20,.2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 4.5rem; }
.hero-copy { max-width: 38rem; animation: rise .8s ease-out both; }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.875rem); line-height: 1.08; letter-spacing: -0.015em; }
.hero p { margin-top: 1.5rem; max-width: 33rem; font-size: 1.125rem; color: rgba(255,255,255,.86); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.hero .btn { background: #fff; border-color: #fff; color: var(--deep); }
.hero .btn:hover { background: #f0e3ec; border-color: #f0e3ec; }
.hero .link { text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); }
.hero .link:hover { text-decoration-color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Quem somos */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.about-text p { margin-top: 1.25rem; max-width: 34rem; color: #3d3239; }
.about-text h2 + p { margin-top: 1.75rem; }
.diff h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.diff-item { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.diff-item:last-child { border-bottom: 1px solid var(--line); }
.diff-item h4 { font-size: 1.375rem; color: var(--wine); }
.diff-item p { margin-top: .5rem; color: var(--muted); max-width: 34rem; }

/* Serviços */
.services { background: var(--tint); }
.phases { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.phase { border-top: 2px solid var(--wine); padding-top: 1.5rem; }
.phase .num { display: block; font: 400 2.5rem/1 var(--serif); color: var(--wine); margin-bottom: 1rem; }
.phase h3 { font-size: 1.5rem; }
.phase-body { margin-top: 1.25rem; color: #3d3239; font-size: 1rem; }
.phase-body ul { list-style: none; margin: 0; padding: 0; }
.phase-body li { padding-block: .8rem; border-top: 1px solid var(--line); }
.phase-body li:first-child { padding-top: 0; border-top: 0; }

/* Equipe */
.team-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem clamp(2rem, 5vw, 4.5rem); }
.member img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; border-radius: 2px; }
.member h3 { margin-top: 1.5rem; font-size: 1.875rem; }
.member .role { margin-top: .5rem; color: var(--wine); font-weight: 600; font-size: 1rem; line-height: 1.45; }
.member .bio { margin-top: 1rem; color: #3d3239; font-size: 1rem; max-width: 34rem; }

/* Contato */
.contact { background: var(--deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact .lead { color: rgba(255,255,255,.78); }
.contact-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.contact-list dt { font-size: .875rem; font-weight: 600; color: #d9a9cb; }
.contact-list dd { margin: .2rem 0 0; }
.contact-list a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .2s; }
.contact-list dd + dd { margin-top: 0; }
.contact-list a:hover { border-color: #fff; }
.form-box { background: #fff; color: var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 4px; }
.form-box h3 { font-size: 1.625rem; margin-bottom: 1.5rem; }
.form-box form { display: grid; gap: 1rem; }
.form-box input, .form-box textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #cfc2ca; border-radius: 3px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s; }
.form-box input:hover, .form-box textarea:hover { border-color: #a8949f; }
.form-box input:focus, .form-box textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.form-box textarea { resize: vertical; min-height: 140px; }
.form-box .btn { width: 100%; min-height: 52px; }

/* Rodapé */
.site-footer { background: var(--deep); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 2rem; }

.noscript { padding: 12px; text-align: center; background: var(--deep); color: #fff; font-size: 14px; }

/* WhatsApp: botão flutuante e seletor */
.wa-fab { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--wine); color: #fff; box-shadow: 0 4px 14px rgba(43,13,27,.28); cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.wa-fab[hidden] { display: none; }
.wa-fab:hover { background: var(--wine-hover); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43,13,27,.3); }
.wa-fab:active { transform: translateY(0); }
.wa-fab:focus-visible { outline-offset: 4px; }
.modal-open { overflow: hidden; }
.wa-modal { width: min(400px, calc(100% - 2rem)); padding: 1.5rem; border: 0; border-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(27,8,20,.35); }
.wa-modal[open] { animation: wa-in .22s ease-out both; }
.wa-modal::backdrop { background: rgba(27,8,20,.55); }
.wa-modal[open]::backdrop { animation: wa-fade .22s ease-out both; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }
.wa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wa-head h2 { font-size: 1.5rem; }
.wa-head p { margin-top: .4rem; color: var(--muted); font-size: .9375rem; }
.wa-close { flex: none; width: 40px; height: 40px; margin: -.5rem -.5rem 0 0; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background-color .2s, color .2s; }
.wa-close:hover { background: var(--tint); color: var(--ink); }
.wa-options { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.wa-options a { display: block; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; transition: border-color .2s, background-color .2s; }
.wa-options a:hover { border-color: var(--wine); background: var(--tint); }
.wa-options strong { display: block; font: 500 1.25rem/1.2 var(--serif); }
.wa-options span { display: block; margin-top: .2rem; font-size: .875rem; color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; max-width: 40rem; }
  .nav { gap: 1.25rem; }
  .menu { gap: 1.25rem; }
}

/* Mobile: menu em painel */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.5rem; }
  .menu.open { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .lang { margin-top: 1.25rem; }
  .lang button { flex: 1; height: 44px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wa-fab { width: 50px; height: 50px; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
  .wa-modal { margin: auto auto 1rem; padding: 1.25rem; }
  body { font-size: 1rem; }
  .brand img { width: 44px; height: 38px; }
  .brand-name { font-size: 1.375rem; }
  .brand-sub { display: none; }
  .hero { min-height: calc(100svh - var(--header-h)); align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(27,8,20,.1) 0%, rgba(27,8,20,.55) 40%, rgba(27,8,20,.92) 72%); }
  .hero .wrap { padding-block: 3rem 3.5rem; }
  .hero p { font-size: 1.0625rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .hero .link { text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .member img { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, .wa-modal::backdrop { animation: none !important; transition: none !important; }
}
