/* Layout: página inicial com duas portas de entrada + uma vista própria para cada frente; faixas alternadas branco / cinza / verde do timbre */
  :root{
    --bg: #FFFFFF;
    --surface: #F5F5F1;
    --ink: #2B2B29;
    --ink-soft: #5C5C57;
    --ink-faint: #7C7C76;
    --brand: #0D6241;
    --brand-strong: #094830;
    --brand-wash: #E7F0EB;
    --on-brand: #F5F7F2;
    --on-brand-soft: #CFE3D7;
    --line-grey: #B9BAB4;
    --line: #E3E3DE;
    --shadow-lift: 0 10px 24px -14px rgba(13,98,65,0.35);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg: #11201A; --surface: #182A23; --ink: #EDEBE3; --ink-soft: #B6BDB3; --ink-faint: #8E9A8A;
      --brand: #55C093; --brand-strong: #86D9B4; --brand-wash: #1B3229; --on-brand: #0B1A15; --on-brand-soft: #123322;
      --line-grey: #556058; --line: #29382F;
      --shadow-lift: 0 10px 24px -14px rgba(0,0,0,0.5);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"]{
    --bg: #11201A; --surface: #182A23; --ink: #EDEBE3; --ink-soft: #B6BDB3; --ink-faint: #8E9A8A;
    --brand: #55C093; --brand-strong: #86D9B4; --brand-wash: #1B3229; --on-brand: #0B1A15; --on-brand-soft: #123322;
    --line-grey: #556058; --line: #29382F;
    --shadow-lift: 0 10px 24px -14px rgba(0,0,0,0.5);
    color-scheme: dark;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; scroll-padding-top: 84px; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
  body{
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--body); font-size: 16.5px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3{ font-family: var(--display); color: var(--ink); font-weight: 500; text-wrap: balance; margin: 0; }
  p{ margin: 0; }
  a{ color: var(--brand); }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible{
    outline: 2px solid var(--brand); outline-offset: 3px;
  }
  [hidden]{ display: none !important; }
  .wrap{ max-width: 1040px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }
  .eyebrow{ font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

  /* ---- barra superior ---- */
  header.topbar{
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  }
  .topbar .wrap{ display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 12px; flex-wrap: wrap; }
  .brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand-mark{ width: 30px; height: 30px; flex: none; }
  .brand-name{ font-family: var(--display); font-weight: 500; font-size: 0.98rem; color: var(--brand); letter-spacing: 0.04em; text-transform: uppercase; }
  nav.primary{ display: flex; flex-wrap: wrap; gap: 6px clamp(12px, 2vw, 22px); }
  nav.primary a{ color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
  nav.primary a:hover{ color: var(--brand); }
  nav.primary a[aria-current="page"]{ color: var(--brand); border-bottom-color: var(--brand); }

  /* ---- faixas ---- */
  .band-light{ background: var(--bg); }
  .band-tint{ background: var(--surface); }
  .band-brand{ background: var(--brand); color: var(--on-brand); }
  section{ padding-block: clamp(48px, 8vw, 80px); }
  .section-head{ max-width: 62ch; margin-bottom: clamp(26px, 5vw, 40px); }
  .section-head h2{ font-size: clamp(1.55rem, 3vw, 2.05rem); margin-top: 10px; }
  .section-head p{ color: var(--ink-soft); margin-top: 12px; font-size: 1.02rem; }

  /* ---- botões ---- */
  .btn{
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 4px;
    font-size: 0.95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; font-family: inherit;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  }
  .btn-primary{ background: var(--brand); color: var(--on-brand); }
  .btn-primary:hover{ background: var(--brand-strong); transform: translateY(-1px); }
  .btn-ghost{ background: var(--bg); border-color: var(--line-grey); color: var(--ink); }
  .btn-ghost:hover{ border-color: var(--brand); color: var(--brand); }

  /* ---- hero ---- */
  .hero{ position: relative; overflow: hidden; padding-block: clamp(52px, 9vw, 92px) clamp(44px, 7vw, 68px); }
  .hero-illustration{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
  .hero-scrim{
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 48%, color-mix(in srgb, var(--bg) 55%, transparent) 64%, transparent 84%);
  }
  @media (max-width: 780px){
    .hero-illustration{ opacity: .3; }
    .hero-scrim{ background: linear-gradient(180deg, var(--bg) 55%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
  }
  .hero-grid{ position: relative; z-index: 2; }
  .oab-badge{
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px 6px 8px; font-size: 0.78rem; color: var(--ink-soft); background: var(--bg); max-width: 100%;
  }
  .oab-badge .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
  .hero h1{ font-size: clamp(2.05rem, 4.5vw, 3.15rem); line-height: 1.12; margin-top: 18px; max-width: 17ch; }
  .hero .lede{ margin-top: 20px; max-width: 52ch; color: var(--ink-soft); font-size: 1.1rem; }
  .hero-actions{ margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

  /* ---- portas de entrada ---- */
  .doors{ display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
  .door{
    display: flex; flex-direction: column; gap: 14px;
    background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px;
    padding: clamp(22px, 4vw, 32px);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .door:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .door h3{ font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.25; }
  .door p{ color: var(--ink-soft); }
  .door ul{ margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .door li{ display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
  .door li::before{ content: ""; width: 7px; height: 7px; margin-top: 0.62em; background: var(--brand); border-radius: 1px; }
  .door .btn{ align-self: flex-start; margin-top: auto; }

  /* ---- o advogado ---- */
  .sobre-grid{ display: grid; grid-template-columns: minmax(0,320px) minmax(0,1fr); gap: clamp(28px, 6vw, 64px); align-items: start; }
  @media (max-width: 760px){ .sobre-grid{ grid-template-columns: 1fr; } .retrato{ max-width: 300px; } }
  .retrato{ margin: 0; border-bottom: 3px solid var(--brand); border-radius: 4px 4px 0 0; overflow: hidden; background: var(--surface); }
  .retrato img{ display: block; width: 100%; height: auto; }
  .sobre-texto{ display: flex; flex-direction: column; gap: 28px; }
  .sobre-texto .facts{ padding-top: 24px; border-top: 1px solid var(--line); }
  .prose{ display: flex; flex-direction: column; gap: 16px; color: var(--ink-soft); max-width: 65ch; }
  .prose strong{ color: var(--ink); font-weight: 600; }
  .facts{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .facts li{ display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 12px; font-size: 0.92rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .facts li:last-child{ border-bottom: none; padding-bottom: 0; }
  .facts .k{ color: var(--ink-faint); }
  .facts .v{ color: var(--ink); }

  /* ---- citação ---- */
  .quote-band{ text-align: center; padding-block: clamp(48px, 8vw, 72px); }
  .quote-band .eyebrow{ color: var(--on-brand-soft); display: block; margin-bottom: 18px; }
  .pull-band{ font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.42; max-width: 36ch; margin: 0 auto; }

  /* ---- etapas ---- */
  .steps{ display: flex; flex-direction: column; }
  .step{ display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); }
  .step:last-child{ border-bottom: 1px solid var(--line); }
  .step-num{ font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
  .step h3{ font-size: 1.05rem; }
  .step p{ margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; max-width: 60ch; }

  /* ---- outras áreas ---- */
  .other{ display: flex; flex-direction: column; }
  .other-row{ display: grid; grid-template-columns: minmax(0,240px) minmax(0,1fr); gap: 8px 28px; padding-block: 20px; border-top: 1px solid var(--line); }
  .other-row:last-child{ border-bottom: 1px solid var(--line); }
  @media (max-width: 640px){ .other-row{ grid-template-columns: 1fr; } }
  .other-row h3{ font-size: 1.05rem; }
  .other-row p{ color: var(--ink-soft); font-size: 0.96rem; max-width: 62ch; }

  /* ---- páginas das frentes ---- */
  .page-hero{ padding-block: clamp(36px, 6vw, 60px) clamp(36px, 6vw, 56px); border-bottom: 1px solid var(--line); }
  .back{ font-size: 0.86rem; font-weight: 600; text-decoration: none; }
  .back:hover{ text-decoration: underline; }
  .page-hero h1{ font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.14; margin-top: 16px; max-width: 22ch; }
  .page-hero .lede{ margin-top: 18px; max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }
  .page-hero .hero-actions{ margin-top: 26px; }

  .signs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
  .signs li{ padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; }
  .signs li::before{ content: ""; width: 7px; height: 7px; margin-top: 0.62em; background: var(--brand); border-radius: 1px; }
  .signs strong{ display: block; color: var(--ink); font-weight: 600; }
  .signs span{ color: var(--ink-soft); font-size: 0.94rem; }

  .two-col{ display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(28px, 6vw, 64px); align-items: start; }
  @media (max-width: 760px){ .two-col{ grid-template-columns: 1fr; } }
  .parecer{ background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; padding: clamp(20px, 4vw, 28px); }
  .parecer h3{ font-size: 1.12rem; }
  .parecer .sub{ font-size: 0.86rem; color: var(--ink-faint); margin: 4px 0 18px; }
  .parecer ol{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: item; }
  .parecer li{ counter-increment: item; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
  .parecer li::before{ content: counter(item, upper-roman) "."; font-family: var(--display); color: var(--brand); font-weight: 500; }
  .parecer li strong{ color: var(--ink); font-weight: 600; }
  .note-box{ margin-top: 22px; padding: 16px 18px; background: var(--brand-wash); border-left: 3px solid var(--brand); border-radius: 0 4px 4px 0; font-size: 0.94rem; color: var(--ink); }

  .paths{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
  .path{ background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 26px); display: flex; flex-direction: column; gap: 10px; }
  .path .sit{ font-family: var(--display); font-style: italic; font-size: 1.06rem; line-height: 1.35; color: var(--ink); }
  .path .via{ font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-top: 6px; }
  .path p.desc{ color: var(--ink-soft); font-size: 0.94rem; }

  .docs-list{ margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
  .docs-list li{ padding-block: 12px; border-top: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-soft); }
  .docs-list li:last-child{ border-bottom: 1px solid var(--line); }
  .docs-list strong{ color: var(--ink); font-weight: 600; }

  .faq{ display: flex; flex-direction: column; max-width: 760px; }
  .faq details{ border-top: 1px solid var(--line); }
  .faq details:last-child{ border-bottom: 1px solid var(--line); }
  .faq summary{ cursor: pointer; list-style: none; padding-block: 18px; font-family: var(--display); font-size: 1.08rem; font-weight: 500; display: grid; grid-template-columns: minmax(0,1fr) 20px; gap: 16px; align-items: start; }
  .faq summary::-webkit-details-marker{ display: none; }
  .faq summary::after{ content: "+"; color: var(--brand); font-family: var(--body); font-size: 1.3rem; line-height: 1.2; text-align: center; }
  .faq details[open] summary::after{ content: "–"; }
  .faq details p{ padding-bottom: 20px; color: var(--ink-soft); max-width: 65ch; }

  .cta-band{ text-align: center; padding-block: clamp(44px, 7vw, 64px); }
  .cta-band h2{ color: var(--on-brand); font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 26ch; margin: 0 auto; }
  .cta-band p{ color: var(--on-brand-soft); margin: 12px auto 24px; max-width: 52ch; }
  .cta-band .btn{ background: var(--on-brand); color: var(--brand); }
  .cta-band .btn:hover{ transform: translateY(-1px); }

  /* ---- contato ---- */
  .contact-grid{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(28px, 6vw, 64px); }
  @media (max-width: 760px){ .contact-grid{ grid-template-columns: 1fr; } }
  .contact-info h3{ font-size: 1.4rem; margin-bottom: 14px; }
  .contact-line{ display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; color: var(--ink-soft); font-size: 0.98rem; min-width: 0; }
  .contact-line > span{ min-width: 0; overflow-wrap: anywhere; }
  .contact-line svg{ width: 19px; height: 19px; color: var(--brand); margin-top: 2px; flex: none; }
  .contact-line a{ color: var(--ink); text-decoration: none; font-weight: 500; }
  .contact-line a:hover{ color: var(--brand); }
  .note{ margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-faint); line-height: 1.6; }
  form.card{ background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 4vw, 30px); }
  .field{ margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
  .field label{ font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
  .field input, .field textarea, .field select{
    font-family: inherit; font-size: 0.98rem; padding: 11px 12px; border: 1px solid var(--line-grey); border-radius: 4px;
    background: var(--bg); color: var(--ink); width: 100%;
  }
  .field textarea{ min-height: 110px; resize: vertical; }
  .form-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
  .form-status{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; min-height: 1.2em; }

  /* ---- rodapé ---- */
  footer{ padding-block: 30px 46px; border-top: 1px solid var(--line); }
  .footer-grid{ display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  footer .oab{ color: var(--ink-faint); font-size: 0.85rem; margin-top: 4px; }
  .footer-bottom{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-bottom .copy{ font-size: 0.8rem; color: var(--ink-faint); }
  .ethics-note{ max-width: 46ch; font-size: 0.78rem; color: var(--ink-faint); text-align: right; line-height: 1.5; }
  @media (max-width: 560px){ .ethics-note{ text-align: left; } }
