/* ============================================================
   Dizarro — base (reset · tipo · layout · componentes partilhados)
   Carrega SEMPRE depois de tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
img[width][height] { height: auto; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--hivis); color: var(--hivis-ink); }

.mono {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--graphite);
}

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  padding: .55rem .9rem; font-family: var(--f-mono); font-size: .78rem;
  transition: transform .2s ease;
}
.skip:focus-visible { transform: translateY(0); }

/* ---- folha ---- */
.sheet {
  max-width: var(--sheet);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: linear-gradient(var(--blueprint-soft) 1px, transparent 1px) 0 0 / 100% 34px;
}
@media (max-width: 720px) { .sheet { border: 0; background: none; } }

section.sh { padding: clamp(3rem, 8vw, 6rem) var(--gutter); border-top: 1px solid var(--line); }
.sh-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.sh-no { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; color: var(--hivis); letter-spacing: .1em; }
.sh-title { font-size: var(--t-3); }
.sh-lead { margin-top: .9rem; max-width: 62ch; color: var(--graphite); font-size: 1.05rem; }

/* ---- header / navegação ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--sheet); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--nav-h);
  padding: .55rem var(--gutter);
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--f-display); font-weight: 800;
  letter-spacing: .3em; font-size: 1.02rem;
  color: var(--ink); white-space: nowrap;
}
.brand b { color: var(--hivis); }
.brand img, .brand img[width][height] { display: block; height: 44px; width: auto; }
@media (max-width: 560px) { .brand img, .brand img[width][height] { height: 38px; } }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--graphite);
  padding: .5rem .7rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--hivis); }
.bar .tel { font-family: var(--f-mono); font-size: .78rem; color: var(--graphite); }
.bar-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-weight: 500; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .72rem 1.15rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--hivis); }
.btn:active { transform: translate(0,0); box-shadow: none; }
.btn--hivis { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.btn--hivis:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { box-shadow: 4px 4px 0 var(--hivis); }
.btn--sm { padding: .5rem .8rem; font-size: .7rem; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.icon-btn:hover { border-color: var(--hivis); }

/* ---- seletor de idioma ---- */
.lang { position: relative; }
.lang-btn { width: auto; gap: .4rem; padding: 0 .5rem; }
.lang-btn .lang-code { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; }
.flag { display: inline-flex; }
.flag svg { width: 20px; height: 14px; display: block; border: 1px solid rgba(0,0,0,.15); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  margin: 0; padding: .3rem; list-style: none; min-width: 168px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.lang-menu li {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem; cursor: pointer;
  font-family: var(--f-mono); font-size: .78rem;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--paper-2); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--hivis); box-shadow: inset 2px 0 0 var(--hivis); }
@media (max-width: 900px) { .lang-menu { right: auto; left: 0; } }

/* hambúrguer (mobile) */
.burger { display: none; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--paper); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 16px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .bar .tel { display: none; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-130%); transition: transform .25s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem .2rem; font-size: .82rem; border-top: 1px solid var(--line); }
  .nav a:first-child { border-top: 0; }
}

/* ---- inner page hero ---- */
.phead { padding: clamp(2.5rem,6vw,4.5rem) var(--gutter) clamp(2rem,5vw,3rem); border-top: 1px solid var(--line); }
.crumb { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); margin-bottom: 1.1rem; }
.crumb a:hover { color: var(--hivis); }
.crumb span[aria-hidden] { color: var(--line); margin: 0 .5rem; }
.phead h1 { font-size: var(--t-4); letter-spacing: -.015em; text-transform: uppercase; }
.phead h1 .o { color: var(--hivis); }
.phead h1 .b { color: var(--blueprint); }
.phead p { margin-top: 1.2rem; max-width: 54ch; font-size: 1.12rem; color: var(--graphite); }

/* ---- prosa ---- */
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--t-2); margin-top: 2.4rem; text-transform: uppercase; }
.prose h3 { font-size: var(--t-1); margin-top: 1.6rem; }
.prose a { box-shadow: inset 0 -1px 0 var(--hivis); }
.prose ul { display: grid; gap: .4rem; }
.prose ul li { padding-left: 1.2rem; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--hivis); }

