/*
  ZapSign UI — camada de componentes compartilhada.

  Fonte de verdade: a home (index.html). As regras abaixo foram extraídas
  verbatim do bloco <style> da home para que index.html, /placas/ e /totens/
  usem exatamente os mesmos componentes (botões, badges, cards, reveal,
  espaçamento de seção, header sticky, etc.).

  Regras específicas de uma página continuam no <style> da própria página.
  Ao alterar um componente aqui, ele muda em todas as páginas — é esse o ponto.
*/

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(246, 107, 16, 0.65);
  outline-offset: 2px;
  border-radius: 10px;
}

html {
  scroll-behavior: smooth;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #1F5E4B, #0F3D3E);
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 1px 6px rgba(31, 94, 75, 0.25);
}

.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1F5E4B, #0F3D3E);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(31, 94, 75, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(246, 107, 16, 0.35);
}

.gradient-bg-1 {
  background: radial-gradient(circle at 15% 20%, rgba(31, 94, 75, 0.06), transparent 30%), radial-gradient(circle at 80% 10%, rgba(31, 94, 75, 0.09), transparent 28%), linear-gradient(135deg, #ffffff 0%, #f6f7f8 50%, #ffffff 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #ffffff 0%, #f6f7f8 50%, #ffffff 100%);
}

.gradient-bg-3 {
  background: linear-gradient(135deg, #f6f7f8 0%, #ffffff 30%, #f0f1f3 70%, #ffffff 100%);
}

.section-gradient {
  background: linear-gradient(135deg, #fff 0%, #f6f7f8 100%);
}

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(12, 12, 14, 0.45);
}

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

html.js-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #1F5E4B, #0F3D3E);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -18px rgba(31, 94, 75, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #1F5E4B;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid #1F5E4B;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  color: #fff;
  background: linear-gradient(135deg, #1F5E4B, #0F3D3E);
  border-color: #1F5E4B;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #F2F2F2;
  color: #1C1C1C;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-ghost {
  background: linear-gradient(135deg, rgba(31, 94, 75, 0.12), rgba(15, 61, 62, 0.12));
  color: #1F5E4B;
}

/* Texto gradiente laranja */
.text-gradient-orange {
  background: linear-gradient(135deg, #1F5E4B 0%, #0F3D3E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange-light {
  background: linear-gradient(135deg, #1F5E4B 0%, #0F3D3E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-min {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #F2F2F2;
  color: #666;
  font-weight: 500;
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .animate-float,
  .animate-slide-up,
  .animate-fade-in {
    animation: none !important;
  }

  .btn-primary,
  .btn-secondary {
    transform: none !important;
  }
}

h1 {
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  h1 {
    letter-spacing: -0.015em;
  }
}


.card-hover h3 {
  letter-spacing: -0.005em;
}

/* Header auto-hide on scroll */
.header-hidden {
  transform: translateY(-120%);
}


.no-scroll {
  overflow: hidden;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Media frame for consistent image presentation */
.media-frame {
  background: #F6F6F6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 0.75rem;
}

.media-frame>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* Section spacing standardization */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* Título de seção — mesmo tracking usado em "#produtos h2" na home. */
.section-heading {
  letter-spacing: -0.01em;
}
