/* Retivale: protótipo. Tokens em :root; seções na ordem da página. */
:root {
  --blue: #0a4fa0;
  --blue-bright: #2f7bff;
  --blue-deep: #06214d;
  --navy: #030b1f;
  --navy-2: #081329;
  --ink: #050a16;
  --line: #13244a;
  --yellow: #ffcc29;
  --green: #1f9d55;
  --wa: #25d366;
  --text: #eef3fa;
  --muted: #9fb0c6;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Michroma", "Eurostile", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --skew: -8deg;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font: 400 17px/1.55 var(--body); background: var(--ink); color: var(--text); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: #111; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.br-stripe { height: 5px; background: linear-gradient(90deg, var(--green) 0 40%, var(--yellow) 40% 70%, var(--blue) 70%); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; transform: skewX(var(--skew)); transition: filter .2s, background-color .2s;
}
.btn > * { transform: skewX(calc(var(--skew) * -1)); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { filter: brightness(1.08); }
.btn-wa { background: var(--wa); color: #04250e; }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-ghost { border: 2px solid currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-r { width: 38px; height: 42px; fill: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.wm { font: 400 19px/1 var(--brand); letter-spacing: .06em; display: flex; align-items: flex-end; }
.wm-a { width: .86em; height: .78em; margin: 0 .03em .05em; color: #fff; }
.wm-sub { font: 700 12px/1 "Nunito", var(--body); color: #8fb6ff; margin-top: 6px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(180deg, rgba(3, 11, 31, .9), rgba(3, 11, 31, .35) 70%, rgba(3, 11, 31, 0)); transition: background-color .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(3, 11, 31, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#menu { display: flex; align-items: center; gap: 28px; }
#menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
#menu a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 6px; }
#menu .btn { padding: 10px 18px; font-size: 17px; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 860px);
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: radial-gradient(110% 95% at 22% 35%, #0f5cb8 0, var(--blue) 30%, var(--blue-deep) 70%, var(--navy) 100%);
}
.hero-mark { position: absolute; left: -110px; bottom: -150px; width: 600px; height: 660px; fill: #fff; opacity: .06; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding: 130px var(--gutter) 80px; display: flex; flex-direction: column; justify-content: center; max-width: 720px; justify-self: end; width: 100%; }
.hero-tag { align-self: flex-start; background: var(--yellow); color: #111; font: 800 17px/1 var(--display); text-transform: uppercase; padding: 8px 14px; transform: skewX(var(--skew)); }
.hero h1 { font: italic 800 clamp(64px, 8.4vw, 118px)/.86 var(--display); text-transform: uppercase; margin: 24px 0 22px; letter-spacing: -.005em; }
.hero h1 span { color: var(--yellow); }
.hero-lead { font-size: 19px; color: #dbe7ff; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-media { position: relative; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 11, 31, .92) 0, transparent 42%); }
.slide figcaption { position: absolute; right: var(--gutter); bottom: 64px; z-index: 1; text-align: right; font-size: 15px; color: #cfe0ff; max-width: 32ch; }
.slide figcaption b { display: block; font: 800 32px/1 var(--display); text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.dots { position: absolute; right: var(--gutter); bottom: 30px; z-index: 2; display: flex; gap: 8px; }
.dots button { width: 28px; height: 12px; display: grid; place-items: center; }
.dots button::before { content: ""; width: 100%; height: 4px; background: rgba(255, 255, 255, .35); transform: skewX(var(--skew)); transition: background-color .3s; }
.dots button[aria-current="true"]::before { background: var(--yellow); }

/* selo 1960 */
.seal { position: absolute; z-index: 3; left: 52.5%; top: 54%; width: 184px; height: 184px; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-gear { transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.seal-ring { font: 400 9.6px var(--brand); fill: #cfe0ff; letter-spacing: .08em; }
.seal-year { font: 400 34px var(--brand); fill: #fff; letter-spacing: .02em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- números e ticker ---------- */
.facts { background: var(--navy); border-top: 1px solid var(--line); }
.facts dl { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 28px var(--gutter); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.facts div:last-child { border-right: 0; }
.facts dt { font: 800 48px/1 var(--display); color: #fff; }
.facts dd { font-size: 15px; color: var(--muted); margin-top: 6px; }

.ticker { background: var(--yellow); color: #111; overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker span { font: italic 800 26px/1 var(--display); text-transform: uppercase; white-space: nowrap; padding: 0 22px; position: relative; }
.ticker span::after { content: "/"; position: absolute; right: -4px; color: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter); }
.section h2 { font: 800 clamp(40px, 5vw, 64px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* serviços */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { background: var(--navy-2); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc > div { padding: 20px 22px 24px; }
.svc h3 { font: 800 27px/1.05 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc-wide { grid-column: span 2; flex-direction: row; }
.svc-wide img { width: 50%; aspect-ratio: auto; min-height: 260px; }
.svc-wide > div { align-self: center; padding: 28px; }

/* oficina */
.workshop { max-width: none; background: linear-gradient(180deg, var(--ink), var(--navy) 30%); }
.workshop > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; }
.g { position: relative; overflow: hidden; background: var(--navy-2); display: block; width: 100%; height: 100%; padding: 0; }
.g img, .g video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
button.g:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.g-video { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font: 700 18px/1.1 var(--display); text-transform: uppercase; background: linear-gradient(0deg, rgba(3, 11, 31, .9), transparent); }

/* história */
.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.story-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--yellow); z-index: -1; }
.story-copy > p { color: #c9d6e8; margin-top: 18px; max-width: 58ch; }
.timeline { margin-top: 40px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--yellow); transform: rotate(45deg); }
.timeline li:last-child::before { background: var(--green); }
.timeline b { font: 800 30px/1 var(--display); text-transform: uppercase; color: #fff; }
.timeline span { color: var(--muted); }
.old-logo { width: 150px; margin-top: 12px; border-radius: 2px; filter: grayscale(.4); }

/* como funciona */
.steps { border-top: 1px solid var(--line); }
.step-list { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.step-list::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.step-list li { position: relative; padding-right: 24px; }
.step-n { position: relative; display: grid; place-items: center; width: 58px; height: 58px; background: var(--blue); font: italic 800 30px/1 var(--display); transform: skewX(var(--skew)); margin-bottom: 20px; }
.step-list li:last-child .step-n { background: var(--green); }
.step-list h3 { font: 800 24px/1.05 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.step-list p { color: var(--muted); font-size: 15.5px; }

/* trabalhos */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-2); }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work figcaption { position: absolute; inset: auto 0 0; padding: 60px 22px 22px; background: linear-gradient(0deg, rgba(3, 11, 31, .95) 20%, transparent); }
.work h3 { font: 800 28px/1 var(--display); text-transform: uppercase; }
.work p { color: #c3d1e4; font-size: 15px; margin-top: 4px; }
.works-more { margin-top: 32px; }

/* contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact-copy p { color: var(--muted); margin: 18px 0 28px; max-width: 44ch; }
.btn-big { font-size: 28px; padding: 18px 30px; }
.btn-big svg { width: 28px; height: 28px; }
.contact-list { margin-top: 32px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { position: relative; min-height: 380px; background: var(--navy-2); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; text-decoration: none; }
.map-fallback svg { width: 22px; height: 22px; color: var(--yellow); }

/* rodapé */
.footer { background: #020716; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.made { display: flex; align-items: center; gap: 12px; color: #cfd7e0; font-size: 15px; }
.flag { width: 34px; height: 24px; background: var(--green); position: relative; border-radius: 2px; flex: none; }
.flag::before { content: ""; position: absolute; inset: 4px 5px; background: var(--yellow); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.flag::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #1d3fa8; left: 12px; top: 7px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); }
.social a:hover { border-color: var(--yellow); }
.social svg { width: 20px; height: 20px; }
.copy { text-align: center; color: #6c7c92; font-size: 13px; padding: 0 16px 18px; }

/* whatsapp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* lightbox */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 7, 22, .92); }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; font-size: 34px; line-height: 1; color: #fff; }

/* revelação ao rolar: só com JS ativo */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* entrada do hero: o único momento orquestrado */
.js .hero-copy > * { animation: rise .8s both cubic-bezier(.2, .7, .2, 1); }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .seal { animation: pop .9s .35s both cubic-bezier(.2, .9, .3, 1.3); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-40deg); } }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .step-list::before { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: block; z-index: 2; }
  /* backdrop-filter criaria um bloco de contenção e prenderia o menu fixo dentro do nav */
  .nav.is-solid { backdrop-filter: none; background: var(--navy); }
  #menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--navy); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  #menu.is-open { visibility: visible; opacity: 1; }
  #menu a:not(.btn) { font: 800 34px/1 var(--display); text-transform: uppercase; }
  .brand, .menu-btn { position: relative; z-index: 2; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 116px var(--gutter) 48px; justify-self: stretch; }
  .hero-media { height: 480px; clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%); }
  .seal { left: auto; right: 12px; top: auto; bottom: 410px; width: 124px; height: 124px; transform: none; }
  .js .seal { animation-name: pop-m; }
  .slide figcaption { bottom: 56px; }

  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts dt { font-size: 38px; }

  .section { padding: 72px var(--gutter); }
  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; flex-direction: column; }
  .svc-wide img { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story-photo { margin-right: 18px; }
  .step-list { grid-template-columns: 1fr; gap: 28px; }
  .step-list li { display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; }
  .step-n { grid-row: span 2; margin: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work h3 { font-size: 22px; }
  .work p { display: none; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .btn-big { font-size: 24px; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@keyframes pop-m { from { opacity: 0; transform: scale(.6) rotate(-40deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n + 11) { display: none; }
}
