/* Greba Logística — styles.css */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Nav scrolled state */
#nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: #2A2A2A;
}

/* Pulse for map dot */
@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-ring 2s ease-out infinite;
}

/* Route dash animation */
@keyframes dash {
  to { stroke-dashoffset: -12; }
}
.route {
  animation: dash 1.5s linear infinite;
}

/* Reveal animation for sections */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards subtle lift */
.service-card { transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.service-card:hover { transform: translateY(-4px); }

/* Custom selection */
::selection { background: #00FF94; color: #0A0A0A; }

/* Custom scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #00FF94; }

/* Hero subtle grain (optional) */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, transparent 1px, rgba(0,0,0,0.3) 1px);
  background-size: 4px 4px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* Form focus glow */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(0, 255, 148, 0.15);
}

/* Mobile menu open state */
#mobileMenu.open { display: block; }

/* Logo wall cells */
.logo-cell {
  background: #141414;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background 0.3s ease;
}
.logo-cell:hover { background: #0A0A0A; }
.logo-cell img {
  max-height: 44px;
  max-width: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.logo-cell:hover img { opacity: 0.95; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
