/* ============================================================
   IDENTIDADE VISUAL — tokens
   Paleta derivada da logo: navy (profundidade), teal (água
   tratada), aqua (superfície), pale (espuma). Um único acento.
   ============================================================ */
:root {
  --navy: #0B3B5C;
  --navy-900: #072A43;
  --teal: #1D8FB0;
  --teal-600: #167A97;
  --aqua: #7BDCF0;
  --pale: #E6F5FA;
  --fundo: #F7FBFC;
  --branco: #FFFFFF;
  --texto: #17303F;
  --texto-suave: #4F6B7A;
  --linha: #CFE3EB;

  --fonte-titulo: "Sora", "Segoe UI", Arial, sans-serif;
  --fonte-texto: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --largura: 1140px;
  --raio: 10px;
  --raio-g: 22px;
  --sombra: 0 12px 32px -18px rgba(11, 59, 92, .35);
  --transicao: 180ms ease;

  /* escala tipográfica (razão 1.25, base 17px) */
  --t-1: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  --t-2: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  --t-3: 1.375rem;
  --t-4: 1.125rem;
  --t-p: 1.0625rem;
  --t-s: .9375rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: var(--t-p);
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: var(--t-1); font-weight: 700; }
h2 { font-size: var(--t-2); }
h3 { font-size: var(--t-3); }
h4 { font-size: var(--t-4); }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
address { font-style: normal; }
.container { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }
.texto-suave { color: var(--texto-suave); }
.lede { font-size: 1.2rem; color: var(--texto-suave); }

.pular-conteudo { position: absolute; left: 1rem; top: -100px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--raio); z-index: 100; }
.pular-conteudo:focus { top: 1rem; }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  transition: background var(--transicao), border-color var(--transicao), color var(--transicao), transform var(--transicao);
}
.botao:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.botao:active { transform: translateY(1px); }
.botao--vazado { background: transparent; color: var(--navy); }
.botao--vazado:hover { background: var(--pale); color: var(--navy); }
.botao--claro { background: #fff; border-color: #fff; color: var(--navy); }
.botao--claro:hover { background: var(--pale); border-color: var(--pale); color: var(--navy); }
.botao--pequeno { padding: .55rem 1.1rem; font-size: .9rem; }
.botao .icone { width: 1.1em; height: 1.1em; }
.link-seta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--fonte-titulo); font-weight: 600; text-decoration: none; }
.link-seta .icone { width: 1.1em; height: 1.1em; transition: transform var(--transicao); }
.link-seta:hover .icone { transform: translateX(3px); }

