﻿.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.color-control {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.color-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1d4ed0;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-toggle:hover {
  background: #3b82f6;
}

h2 {
  color: #1d4ed0;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 10px rgba(53, 35, 131, 0.15);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-overlay img {
  max-width: min(96vw, 1000px);
  max-height: 88vh;
  border-radius: 10px;
  cursor: zoom-out;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  animation: zoomIn 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-hover {
  cursor: zoom-in;
  transition: transform 0.22s ease;
  transform-origin: center;
}

@media (hover: hover) and (pointer: fine) {
  .zoom-hover:hover {
    transform: scale(1.08);
  }
}

@media (hover: none), (pointer: coarse) {
  .zoom-hover:active {
    transform: scale(1.03);
  }

  .lightbox-overlay {
    padding: 10px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-overlay img {
    max-width: 100%;
    max-height: 82vh;
  }
}

/* Garante o degradê principal da hero em qualquer dispositivo */
#home {
  background: radial-gradient(circle at top, #2563eb 0%, #00040a 78%) !important;
}

@media (max-width: 768px) {
  #home {
    background: radial-gradient(circle at 50% 0%, #2563eb 0%, #00040a 82%) !important;
  }
}
