/* ===== OPS Comunicação Total — estilos globais (build estático) ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0B0B0D; color: #FFFFFF; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #E30613; text-decoration: none; }
a:hover { color: #ff2f3c; }
h1, h2, h3 { margin: 0; }
img, svg { display: block; }
input, textarea, select, button { font-family: 'Inter', sans-serif; }
::selection { background: #E30613; color: #fff; }

/* keyframes */
@keyframes opsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes opsFloatSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }
@keyframes opsScan { 0% { transform: translateY(-120%); } 100% { transform: translateY(520%); } }
@keyframes opsMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes opsGlow { 0%,100% { opacity: .3; } 50% { opacity: .65; } }
@keyframes opsSpin { to { transform: rotate(360deg); } }

/* scroll reveal — progressive enhancement:
   o conteúdo é VISÍVEL por padrão; o estado "escondido" só entra quando o
   app.js adiciona .reveal-on em <html>. Assim, se o JS não rodar, nada some. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* service card hover */
[data-svc-card] { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
[data-svc-card]:hover { transform: translateY(-6px); border-color: rgba(227,6,19,0.5) !important; box-shadow: 0 30px 60px -30px rgba(227,6,19,0.4); }
[data-svc-card]:hover [data-svc-bar] { width: 100% !important; }

/* image placeholders (troque pelas fotos reais) */
.photo-slot { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; background-color: #14141a; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px); color: #6b6b6b; }
.photo-slot__icon { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(227,6,19,0.35); background: rgba(227,6,19,0.10); display: flex; align-items: center; justify-content: center; color: #E30613; font-size: 17px; }
.photo-slot__label { font-family: 'Inter', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; max-width: 200px; }
.photo-slot__hint { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #4f4f52; }

/* botão play do vídeo (seção Sobre) */
#opsVideoFacade { display: block; }
#opsVideoFacade:hover .ops-play { transform: translate(-50%, -50%) scale(1.08); }
#opsVideoCta:hover { filter: brightness(1.05); }

/* portfólio: masonry (colunas) + zoom no hover + clique */
[data-gallery-grid] { column-count: 4; column-gap: 14px; }
[data-gallery-grid] > div { break-inside: avoid; margin: 0 0 14px; width: 100%; cursor: zoom-in; }
[data-gallery-grid] img { display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1); will-change: transform; }
[data-gallery-grid] > div:hover img { transform: scale(1.07); }
@media (max-width: 1000px) { [data-gallery-grid] { column-count: 3; } }
@media (max-width: 680px)  { [data-gallery-grid] { column-count: 2; } }
@media (max-width: 440px)  { [data-gallery-grid] { column-count: 1; } }

/* lightbox (modal do portfólio) */
#pfLightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(5,5,7,0.92); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#pfLightbox.open { opacity: 1; pointer-events: auto; }
#pfLightbox img { max-width: min(1100px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9); transform: scale(.96); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
#pfLightbox.open img { transform: scale(1); }
#pfCaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #EFEFEF; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
#pfClose { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease; }
#pfClose:hover { background: #E30613; border-color: #E30613; }
@media (prefers-reduced-motion: reduce) { [data-gallery-grid] img, #pfLightbox img { transition: none; } }

/* focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #E30613; outline-offset: 2px; }
input:focus, textarea:focus, select:focus { border-color: rgba(227,6,19,0.6) !important; }

/* mobile menu */
#mobileMenu { position: fixed; inset: 0; z-index: 99; background: rgba(11,11,13,0.97); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#mobileMenu.open { opacity: 1; pointer-events: auto; }

/* responsividade (equivale ao applyResponsive original) */
[data-menu-btn] { display: none; }
[data-float-cta] { display: none; }

@media (max-width: 1000px) {
  [data-services-grid] { grid-template-columns: repeat(2,1fr) !important; }
  [data-diff-grid] { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 860px) {
  [data-desktop-nav] { display: none !important; }
  [data-cta-header] { display: none !important; }
  [data-menu-btn] { display: flex !important; }
  [data-float-cta] { display: inline-flex !important; }
  [data-hero-grid] { grid-template-columns: 1fr !important; }
  [data-hero-visual] { height: 380px !important; }
  [data-services-grid], [data-about-grid], [data-diff-grid], [data-contact-grid], [data-footer-grid] { grid-template-columns: 1fr !important; }
  [data-process-grid], [data-gallery-grid] { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  [data-form-row] { grid-template-columns: 1fr !important; }
}
/* "Reduzir movimento": mantemos as animações de ambiente da marca (marquee,
   float, brilho) e apenas removemos o movimento de entrada no scroll e o
   rolamento suave — que são os que causam desconforto. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
