/* ==========================================================================
   LF Costa Advocacia — estilos compartilhados
   Base: identidade da homepage v7 (paleta terrosa, linhas de 1px, ponto dourado)
   ========================================================================== */

:root {
  --paper: #F8F6F2;
  --cream: #F2EBE2;
  --ivory: #FFFEFB;
  --sand: #E8DCCB;
  --brown: #836650;        /* escurecido em relação à v7 (#896C53): 4.9:1 sobre --paper */
  --brown-dark: #72543E;
  --brown-deep: #51422F;
  --gold: #CEA660;          /* decorativo (pontos, filetes); não usar em texto pequeno */
  --gold-on-dark: #DCBC82;  /* dourado para texto sobre --brown-deep (5.3:1) */
  --olive: #6B7A40;
  --olive-dark: #56622F;
  --ink: #333630;
  --grey: #5F615A;          /* escurecido em relação à v7 (#6E7069) para AA em texto pequeno */
  --line: #DDD9D2;
  --line-strong: #C9BAA7;
  --on-dark: #F3EDE0;
  --on-dark-muted: #D6CBBB;
  --field-border: #8F8272;  /* 3.6:1 sobre o fundo do campo (WCAG 1.4.11) */
  --placeholder: #6F6A62;
  --error: #A13325;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
em.accent { font-style: italic; color: var(--brown); }
.period { color: var(--gold); }

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

.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -80px; background: var(--ivory); padding: 10px 14px; z-index: 200; border: 1px solid var(--brown); }
.skip:focus { top: 10px; }

.eyebrow {
  font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .18em;
  color: var(--brown-dark); display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex: none; }