/* ---- botões CTA em linha ---- */
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- CTA band ---- */
.band {
  background: var(--hivis); color: var(--hivis-ink);
  padding: clamp(3rem,7vw,5rem) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.band h2 { font-size: var(--t-3); text-transform: uppercase; max-width: 18ch; }
.band .btn { background: var(--hivis-ink); border-color: var(--hivis-ink); color: var(--hivis); }
.band .btn:hover { box-shadow: 4px 4px 0 rgba(0,0,0,.3); }

/* ---- footer / cartela ---- */
footer.site { border-top: 1px solid var(--line); padding: clamp(2.5rem,6vw,4rem) var(--gutter) 2rem; }
.foot-in { max-width: var(--sheet); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--graphite); margin: 0 0 .8rem; }
.foot-grid a, .foot-grid p { font-size: .92rem; padding: .18rem 0; display: block; color: var(--graphite); }
.foot-grid a:hover { color: var(--hivis); }
.foot-grid .brand { display: inline-flex; font-size: 1.3rem; margin-bottom: .6rem; }
.foot-grid .brand img, .foot-grid .brand img[width][height] { height: 76px; }
.cartouche { margin-top: 2.5rem; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); font-family: var(--f-mono); }
@media (max-width: 620px) { .cartouche { grid-template-columns: 1fr 1fr; } }
.cartouche div { padding: .7rem .9rem; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.cartouche div:nth-child(-n+4) { border-top: 0; }
.cartouche div:last-child { border-right: 0; }
.cartouche .kk { font-size: .56rem; text-transform: uppercase; letter-spacing: .1em; color: var(--graphite); }
.cartouche .vv { font-size: .8rem; margin-top: .2rem; color: var(--ink); }
.fineprint { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .64rem; color: var(--graphite); letter-spacing: .03em; }

/* ---- whatsapp flutuante ---- */
.wa {
  position: fixed; right: clamp(.9rem,3vw,1.6rem); bottom: clamp(.9rem,3vw,1.6rem); z-index: 60;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: background .15s ease;
}
.wa:hover { background: var(--hivis); color: var(--hivis-ink); }
.wa svg { width: 25px; height: 25px; fill: currentColor; }

/* ---- formulários ---- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .85rem;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hivis); box-shadow: inset 0 -2px 0 var(--hivis); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { font-size: .78rem; color: var(--err); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-family: var(--f-mono); font-size: .66rem; color: var(--graphite); }
.form-ok {
  display: none; border: 1px solid var(--ok); color: var(--ok);
  padding: 1rem 1.2rem; font-size: .95rem;
}
.form-ok.show { display: block; }

/* ---- figuras / fotos (chrome de "folha de projeto") ---- */
figure.plate { margin: 0; border: 1px solid var(--line); background: var(--paper); position: relative; }
figure.plate > img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
figure.plate.tall > img { aspect-ratio: 3 / 4; }
figure.plate.wide > img { aspect-ratio: 16 / 9; }
figure.plate figcaption { padding: .7rem .9rem .8rem; font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--graphite); }
figure.plate .tape { position: absolute; top: .7rem; left: .7rem; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .1em; background: var(--hivis); color: var(--hivis-ink); padding: .15rem .45rem; text-transform: uppercase; }

/* ---- antes / depois ---- */
.ba { position: relative; border: 1px solid var(--line); overflow: hidden; user-select: none; aspect-ratio: 4 / 3; background: var(--paper-2); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { position: absolute; inset: 0; width: 100%; clip-path: inset(0 50% 0 0); }
.ba .ba-before img { width: 100%; }
.ba .ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba .ba-handle { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--paper); border: 2px solid var(--hivis); pointer-events: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,0); }
.ba .ba-handle::before { content: ""; position: absolute; top: 19px; left: 50%; width: 2px; height: 1000px; background: var(--hivis); transform: translate(-50%,-1000px); }
.ba .ba-handle::after { content: ""; position: absolute; top: 19px; left: 50%; width: 2px; height: 1000px; background: var(--hivis); transform: translate(-50%,19px); }
.ba .lbl { position: absolute; bottom: .6rem; z-index: 2; font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--paper); padding: .1rem .4rem; }
.ba .lbl.l { left: .6rem; } .ba .lbl.r { right: .6rem; }

/* ---- faixa de foto full-bleed dentro da folha ---- */
.photo-band { border-top: 1px solid var(--line); }
.photo-band img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; background: var(--paper-2); }
@media (max-width: 720px) { .photo-band img { aspect-ratio: 4 / 3; } }

/* util */
.reveal { opacity: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,3vw,2rem); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: 1fr; } }
