/* =====================================================================
   LINEARE Inteligência Fundiária — folha de estilos do site
   Identidade: azul-petróleo #01374F · areia #AD9D86 · oliva #586230
   Layout: cabeçalho fixo, hero com slides, seções em faixas largas,
   cartões de serviço expansíveis, rodapé escuro.
   ===================================================================== */

:root {
  --navy: #01374F;
  --navy-deep: #02293B;
  --navy-soft: rgba(1, 55, 79, .08);
  --tan: #AD9D86;
  --tan-light: #E8E1D6;
  --tan-pale: #F3EFE8;
  --olive: #586230;
  --olive-soft: rgba(88, 98, 48, .12);
  --bg: #F7F4EF;
  --card: #FFFFFF;
  --text: #1B2730;
  --muted: #5B6770;
  --line: rgba(1, 55, 79, .12);
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(1, 55, 79, .12);
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Ícones inline (sprite <symbol>) */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-fill { fill: currentColor; stroke: none; }

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.01em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; font-weight: 600; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 600; margin: 0 0 20px; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
h4 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }

.section-kicker {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive); margin: 0 0 10px; display: inline-flex; align-items: center; gap: 10px;
}
.section-kicker::before { content: ""; width: 10px; height: 10px; background: var(--olive); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; text-decoration: none; color: #fff;
  background: var(--navy); border: 1px solid var(--navy); cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(1, 55, 79, .25); }
.btn:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-soft); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tan-light); border-color: var(--tan-light); }

