/* =========================================================================
   STYLE.CSS - HiperAldo Brasil Landing Page
   Aesthetics: Premium, Modern, Dark Theme Base, Vibrant Accents.
   ========================================================================= */

:root {
  /* Color Palette */
  --color-bg-dark: #000000;
  --color-bg-alt: #0a0a0a;
  --color-bg-card: rgba(22, 27, 51, 0.65); /* Dark Purple/Blue Tint */
  --color-card-border: rgba(146, 161, 207, 0.2);

  --color-text-main: #ffffff;
  --color-text-muted: #acb2b8;

  --color-accent-gold: #f8b831; /* Kidney/Adrenal Highlight */
  --color-accent-lavender: #92a1cf; /* Soft Blue/Purple Accent */
  --color-accent-brand: #4a5dc2; /* Brand deep blue */

  /* Typography */
  --font-main: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-padding: 100px 20px;

  /* Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-shadow: 0 0 40px rgba(248, 184, 49, 0.15);
  --glow-shadow-blue: 0 0 50px rgba(146, 161, 207, 0.15);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-lavender);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-gold);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Scroll Animation Elements */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Up animation variant */
.reveal-fade-up {
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
  transform: translateY(0);
}

/* Scale animation variant */
.reveal-scale {
  transform: scale(0.92);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-children.active > *:nth-child(2) {
  transition-delay: 0.25s;
}
.stagger-children.active > *:nth-child(3) {
  transition-delay: 0.4s;
}
.stagger-children.active > *:nth-child(4) {
  transition-delay: 0.55s;
}

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle float animation for cards */
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.glass-card:hover {
  animation: floatCard 2s ease-in-out infinite;
}

/* Fade in animation for stat numbers */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-section.active .stats-text {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stats-section.active .secondary-stat {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.main-header.scrolled {
  background-color: rgba(10, 10, 20, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.main-header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 20, 0.97);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .nav-links a::after {
    display: none;
  }
}

/* =========================================================================
   1. HERO SECTION
   ========================================================================= */
.hero-section {
  position: relative;
  height: 80vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  z-index: 0;
}

/* For better contrast on mobile */
@media (max-width: 992px) {
  .hero-bg::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 20%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 70vh;
    padding: 40px 0;
  }
  .hero-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 15px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .hero-scroll-indicator {
    font-size: 0.75rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-box {
  max-width: 700px;
}

.hero-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
}

.text-highlight {
  color: var(--color-accent-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 50px;
  line-height: 1.5;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  color: var(--color-accent-lavender);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.chevron-down {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* =========================================================================
   2. STATS SECTION
   ========================================================================= */
.stats-section {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, transparent, var(--color-bg-alt));
  text-align: justify;
}

.stats-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.stats-text-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.stats-text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-text-muted);
}

.stats-text strong {
  font-weight: 600;
  color: var(--color-text-main);
}

.secondary-stat {
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

/* =========================================================================
   3. PURPOSE & MISSION
   ========================================================================= */
.purpose-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.purpose-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/secao-02/imagem-01.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.purpose-container {
  position: relative;
  z-index: 2;
}

.purpose-intro {
  text-align: left;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.section-title span {
  color: var(--color-accent-gold);
  font-weight: 700;
  font-style: normal;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.purpose-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 700px;
  margin: 0 auto;
}

.purpose-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.purpose-item-card {
  background: rgba(41, 42, 109, 0.88);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: left;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.purpose-item-card:hover {
  transform: translateY(-6px);
  background: rgba(41, 42, 109, 0.95);
  border-color: rgba(146, 161, 207, 0.3);
  box-shadow: 0 12px 32px rgba(74, 93, 194, 0.2);
}

.purpose-item-card:hover .purpose-icon {
  transform: scale(1.1);
  background: rgba(248, 184, 49, 0.22);
}

.purpose-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  background: rgba(248, 184, 49, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
  transition: var(--transition-smooth);
}

.purpose-icon svg {
  width: 26px;
  height: 26px;
}

.purpose-item-card p {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin: 0 0 20px;
  flex: 1;
}

.purpose-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent-lavender);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.purpose-item-card:hover .purpose-line {
  width: 56px;
  background: var(--color-accent-gold);
}

/* Cards */
.glass-card {
  border-radius: 16px;
  padding: 35px;
  transition: var(--transition-smooth);
  border: none;
}

.glass-card:hover {
  transform: translateY(-3px);
}

.purpose-card {
  background-color: #292a6d;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.mission-card {
  background-color: rgba(20, 22, 60, 0.45);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0;
  transition: var(--transition-smooth);
}

.mission-card:hover {
  background-color: rgba(20, 22, 60, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.mission-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1c5e;
}

.mission-icon svg {
  width: 38px;
  height: 38px;
}

.mission-divider {
  flex-shrink: 0;
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 28px;
}

.mission-content {
  flex: 1;
}

.card-title {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 18px;
  font-weight: 700;
}

.card-list {
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-list li::before {
  content: "•";
  color: var(--color-text-main);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.card-text {
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .purpose-cards {
    margin-left: 0;
    max-width: 100%;
  }
  .purpose-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 25px;
  }
  .glass-card {
    padding: 25px 20px;
  }
  .section-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .purpose-section {
    padding: 60px 15px;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-list li,
  .card-text {
    font-size: 0.9rem;
  }
}

/* =========================================================================
   4. SUPPORT & PARTNERS
   ========================================================================= */
.support-section {
  background: #ffffff;
  color: var(--color-bg-dark);
  padding: 50px 20px;
}

.support-container {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  align-items: center;
  gap: 5px;
  max-width: 900px;
  margin: 0 auto;
}

.support-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.support-logos {
  display: contents;
}

/* Sponsor Logos formatting */
.sponsor-img {
  height: 200px;
  object-fit: contain;
  justify-self: center;
  transition: var(--transition-smooth);
}

.sponsor-img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .support-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
  .support-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .sponsor-img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .support-section {
    padding: 40px 15px;
  }
  .support-text {
    font-size: 0.95rem;
  }
  .sponsor-img {
    height: 110px;
  }
}

/* =========================================================================
   5. TEAM SECTION
   ========================================================================= */
.team-section {
  padding: var(--section-padding);
}

.center-text {
  text-align: center;
  margin-bottom: 10px;
}

.team-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member-card {
  background: #14163c;
  border-radius: 16px;
  padding: 25px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(146, 161, 207, 0.3);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-member-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-info {
  text-align: left;
}

.member-name {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
  font-weight: 700;
}

.member-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  .team-section {
    padding: 60px 15px;
  }
  .team-subtitle {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .team-member-card {
    padding: 18px;
  }
  .member-name {
    font-size: 1rem;
  }
  .member-role {
    font-size: 0.8rem;
  }
}

/* =========================================================================
   6. CENTERS OBJECTIVES
   ========================================================================= */
.centers-section {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.centers-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.centers-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 15px;
}

.centers-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.centers-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.center-box {
  padding: 30px 35px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  border-left: 4px solid rgba(146, 161, 207, 0.6);
  transition: var(--transition-smooth);
}

.center-box:hover {
  transform: translateX(6px);
  border-left-color: var(--color-accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.center-box p {
  margin: 0;
}

.center-box-1 {
  background-color: #292a6d;
}

.center-box-2 {
  background-color: #14163c;
}

@media (max-width: 768px) {
  .centers-boxes {
    margin-left: 0;
    max-width: 100%;
  }
  .centers-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .centers-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .center-box {
    padding: 20px 22px;
    font-size: 0.9rem;
  }
}

/* =========================================================================
   7. MAPA INTERATIVO DOS CENTROS
   ========================================================================= */
.map-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Fundo: textura sutil de partículas (mesma já usada no projeto) */
.map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/secao-06/agrupar-5.png");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.map-container {
  position: relative;
  z-index: 2;
}

/* Layout principal: 2 colunas (legenda à esquerda, mapa à direita) */
.map-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 60px;
  align-items: start;
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.map-header .section-title {
  margin-bottom: 16px;
}

.map-header .section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Legenda por estado — coluna esquerda */
.map-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
}

.map-legend::-webkit-scrollbar {
  width: 4px;
}

.map-legend::-webkit-scrollbar-thumb {
  background: rgba(146, 161, 207, 0.3);
  border-radius: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  border: 1px solid transparent;
}

.legend-item:hover,
.legend-item.active {
  background: rgba(146, 161, 207, 0.1);
  color: #fff;
  border-color: rgba(146, 161, 207, 0.2);
  transform: translateX(3px);
}

.legend-uf {
  flex-shrink: 0;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  background: rgba(248, 184, 49, 0.12);
  border: 1px solid rgba(248, 184, 49, 0.3);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.legend-item:hover .legend-uf,
.legend-item.active .legend-uf {
  background: var(--color-accent-gold);
  color: #0a0a1f;
}

.legend-name {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
}

.legend-count {
  flex-shrink: 0;
  min-width: 22px;
  height: 18px;
  font-size: 0.7rem;
  color: var(--color-accent-lavender);
  background: rgba(146, 161, 207, 0.12);
  border: 1px solid rgba(146, 161, 207, 0.18);
  border-radius: 10px;
  padding: 0 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Wrapper do mapa — preserva proporção do SVG (220 x 194) */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  aspect-ratio: 220 / 194;
  align-self: center;
}

.map-svg-container {
  width: 100%;
  height: 100%;
}

.map-svg-container svg.brazil-map {
  width: 100%;
  height: 100%;
  display: block;
}

/* Siglas dos estados (texto SVG renderizado no centróide de cada state) */
.state-label {
  pointer-events: none;
  user-select: none;
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font-main), sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.25s;
}

/* Quando o estado está ativo (hover), a sigla fica branca */
.state-label.active {
  fill: rgba(255, 255, 255, 0.95);
}

/* Estados — hover mais forte quando tem centros */
.brazil-map .state {
  fill: rgba(36, 43, 86, 0.85);
  stroke: rgba(146, 161, 207, 0.45);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: fill 0.25s, filter 0.25s;
  cursor: default;
}

.brazil-map .state.has-center {
  fill: rgba(46, 55, 110, 0.9);
  cursor: pointer;
}

.brazil-map .state:hover.has-center,
.brazil-map .state.active {
  fill: rgba(74, 93, 194, 0.7);
  filter: drop-shadow(0 0 6px rgba(74, 93, 194, 0.5));
}

/* Remove marcadores numerados — nova abordagem não usa markers */
.brazil-map .marker {
  display: none;
}

.map-error {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* Tooltip flutuante — multi-centro por estado */
.map-tooltip {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 220px;
  max-width: 300px;
  padding: 0;
  background: rgba(8, 8, 28, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(146, 161, 207, 0.3);
  border-radius: 12px;
  z-index: 10;
  /* pointer-events ativo: o mouse pode entrar no tooltip para rolar a lista */
  pointer-events: auto;
  cursor: default;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(248, 184, 49, 0.08);
  overflow: hidden;
}

.map-tooltip.visible {
  display: flex;
}

/* Header do tooltip: badge UF + nome do estado */
.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(146, 161, 207, 0.15);
  background: rgba(74, 93, 194, 0.2);
}

.tooltip-state-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--color-accent-gold);
  color: #0a0a1f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tooltip-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Lista de centros/embaixadores */
.tooltip-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 260px;
  overflow-y: auto;
}

.tooltip-list::-webkit-scrollbar {
  width: 3px;
}

.tooltip-list::-webkit-scrollbar-thumb {
  background: rgba(146, 161, 207, 0.3);
  border-radius: 3px;
}

.tooltip-entry {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(146, 161, 207, 0.07);
}

.tooltip-entry:last-child {
  border-bottom: none;
}

.tooltip-centro {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-lavender);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tooltip-embaixador {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

/* Instrução abaixo do mapa */
.map-instruction {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.map-instruction svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent-lavender);
  flex-shrink: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr);
    gap: 36px;
  }
  .legend-item {
    font-size: 0.82rem;
  }
  .map-legend {
    max-height: 400px;
  }
}

/* Textos alternativos por dispositivo */
.text-mobile { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .text-desktop { display: none; }
  .text-mobile  { display: inline; }

  .map-section {
    padding: 60px 15px;
  }

  .map-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .map-side {
    order: unset;
    gap: 16px;
  }

  /* Mapa SVG oculto no mobile — interação ocorre pela lista + modal */
  .map-wrapper {
    display: none;
  }

  .map-legend {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }

  .legend-item {
    font-size: 0.78rem;
    padding: 5px 6px;
  }

  .legend-uf {
    width: 26px;
    height: 20px;
    font-size: 0.65rem;
  }

  .map-instruction {
    justify-content: center;
    text-align: center;
    margin-top: 16px;
  }

  .map-instruction svg {
    display: none;
  }
}

@media (max-width: 480px) {
  .map-legend {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    max-width: 100%;
  }
  .legend-item {
    font-size: 0.82rem;
  }
}

/* Modal do mapa — exibido no mobile ao clicar num estado da lista */
.map-mobile-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.map-mobile-modal.active {
  display: flex;
}

.map-modal-content {
  background: rgba(8, 8, 28, 0.98);
  border: 1px solid rgba(146, 161, 207, 0.3);
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  position: relative;
}

.map-modal-content .tooltip-header {
  padding: 14px 46px 12px 16px;
}

.map-modal-content .tooltip-list {
  max-height: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  z-index: 1;
}

.map-modal-close:hover {
  color: #fff;
}

/* =========================================================================
   8. REFERENCES
   ========================================================================= */
.references-section {
  padding: 80px 20px;
  background: var(--color-bg-alt);
}

.references-container {
  max-width: 900px;
}

.references-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.reference-item {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  background: #0d0e2a;
  border: 1px solid rgba(146, 161, 207, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
}

.reference-item p {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(146, 161, 207, 0.4);
}

.ref-badge {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .references-section {
    padding: 50px 15px;
  }
  .references-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .reference-item p {
    font-size: 0.78rem;
  }
  .ref-badge {
    min-width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
}

/* =========================================================================
   9. FOOTER CTA — Layout 2 colunas
   ========================================================================= */
.footer-cta {
  position: relative;
  color: var(--color-bg-dark);
  padding: 80px 20px;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/secao-07/final.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 2;
}

/* Grid 2 colunas */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

/* Coluna esquerda */
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a2a6d;
  background: rgba(42, 42, 109, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.footer-badge svg {
  flex-shrink: 0;
}

.footer-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a3e;
  line-height: 1.15;
}

.footer-title strong {
  color: #2a2a6d;
  font-weight: 800;
  font-style: italic;
}

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 32px;
  color: #2a2a4a;
  line-height: 1.6;
}

.footer-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(42, 42, 109, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2a2a6d;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a3e;
}

.benefit-sub {
  font-size: 0.82rem;
  color: #555;
  font-weight: 400;
  line-height: 1.4;
}

/* Coluna direita — formulário */
.cta-right {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(42, 42, 109, 0.08);
}

.form-icon-header {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #2a2a6d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.form-icon-header svg {
  width: 24px;
  height: 24px;
}

.form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a3e;
  margin-bottom: 6px;
}

.form-subheading {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2a6d;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(42, 42, 109, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  transition: border-color 0.3s;
}

.input-with-icon:focus-within {
  border-color: #2a2a6d;
  box-shadow: 0 0 0 3px rgba(42, 42, 109, 0.1);
}

.input-icon {
  flex-shrink: 0;
  color: #999;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-with-icon .form-input {
  border: none;
  border-bottom: none;
  padding: 0;
  font-size: 0.9rem;
}

.input-with-icon .form-input:focus {
  border-bottom-color: transparent;
}

.form-input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid rgba(42, 42, 109, 0.3);
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: #1a1a3e;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-bottom-color: #2a2a6d;
}

.form-input::placeholder {
  color: #999;
  font-size: 0.85rem;
}

.btn-primary {
  align-self: stretch;
  background: #4a5dc2;
  color: #fff;
  border: 2px solid #4a5dc2;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 8px;
  text-align: center;
}

.btn-full {
  width: 100%;
}

.btn-primary:hover {
  background: #3a4ba8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 93, 194, 0.4);
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: #666;
  font-weight: 400;
}

.form-privacy svg {
  flex-shrink: 0;
  color: #2a2a6d;
}

/* Rodapé inferior */
.footer-bottom {
  text-align: center;
  padding-top: 40px;
}

.footer-bottom-banner {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: #4a5dc2;
  border-radius: 60px;
  padding: 16px 32px;
  margin-bottom: 24px;
}

.footer-logo {
  margin: 0;
}

.footer-logo img {
  height: 40px;
  object-fit: contain;
}

.contact-email {
  font-weight: 500;
  color: #2a2a4a;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-style: italic;
}

.contact-email a {
  color: #2a2a6d;
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Redes sociais */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition:
    background 0.3s,
    transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-banner {
    flex-direction: column;
    border-radius: 20px;
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .footer-cta {
    padding: 50px 15px;
  }
  .footer-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .footer-desc {
    font-size: 0.88rem;
  }
  .cta-right {
    padding: 28px 22px;
  }
}

/* =========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  animation: pulseWhatsapp 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.05) translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 24px;
  height: 24px;
}

.whatsapp-text {
  white-space: nowrap;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    padding: 12px 18px;
    font-size: 0.8rem;
    gap: 8px;
  }
  .whatsapp-icon,
  .whatsapp-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================================
   MODAL DE SUCESSO
   ========================================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-bg-card);
  padding: 40px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-card-border);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: #4caf50;
  color: white;
  font-size: 35px;
  line-height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: white;
  font-size: 1.8rem;
}

.modal-content p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1rem;
}

.close-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-accent-gold) !important;
  color: var(--color-bg-dark) !important;
  border: none !important;
}
