/* Catálogo compartilhado pela inicial e pelas páginas de serviços. */
.scope-section { background: #f4f7f9; }
.scope-section h2 { color: #0d2b52; }
.scope-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: #cbd5dc; }
.scope-link { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: start; gap: 12px; padding: 32px 24px; color: #0d2b52; background: #fff; text-decoration: none; border-bottom: 4px solid transparent; transition: background .2s, border-color .2s; }
.scope-link:hover, .scope-link:focus-visible { background: #edf3fa; border-bottom-color: #f2b600; }
.scope-link h3 { margin: 0 0 14px; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: clamp(1.7rem, 2.2vw, 2.2rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.scope-link p { margin: 0; color: #5f6b75; font-size: .79rem; line-height: 1.65; }
.scope-number { padding-top: 3px; color: #155eef; font-size: .7rem; font-weight: 800; }
.scope-arrow { color: #155eef; font-size: 1.2rem; }
.scope-all { display: inline-block; margin-top: 30px; }
@media (max-width: 1000px) { .scope-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .scope-directory { grid-template-columns: 1fr; } .scope-link { padding: 27px 20px; } }

:root {
  --ink: #111820;
  --navy: #0d2b52;
  --blue: #155eef;
  --signal: #f2b600;
  --steel: #dce4ea;
  --fog: #f4f7f9;
  --white: #fff;
  --muted: #5f6b75;
  --line: #cbd5dc;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .94; letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 5.8vw, 5.6rem); font-weight: 700; text-transform: uppercase; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding: clamp(88px, 10vw, 150px) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 16px; color: var(--white); background: var(--navy); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

/* Header */
.site-header { position: relative; z-index: 100; height: 86px; }
.header-bar { position: fixed; inset: 0 0 auto; height: 86px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(17,24,32,.12); backdrop-filter: blur(16px); transition: box-shadow .25s, height .25s; }
.site-header.is-scrolled .header-bar { height: 72px; box-shadow: 0 10px 35px rgba(13,43,82,.1); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 208px; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a { position: relative; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-cta { padding: 13px 18px; color: var(--white); background: var(--navy); border: 1px solid var(--navy); transition: color .2s, background .2s; }
.main-nav .nav-cta:hover { color: var(--navy); background: var(--signal); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 6px 0; background: var(--navy); transition: transform .2s, opacity .2s; }

/* Reusable */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--navy); font-family: var(--display); font-size: .86rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow > span { width: 36px; height: 3px; background: var(--signal); }
.eyebrow-light { color: #c8d7e7; }
.section-heading { max-width: 880px; margin-bottom: clamp(52px, 6vw, 82px); }
.section-heading > p:last-child { max-width: 570px; margin: 28px 0 0; color: var(--muted); font-size: 1.06rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); align-items: end; gap: clamp(50px, 8vw, 120px); }
.split-heading > p:last-child { margin: 0 0 6px; }
.button { min-height: 54px; padding: 15px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid currentColor; font-size: .78rem; font-weight: 800; letter-spacing: .055em; line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 8px 8px 0 var(--navy); }
.button-primary:hover { background: var(--navy); border-color: var(--navy); }
.button-ghost { color: var(--navy); background: transparent; }
.button-ghost:hover { color: var(--white); background: var(--navy); }
.button-signal { color: var(--ink); background: var(--signal); border-color: var(--signal); box-shadow: 7px 7px 0 rgba(0,0,0,.22); }
.button-signal:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 86px); background: linear-gradient(118deg, #fff 0%, #fff 48%, var(--fog) 48%, var(--fog) 100%); overflow: hidden; }
.hero-grid { position: absolute; inset: 0 0 74px 48%; opacity: .55; background-image: linear-gradient(rgba(13,43,82,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(13,43,82,.09) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.hero-layout { min-height: calc(100svh - 160px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(500px, .95fr); align-items: center; gap: 34px; padding-top: 34px; padding-bottom: 48px; }
.hero-copy { position: relative; z-index: 3; padding: 50px 0; }
.hero-copy h1 { max-width: 760px; margin-bottom: 24px; color: var(--navy); font-size: clamp(4.2rem, 7.1vw, 6.9rem); font-weight: 800; text-transform: uppercase; }
.hero-copy h1 em { position: relative; display: inline-block; color: var(--blue); font-style: normal; }
.hero-copy h1 em::after { content: ""; position: absolute; z-index: -1; right: -5px; bottom: .05em; left: -5px; height: .13em; background: var(--signal); }
.hero-lead { max-width: 650px; margin-bottom: 28px; color: #46545f; font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 11px 26px; margin: 29px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-checks li::before { content: "■"; margin-right: 9px; color: var(--signal); font-size: .55rem; vertical-align: 2px; }
.machine-stage { position: relative; align-self: stretch; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.machine-stage::before { content: ""; position: absolute; top: 8%; right: -16vw; bottom: 5%; left: 12%; border: 1px solid rgba(13,43,82,.18); }
.signal-shape { position: absolute; top: 12%; right: -13%; width: 72%; height: 68%; background: var(--signal); clip-path: polygon(25% 0,100% 0,74% 100%,0 100%); transform: rotate(-4deg); }
.machine-number { position: absolute; top: 11%; right: 2%; color: rgba(13,43,82,.09); font-family: var(--display); font-size: clamp(8rem, 15vw, 14rem); font-weight: 800; line-height: .75; letter-spacing: -.08em; }
.machine-number span { font-size: .35em; letter-spacing: 0; }
.hero-machine { position: relative; z-index: 2; width: min(115%, 790px); max-width: none; filter: drop-shadow(0 35px 27px rgba(17,24,32,.2)); transform: translate(-3%, 4%); }
.inspection-tag { position: absolute; z-index: 4; right: 0; bottom: 7%; width: min(390px, 72%); padding: 19px 22px; color: var(--white); background: var(--navy); border-left: 6px solid var(--signal); box-shadow: 18px 20px 40px rgba(13,43,82,.22); }
.inspection-tag span, .inspection-tag strong { display: block; }
.inspection-tag strong { margin: 4px 0 9px; font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.tag-kicker { color: #b9c9d8; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-status { color: #d6e1eb; font-size: .72rem; }
.tag-status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #37d996; border-radius: 50%; box-shadow: 0 0 0 4px rgba(55,217,150,.16); }
.hero-ribbon { position: relative; z-index: 5; color: var(--white); background: var(--navy); }
.ribbon-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.ribbon-inner strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; }
.ribbon-inner span { color: #bdcddd; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ribbon-inner span::before { content: "+"; margin-right: 8px; color: var(--signal); }

/* Platforms */
.platforms { background: var(--white); }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 14px; }
.platform-card { position: relative; min-width: 0; background: var(--fog); border: 1px solid var(--steel); overflow: hidden; }
.platform-card-featured { grid-column: span 2; grid-row: span 2; }
.platform-photo { position: absolute; inset: 0; padding: 22px; display: flex; align-items: center; justify-content: center; }
.platform-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(13,43,82,.82)); }
.platform-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2,.7,.2,1); mix-blend-mode: multiply; }
.platform-card:hover .platform-photo img { transform: scale(1.06) translateY(-3px); }
.platform-meta { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 18px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; color: var(--white); }
.platform-meta strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.platform-meta span { color: #d4dee7; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.brand-note { margin: 18px 0 0; color: #7c8790; font-size: .72rem; }

/* Services */
.services { color: var(--white); background: var(--ink); }
.services .section-heading h2 { max-width: 950px; color: var(--white); }
.service-list { border-top: 1px solid #3b444c; }
.service-row { min-height: 220px; padding: 34px 0; display: grid; grid-template-columns: 75px minmax(260px, 1.25fr) minmax(210px, .8fr) 150px; align-items: center; gap: 32px; border-bottom: 1px solid #3b444c; }
.service-index { align-self: start; color: var(--signal); font-family: var(--display); font-size: 1rem; font-weight: 700; }
.service-row h3 { margin-bottom: 12px; color: var(--white); font-size: clamp(2.1rem, 3vw, 3.25rem); font-weight: 600; text-transform: uppercase; }
.service-row p { max-width: 560px; margin-bottom: 0; color: #aeb8c0; font-size: .94rem; }
.service-row ul { margin: 0; padding: 0; color: #d7dce0; list-style: none; font-size: .78rem; }
.service-row li { padding: 4px 0; }
.service-row li::before { content: "/"; margin-right: 10px; color: var(--signal); font-weight: 800; }
.service-row > a { justify-self: end; color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.service-row > a span { display: inline-grid; width: 36px; height: 36px; margin-left: 8px; place-items: center; color: var(--ink); background: var(--signal); transition: transform .2s; }
.service-row > a:hover span { transform: translateX(5px); }

/* Process */
.process { background: var(--fog); }
.process-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(500px,1fr); gap: clamp(60px, 10vw, 150px); }
.process-copy { position: sticky; top: 125px; align-self: start; }
.process-copy h2 { margin-bottom: 30px; color: var(--navy); }
.process-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); }
.text-link { display: inline-flex; gap: 18px; margin-top: 15px; color: var(--navy); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.text-link span { color: var(--blue); }
.process-steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.process-steps li { min-height: 170px; padding: 28px 0; display: grid; grid-template-columns: 88px 1fr; align-items: start; gap: 28px; border-top: 1px solid var(--line); }
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps li > span { width: 64px; height: 64px; display: grid; place-items: center; color: var(--navy); background: var(--signal); font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.process-steps strong { display: block; margin-bottom: 8px; color: var(--navy); font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; }
.process-steps p { max-width: 430px; margin: 0; color: var(--muted); font-size: .92rem; }

/* Workshop */
.workshop { padding-top: 0; background: var(--fog); }
.workshop-layout { display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch; }
.workshop-image { position: relative; min-height: 0; aspect-ratio: 4 / 3; align-self: center; overflow: hidden; background: var(--navy); }
.workshop-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,43,82,.76), transparent 42%); }
.workshop-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.workshop-image > span { position: absolute; z-index: 2; right: 28px; bottom: 25px; left: 28px; color: var(--white); font-family: var(--display); font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.workshop-copy { padding: clamp(55px, 7vw, 100px); background: var(--white); }
.workshop-copy h2 { margin-bottom: 26px; color: var(--navy); font-size: clamp(3rem, 4.8vw, 4.8rem); }
.workshop-copy > p:not(.eyebrow) { color: var(--muted); }
.capability-list { margin: 42px 0 0; }
.capability-list > div { padding: 21px 0; display: grid; grid-template-columns: 150px 1fr; gap: 25px; border-top: 1px solid var(--steel); }
.capability-list > div:last-child { border-bottom: 1px solid var(--steel); }
.capability-list dt { color: var(--navy); font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.capability-list dd { margin: 0; color: var(--muted); font-size: .82rem; }

/* Compliance */
.compliance { color: var(--white); background: var(--navy); }
.compliance-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr); align-items: center; gap: clamp(60px, 10vw, 150px); }
.compliance-main h2 { max-width: 840px; margin-bottom: 28px; color: var(--white); }
.compliance-main > p:not(.eyebrow) { max-width: 740px; margin-bottom: 36px; color: #bfcedb; }
.standard-card { padding: 42px 38px; color: var(--ink); background: var(--signal); border: 1px solid rgba(255,255,255,.35); box-shadow: 18px 18px 0 #071b34; }
.standard-code { display: block; margin-bottom: 28px; font-family: var(--display); font-size: clamp(4.4rem, 7vw, 7rem); font-weight: 800; line-height: .8; letter-spacing: -.05em; }
.standard-card strong { display: block; font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.standard-card p { margin: 18px 0 28px; font-size: .85rem; }
.standard-card a { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }

/* Knowledge */
.knowledge { background: var(--white); }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card { border-top: 5px solid var(--navy); background: var(--fog); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(13,43,82,.12); }
.article-card > a { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: saturate(.85); }
.article-card div { flex: 1; padding: 27px; display: flex; flex-direction: column; }
.article-card div > span { margin-bottom: 18px; color: var(--blue); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { margin-bottom: 16px; color: var(--navy); font-size: 2rem; text-transform: uppercase; }
.article-card p { color: var(--muted); font-size: .84rem; }
.article-card strong { margin-top: auto; padding-top: 14px; color: var(--navy); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }

/* FAQ */
.faq { padding-top: 30px; background: var(--white); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(60px, 10vw, 150px); }
.faq-layout h2 { margin-bottom: 25px; color: var(--navy); }
.faq-layout > div:first-child > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 27px 5px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy); font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--blue); font-size: 1.4rem; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; margin: -4px 50px 26px 5px; color: var(--muted); font-size: .9rem; }

/* Contact */
.contact { padding: clamp(88px, 10vw, 140px) 0; color: var(--white); background: var(--ink); }
.contact-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(480px,1fr); gap: clamp(60px, 9vw, 120px); }
.contact-copy h2 { margin-bottom: 28px; color: var(--white); }
.contact-copy > p:not(.eyebrow) { max-width: 580px; color: #aeb8c0; }
.contact-direct { margin-top: 44px; border-top: 1px solid #3c454d; }
.contact-direct > * { padding: 18px 0; display: block; border-bottom: 1px solid #3c454d; text-decoration: none; }
.contact-direct span, .contact-direct strong { display: block; }
.contact-direct span { margin-bottom: 4px; color: #89949d; font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.contact-direct strong { color: var(--white); font-size: .88rem; overflow-wrap: anywhere; }
.diagnostic-form { padding: clamp(30px, 4vw, 52px); color: var(--ink); background: var(--white); }
.diagnostic-form label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--navy); font-size: .69rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.diagnostic-form input, .diagnostic-form select, .diagnostic-form textarea { width: 100%; padding: 13px 3px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #9aa8b3; border-radius: 0; outline: 0; font-size: .95rem; text-transform: none; }
.diagnostic-form textarea { padding: 12px; border: 1px solid #9aa8b3; resize: vertical; }
.diagnostic-form input:focus, .diagnostic-form select:focus, .diagnostic-form textarea:focus { border-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.diagnostic-form .button { width: 100%; margin-top: 3px; border: 0; }
.form-note { margin: 15px 0 0; color: #75818a; font-size: .68rem; text-align: center; }

/* Footer + WhatsApp */
.site-footer { padding-top: 70px; color: #c2cbd2; background: #080e14; border-top: 1px solid #303943; }
.footer-grid { padding-bottom: 58px; display: grid; grid-template-columns: 1.8fr repeat(3,1fr); gap: 55px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 11px; }
.footer-grid strong { margin-bottom: 8px; color: var(--white); font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid a { color: #9ea9b2; font-size: .76rem; text-decoration: none; }
.footer-grid a:hover { color: var(--signal); }
.footer-logo-lockup { width: max-content; display: flex; align-items: center; gap: 14px; color: var(--white); }
.footer-logo-lockup img { width: 68px; height: 68px; flex: 0 0 auto; filter: brightness(0) invert(1); }
.footer-logo-lockup span { font-family: var(--body); font-size: 1.22rem; font-weight: 800; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.footer-brand p { max-width: 390px; margin: 24px 0 0; color: #8f9aa3; font-size: .78rem; }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #717d86; border-top: 1px solid #303943; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.whatsapp-float { position: fixed; z-index: 80; right: 24px; bottom: 24px; width: 58px; height: 58px; display: grid; place-items: center; color: var(--white); background: #149c54; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 12px 32px rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.whatsapp-float:hover { background: #0c7f42; transform: translateY(-4px); }
.whatsapp-float svg { width: 31px; fill: currentColor; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .hero-layout { grid-template-columns: minmax(0,1fr) minmax(410px,.9fr); }
  .machine-stage { min-height: 570px; }
  .platform-grid { grid-template-columns: repeat(3,1fr); }
  .service-row { grid-template-columns: 55px 1.1fr .75fr 130px; gap: 22px; }
  .workshop-copy { padding: 55px; }
}

/* O menu recolhe antes de faltar espaço, sem remover destinos. */
@media (max-width: 1120px) {
  .site-header, .header-bar { height: 72px; }
  .brand img { width: 178px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 72px 0 auto; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 26px 18px 34px; display: grid; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(13,43,82,.18); visibility: hidden; pointer-events: none; transform: translateY(-130%); transition: transform .3s ease, visibility .3s; }
  .main-nav.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav a { padding: 14px 8px; display: block; font-size: .85rem; border-bottom: 1px solid var(--steel); }
  .main-nav .nav-cta { margin-top: 15px; padding: 16px; text-align: center; }
}

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .hero { min-height: auto; }
  .hero-layout { min-height: auto; grid-template-columns: 1fr; gap: 0; padding-top: 45px; padding-bottom: 15px; }
  .hero-copy { padding-bottom: 20px; }
  .hero-copy h1 { max-width: 700px; }
  .machine-stage { min-height: 560px; }
  .hero-grid { inset: 45% 0 74px; }
  .ribbon-inner { padding: 20px 0; flex-wrap: wrap; justify-content: flex-start; }
  .ribbon-inner strong { flex-basis: 100%; }
  .split-heading, .process-layout, .workshop-layout, .compliance-grid, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .split-heading { align-items: start; gap: 28px; }
  .split-heading > p:last-child { margin: 0; }
  .platform-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 310px; }
  .platform-card-featured { grid-column: span 2; grid-row: span 1; }
  .service-row { grid-template-columns: 55px 1fr 145px; }
  .service-row ul { grid-column: 2; }
  .service-row > a { grid-column: 3; grid-row: 1 / span 2; }
  .process-layout { gap: 60px; }
  .process-copy { position: static; }
  .workshop-image { min-height: 0; aspect-ratio: 4 / 3; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card:last-child { grid-column: 1 / -1; }
  .contact-layout { gap: 55px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 72px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 82px 0; }
  h2 { font-size: clamp(2.85rem, 13vw, 4rem); }
  .eyebrow { margin-bottom: 18px; font-size: .72rem; }
  .hero-copy h1 { font-size: clamp(3.25rem, 17vw, 5.5rem); overflow-wrap: anywhere; }
  .hero-lead { font-size: .98rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-checks { display: grid; }
  .machine-stage { min-height: 0; margin-inline: 0; padding: 18px 0 14px; flex-direction: column; }
  .machine-stage::before { top: 3%; right: -8%; bottom: 9%; left: 2%; }
  .signal-shape { top: 6%; right: -22%; width: 85%; height: 67%; }
  .machine-number { top: 5%; right: 0; font-size: 8.2rem; }
  .hero-machine { width: min(100%, 520px); max-width: 100%; height: auto; object-fit: contain; transform: none; }
  .inspection-tag { position: relative; right: auto; bottom: auto; width: 92%; margin: 0 0 0 auto; padding: 15px 17px; }
  .ribbon-inner span { display: none; }
  .platform-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 310px; }
  .platform-card-featured { grid-column: auto; }
  .platform-photo { padding: 18px; }
  .service-row { padding: 30px 0; grid-template-columns: 40px 1fr; gap: 12px 18px; }
  .service-row ul { grid-column: 2; }
  .service-row > a { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 10px; }
  .process-steps li { grid-template-columns: 68px 1fr; gap: 18px; }
  .process-steps li > span { width: 54px; height: 54px; }
  .workshop-image { min-height: 0; aspect-ratio: 4 / 3; }
  .workshop-copy { padding: 44px 24px; }
  .capability-list > div { grid-template-columns: 1fr; gap: 8px; }
  .compliance-grid { gap: 55px; }
  .standard-card { padding: 35px 26px; box-shadow: 10px 10px 0 #071b34; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card:last-child { grid-column: auto; }
  .faq { padding-top: 10px; }
  .faq-layout { gap: 40px; }
  .faq-list summary { font-size: 1.3rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .diagnostic-form { padding: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { padding: 18px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
