/* lei.ia — estrutura comum a todos os temas.
   Cada tema (temas/*.css) redefine as variáveis abaixo e acrescenta a própria decoração.
   O tema no ar é o arquivo /tema-ativo.css (cópia de um dos temas). */

:root {
  --bg: #fff; --fg: #111; --muted: #555; --accent: #b00; --rule: #ccc;
  --surface: transparent; --on-accent: #fff;
  --font-head: Georgia, serif; --font-body: Georgia, serif; --font-ui: system-ui, sans-serif;
  --maxw: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --h1: clamp(2.1rem, 6vw, 4.4rem); --h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --section-gap: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cabeçalho */
.masthead-in { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.25rem; }
.wordmark { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.wm-dot { color: var(--accent); }
.edition { margin: 0; font: .8rem/1.3 var(--font-ui); color: var(--muted); flex: 1 1 14rem; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: 500 .95rem/1 var(--font-ui); }
.masthead nav a { text-decoration: none; padding: .5rem 0; }
.masthead nav a:hover { color: var(--accent); }

/* Abertura */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section-gap); }
.kicker, .label, .case-meta, .clients-title {
  font: 600 .78rem/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 { max-width: 18ch; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 40rem; color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font: 600 1rem/1 var(--font-ui); padding: 1rem 1.4rem;
}
.btn:hover { filter: brightness(1.08); }
.link, .more { font: 600 .95rem/1.4 var(--font-ui); text-underline-offset: .25em; }
.more { display: inline-block; margin-top: .25rem; }
.more::after { content: " →"; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.5rem 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.stats li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.stats strong { display: block; font: 700 clamp(1.3rem, 2.2vw, 1.65rem)/1.15 var(--font-head); margin-bottom: .4rem; }
.stats span { font: .9rem/1.45 var(--font-ui); color: var(--muted); }

/* Seções */
main > section { padding-block: var(--section-gap); }
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2.5rem; counter-reset: svc; margin-top: 2rem; }
.svc { counter-increment: svc; }
.svc::before { content: counter(svc, decimal-leading-zero); display: block; font: 700 .9rem/1 var(--font-ui); color: var(--accent); margin-bottom: .9rem; }
.uni { margin-top: 3.5rem; padding: 1.75rem; border: 1px solid var(--rule); background: var(--surface); max-width: 46rem; }

.case-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 3rem; margin-top: 2rem; }
@media (min-width: 44rem) { .case-grid { grid-template-columns: 1fr 1fr; } }
.case { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.clients { margin-top: 3.5rem; }
.clients ul { display: flex; flex-wrap: wrap; gap: .5rem 0; font: .95rem/1.5 var(--font-ui); color: var(--muted); }
.clients li:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: var(--rule); }

.step-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 2rem; counter-reset: step; margin-top: 2rem; }
.step-list li { counter-increment: step; }
.step-list h3::before { content: counter(step) ". "; color: var(--accent); }
.step-list p { color: var(--muted); font-size: 1rem; }

.about-in p { max-width: 46rem; }
.contact-list { display: grid; gap: .9rem; margin-top: 1.75rem; font: 1.05rem/1.4 var(--font-ui); }
.contact-list li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.contact-list span { min-width: 6rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font: .85rem/1.5 var(--font-ui); color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .masthead nav, .actions, .skip { display: none; } }
