/* ==========================================
   Safety Center - Institutional Design
   Font: Inter | Primary: #006B5B
   ========================================== */

/* ---------- BASE ---------- */
body {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection {
  background-color: #006B5B;
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: #006B5B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #005346; }

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Dot Grid ---------- */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,107,91,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ---------- Marquee ---------- */
.marquee-track {
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  padding: 0 24px;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

#mobile-menu.open {
  max-height: 500px;
}

/* ---------- Header scroll ---------- */
#header nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ---------- Brazil Map ---------- */
#brazil-map {
  filter: drop-shadow(0 8px 24px rgba(0, 107, 91, 0.1));
}

/* ---------- Ecosystem orbit ---------- */
.eco-orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  border: 2px solid rgba(0, 107, 91, 0.15);
  background: #F0F7F5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.eco-orbit-item.active {
  border-color: #006B5B;
  background: #006B5B;
  box-shadow: 0 4px 20px rgba(0, 107, 91, 0.3);
}

.eco-orbit-item.active .eco-orbit-icon {
  color: #fff;
}

.eco-orbit-icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 640px) {
  .eco-orbit-item { width: 75px; height: 75px; }
  .eco-orbit-icon { width: 28px; height: 28px; }
}

@media (min-width: 1024px) {
  .eco-orbit-item { width: 85px; height: 85px; }
  .eco-orbit-icon { width: 32px; height: 32px; }
}

/* ---------- Card ---------- */

.differential-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
