/* ==========================================================================
   Bem+Mais — Site (home)
   Paleta do manual: #262627 (base) · #5B5A5A (conexão) · #E84418 (presença) · #F3F1E4 (ideia)
   ========================================================================== */

/* Fonte da marca: arquivos em assets/fonts/ (.otf da Fluro) */
@font-face { font-family: "Fluro"; src: url("../fonts/fluro-light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fluro"; src: url("../fonts/fluro.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fluro"; src: url("../fonts/fluro-semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fluro"; src: url("../fonts/fluro-bold.otf") format("opentype"); font-weight: 700 800; font-display: swap; }

:root {
  --base: #262627;
  --base-2: #1C1C1C;
  --black: #141414;
  --gray: #5B5A5A;
  --line: #4A4A4A;
  --orange: #E84418;
  --orange-2: #87351F;        /* tom escuro dos cases (alternado) */
  --cream: #F3F1E4;
  --text-soft: #D6D3C6;
  --text-muted: #A8A498;
  --ink: #232323;

  --font: "Fluro", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --content: 950px;
  --gutter: 24px;
  --header-h: 73px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--cream); background: var(--base); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }
body.is-locked { overflow: hidden; }

.tx-dark  { background: var(--base) url("../img/textura-escura.jpg") center / cover; background-image: image-set(url("../img/textura-escura.webp") type("image/webp"), url("../img/textura-escura.jpg") type("image/jpeg")); }
.tx-light { color: var(--base); background: var(--cream) url("../img/textura-clara.jpg") center / cover; background-image: image-set(url("../img/textura-clara.webp") type("image/webp"), url("../img/textura-clara.jpg") type("image/jpeg")); }

/* Título com régua (laranja + linha fina), como no layout */
.h-line { display: inline-flex; flex-direction: column; gap: 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.18; font-weight: 800; font-stretch: 120%; letter-spacing: .08em; text-transform: uppercase; }
.h-line::after { content: ""; width: 165px; height: 2px; background: linear-gradient(90deg, var(--orange) 0 40px, var(--gray) 40px 100%); background-size: 100% 2px; }
.h-line-center { align-items: center; text-align: center; }
.h-line-center::after { width: 230px; background: linear-gradient(90deg, var(--orange) 0 40px, var(--gray) 40px 100%); }
.h-line-dark::after { width: 160px; height: 1px; background: linear-gradient(90deg, #9A968A 0 60px, var(--base) 60px 100px, #9A968A 100px 100%); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 16px 28px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-stretch: 112%; line-height: 1.15;
  transition: transform .45s var(--ease), filter .45s ease, background-color .3s ease, color .3s ease;
  will-change: transform;
}
.btn:hover, .btn:focus-visible { transform: scale(1.05); filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: var(--cream); }
.btn-primary:hover { color: var(--cream); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.btn-pulse { animation: pulse 2.6s ease-in-out infinite; }
.btn-pulse:hover, .btn-pulse:focus-visible { animation-play-state: paused; }
.btn-dark { background: var(--base); color: var(--cream); }
.btn-dark:hover { color: var(--cream); background: var(--black); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .06); }
/* fundo com desfoque num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile (position: fixed) dentro dele */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 20, 20, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px;}
.header-logo img { height: 64px; width: auto; }
.header-nav { display: flex; gap: 28px; align-self: stretch; }
.header-nav a { position: relative; display: flex; align-items: center; color: var(--cream); text-decoration: none; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; font-stretch: 112%; transition: color .3s ease; }
.header-nav a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 40px; height: 2px; background: var(--orange); transform: translateX(-50%) scaleX(0); transition: transform .4s var(--ease); }
.header-nav a:hover, .header-nav a.is-active { color: var(--orange); }
.header-nav a.is-active::after, .header-nav a:hover::after { transform: translateX(-50%) scaleX(1); }

.social { display: flex; gap: 4px; }
.social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--cream); transition: transform .45s var(--ease), color .3s ease; }
.social a:hover, .social a:focus-visible { color: var(--orange); transform: scale(1.12); }
.social svg { width: 24px; height: 24px; fill: currentColor; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 2px; background: var(--cream); transition: transform .35s var(--ease), opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(520px, 52vw, 780px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--black); }
/* Banner rotativo: imagens em fade, texto fixo (imagem com efeitos) por cima */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: .9; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); }
.hero-title { position: relative; z-index: 1; width: 100%; max-width: 1100px; padding: var(--header-h) var(--gutter) 40px; text-align: center; }
/* imagem e texto empilhados no mesmo lugar; sem JS ou com movimento reduzido fica só a imagem */
.ht-troca { display: grid; place-items: center; }
.ht-troca > * { grid-area: 1 / 1; }
.ht-img { width: 100%; max-width: 1061px; height: auto; }
.ht { font-size: clamp(16px, 4.2vw, 58px); font-weight: 300; font-stretch: 125%; letter-spacing: .14em; line-height: 1; white-space: nowrap; text-transform: uppercase; color: var(--cream); opacity: 0; }
.ht-strong { font-weight: 800; }
.ht-plus { font-weight: 700; }
@keyframes deblur { from { opacity: 0; filter: blur(14px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: none; } }
/* ciclo de 8s: 2,6s imagem → troca de 1,4s → 2,6s texto → troca de 1,4s */
@keyframes troca-img { 0%, 32.5% { opacity: 1; filter: blur(0); } 50%, 82.5% { opacity: 0; filter: blur(12px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes troca-txt { 0%, 32.5% { opacity: 0; filter: blur(12px); } 50%, 82.5% { opacity: 1; filter: blur(0); } 100% { opacity: 0; filter: blur(12px); } }
.js .ht-troca { animation: deblur 1.4s var(--ease) both; }
.js .ht-img { animation: troca-img 8s ease-in-out 1.4s infinite; }
.js .ht { animation: troca-txt 8s ease-in-out 1.4s infinite both; }

/* ---------- Soluções (abas) ---------- */
.solucoes { padding-bottom: 80px; }
.tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: -36px auto 0; }
.tab { min-height: 72px; padding: 10px 12px; font-size: 16px; font-weight: 800; letter-spacing: .06em; background: var(--cream); color: #3A3A3A; }
.tab[aria-selected="true"] { background: var(--orange); color: var(--cream); }
.tab-panel { max-width: var(--content); margin: 64px auto 0; display: flex; flex-direction: column; gap: 32px; }
.tab-panel[hidden] { display: none; }
.tab-panel .h-line:not(:first-child) { margin-top: 24px; }
.tab-panel:not([hidden]) { animation: fade-up .6s var(--ease); }
.tab-panel p { font-size: 18px; line-height: 1.6; color: var(--cream); text-align: justify; hyphens: auto; }
.tab-panel p strong { font-weight: 800; }
.tab-panel img { width: 100%; aspect-ratio: 950 / 380; object-fit: cover; margin-top: 48px; }
/* imagens lado a lado: flex-grow proporcional à proporção de cada uma = mesma altura */
.tab-gallery { display: flex; gap: 40px; margin-top: 48px; }
.tab-gallery img { flex: var(--ar, 1) 1 0; min-width: 0; height: auto; aspect-ratio: auto; margin-top: 0; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Vídeo ---------- */
.video { position: relative; height: clamp(380px, 46vw, 720px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--black); }
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.video:hover .video-bg { transform: scale(1); }
.video-play { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px; border: 0; background: transparent; color: var(--cream); cursor: pointer; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; font-stretch: 112%; }
.video-play svg { width: 48px; height: 48px; fill: currentColor; transition: transform .45s var(--ease), color .3s ease; }
.video-play:hover svg, .video-play:focus-visible svg { transform: scale(1.18); color: var(--orange); }

/* ---------- Vagas ---------- */
.vagas { position: relative; overflow: hidden; background: var(--orange); color: var(--base-2); min-height: clamp(560px, 48vw, 760px); display: flex; align-items: center; }
.vagas-inner { position: relative; z-index: 1; flex: 1 1 auto; padding-top: 80px; padding-bottom: 80px; }
.vagas-text { max-width: 720px; display: flex; flex-direction: column; gap: 32px; }
.vagas h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; font-weight: 800; font-stretch: 120%; text-transform: uppercase; max-width: 11ch; }
.vagas p { font-size: 19px; line-height: 1.55; max-width: 26ch; }
.vagas-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 16px; }
.vagas-actions .btn { min-width: 240px; min-height: 56px; padding: 18px 28px; }
.vagas-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; }

/* ---------- Faixa equipe ---------- */
.faixa { background: var(--base); padding: 64px 0; }
.faixa img { width: 100%; height: clamp(160px, 22vw, 342px); object-fit: cover; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-tile { position: relative; aspect-ratio: 519 / 486; }
.case-tile:nth-child(odd) { background: var(--orange); }
.case-tile:nth-child(even) { background: var(--orange-2); }
.case-btn { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; color: var(--cream); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; font: inherit; }
.case-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s ease; }
/* várias capas empilhadas: só a ativa aparece (troca a cada 1s pelo JS) */
.case-btn.is-multi .case-cover { opacity: 0; transition: opacity .35s ease, transform 1s var(--ease), filter .6s ease; }
.case-btn.is-multi .case-cover.is-active { opacity: 1; }
.case-num { position: absolute; left: 28px; top: 24px; font-size: 14px; font-weight: 700; letter-spacing: .14em; opacity: .55; transition: opacity .4s ease; }
.case-label { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; text-align: center; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .7s var(--ease); }
.case-name { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; font-stretch: 120%; line-height: 1.15; }
.case-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-stretch: 112%; }
.case-more svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.case-btn::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 20, 20, .75); opacity: 0; transition: opacity .5s ease; }
.case-btn.no-cover::before { background: rgba(20, 20, 20, .18); }
.case-btn:hover::before, .case-btn:focus-visible::before { opacity: 1; }
.case-btn:hover .case-label, .case-btn:focus-visible .case-label { opacity: 1; transform: none; }
.case-btn:hover .case-cover, .case-btn:focus-visible .case-cover { transform: scale(1.06); filter: grayscale(.2); }
.case-btn:hover .case-num, .case-btn:focus-visible .case-num { opacity: 0; }
.case-btn:hover .case-more svg { transform: translateX(4px); }
.case-btn:focus-visible { outline-offset: -6px; outline-color: var(--cream); }
@media (hover: none) { .case-label { opacity: 1; transform: none; } .case-num { display: none; } }
.cases-noscript { padding: 40px; text-align: center; }

