/* Estilo das páginas de serviço e do blog (HTML gerado por scripts/gerar-paginas.mjs). Mesma identidade da página inicial. */
:root { --ink: #121212; --cream: #f1e7d2; --yellow: #f2c230; --red: #cf3a26; --blue: #2447d6; --gutter: 16px; --bw: 4px; --shadow: 6px 6px 0 var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Montserrat', system-ui, sans-serif; font-weight: 600; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px var(--gutter); background: var(--yellow); border-bottom: var(--bw) solid var(--ink); }
.logo { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; text-decoration: none; }
.logo span { background: var(--ink); color: var(--yellow); padding: 0 4px; margin-left: 2px; }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 900; text-transform: uppercase; text-decoration: none; text-align: center; padding: 10px 16px; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.1s steps(2), box-shadow 0.1s steps(2); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { padding: 12px 18px; font-size: 0.9rem; }
.btn-ghost { background: #fff; color: var(--ink); }

main { padding: 28px 0 56px; }
.migalhas { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.migalhas a { text-decoration: none; }
.migalhas a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; text-transform: uppercase; }
h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 900; line-height: 1.15; margin: 36px 0 10px; }
h2::before { content: ''; display: block; width: 44px; height: 8px; background: var(--yellow); border: 3px solid var(--ink); margin-bottom: 10px; }
h3 { font-size: 1.1rem; font-weight: 900; margin: 22px 0 6px; }
p { margin: 0 0 14px; font-size: 1.05rem; }
.lead { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.data { font-size: 0.85rem; opacity: 0.75; margin-bottom: 16px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; font-size: 1.05rem; }
li { margin-bottom: 6px; }
code { background: #fff; border: 2px solid var(--ink); padding: 0 5px; font-size: 0.9em; }
article a:not(.btn) { text-decoration-thickness: 2px; text-underline-offset: 3px; }
article a:not(.btn):hover { background: var(--yellow); }

details { background: #fff; border: 3px solid var(--ink); margin: 0 0 10px; padding: 0 14px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
details p { margin: 0 0 14px; }

.cta { background: var(--yellow); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 20px; margin: 40px 0 28px; }
.cta h2 { margin-top: 0; }
.cta h2::before { display: none; }
.botoes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }

.mais ul { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.mais li a { display: inline-block; background: #fff; border: 3px solid var(--ink); padding: 6px 12px; text-decoration: none; font-size: 0.95rem; }
.mais li a:hover { background: var(--yellow); }
.mais h2 { font-size: 1.1rem; }

.lista-paginas { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.lista-paginas a { display: block; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; text-decoration: none; }
.lista-paginas a:hover { background: var(--yellow); }
.lista-paginas strong { display: block; font-weight: 900; font-size: 1.1rem; margin-bottom: 4px; }
.lista-paginas span { font-size: 0.95rem; }

.foot { border-top: var(--bw) solid var(--ink); background: var(--ink); color: var(--cream); padding: 18px 0; font-size: 0.85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.foot a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* seletor de idioma (mesmo desenho da página inicial) */
.idiomas { display: flex; gap: 2px; font-size: 0.75rem; font-weight: 800; }
.idiomas a { text-decoration: none; padding: 3px 6px; border: 2px solid transparent; }
.idiomas a:hover { border-color: var(--ink); }
.idiomas a[aria-current='true'] { background: var(--ink); color: var(--yellow); }
