/* Adrisert: elétrica industrial. Bancada, aço e o azul do logotipo. */
:root {
  --ink: #101c26;          /* aço escuro */
  --steel: #e8ecef;        /* chapa clara (fundo) */
  --steel-2: #d5dce1;
  --white: #fff;
  --blue: #0060b4;         /* azul do logotipo */
  --blue-dark: #00457f;
  --signal: #f0641e;       /* laranja de sinalização, das máquinas */
  --text: #26343f;
  --muted: #566672;
  --rule: #c3ccd3;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 88rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
/* telas grandes: tudo escala junto (o layout é em rem) */
@media (min-width: 100rem) { html { font-size: 18px; } }
@media (min-width: 130rem) { html { font-size: 20px; } }
body { margin: 0; background: var(--steel); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); font-weight: 800; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.5rem; border-radius: 2px;
  background: var(--signal); color: var(--ink); text-decoration: none;
  font: 700 1.02rem/1.2 var(--body);
  box-shadow: 0 3px 0 #b8430d;
  transition: background-color .15s, transform .1s, box-shadow .1s;
}
.btn:hover { background: #ff7a35; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8430d; }
.btn svg { width: 1.3rem; height: 1.3rem; flex: none; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--steel-2); }
.btn--light:hover { background: var(--steel); }
.link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--blue); }
.link:hover { text-decoration-color: var(--signal); }