.eyebrow.on-dark { color: var(--on-dark-muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 48px; padding: 13px 22px;
  font-size: .88rem; font-weight: 700; letter-spacing: .01em;
  border: 1px solid var(--brown); background: var(--brown); color: #fff;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--brown-dark); border-color: var(--brown-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brown-dark); }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-whats { background: var(--olive); border-color: var(--olive); }
.btn-whats:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--brown-deep); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-block { width: 100%; justify-content: space-between; }

.text-action {
  border: 0; background: transparent; border-bottom: 1px solid var(--gold);
  padding: 0 0 5px; font-size: .86rem; font-weight: 700; color: var(--brown-dark);
  display: inline-flex; align-items: center; gap: 12px; transition: color .2s, border-color .2s;
}
.text-action:hover { color: var(--ink); border-color: var(--brown); }
.text-action.on-dark { color: var(--on-dark); }
.text-action.on-dark:hover { color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  border-bottom: 1px solid #E2DDD4;
  background: rgba(248, 246, 242, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 210px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu > a { font-size: .86rem; font-weight: 600; transition: color .2s; position: relative; }
.menu > a:hover, .menu > a[aria-current="page"] { color: var(--brown); }
.menu > a.nav-highlight::after {
  content: '®'; font-size: .62rem; color: var(--olive-dark); position: relative; top: -.55em; margin-left: 2px;
}
.menu .nav-contact { background: var(--brown); padding: 12px 18px; color: #fff; white-space: nowrap; }
.menu .nav-contact:hover { background: var(--brown-dark); color: #fff; }
.hamb {
  display: none; background: transparent; border: 1px solid var(--line);
  height: 44px; width: 44px; font-size: 22px; line-height: 1; color: var(--ink);
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: 76px 0 92px; overflow: hidden; position: relative;
  background: linear-gradient(100deg, var(--paper) 0%, var(--paper) 62%, #ECEFE5 100%);
}
.hero::before {
  content: ''; position: absolute; width: 55vw; max-width: 760px; aspect-ratio: 1;
  right: -14vw; top: -18vw; border: 1px solid rgba(107, 122, 64, .2); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; width: 42vw; max-width: 560px; aspect-ratio: 1;
  right: 8vw; bottom: -24vw; border: 1px solid rgba(206, 166, 96, .24); border-radius: 50%;
}
.hero-wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; position: relative; z-index: 1; }
.hero h1 { margin: 22px 0 26px; max-width: 760px; }
.hero h1 .second { color: var(--brown); font-style: italic; }
.lead { font-size: 1.08rem; line-height: 1.8; color: var(--grey); max-width: 570px; }
.hero-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.hero-aside { height: 480px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-aside::before {
  content: ''; position: absolute; left: 8%; top: 2%; width: 1px; height: 96%;
  background: linear-gradient(180deg, rgba(206,166,96,.02), rgba(206,166,96,.85), rgba(206,166,96,.02));
}
.hero-aside::after {
  content: ''; position: absolute; right: -6%; top: 10%; width: 84%; height: 80%;
  border: 1px solid rgba(107, 122, 64, .26); border-radius: 52% 48% 47% 53% / 42% 58% 42% 58%;
}
.hero-aside img { width: 86%; opacity: .24; }

.credentials {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 600;
  list-style: none; padding: 0;
}
.credentials li { display: flex; align-items: center; gap: 10px; }
.credentials li::before { content: ''; width: 18px; height: 1px; background: var(--olive); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 52px; margin-bottom: 46px; }
.section-head h2 { max-width: 800px; margin-top: 18px; }
.section-head > p { max-width: 360px; font-size: .98rem; color: var(--grey); line-height: 1.8; }

/* Áreas */
.areas { background: var(--ivory); border-top: 1px solid var(--line); }
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.area-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; text-align: left;
  padding: 20px 20px 24px; min-height: 196px;
  border: 1px solid #E0DBD3; background: var(--paper); color: var(--ink);
  transition: background .18s, transform .18s, border-color .18s;
}
.area-tile:hover { background: #EFE6DA; border-color: var(--line-strong); transform: translateY(-3px); }
.area-meta { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; letter-spacing: .1em; color: var(--brown-dark); }
.area-meta b { font-weight: 500; font-size: 1.25rem; color: var(--brown); }
.area-name { display: block; font: 400 clamp(1.25rem, 1.6vw, 1.7rem)/1.18 var(--serif); letter-spacing: -.02em; }
.area-desc { display: block; font-size: .84rem; color: var(--grey); line-height: 1.5; margin-top: 8px; }
.area-tile.featured { background: var(--brown-deep); border-color: var(--brown-deep); color: var(--on-dark); }
.area-tile.featured .area-meta, .area-tile.featured .area-meta b { color: var(--gold-on-dark); }
.area-tile.featured .area-desc { color: var(--on-dark-muted); }
.area-tile.featured:hover { background: #45372A; }
.areas-note { margin-top: 24px; font-size: .84rem; color: var(--grey); }

/* Verificador de marca */
.mark-check { background: var(--ivory); color: var(--ink); border: 1px solid var(--line); padding: 30px; }
.mark-check h3 { font-size: 1.5rem; }
.mark-check .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.mark-check .btn { margin-top: 14px; }
.mark-check .disclaimer { font-size: .78rem; color: var(--grey); margin-top: 12px; line-height: 1.55; }

/* Formulários */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; color: var(--brown-dark); font-weight: 700; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 12px 13px;
  border: 1px solid var(--field-border); background: #FCFBF8; color: var(--ink); border-radius: 0;
  font-size: 1rem; /* evita zoom automático no iOS */
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--brown); outline: 2px solid rgba(131, 102, 80, .35); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--error); font-size: .84rem; margin: 6px 0 10px; font-weight: 600; }
.form-error:empty { display: none; }
.form-ok { background: #F6F1E7; border-left: 3px solid var(--olive); font-size: .86rem; padding: 13px 14px; color: #4F483F; margin-top: 14px; }
.form-ok[hidden] { display: none; }
.form-hint { font-size: .78rem; color: var(--grey); line-height: 1.6; margin-top: 14px; }
.form-hint a { text-decoration: underline; }

/* Escritório / statement */
.statement { background: var(--sand); padding: 96px 0; position: relative; overflow: hidden; }
.statement::before {
  content: ''; position: absolute; width: 450px; height: 450px;
  border: 1px solid rgba(174, 147, 122, .48); border-radius: 50%; right: -230px; top: -180px;
}
.statement-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; position: relative; }
.statement h2 { font-size: clamp(2rem, 3.4vw, 3.6rem); }
.statement h2 em { font-style: italic; color: var(--brown-dark); }
.statement p { color: #574E45; line-height: 1.85; }
.statement .text-action { margin-top: 22px; }

/* Valores (3 colunas numeradas) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); margin-top: 64px; position: relative; }
.pillar { padding: 28px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.pillar span { font: italic 400 1.1rem var(--serif); color: var(--brown-dark); }
.pillar h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.pillar p { font-size: .92rem; color: #574E45; line-height: 1.7; }

/* Profissionais */
.team { background: var(--paper); }
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.profile-card { background: var(--ivory); border: 1px solid #DFD8CF; display: grid; grid-template-columns: 42% 58%; min-height: 400px; overflow: hidden; }
.portrait { overflow: hidden; position: relative; background: #D9CCBF; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.88); transition: transform .5s; }
.profile-card:hover .portrait img { transform: scale(1.035); }
.profile-info { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.profile-role { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: var(--brown-dark); text-transform: uppercase; }
.profile-info h3 { line-height: 1.05; font-size: clamp(1.75rem, 2.1vw, 2.4rem); }
.oab { font-size: .84rem; font-weight: 700; color: var(--olive-dark); }
.bio { font-size: .9rem; line-height: 1.75; color: var(--grey); }
.profile-info .text-action { margin-top: auto; align-self: flex-start; }

/* Conteúdos */
.publications { background: var(--ivory); border-top: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.article-card { border-top: 1px solid var(--gold); padding-top: 24px; min-height: 230px; display: flex; flex-direction: column; height: 100%; }
.article-cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-dark); font-weight: 700; }
.article-card h3 { font-size: 1.5rem; line-height: 1.28; margin: 18px 0 12px; }
.article-card p { font-size: .9rem; color: var(--grey); line-height: 1.7; }
.article-meta { font-size: .78rem; color: var(--grey); margin-top: auto; padding-top: 18px; display: flex; gap: 8px; align-items: center; }
.tag-soon { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line-strong); padding: 2px 8px; color: var(--brown-dark); font-weight: 700; }

/* Contato */
.contact { background: #F2EAE0; }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: start; }
.contact h2 { margin-top: 18px; }
.contact-copy > p { color: #5D554C; max-width: 490px; line-height: 1.83; margin-top: 22px; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; list-style: none; padding: 0; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--brown-dark); width: fit-content; }
.contact-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact-list i { display: grid; place-items: center; width: 28px; height: 28px; background: #E3D4C0; border-radius: 50%; font-style: normal; font-size: .9rem; flex: none; }
.response-time { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; font-size: .84rem; color: var(--olive-dark); font-weight: 700; }
.response-time::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.form-card { background: var(--ivory); border: 1px solid #DFD6CB; padding: 38px 40px; }
.form-card h3 { font-size: 1.9rem; }
.form-intro { font-size: .9rem; color: var(--grey); margin: 10px 0 26px; }

/* ---------- Alerta de golpe ---------- */
.scam-alert {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); background: var(--ivory); padding: 24px 26px;
}
.scam-alert { color: var(--ink); }
.final-cta .scam-alert p { color: var(--grey); margin-top: 6px; max-width: none; }
.scam-alert .icon { font: 400 2rem/1 var(--serif); color: var(--brown-dark); }
.scam-alert h3 { font-size: 1.3rem; }
.scam-alert p { font-size: .92rem; color: var(--grey); margin-top: 6px; line-height: 1.7; }

/* ---------- Rodapé ---------- */
.footer { background: var(--brown-deep); color: var(--on-dark); padding: 72px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 260px; filter: brightness(0) invert(.93) sepia(.18); }
.footer-brand p { font-size: .88rem; color: var(--on-dark-muted); max-width: 320px; margin-top: 20px; line-height: 1.7; }
.footer h2 { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; color: var(--gold-on-dark); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer li, .footer li a { font-size: .88rem; color: var(--on-dark-muted); }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { border-top: 1px solid rgba(232, 220, 203, .2); margin-top: 52px; padding-top: 22px; display: grid; gap: 10px; font-size: .8rem; color: var(--on-dark-muted); line-height: 1.65; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--olive); color: #fff; padding: 12px 18px 12px 14px;
  font-size: .86rem; font-weight: 700; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 30px rgba(51, 54, 48, .22);
  transition: background .2s, transform .2s;
}
.whats-float:hover { background: var(--olive-dark); transform: translateY(-2px); }
.whats-float svg { width: 22px; height: 22px; flex: none; }

/* ---------- Dialogs ---------- */
.overlay {
  border: 0; padding: 0; width: 100%; max-width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px); background: var(--ivory); color: var(--ink);
  box-shadow: 0 28px 85px rgba(39, 35, 29, .31);
}
.overlay::backdrop { background: rgba(34, 28, 23, .65); backdrop-filter: blur(4px); }
.overlay-content { padding: 44px 50px 46px; overflow: auto; max-height: calc(100dvh - 44px); }
.overlay-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.overlay-top h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 14px; }
.x-close { border: 1px solid var(--line); height: 44px; width: 44px; background: var(--paper); font-size: 24px; line-height: 1; flex: none; }
.overlay-sub { font-size: .9rem; color: var(--brown-dark); margin-top: 12px; font-weight: 700; }
.overlay-content > p { font-size: .96rem; line-height: 1.85; color: var(--grey); margin-top: 18px; }
.overlay-content h3 { margin: 26px 0 8px; font: 700 .76rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brown-dark); }
.overlay-content ul { padding-left: 20px; margin: 0; color: var(--grey); line-height: 1.9; }
.overlay-content .small { font-size: .82rem; }
.overlay-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* ==========================================================================
   Página: Registro de marca
   ========================================================================== */
.breadcrumb { font-size: .8rem; color: var(--grey); padding-top: 26px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.tm-hero { padding: 40px 0 90px; position: relative; overflow: hidden; }
.tm-hero::after {
  content: ''; position: absolute; width: 640px; aspect-ratio: 1; left: -320px; bottom: -380px;
  border: 1px solid rgba(206, 166, 96, .3); border-radius: 50%;
}
.tm-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; position: relative; z-index: 1; padding-top: 32px; }
.tm-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); margin: 20px 0 22px; }
.tm-hero h1 em { font-style: italic; color: var(--brown); }
.tm-hero .mark-check { margin-top: 34px; max-width: 620px; }
.tm-photo { position: relative; }
.tm-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; filter: saturate(.9); }
.tm-photo figcaption { background: var(--ivory); border: 1px solid var(--line); border-top: 0; padding: 18px 20px; font-size: .9rem; }
.tm-photo figcaption strong { font: 400 1.35rem var(--serif); display: block; }
.tm-photo figcaption span { color: var(--olive-dark); font-weight: 700; font-size: .84rem; }
.seal {
  position: absolute; top: -26px; right: -26px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); display: grid; place-items: center;
  font: 400 3.4rem/1 var(--serif); color: var(--brown-dark);
}
.seal::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(206, 166, 96, .5); border-radius: 50%; }

.answer-box { border-left: 3px solid var(--olive); padding: 4px 0 4px 20px; font-size: 1.04rem; color: var(--ink); line-height: 1.8; max-width: 620px; }

/* Comparativo */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--ivory); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare caption { text-align: left; padding: 16px 22px; font-size: .84rem; color: var(--grey); caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.6; }
.compare thead th { font: 400 1.3rem var(--serif); background: var(--paper); }
.compare thead th:last-child { background: var(--brown-deep); color: var(--on-dark); }
.compare tbody th { font-weight: 700; color: var(--brown-dark); width: 24%; font-size: .86rem; }
.compare td:last-child { background: #F6F1E8; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Etapas */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 1px solid var(--line-strong); }
.step { padding: 30px 24px 0 0; counter-increment: step; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block;
  font: 400 3rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--brown); margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; }