/* ===== CABEÇALHO ===== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.94); }
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: saturate(180%) blur(10px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand a { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }

.menu { display: flex; gap: 4px; align-items: center; font-family: var(--font-heading); font-weight: 500; font-size: 15px; }
.menu a { color: var(--text); text-decoration: none; padding: 8px 13px; border-radius: var(--radius-sm); transition: .2s ease; }
.menu a:hover { color: var(--navy); background: var(--navy-soft); }
.menu a.active { color: #fff; background: var(--navy); }
.menu a.menu-cta { margin-left: 8px; border: 1px solid var(--navy); color: var(--navy); }
.menu a.menu-cta:hover, .menu a.menu-cta.active { background: var(--navy); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; gap: 5px; }
.burger-line { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.burger.active .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active .burger-line:nth-child(2) { opacity: 0; }
.burger.active .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; gap: 4px; display: none; flex-direction: column; align-items: stretch; }
  .menu.show { display: flex; }
  .menu a.menu-cta { margin: 6px 0 0; text-align: center; }
  .burger { display: inline-grid; }
}

/* ===== SEÇÕES ===== */
section { scroll-margin-top: 96px; padding: 88px 0; position: relative; }
@media (max-width: 900px) { section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* ===== HERO (slides) ===== */
#inicio.hero { padding: 0; height: min(86vh, 680px); min-height: 540px; position: relative; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide .container { width: 100%; position: relative; z-index: 2; }

.slide-brand { background: var(--tan-pale); color: var(--text); }
.slide-brand .mosaico { position: absolute; right: -40px; bottom: -8px; width: min(52vw, 620px); opacity: .95; pointer-events: none; }
.slide-brand .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.slide-brand .tagline { font-family: var(--font-heading); font-style: italic; color: var(--olive); font-size: 18px; margin-bottom: 14px; }
.slide-brand h1 { color: var(--navy); max-width: 14ch; }
.slide-brand p.lead { margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-brand .hero-logo { display: none; }

.slide-photo { color: #fff; }
.slide-photo .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(1,55,79,.88) 0%, rgba(1,55,79,.62) 55%, rgba(1,55,79,.35) 100%); }
.slide-photo h1 { color: #fff; max-width: 16ch; }
.slide-photo .lead { color: rgba(255,255,255,.88); }
.hero-nav { position: absolute; z-index: 5; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 34px; height: 4px; border-radius: 2px; border: 0; background: rgba(1,55,79,.25); cursor: pointer; padding: 0; transition: background .2s; }
.hero-dot.is-active { background: var(--navy); }
.slide-photo-active .hero-dot { background: rgba(255,255,255,.4); }
.slide-photo-active .hero-dot.is-active { background: #fff; }
.hero-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--navy); display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
@media (max-width: 900px) {
  #inicio.hero { height: auto; min-height: 0; }
  .hero-slide { position: relative; display: none; padding: 64px 0 72px; }
  .hero-slide.is-active { display: flex; }
  .slide-brand .container { grid-template-columns: 1fr; }
  .slide-brand .hero-logo { display: flex; order: -1; justify-content: flex-start; }
  .slide-brand .hero-logo img { width: 200px; height: auto; }
  .slide-brand .mosaico { width: 70vw; right: -80px; bottom: -30px; opacity: .35; }
  .hero-arrow { display: none; }
}

/* Faixa de segmentos (sob o hero) */
.segmentos { background: var(--navy); color: #fff; padding: 22px 0; }
.segmentos .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; justify-content: center; }
.segmentos .seg-label { font-family: var(--font-heading); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.segmentos span.seg { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255,255,255,.92); }
.segmentos span.seg .ic { color: var(--tan); font-size: 18px; }

/* ===== SERVIÇOS ===== */
#servicos { background: var(--card); }
.servicos-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; position: relative; }
@media (max-width: 900px) { .servicos-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 30px 32px; color: var(--text);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.servico-card { position: relative; overflow: hidden; cursor: pointer; background: var(--bg); display: flex; flex-direction: column; min-height: 100%; }
.servico-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.servico-num { font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: var(--tan); }
.servico-icone { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); transition: background .25s, color .25s; }
.servico-card:hover .servico-icone { background: var(--navy); color: #fff; }
.servico-resumo p { color: var(--muted); }
.servico-abrir { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 15px; }
.servico-thumb { margin: 0 -32px -30px; margin-top: 22px; height: 150px; overflow: hidden; }
.servico-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.servico-card:hover .servico-thumb img { transform: scale(1.04); }

.servico-detalhes { position: absolute; inset: 0; padding: 32px; opacity: 0; pointer-events: none; transform: scale(.97); transition: opacity .35s ease, transform .35s ease; overflow-y: auto; z-index: -1; background: var(--card); }
.detalhes-conteudo { display: flex; gap: 32px; align-items: stretch; height: 100%; min-height: 0; padding-right: 40px; }
.detalhes-texto { flex: 1; min-width: 0; }
.detalhes-texto ul { padding-left: 0; list-style: none; margin: 14px 0 0; display: grid; gap: 8px; }
.detalhes-texto li { position: relative; padding-left: 24px; }
.detalhes-texto li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--olive); }
.detalhes-imagem { flex: 0 0 280px; }
.detalhes-imagem img { display: block; width: 100%; height: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-sm); }
.btn-fechar { position: absolute; top: 18px; right: 18px; background: var(--navy-soft); border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); font-size: 22px; cursor: pointer; display: grid; place-items: center; z-index: 3; }
.btn-fechar:hover { background: var(--navy); color: #fff; }

.servicos-grid.servicos-aberto { display: block; min-height: 544px; }
.servicos-grid.servicos-aberto > li { display: none; }
.servicos-grid.servicos-aberto > li.servico-item-ativo { display: block; width: 100%; height: 544px; }
.servico-card.expandido { cursor: default; transform: none; height: 100%; }
.servico-card.expandido .servico-resumo, .servico-card.expandido .servico-topo, .servico-card.expandido .servico-abrir, .servico-card.expandido .servico-thumb { opacity: 0; pointer-events: none; }
.servico-card.expandido .servico-detalhes { opacity: 1; pointer-events: auto; transform: scale(1); z-index: 2; }

@media (max-width: 900px) {
  .servicos-grid.servicos-aberto { min-height: 0; }
  .servicos-grid.servicos-aberto > li.servico-item-ativo { height: auto; }
  .servico-card.expandido { padding: 0; }
  .servico-card.expandido .servico-resumo, .servico-card.expandido .servico-topo, .servico-card.expandido .servico-abrir, .servico-card.expandido .servico-thumb { display: none; }
  .servico-card.expandido .servico-detalhes { position: relative; inset: auto; padding: 24px; overflow: visible; }
  .detalhes-conteudo { flex-direction: column; height: auto; padding-right: 0; }
  .detalhes-imagem { flex-basis: auto; height: 200px; order: -1; }
  .detalhes-imagem img { max-height: 200px; }
}

.detalhes-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--navy); font-family: var(--font-heading); font-weight: 600; text-decoration: none; transition: gap .2s ease; }
.detalhes-link:hover { gap: 10px; text-decoration: underline; }