/* Popup tela cheia */
.case-modal { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--base); color: var(--cream); overflow: hidden; }
.case-modal[open] { display: flex; flex-direction: column; animation: modal-in .55s var(--ease); }
.case-modal::backdrop { background: rgba(0, 0, 0, .7); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.case-modal-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.case-count { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-stretch: 118%; color: var(--text-muted); }
.case-count b { color: var(--orange); }
.case-nav { display: flex; gap: 8px; }
.case-nav .btn { width: 48px; padding: 0; background: transparent; color: var(--cream); border: 1px solid var(--line); }
.case-nav .btn:hover { border-color: var(--orange); color: var(--orange); }
.case-nav svg { width: 22px; height: 22px; }
.case-prev svg { transform: rotate(180deg); }
.case-close { margin-left: 12px; }
.case-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case-hero { position: relative; min-height: 42vh; display: flex; align-items: flex-end; padding: 64px clamp(16px, 6vw, 96px) 48px; background: var(--orange); overflow: hidden; }
/* imagem de fundo desfocada; scale esconde a borda clara que o blur cria nas laterais */
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px); transform: scale(1.1); }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 20, .75), rgba(20, 20, 20, 0) 70%); }
.case-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.case-seg { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-stretch: 118%; color: var(--cream); opacity: .85; }
.case-hero h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; font-weight: 800; font-stretch: 120%; }
.case-body { max-width: 880px; margin: 0 auto; padding: 64px clamp(16px, 5vw, 40px) 80px; display: flex; flex-direction: column; gap: 22px; }
.case-body p { font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.case-body p strong { color: var(--cream); }
.case-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.case-kpis li { background: #2F2F30; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.case-kpis strong { font-size: 30px; font-weight: 800; color: var(--orange); font-stretch: 112%; line-height: 1.15; }
.case-kpis span { font-size: 16px; color: #C9C5B8; }
.case-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.case-cta p { font-size: 18px; color: var(--cream); }

/* ---------- CTA projeto ---------- */
.cta-projeto { background: var(--base); display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 80px var(--gutter) 48px; text-align: center; }
.cta-projeto p { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; font-stretch: 112%; }
.cta-projeto strong { font-weight: 800; }
.btn-wa { min-width: 260px; min-height: 56px; padding: 18px 28px; font-size: 15px; font-weight: 800; }
.btn-wa svg { width: 28px; height: 28px; }

/* ---------- Instagram ---------- */
.instagram { background: var(--base); padding: 32px 0 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.ig-grid { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.ig-grid li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--orange); } /* formato de post do feed */
.ig-grid a { position: absolute; inset: 0; display: block; color: var(--cream); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ig-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(20, 20, 20, .55); opacity: 0; transition: opacity .45s ease; text-align: center; font-size: 13px; line-height: 1.45; }
.ig-hover svg { width: 34px; height: 34px; fill: currentColor; transform: scale(.8); transition: transform .5s var(--ease); }
.ig-grid a:hover img, .ig-grid a:focus-visible img { transform: scale(1.06); }
.ig-grid a:hover .ig-hover, .ig-grid a:focus-visible .ig-hover { opacity: 1; }
.ig-grid a:hover .ig-hover svg { transform: none; }
.ig-badge { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; color: var(--cream); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }

/* ---------- Clientes ---------- */
.clientes { padding: 80px 0; text-align: center; }
.clientes .h-line { color: var(--base); }
.clientes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; max-width: 1100px; margin: 48px auto 0; }
.clientes-grid li { height: 160px; display: flex; align-items: center; justify-content: center; }
.clientes-grid img { max-width: 80%; max-height: var(--h, 60px); width: auto; opacity: .5; filter: grayscale(1); transition: opacity .4s ease, transform .5s var(--ease); }
.clientes-grid li:hover img { opacity: .9; transform: scale(1.06); }

/* ---------- Contato ---------- */
.contato { background: var(--base); padding: 80px 0; }
.contato-inner { max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.contato-list { display: flex; flex-direction: column; gap: 28px; margin-top: 48px; }
.contato-list li { display: flex; align-items: center; gap: 22px; }
.contato-list svg { flex: none; width: 28px; height: 28px; color: var(--cream); }
.contato-list div { display: flex; flex-direction: column; font-size: 18px; letter-spacing: .04em; font-stretch: 112%; line-height: 1.3; }
.contato-list strong { font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.contato-list a { color: var(--cream); text-decoration: none; }
.contato-list a:hover { color: var(--orange); }

.lead-form { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { width: 100%; font-size: 15px; padding: 11px 14px; border: 1px solid transparent; border-radius: 0; background: #fff; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.field input::placeholder, .field textarea::placeholder { color: #7A7A7A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 68, 24, .35); }
.field textarea { resize: vertical; min-height: 140px; }
.field.has-error input, .field.has-error textarea { border-color: #FF6B4F; }
.field-error { font-size: 12px; color: #FF9A85; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .btn { min-height: 44px; padding: 10px 28px; font-size: 16px; letter-spacing: .18em; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #6FD39B; }
.form-status.is-error { color: #FF9A85; }
.lead-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
/* popup de sucesso: tela cheia, mesmo padrão do popup de case */
.form-ok-modal { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: var(--gutter); border: 0; color: var(--cream); }
.form-ok-modal[open] { display: flex; align-items: center; justify-content: center; animation: modal-in .55s var(--ease); }
.form-ok-modal::backdrop { background: rgba(0, 0, 0, .7); }
.form-ok-box { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.form-ok-icone { width: 64px; height: 64px; }
.form-ok-box .h-line::after { display: none; } /* título sem a régua */
.form-ok-box p { font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.form-ok-box .btn { min-width: 200px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--black); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner img { height: 56px; width: auto; }
.footer-inner p { font-size: 14px; letter-spacing: .04em; color: var(--text-soft); text-align: center; }

/* ---------- Vídeo (popup) ---------- */
.video-modal { width: min(1080px, 92vw); padding: 0; border: 0; background: #000; overflow: visible; }
.video-modal::backdrop { background: rgba(0, 0, 0, .85); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-close svg { width: 28px; height: 28px; }

/* ---------- Botão flutuante do WhatsApp ---------- */
/* exceção à paleta: verde e branco oficiais do WhatsApp, a pedido */
.wpp-float { position: fixed; right: 24px; bottom: 24px; z-index: 9999; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: transform .25s ease; }
.wpp-float:hover, .wpp-float:focus-visible { transform: scale(1.1); }
.wpp-float svg { width: 55%; height: 55%; fill: currentColor; }
/* pulsos: a cada 4s saem duas ondas suaves (a 2ª 0,5s depois) e o botão fica ~1,5s em repouso */
.wpp-float::before, .wpp-float::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #25D366; opacity: 0; animation: wpp-pulse 3s ease-out infinite; }
.wpp-float::after { animation-delay: .5s; }
@keyframes wpp-pulse { 0% { transform: scale(1); opacity: .35; } 50%, 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 768px) { .wpp-float { width: 54px; height: 54px; } }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* entra pela esquerda (animação da LP); atraso opcional via style="--d: .15s" */
.js .reveal-x { opacity: 0; transform: translateX(-56px); transition: opacity 1.4s ease var(--d, 0s), transform 1.8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
.js .reveal-x.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .social-header { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 65px; }
  .menu-toggle { display: flex; }
  .header-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 39; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: rgba(20, 20, 20, .97); opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s ease, transform .45s var(--ease), visibility 0s linear .45s;
  }
  .header-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .45s var(--ease); }
  .header-nav a { font-size: 22px; padding: 14px 24px; }
  .header-nav a::after { bottom: 6px; }

  .tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { min-height: 64px; font-size: 14px; }
  .tab:hover { transform: none; }
  .tab-panel { margin-top: 48px; gap: 28px; }
  .tab-panel p { font-size: 16px; text-align: left; }
  .tab-panel picture img { margin-top: 24px; }
  .tab-gallery { gap: 16px; margin-top: 24px; }

  .vagas { flex-direction: column; align-items: stretch; min-height: 0; }
  .vagas-inner { padding-top: 64px; padding-bottom: 0; }
  .vagas-text { gap: 32px; max-width: none; }
  .vagas-img { position: relative; inset: auto; max-width: 100%; width: 100%; height: auto; max-height: 420px; object-position: 75% center; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%); mask-image: linear-gradient(180deg, transparent, #000 25%); }
  .vagas-actions { gap: 12px; }
  .vagas-actions .btn { min-width: 0; flex: 1 1 260px; }

  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-tile:nth-child(n) { background: var(--orange); }
  .case-tile:nth-child(4n+2), .case-tile:nth-child(4n+3) { background: var(--orange-2); }

  .ig-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid li { flex: 0 0 40%; scroll-snap-align: start; }

  .clientes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .clientes-grid li { height: 120px; }
  .vagas p { font-size: 17px; }

  .contato-inner { grid-template-columns: 1fr; gap: 72px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 65px; }
  .header-logo img { height: 56px; }
  .hero { height: 70vh; min-height: 440px; }
  .solucoes { padding-bottom: 64px; }
  .faixa { padding: 40px 0; }

  .cases-grid { grid-template-columns: 1fr; }
  .case-tile { aspect-ratio: 16 / 10; }
  .case-tile:nth-child(n) { background: var(--orange); }
  .case-tile:nth-child(even) { background: var(--orange-2); }
  .case-modal-bar { padding: 10px 12px; }
  .case-close { margin-left: 4px; }
  .case-body p { font-size: 16px; }

  .btn-wa { min-width: 0; width: 100%; max-width: 340px; }
  .ig-grid li { flex-basis: 62%; }

  .clientes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .contato { padding: 80px 0; }
  .contato-list div { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-x { opacity: 1; transform: none; }
  .wpp-float::before, .wpp-float::after { display: none; }
}