.step p { font-size: .9rem; color: var(--grey); margin-top: 10px; line-height: 1.7; }
.step .if { margin-top: 12px; font-size: .84rem; color: var(--olive-dark); font-weight: 600; line-height: 1.6; }

/* Serviços */
.services { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.service { border: 1px solid #E0DBD3; background: var(--paper); padding: 26px 24px 28px; height: 100%; }
.service .num { font-size: .74rem; letter-spacing: .1em; color: var(--brown-dark); }
.service h3 { font-size: 1.45rem; margin: 18px 0 10px; }
.service p { font-size: .9rem; color: var(--grey); line-height: 1.7; }

/* Quem atende */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.about-grid h2 { margin: 18px 0 22px; }
.about-grid p { color: var(--grey); line-height: 1.85; margin-top: 14px; max-width: 600px; }
.about-grid ul { margin: 22px 0 0; padding-left: 20px; color: var(--grey); line-height: 1.9; }

/* Taxas */
.fees { background: var(--sand); }
.fees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fee-card { background: var(--ivory); border: 1px solid var(--line-strong); padding: 26px; }
.fee-card .value { font: 400 2.4rem/1.1 var(--serif); color: var(--brown-dark); display: block; }
.fee-card p { font-size: .88rem; color: var(--grey); margin-top: 10px; line-height: 1.6; }
.fees .note { font-size: .84rem; color: #574E45; margin-top: 18px; line-height: 1.7; }
.updated { font-size: .8rem; color: var(--grey); margin-top: 14px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative;
  font: 400 clamp(1.15rem, 1.6vw, 1.45rem)/1.35 var(--serif);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 300 1.8rem/1 var(--sans); color: var(--brown); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--brown-dark); }
.faq-answer { padding: 0 56px 26px 0; color: var(--grey); line-height: 1.8; max-width: 820px; }
.faq-answer p + p { margin-top: 10px; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }
.faq-grid .section-head { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-grid .section-head > p { margin-top: 20px; }

/* CTA final */
.final-cta { background: var(--brown-deep); color: var(--on-dark); padding: 96px 0; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; width: 520px; aspect-ratio: 1; border: 1px solid rgba(206,166,96,.25); border-radius: 50%; right: -160px; top: -220px; }
.final-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; }
.final-cta h2 em { font-style: italic; color: var(--gold-on-dark); }
.final-cta p { color: var(--on-dark-muted); margin-top: 20px; line-height: 1.8; max-width: 540px; }
.final-cta .hero-actions { margin-top: 30px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .container { width: min(1240px, calc(100% - 64px)); }
  :root { --header-h: 76px; }
  .brand img { width: 186px; }
  .menu { gap: 18px; }
  .menu > a { font-size: .8rem; }
  .hero-wrap { gap: 32px; }
  .hero-aside { height: 420px; }
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-card { grid-template-columns: 38% 62%; }
  .profile-info { padding: 24px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hamb { display: block; }
  .menu {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 12px 16px 22px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px rgba(43, 35, 24, .14);
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .menu.open { display: flex; }
  .menu > a { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .menu .nav-contact { margin-top: 14px; padding: 14px; text-align: center; border-bottom: 0; }
  .tm-hero-grid, .about-grid, .fees-grid, .final-grid, .faq-grid, .contact-grid, .statement-inner { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid .section-head { position: static; }
  .tm-photo { max-width: 420px; }
  .seal { right: -10px; top: -18px; width: 88px; height: 88px; font-size: 2.6rem; }
  .about-grid img { max-width: 420px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  :root { --header-h: 70px; }
  .brand img { width: 168px; }
  .hero { padding: 48px 0 64px; background: var(--paper); }
  .hero-wrap { grid-template-columns: 1fr; gap: 12px; }
  .hero-aside { height: 240px; order: -1; }
  .hero-aside img { width: 62%; }
  .hero h1 { margin: 16px 0 18px; }
  .credentials { margin-top: 30px; }
  .section { padding: 68px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head > p { margin-top: 16px; max-width: none; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .area-tile { min-height: 164px; padding: 16px; }
  .area-name { font-size: 1.25rem; }
  .area-desc { font-size: .82rem; }
  .statement, .final-cta { padding: 68px 0; }
  .mark-check { padding: 22px 18px; }
  .mark-check .row, .field-row { grid-template-columns: 1fr; gap: 0; }
  .mark-check .row .field { margin-bottom: 12px; }
  .pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .pillar, .pillar + .pillar { padding: 22px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-strong); }
  .profiles { grid-template-columns: 1fr; gap: 16px; }
  .profile-card { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 3.4; }
  .article-grid { grid-template-columns: 1fr; gap: 18px; }
  .article-card { min-height: 0; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand img { width: 220px; }
  .overlay-content { padding: 28px 20px; }
  .steps { grid-template-columns: 1fr; border-top: 0; row-gap: 0; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .step::before { font-size: 2.4rem; margin-bottom: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .fee-cards { grid-template-columns: 1fr; }
  .faq-list summary { padding-right: 44px; }
  .faq-answer { padding-right: 0; }
  .scam-alert { grid-template-columns: 1fr; gap: 10px; }
  .whats-float { right: 14px; bottom: 14px; padding: 13px; }
  .whats-float .label { display: none; }
  .tm-hero { padding-bottom: 64px; }
}

@media (max-width: 420px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-tile { min-height: 0; }
  .hero-actions { gap: 18px; }
  .btn { padding: 12px 16px; }
}

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

@media print {
  .site-header, .whats-float, .mark-check, .form-card, .hamb { display: none !important; }
  .footer, .final-cta { background: #fff; color: #000; }
}