/* ---------- cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.header__row { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand img { height: 3.1rem; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__link:hover { border-bottom-color: var(--blue); }
.header__cta { padding: .45rem 1.1rem .45rem .85rem; gap: .7rem; background: transparent; color: var(--ink); box-shadow: none; line-height: 1.15; padding-right: 0; }
.header__cta:hover { background: transparent; }
.header__cta:hover b { color: var(--blue); }
.header__cta:active { transform: none; box-shadow: none; }
.header__cta svg { width: 2.6rem; height: 2.6rem; padding: .5rem; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 3px 10px rgba(37,211,102,.45); flex: none; transition: transform .2s, box-shadow .2s; }
.header__cta:hover svg { transform: scale(1.08); box-shadow: 0 5px 14px rgba(37,211,102,.55); }
.header__cta span { display: flex; flex-direction: column; }
.header__cta small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.header__cta b { font-size: .98rem; font-weight: 700; }
:focus-visible { outline-color: var(--blue); }
.hero :focus-visible, .burger { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - 4.5rem); min-height: calc(100svh - 4.5rem); }
.hero__photo { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; width: min(62vw, 1300px); aspect-ratio: 4 / 3; }
.hero__photo > img { width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.hero__in { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero h1 { color: #fff; max-width: 13ch; font-size: clamp(3.2rem, 6.6vw, 7rem); line-height: .88; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 .q { display: block; max-width: 14ch; font-weight: 700; color: rgba(255,255,255,.78); font-size: .52em; line-height: 1; margin-bottom: .22em; }
.hero h1 strong { display: block; font-weight: 900; }
.hero__lead { margin-top: 1.6rem; max-width: 36ch; font-size: 1.2rem; color: #e3eaef; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.75rem; }
.btn--hero { padding: 1.15rem 1.9rem; font-size: 1.12rem; }
.link--light { color: #fff; text-decoration-color: var(--signal); }
.hero__strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1rem 2rem; padding-top: 1.3rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .98rem; font-weight: 500; color: #fff; }
.hero__strip li { padding-left: .9rem; border-left: 3px solid var(--signal); line-height: 1.25; }

/* legendas apontando as peças da máquina aberta */
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; opacity: 0; animation: pin-in .5s ease-out forwards; animation-delay: var(--d, 0s); }
.pin::before { content: ""; position: absolute; width: .95rem; height: .95rem; left: -.475rem; top: -.475rem; border-radius: 50%; background: var(--signal); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.pin span {
  position: absolute; white-space: nowrap;
  background: #fff; color: var(--ink);
  padding: .28rem .6rem; border-radius: 2px;
  font: 600 .82rem/1.2 var(--body);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.pin span::after { content: ""; position: absolute; background: #fff; }
.pin--up span { left: -.45rem; bottom: 2.1rem; }
.pin--up span::after { left: .45rem; top: 100%; width: 2px; height: 1.55rem; }
.pin--right span { left: 2rem; top: -.9rem; }
.pin--right span::after { right: 100%; top: .8rem; width: 1.55rem; height: 2px; }
.pin--left span { right: 2rem; top: -.9rem; }
.pin--left span::after { left: 100%; top: .8rem; width: 1.55rem; height: 2px; }
@keyframes pin-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- seções ---------- */
.sec { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec__head h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; }
.sec__head p { max-width: 46ch; color: var(--muted); font-size: 1.1rem; }

/* serviços realizados: mesma linguagem do hero (fundo escuro, foto que sangra até a borda, título branco enorme) */
.works { position: relative; background: #fff; padding-bottom: clamp(2rem, 4vw, 3rem); color: var(--text); overflow-x: clip; --bleed: calc((100vw - min(100vw, var(--max) + var(--gutter) * 2)) / 2 + var(--gutter)); padding-top: clamp(3.5rem, 7vw, 6rem); }
.works::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5rem; background: repeating-linear-gradient(135deg, var(--signal) 0 1.1rem, var(--ink) 1.1rem 2.2rem); }
.works__head { display: block; margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.works__head h2 { color: var(--ink); font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.01em; }
.works__lead { margin-top: 1.4rem; max-width: 40ch; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ink); }
.works__hint { margin-top: .7rem; font-size: 1rem; color: var(--muted); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.case { display: flex; flex-direction: column; min-width: 0; padding-bottom: 1.5rem; border-bottom: 3px solid var(--ink); }
.case .cmp { aspect-ratio: 5 / 4; }
.case h3 { color: var(--ink); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: .95; margin-top: 1.3rem; min-height: 1.9em; display: flex; align-items: flex-end; }
.case__text p { margin-top: .9rem; max-width: 36ch; font-size: 1.02rem; line-height: 1.55; color: var(--text); }
.works :focus-visible { outline-color: var(--blue); }

.cmp { position: relative; aspect-ratio: var(--r); overflow: hidden; background: var(--ink); --p: 50%; user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__after { clip-path: inset(0 0 0 var(--p)); }
.cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.cmp__knob { position: absolute; top: 50%; left: var(--p); width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); display: grid; place-items: center; pointer-events: none; }
.cmp__knob svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp__tag { position: absolute; bottom: .7rem; padding: .22rem .55rem; background: var(--ink); color: #fff; font: 600 .78rem/1.2 var(--body); border-radius: 2px; pointer-events: none; }
.cmp__tag--a { left: .7rem; }
.cmp__tag--d { right: .7rem; background: var(--blue); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp.is-ready .cmp__knob { animation: knob-ping 1.4s ease-out 2; }
@keyframes knob-ping { 0% { box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 1.4rem rgba(255,255,255,0); } }
.cmp:focus-within { outline: 3px solid var(--signal); outline-offset: 3px; }

/* especializações */
.specs-sec { background: #fff; padding: 0 0 clamp(3rem, 6vw, 5rem); }
.brands { border-top: 1px solid var(--rule); padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.brands__label { font-size: .95rem; color: var(--muted); text-align: center; }
.brands__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.brands__grid li { flex: 1 1 11rem; display: grid; place-items: center; min-height: clamp(5rem, 9vw, 7.5rem); padding: 1rem 1.5rem; }
.mk { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(2.6rem, 4.2vw, 3.6rem); }
.brands__grid li:nth-child(1) .mk { max-height: clamp(1.6rem, 2.6vw, 2.2rem); }
.brands__grid li:nth-child(2) .mk { max-height: clamp(2.4rem, 3.8vw, 3.2rem); }
.brands__grid li:nth-child(3) .mk { max-height: clamp(3rem, 4.8vw, 4.2rem); }
.brands__grid li:nth-child(5) .mk { max-height: clamp(2.8rem, 4.4vw, 3.8rem); }


/* rodapé */
.history { background: var(--steel); }
.history__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.history__text h2 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.01em; }
.history__lead { margin-top: 1.6rem; max-width: 36ch; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.history__text p:not(.history__lead) { margin-top: 1.2rem; max-width: 52ch; font-size: 1.05rem; line-height: 1.65; padding-left: .9rem; border-left: 3px solid var(--signal); }
.history__photo { margin: 0; }
.history__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 6px solid var(--signal); }
.history__photo figcaption { margin-top: .8rem; font-size: .9rem; color: var(--muted); }
.sfoot { background: #fff; color: var(--text); }
.sfoot__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.sfoot__logo img { display: block; height: 4.2rem; width: auto; }
.sfoot__contacts h3 { font: 700 1.15rem/1.2 var(--body); color: var(--ink); letter-spacing: 0; margin-bottom: 1rem; }
.sfoot__contacts ul { display: grid; gap: .8rem; }
.sfoot__contacts li { display: flex; align-items: center; gap: .8rem; line-height: 1.4; }
.sfoot__contacts svg { flex: none; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfoot__contacts li.i-wa svg { fill: var(--ink); stroke: none; }
.sfoot a { text-decoration: none; }
.sfoot__contacts a:hover { color: var(--blue); }
.sfoot__icons { display: grid; gap: .9rem; }
.sfoot__icons a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 2px solid var(--ink); border-radius: .5rem; color: var(--ink); transition: background-color .15s, color .15s, border-color .15s; }
.sfoot__icons a:hover { background: var(--signal); border-color: var(--signal); }
.sfoot__icons svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfoot__icons li:first-child svg { fill: currentColor; stroke: none; }
.footer { background: #0b141c; color: #93a4b1; padding: 1.4rem 0; font-size: .9rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer a { text-underline-offset: .2em; }

.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: #1da851; color: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .25s, transform .25s; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 1.9rem; height: 1.9rem; }


/* ---------- celular e tablet ---------- */
@media (max-width: 62rem) {
  .nav { position: fixed; inset: 4.5rem 0 0 0; background: #fff; padding: 1.5rem var(--gutter); transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
  .nav.open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 1rem 0; font: 800 2rem/1 var(--display); border-bottom: 1px solid var(--rule); }
  .header__cta { display: none; }
  .burger { display: block; }
  .sec__head,   .hero { min-height: 0; }
  .hero__photo { position: relative; top: auto; transform: none; width: 100%; order: -1; }
  .hero__photo > img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero__in { margin-top: -2.5rem; padding-top: 0; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 11vw, 5rem); }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .works__head { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; gap: 2.5rem; }
  .case h3 { min-height: 0; }
    .brands__grid li { flex-basis: 45%; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .brand img { height: 2.6rem; }
  .pin span { font-size: .72rem; padding: .2rem .45rem; }
  .pin:nth-of-type(3) { display: none; }
  .pin::before { width: .8rem; height: .8rem; left: -.4rem; top: -.4rem; }
  .pin--up span::after { height: 1.1rem; }
  .pin--up span { bottom: 1.65rem; }
  .pin--right span { left: 1.6rem; top: -.75rem; }
  .pin--right span::after { width: 1.1rem; top: .65rem; }
    .hero__cta .btn { width: 100%; justify-content: center; }
  .history__grid { grid-template-columns: 1fr; }
  .sfoot__main { grid-template-columns: 1fr; gap: 1.8rem; }
  .sfoot__icons { display: flex; }
    .hero__strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin { animation: none; opacity: 1; }
  * { transition: none !important; }
}