.icone { width: 1.5rem; height: 1.5rem; flex: none; }
.icone--sm { width: 1.1rem; height: 1.1rem; }
.icone--g { width: 2.6rem; height: 2.6rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 251, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.marca { display: inline-flex; align-items: center; }
.marca__horizontal { height: 46px; width: auto; }
.marca__simbolo { display: none; height: 40px; width: 40px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__lista { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__lista a { display: block; padding: .55rem .9rem; border-radius: 999px; font-family: var(--fonte-titulo); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; transition: background var(--transicao); }
.nav__lista a:hover { background: var(--pale); }
.nav__lista a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav__telefone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--teal-600); text-decoration: none; padding-left: 1.25rem; border-left: 1px solid var(--linha); }
.menu-botao { display: none; align-items: center; gap: .6rem; background: none; border: 2px solid var(--navy); border-radius: 999px; padding: .5rem 1rem; font-family: var(--fonte-titulo); font-weight: 600; color: var(--navy); cursor: pointer; }
.menu-botao__linha { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-botao__linha::before, .menu-botao__linha::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transicao); }
.menu-botao__linha::before { top: -6px; } .menu-botao__linha::after { top: 6px; }
.menu-botao[aria-expanded="true"] .menu-botao__linha { background: transparent; }
.menu-botao[aria-expanded="true"] .menu-botao__linha::before { transform: translateY(6px) rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-botao__linha::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--linha); font-size: var(--t-s); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: .7rem 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--linha); margin-right: .35rem; }
.breadcrumbs a { color: var(--texto-suave); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- seções ---------- */
.secao { padding: clamp(3.5rem, 5vw, 6rem) 0; }
.secao--pale { background: var(--pale); }
.secao--branca { background: #fff; }
.secao--navy { background: var(--navy); color: #E6F5FA; }
.secao--navy h2, .secao--navy h3 { color: #fff; }
.secao__cabeca { max-width: 62ch; margin-bottom: 2.5rem; }
.secao__cabeca p { color: var(--texto-suave); font-size: 1.1rem; }
.secao--navy .secao__cabeca p { color: #C9E7F1; }

/* ---------- hero (o elemento memorável: a linha d'água) ---------- */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero__grade { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: clamp(3rem, 6vw, 6rem) 0 clamp(5rem, 9vw, 8rem); }
.hero__titulo { max-width: 15ch; }
.hero__sub { font-size: 1.25rem; color: var(--texto-suave); max-width: 46ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__local { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--texto-suave); font-size: var(--t-s); }
.hero__local .icone { color: var(--teal); }
.hero__imagem { border-radius: var(--raio-g); box-shadow: var(--sombra); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__onda { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(60px, 9vw, 120px); color: var(--pale); }
.hero__onda svg { width: 100%; height: 100%; }

/* ---------- sobre (home) ---------- */
.sobre-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sobre-grade img { border-radius: var(--raio-g); }
.dados-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: var(--t-s); }
.dados-lista li { border-top: 1px solid var(--linha); padding-top: .6rem; }
.dados-lista span { display: block; color: var(--texto-suave); font-size: .8rem; }

/* ---------- serviços ---------- */
.servicos-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.servico-card { display: flex; gap: 1.25rem; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 1.75rem; transition: border-color var(--transicao), box-shadow var(--transicao); }
.servico-card:hover { border-color: var(--aqua); box-shadow: var(--sombra); }
.servico-card__icone { flex: none; width: 60px; height: 60px; border-radius: 16px 16px 16px 4px; background: var(--pale); color: var(--teal); display: grid; place-items: center; }
.servico-card h3 { margin-bottom: .35rem; }
.servico-card h3 a { color: inherit; text-decoration: none; }
.servico-card h3 a:hover { color: var(--teal-600); }
.servico-card p { color: var(--texto-suave); margin-bottom: .8rem; }
.servico-card ul { padding-left: 1.1em; color: var(--texto); font-size: var(--t-s); margin-bottom: 1rem; }

/* ---------- como funciona (sequência real → numeração justificada) ---------- */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: etapa; list-style: none; padding: 0; margin: 0; }
.etapas li { counter-increment: etapa; position: relative; padding-top: 3.4rem; }
.etapas li::before { content: counter(etapa); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50% 50% 50% 8%; background: var(--teal); color: #fff; font-family: var(--fonte-titulo); font-weight: 700; display: grid; place-items: center; }
.etapas li::after { content: ""; position: absolute; top: 1.3rem; left: 3rem; right: -1.1rem; height: 2px; background: var(--linha); }
.etapas li:last-child::after { display: none; }
.etapas h3 { font-size: var(--t-4); margin-bottom: .3rem; }
.etapas p { color: var(--texto-suave); font-size: var(--t-s); margin: 0; }

/* ---------- diferenciais ---------- */
.diferenciais { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.15); }
.diferenciais li { display: flex; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.diferenciais li:nth-child(odd) { padding-right: 2.5rem; }
.diferenciais li:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid rgba(255,255,255,.15); }
.diferenciais .icone { color: var(--aqua); margin-top: .15rem; }
.diferenciais h3 { font-size: var(--t-4); margin-bottom: .25rem; }
.diferenciais p { color: #C9E7F1; margin: 0; font-size: var(--t-s); }

/* ---------- institucional ---------- */
.institucional { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin: 0; }
.institucional div { border-left: 3px solid var(--aqua); padding-left: 1rem; }
.institucional dt { font-size: .8rem; color: var(--texto-suave); }
.institucional dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }
.institucional dd a { color: inherit; text-decoration: none; }
.institucional dd a:hover { text-decoration: underline; }

/* ---------- CTA final ---------- */
.cta-final { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 2.2rem 2.5rem; }
.cta-final h2 { margin: 0 0 .3rem; font-size: var(--t-3); }
.cta-final p { margin: 0; color: var(--texto-suave); }
.cta-final__acoes { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- página interna: cabeçalho ---------- */
.pagina-cabeca { background: #fff; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--linha); }
.pagina-cabeca h1 { max-width: 20ch; }
.pagina-cabeca .lede { max-width: 60ch; margin: 0; }

/* ---------- serviço detalhe ---------- */
.detalhe-grade { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: start; }
.detalhe-lista { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.detalhe-lista li { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: .8rem 1rem; }
.detalhe-lista .icone { color: var(--teal); flex: none; margin-top: .1rem; }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--fonte-titulo); font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform var(--transicao); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1rem; color: var(--texto-suave); }
.lateral { position: sticky; top: 92px; display: grid; gap: 1.25rem; }
.caixa { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 1.6rem; }
.caixa--navy { background: var(--navy); color: #E6F5FA; border-color: var(--navy); }
.caixa--navy h2, .caixa--navy h3 { color: #fff; }
.caixa h3 { font-size: var(--t-4); }
.caixa ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.caixa ul a { text-decoration: none; color: inherit; font-weight: 600; display: block; padding: .3rem 0; }
.caixa ul a:hover { color: var(--teal-600); }
.caixa--navy ul a:hover { color: var(--aqua); }
.caixa ul a[aria-current="page"] { color: var(--teal-600); }

/* ---------- contato ---------- */
.contato-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.contato-item { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-g); padding: 1.75rem; display: flex; gap: 1.25rem; }
.contato-item__icone { flex: none; width: 52px; height: 52px; border-radius: 16px 16px 16px 4px; background: var(--pale); color: var(--teal); display: grid; place-items: center; }
.contato-item h2 { font-size: var(--t-4); margin-bottom: .3rem; }
.contato-item p { margin: 0; }
.contato-item a { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--navy); }
.contato-item a:hover { color: var(--teal-600); }
.mapa-nota { margin-top: 2rem; padding: 1.25rem 1.5rem; background: #fff; border-left: 4px solid var(--aqua); border-radius: 0 var(--raio) var(--raio) 0; color: var(--texto-suave); }

/* ---------- páginas legais ---------- */
.legal { max-width: 76ch; }
.legal h2 { font-size: var(--t-3); margin-top: 2.2rem; }
.legal h3 { font-size: var(--t-4); margin-top: 1.5rem; }
.legal p, .legal li { color: var(--texto); }
.legal .atualizado { font-size: var(--t-s); color: var(--texto-suave); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--t-s); margin: 1rem 0 1.5rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
.legal th { color: var(--navy); font-family: var(--fonte-titulo); font-weight: 600; background: var(--pale); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #C9E7F1; margin-top: 0; }
.site-footer__grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer__marca img { height: 56px; width: auto; }
.site-footer__nicho { margin-top: 1.2rem; font-size: var(--t-s); max-width: 34ch; }
.site-footer__titulo { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer__dados, .site-footer__links { list-style: none; padding: 0; margin: 0; font-size: var(--t-s); display: grid; gap: .45rem; }
.site-footer a { color: #E6F5FA; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .85rem; }
.site-footer__base p { margin: 0; }

/* ---------- aviso de cookies ---------- */
.aviso-cookies { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; margin: 0 auto; max-width: 720px; background: #fff; border: 1px solid var(--linha); box-shadow: var(--sombra); border-radius: var(--raio-g); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.aviso-cookies p { margin: 0; flex: 1 1 280px; font-size: var(--t-s); }

/* ---------- 404 ---------- */
.erro { text-align: center; padding: 6rem 0; }
.erro h1 { font-size: var(--t-2); }
.erro p { margin-inline: auto; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .site-footer__grade { grid-template-columns: 1fr 1fr; }
  .institucional { grid-template-columns: repeat(2, 1fr); }
  .etapas { grid-template-columns: repeat(2, 1fr); }
  .etapas li:nth-child(2)::after { display: none; }
  .nav__telefone { display: none; }
}
@media (max-width: 860px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--linha); padding: .75rem 1.25rem 1.25rem; box-shadow: var(--sombra); display: none; }
  .nav.aberto { display: flex; }
  .nav__lista { flex-direction: column; gap: .2rem; }
  .nav__lista a { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav__telefone { display: inline-flex; border: 0; padding: .9rem 1rem 0; }
  .menu-botao { display: inline-flex; }
  .marca__horizontal { display: none; }
  .marca__simbolo { display: block; }
  .hero__grade { grid-template-columns: 1fr; gap: 2rem; }
  .hero__imagem { max-width: 560px; }
  .sobre-grade, .servicos-grade, .detalhe-grade, .contato-grade { grid-template-columns: 1fr; }
  .diferenciais { grid-template-columns: 1fr; }
  .diferenciais li:nth-child(odd), .diferenciais li:nth-child(even) { padding-inline: 0; border-left: 0; }
  .lateral { position: static; }
}
@media (max-width: 560px) {
  .site-footer__grade { grid-template-columns: 1fr; gap: 2rem; }
  .institucional { grid-template-columns: 1fr; }
  .etapas { grid-template-columns: 1fr; gap: 1.25rem; }
  .etapas li::after { display: none; }
  .dados-lista { grid-template-columns: 1fr; }
  .cta-final { padding: 1.75rem; }
  .servico-card, .contato-item { flex-direction: column; }
}
