/* Camada visual "industrial" do site publico (index, produtos, sobre, contato).
   Carregada depois de styles.css e escopada em body.site-industrial, entao o admin
   fica de fora. Nenhuma cor nova: tudo usa --primary, --accent e os grafites existentes. */

body.site-industrial {
  --hazard: repeating-linear-gradient(
    -45deg,
    rgba(255, 106, 0, 0.92) 0 5px,
    rgba(14, 18, 24, 0.92) 5px 10px
  );
  --steel: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.04) 0 1px,
    rgba(255, 255, 255, 0) 1px 4px
  );
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='z'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23z)'/%3E%3C/svg%3E");
  --chamfer: 15px;
  --plate-clip: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

/* Grao fino por cima do page-bg: pinta acima dele por vir depois na arvore, e abaixo do
   conteudo por ter z-index negativo. */
body.site-industrial::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.05;
}

/* Faixa de perigo antes de cada rotulo de secao. */
body.site-industrial .eyebrow,
body.site-industrial .catalog-filters-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

body.site-industrial .eyebrow::before,
body.site-industrial .catalog-filters-label::before {
  content: "";
  flex: none;
  width: 28px;
  height: 9px;
  background-image: var(--hazard);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* Fecho do hero: filete hazard com pontas esmaecidas. Vale para todas as paginas. */
body.site-industrial .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--container);
  height: 4px;
  transform: translateX(-50%);
  background-image: var(--hazard);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

/* Aco escovado nas faixas escuras, que existem em todas as paginas. */
body.site-industrial .section-dark {
  position: relative;
}

body.site-industrial .section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--steel);
  opacity: 0.6;
}

/* Chapas parafusadas: textura escovada + rebites nos quatro cantos. */
body.site-industrial .feature-card,
body.site-industrial .about-card,
body.site-industrial .contact-info,
body.site-industrial .contact-form {
  position: relative;
}

body.site-industrial .feature-card::before,
body.site-industrial .about-card::before,
body.site-industrial .contact-info::before,
body.site-industrial .contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1.3px, rgba(255, 255, 255, 0) 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1.3px, rgba(255, 255, 255, 0) 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1.3px, rgba(255, 255, 255, 0) 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1.3px, rgba(255, 255, 255, 0) 1.9px),
    var(--steel);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: 5px 5px, 5px 5px, 5px 5px, 5px 5px, auto;
  background-position:
    8px 8px,
    calc(100% - 8px) 8px,
    8px calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    0 0;
}

/* Cantoneiras tecnicas: laranja no canto superior esquerdo, teal no inferior direito. */
body.site-industrial .feature-card::after,
body.site-industrial .about-card::after,
body.site-industrial .contact-info::after,
body.site-industrial .contact-form::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 180ms ease;
  background:
    linear-gradient(var(--primary), var(--primary)) left top / 15px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) left top / 2px 15px no-repeat,
    linear-gradient(rgba(22, 194, 163, 0.8), rgba(22, 194, 163, 0.8)) right bottom / 15px 2px no-repeat,
    linear-gradient(rgba(22, 194, 163, 0.8), rgba(22, 194, 163, 0.8)) right bottom / 2px 15px no-repeat;
}

body.site-industrial .feature-card:hover::after,
body.site-industrial .about-card:hover::after {
  opacity: 1;
}

/* Itens de FAQ sao linhas de acordeao, nao chapas: so a textura, sem rebites nem cantoneiras. */
body.site-industrial .faq-item {
  position: relative;
}

body.site-industrial .faq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--steel);
  opacity: 0.5;
}

/* CTA final com borda hazard e cantoneira tecnica. */
body.site-industrial .cta-box {
  position: relative;
  overflow: hidden;
  padding-left: 1.8rem;
}

body.site-industrial .cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  background-image: var(--hazard);
  opacity: 0.85;
  pointer-events: none;
}

body.site-industrial .cta-box::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(rgba(255, 214, 171, 0.85), rgba(255, 214, 171, 0.85)) right top / 22px 2px no-repeat,
    linear-gradient(rgba(255, 214, 171, 0.85), rgba(255, 214, 171, 0.85)) right top / 2px 22px no-repeat;
}

/* Painel de video do hero da home: moldura chanfrada em 9:16, formato nativo dos videos.
   O markup so existe no index.html; as regras ficam aqui para manter a camada num arquivo. */
@media (min-width: 1025px) {
  body.site-industrial .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media-frame {
  position: relative;
  width: 16.5rem;
  max-width: 100%;
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(255, 168, 99, 0.6),
    rgba(255, 255, 255, 0.14) 45%,
    rgba(22, 194, 163, 0.4)
  );
  clip-path: var(--plate-clip);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.hero-media-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  clip-path: var(--plate-clip);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 106, 0, 0.26), transparent 60%),
    var(--steel),
    linear-gradient(180deg, #151c26, #0a0e14);
}

.hero-media-screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: var(--hazard);
  opacity: 0.9;
}

.hero-media-screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(6, 9, 13, 0), rgba(6, 9, 13, 0.88));
  pointer-events: none;
}

.hero-media-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-badge {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 0.32rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #0b1017;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* O video so entra em viewports largas; abaixo disso o painel sai e o hero volta a ser texto puro. */
@media (max-width: 1024px) {
  .hero-media {
    display: none;
  }
}
