/* ═══════════════════════════════════════════════════════════════
   HOME PAGE SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────── */
/* INNOVATION SPOTLIGHT */
/* ─────────────────────────────────────────────────────────────── */

.innovation-spotlight {
  position: relative;
  overflow: hidden;
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.innovation-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.innovation-content {
  padding: var(--space-md);
}

.innovation-title {
  font-size: var(--font-size-h2);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-sm);
}

.innovation-subtitle {
  font-size: var(--font-size-h3);
  color: var(--color-navy-medium);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
}

.innovation-text {
  color: var(--color-text-medium);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

/* ─────────────────────────────────────────────────────────────── */
/* GLOBAL REACH */
/* ─────────────────────────────────────────────────────────────── */

.global-reach {
  text-align: center;
}

.global-subtitle {
  font-size: var(--font-size-h4);
  color: var(--color-text-medium);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────── */
/* MAPA INTERATIVO LEAFLET */
/* ─────────────────────────────────────────────────────────────── */

.global-map-container {
  width: 100%;
  height: 600px;
  min-height: 600px;
  max-width: 1400px;
  margin: 0 auto var(--space-xl);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 33, 71, 0.25);
  border: 3px solid #DAA520;
  position: relative;
  z-index: 1;
}

/* Marcador personalizado com logo Guztec */
.custom-marker-guztec {
  background: transparent !important;
  border: none !important;
}

.custom-marker-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 3px solid #DAA520;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0; /* Previne distorção */
  aspect-ratio: 1 / 1; /* Força proporção 1:1 (círculo perfeito) */
  overflow: hidden; /* Garante que a imagem não ultrapasse o círculo */
}

.custom-marker-container:hover {
  transform: scale(1.25);
  box-shadow: 0 6px 24px rgba(218, 165, 32, 0.8);
  border-width: 4px;
}

.custom-marker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block; /* Remove espaçamento extra */
  border-radius: 50%; /* Garante borda circular na imagem */
}

/* Popup personalizado Guztec */
.guztec-popup-container .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0;
  background: white;
  border-top: 4px solid #DAA520;
}

.guztec-popup-container .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.guztec-popup {
  padding: 15px;
}

.guztec-popup h3 {
  margin: 0 0 10px 0;
  color: #002147;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 2px solid #DAA520;
  padding-bottom: 8px;
}

.popup-location-type {
  display: inline-block;
  background: #DAA520;
  color: #002147;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.guztec-popup p {
  margin: 10px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  .global-map-container {
    height: 360px; /* Reduzido 10% (400px → 360px) */
  }
  
  .custom-marker-container {
    width: 35px;
    height: 35px;
    aspect-ratio: 1 / 1; /* Círculo perfeito no mobile */
    flex-shrink: 0;
  }
}

/* Global Statistics */
.global-stats {
  margin-top: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  font-family: var(--font-heading);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-body);
  color: var(--color-navy-dark);
  font-weight: var(--font-weight-semibold);
}

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVE ADJUSTMENTS */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .innovation-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .innovation-image {
    order: 2;
  }

  .innovation-content {
    order: 1;
    padding: 0;
  }
}

@media (max-width: 639px) {
  .stat-number {
    font-size: 2.5rem;
  }

  .world-map-container {
    padding: var(--space-sm);
  }

  .global-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