/* ===== SOBRE ===== */
#sobre { background: var(--bg); overflow: hidden; }
.sobre-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .sobre-grid { grid-template-columns: 1fr; gap: 40px; } }
.sobre-texto p { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 36px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { border-radius: var(--radius-sm); padding: 20px 18px; color: #fff; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; }
.stat.navy { background: var(--navy); } .stat.tan { background: var(--tan); } .stat.olive { background: var(--olive); }
.stat .num { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 14px; line-height: 1.3; opacity: .92; margin-top: 6px; }

.porque { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.porque h3 { margin-bottom: 16px; }
.porque ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: pq; }
.porque li { counter-increment: pq; position: relative; padding-left: 52px; color: var(--text); }
.porque li::before { content: counter(pq, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-heading); font-weight: 600; color: var(--tan); font-size: 15px; letter-spacing: .08em; }
.porque li::after { content: ""; position: absolute; left: 0; top: 30px; width: 34px; height: 2px; background: var(--olive); }
.equipe-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.equipe-tags span { background: var(--tan-light); color: var(--navy); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-family: var(--font-heading); font-weight: 500; }

/* ===== FUNDADORES ===== */
#fundadores { background: var(--card); }
.fundadores-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .fundadores-grid { grid-template-columns: 1fr; } }
.fundador { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.fundador .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: .04em; margin-bottom: 18px; }
.fundador .avatar.tan { background: var(--tan); } .fundador .avatar.olive { background: var(--olive); }
.fundador h3 { margin-bottom: 2px; font-size: 20px; }
.fundador .cargo { font-family: var(--font-heading); font-size: 14px; color: var(--olive); font-weight: 500; margin-bottom: 14px; }
.fundador p { color: var(--muted); font-size: 16px; }

/* ===== CLIENTES ===== */
#clientes { background: var(--tan-pale); padding-block: 64px; }
.clientes-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .clientes-wrap { grid-template-columns: 1fr; gap: 24px; } }
.clientes-texto h2 { margin-bottom: 8px; }
.clientes-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.clientes-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); height: 120px; display: grid; place-items: center; padding: 18px 24px; }
.clientes-grid a { display: grid; place-items: center; width: 100%; height: 100%; }
.clientes-grid img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: .8; transition: filter .3s ease, opacity .3s ease; }
.clientes-grid li:hover img, .clientes-grid a:focus-visible img { filter: none; opacity: 1; }

