/* Mubre Iron Works, versão 3 "oficina escura". Tokens e motivos em ../DESIGN.md */
:root {
  --forge: #15181b;
  --plate: #1e2226;
  --primer: #ecebe6;
  --slag: #a3aab0;
  --weld: #e8382f;
  --rust: #b8261f;
  --line: #343a40;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --pad: clamp(18px, 5vw, 64px);
  --bar-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--forge); color: var(--primer); font: 400 20px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--weld); outline-offset: 3px; }

/* barra */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar-h); display: flex; align-items: center; gap: 18px;
  padding: 0 var(--pad); background: rgba(21,24,27,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.mark { font-family: var(--display); font-weight: 900; font-size: 30px; text-decoration: none; margin-right: auto; }
.mark span { font-weight: 700; color: var(--slag); }
.mark { display: flex; align-items: center; gap: .18em; white-space: nowrap; }
.mark img { height: 56px; width: auto; margin-right: .3em; }
.lang { display: flex; gap: 2px; }
.lang button { font: 600 16px var(--body); color: var(--slag); background: none; border: 0; padding: 6px 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--primer); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bar-link { font-weight: 600; font-size: 17px; text-decoration: none; }
.bar-link:hover { color: var(--weld); }
.bar-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none;
  background: var(--weld); color: #fff; padding: 9px 14px; }
.bar-call:hover { background: var(--rust); color: #fff; }

/* primeira tela: cabe inteira na tela; três trabalhos lado a lado */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  min-height: min(calc(100svh - var(--bar-h)), 820px); padding-left: var(--pad); gap: 32px; }
.hero-copy { position: relative; z-index: 2; padding: 24px 0; }
h1 { font-size: clamp(54px, 5.6vw, 104px); font-weight: 900; line-height: 1.1; max-width: 9ch; }
.seam { display: block; height: 4px; width: min(300px, 60%); margin: 26px 0 24px; background: var(--weld);
  box-shadow: 0 0 14px 2px rgba(232,56,47,.6), 0 0 40px 6px rgba(232,56,47,.2);
  transform-origin: left; animation: weld 1.4s .3s cubic-bezier(.6,0,.2,1) both; }
@keyframes weld { from { transform: scaleX(0); filter: brightness(2.2); } to { transform: scaleX(1); filter: none; } }
.lede { font-size: clamp(20px, 1.5vw, 23px); max-width: 32ch; margin-bottom: 28px; color: #dcdbd5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: 700 19px var(--body);
  padding: 16px 22px; border: 2px solid var(--primer); background: none; color: var(--primer); cursor: pointer; }
.btn:hover { background: var(--primer); color: var(--forge); }
.btn.hot { background: var(--weld); border-color: var(--weld); color: #fff; }
.btn.hot:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.small { margin-top: 18px; font-size: 17px; color: var(--slag); }
.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 24px; max-width: 62ch;
  font-size: 18px; color: var(--primer); text-decoration: none; }
.stars { color: #f5b82e; text-shadow: 0 0 12px rgba(245,184,46,.35); line-height: 1; }
.rating { align-items: center; }
.rating .stars { font-size: 28px; letter-spacing: 3px; }
.rating [data-i18n] { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.rating:hover [data-i18n] { text-decoration-color: var(--primer); }
.rating + .small { margin-top: 10px; }
.hero-photos { height: min(calc(100svh - var(--bar-h)), 820px); min-height: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 16%);
  mask-composite: intersect; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .pos-r { object-position: 78% 50%; }
.hero-photos .pos-m { object-position: 48% 50%; }
.hero-photos img:nth-child(2) { margin-top: 48px; height: calc(100% - 48px); }

/* trabalhos */
section { padding: clamp(64px, 9vw, 120px) var(--pad); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
h2 { font-size: clamp(46px, 6vw, 84px); font-weight: 900; }
.head p { color: var(--slag); max-width: 36ch; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; padding-bottom: 72px; }
.shots figure { margin: 0; cursor: zoom-in; position: relative; }
.shots figure:nth-child(3n+2) { transform: translateY(72px); }
.shots img { width: 100%; aspect-ratio: 3/4; object-fit: cover;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26%); mask-image: linear-gradient(to top, transparent 0, #000 26%); }
.shots figcaption { position: relative; margin-top: -2.4em; padding: 0 4px; font-weight: 600; font-size: 18px; }

/* serviços */
.reviews { border-top: 1px solid var(--line); }
.rev-sub { margin-top: 14px; font-size: 19px; color: var(--slag); max-width: 60ch; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin-top: 48px; }
.quote { margin: 0; padding-top: 22px; border-top: 2px solid var(--line); display: flex; flex-direction: column; }
.quote .stars { font-size: 42px; letter-spacing: 5px; }
.quote blockquote { margin: 14px 0 18px; font-size: clamp(19px, 1.35vw, 22px); line-height: 1.5; color: #dcdbd5; }
.quote figcaption { margin-top: auto; font-size: 17px; color: var(--slag); }
.quote figcaption b { display: block; color: var(--primer); font-weight: 700; }
.rev-all { display: inline-block; margin-top: 40px; font-size: 19px; color: var(--primer);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.rev-all:hover { text-decoration-color: var(--primer); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; gap: 36px; } }
.services { background: var(--plate); }
.services h2 { margin-bottom: 44px; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.svc li { border-top: 1px solid var(--line); padding-top: 18px; }
.svc h3 { font-size: 32px; margin-bottom: 10px; }
.svc p { color: #cfd2d4; }

/* como funciona: única sequência real, única numeração */
.how h2 { margin-bottom: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 900 96px/0.85 var(--display); color: #4a525a; margin-bottom: 14px; }
.steps h3 { font-size: 34px; margin-bottom: 10px; }
.steps p { color: #cfd2d4; max-width: 30ch; }

/* contato: tudo escrito por extenso, botões grandes */
.contact { background: var(--plate); border-top: 1px solid var(--line); }
.contact-sub { color: var(--slag); margin: 14px 0 36px; font-size: 21px; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.way { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  text-decoration: none; padding: 22px 22px; border: 2px solid var(--line); background: var(--forge); }
.way svg { grid-row: 1 / span 2; width: 34px; height: 34px; }
.way-label { font: 800 30px/1 var(--display); }
.way-value { font-size: 18px; color: var(--slag); overflow-wrap: anywhere; }
.way:hover { border-color: var(--primer); }
.way.hot { background: var(--weld); border-color: var(--weld); color: #fff; }
.way.hot .way-value { color: rgba(255,255,255,.88); }
.way.hot:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.way.hot:hover .way-value { color: #fff; }

.msg { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 900px; }
.msg h3 { grid-column: 1 / -1; font-size: 36px; margin-bottom: 4px; }
.msg label { display: grid; gap: 8px; font-weight: 600; }
.msg .wide { grid-column: 1 / -1; }
.msg input, .msg textarea { font: 400 20px var(--body); color: var(--forge); background: var(--primer); border: 2px solid var(--primer);
  padding: 14px 16px; width: 100%; }
.msg input:focus, .msg textarea:focus { outline: 3px solid var(--weld); outline-offset: 1px; }
.msg .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.f-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.5em; }
.f-status.ok { color: #8fd18a; }
.f-status.err { color: #ff9a7a; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px var(--pad) 40px;
  font-size: 17px; color: var(--slag); border-top: 1px solid var(--line); }
.foot a { color: var(--slag); }
.foot { align-items: center; }
.foot-logo { width: 210px; height: auto; }
.dock { display: none; }

/* foto ampliada */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(10,11,13,.95); display: grid; place-items: center; padding: 20px; }
.viewer[hidden] { display: none; }
.viewer img { max-height: 92vh; width: auto; }
.viewer button { position: absolute; top: 10px; right: 16px; font-size: 42px; color: var(--primer); background: none; border: 0; cursor: pointer; }

@media (max-width: 1100px) {
  .ways { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --bar-h: 60px; }
  body { font-size: 19px; padding-bottom: 76px; }
  .mark { font-size: 25px; }
  .mark img { height: 40px; margin-right: .15em; }
  .bar { gap: 8px; }
  .bar-call { white-space: nowrap; }
  .lang button { padding: 6px 5px; }
  .mark span, .bar-link { display: none; }
  .bar-call { font-size: 15px; padding: 7px 10px; gap: 6px; }
  .hero { display: flex; flex-direction: column-reverse; height: auto; min-height: 0; padding: 0; gap: 0; }
  .hero-photos { height: 44vh; padding: 0; gap: 6px;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 40%); mask-image: linear-gradient(to top, transparent 0, #000 40%); }
  .hero-photos img:nth-child(2) { margin-top: 0; height: 100%; }
  .hero-copy { padding: 0 var(--pad) 40px; margin-top: -12vh; }
  h1 { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
  .btn { flex: 1 1 auto; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 78%; scroll-snap-align: start; }
  .shots figure:nth-child(3n+2) { transform: none; }
  .svc, .steps, .ways, .msg { grid-template-columns: 1fr; gap: 24px; }
  .ways { gap: 12px; }
  .msg .btn { justify-self: stretch; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--forge); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; text-decoration: none;
    font-weight: 700; font-size: 16px; }
  .dock a:first-child { background: var(--weld); color: #fff; }
  .dock svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seam { animation: none; }
}
@media (max-width: 440px) {
  .mark { font-size: 0; }
  .mark img { height: 44px; margin: 0; }
}
@media (max-width: 370px) {
  .bar-call { font-size: 14px; padding: 7px 8px; }
}
.sprite { position: absolute; }