/* ===== CONTATO ===== */
#contato { background: var(--bg); }
.contato-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .contato-grid { grid-template-columns: 1fr; } }
.contato-form { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.contato-form:hover { transform: none; box-shadow: none; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-heading); font-weight: 500; font-size: 14px; }
.form-row label span { color: var(--olive); }
.contato-form input, .contato-form textarea, .contato-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.contato-form input::placeholder, .contato-form textarea::placeholder { color: #9AA3AA; }
.contato-form input:focus, .contato-form textarea:focus, .contato-form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.contato-form textarea { resize: vertical; min-height: 96px; }
.form-submit { align-self: flex-start; margin-top: 4px; }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }
.form-status { margin: 0; font-size: 14px; min-height: 1.2em; }
.form-status.sucesso { color: var(--olive); font-weight: 600; }
.form-status.erro { color: #A33A2B; font-weight: 600; }

.contato-info { display: flex; flex-direction: column; gap: 24px; }
.contato-canais { display: flex; flex-direction: column; gap: 18px; }
.contato-canais:hover { transform: none; box-shadow: none; }
.canal { display: flex; align-items: flex-start; gap: 14px; }
.canal .ic { font-size: 26px; color: var(--navy); margin-top: 3px; }
.canal p { margin: 0; }
.canal strong { font-family: var(--font-heading); font-weight: 600; }
.canal a { color: inherit; text-decoration: none; }
.canal a:hover { text-decoration: underline; color: var(--navy); }
.contato-mapa { padding: 8px; flex-grow: 1; display: flex; min-height: 240px; }
.contato-mapa:hover { transform: none; box-shadow: none; }
.contato-mapa iframe { width: 100%; min-height: 220px; flex-grow: 1; border: 0; border-radius: var(--radius-sm); }
.mapa-link { flex-grow: 1; display: grid; place-items: center; text-align: center; border-radius: var(--radius-sm); background: var(--tan-pale); text-decoration: none; padding: 24px; color: var(--navy); font-family: var(--font-heading); font-weight: 500; }

/* ===== RODAPÉ ===== */
footer { background: var(--navy); color: rgba(255,255,255,.85); border-top: 4px solid var(--olive); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 40px; padding-block: 56px 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--tan); }
.footer-about p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 320px; margin: 0; }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; display: block; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--olive); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; font-size: 14px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-bottom a:hover { color: var(--tan); text-decoration: underline; }

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 30px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== COOKIES (LGPD) ===== */
.cookie-banner {
  position: fixed; left: var(--gutter-l); right: var(--gutter-r); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie-accept { padding: 10px 22px; font-size: 15px; }
.cookie-decline { background: transparent; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; padding: 8px; }

/* ===== PÁGINAS DE SERVIÇO ===== */
.servico-hero { background: var(--navy); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.servico-hero .deco { position: absolute; right: -60px; bottom: -40px; width: min(48vw, 520px); opacity: .22; pointer-events: none; }
.servico-hero .container { position: relative; z-index: 2; max-width: 860px; }
.servico-hero .servico-num { color: var(--tan); display: block; margin-bottom: 10px; }
.servico-hero h1 { color: #fff; }
.servico-hero-sub { max-width: 680px; color: rgba(255,255,255,.86); font-size: 19px; margin-bottom: 28px; }
.servico-back { display: inline-flex; align-items: center; gap: 6px; color: var(--tan); text-decoration: none; font-weight: 600; font-family: var(--font-heading); margin-bottom: 26px; }
.servico-back:hover { text-decoration: underline; }
.servico-hero .hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.servico-hero .hero-actions .btn-ghost:hover { background: rgba(255,255,255,.1); }

.servico-bloco { padding: 64px 0; }
.servico-bloco.alt { background: var(--card); }
.servico-bloco .section-head { margin-bottom: 28px; }
.servico-lead { max-width: 780px; color: var(--text); font-size: 18px; }
.servico-lead p + p { margin-top: 12px; }

.processo-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 860px; }
.processo-steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 78px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.servico-bloco.alt .processo-steps li { background: var(--bg); }
.processo-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 24px; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.processo-steps h3 { margin: 0 0 6px; font-size: 19px; }
.processo-steps p { margin: 0; color: var(--muted); }

.entregaveis-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .entregaveis-grid { grid-template-columns: 1fr; } }
.entregaveis-grid li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.servico-bloco.alt .entregaveis-grid li { background: var(--bg); }
.entregaveis-grid .ic { color: var(--olive); font-size: 26px; margin-top: 2px; }
.entregaveis-grid strong { display: block; margin-bottom: 2px; font-family: var(--font-heading); font-weight: 600; }
.entregaveis-grid span { color: var(--muted); font-size: 15px; }

.subservicos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .subservicos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .subservicos { grid-template-columns: 1fr; } }
.subservicos li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.subservicos .ic { font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.subservicos h3 { font-size: 18px; margin-bottom: 8px; }
.subservicos p { color: var(--muted); font-size: 15px; }
.subservicos ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.subservicos ul li { background: none; border: 0; padding: 0; display: list-item; margin-bottom: 4px; }

.normas { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .normas { grid-template-columns: 1fr; } }
.normas li { display: flex; gap: 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.normas code { font-family: var(--font-heading); font-weight: 600; color: var(--navy); white-space: nowrap; }
.normas span { color: var(--muted); font-size: 15px; }

.faq-lista { max-width: 860px; display: grid; gap: 12px; }
.faq-item { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.servico-bloco.alt .faq-item { background: var(--bg); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-heading); font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--olive); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-resposta { padding: 0 22px 20px; color: var(--muted); margin: 0; }

.servico-cta { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.servico-cta h2 { color: #fff; margin-bottom: 10px; }
.servico-cta p { max-width: 620px; margin: 0 auto 24px; color: rgba(255,255,255,.82); }

/* ===== PÁGINA LEGAL ===== */
.legal-page { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter-r) 72px var(--gutter-l); }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; margin-top: 36px; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; text-decoration: none; color: var(--navy); font-weight: 600; font-family: var(--font-heading); }
.legal-note { background: var(--olive-soft); border-left: 4px solid var(--olive); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }

/* ===== ACESSIBILIDADE ===== */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
