/* =========================================
   ESTILOS GLOBAIS (PAI E FILHOS)
========================================= */
.container {
  width: 100%;
  padding: 0 5vw;
  margin: 0 auto;
  max-width: 1200px;
}

/* Fundo padrão para as páginas de nicho seguindo a seção de depoimentos/serviços */
.ultramarino-nichos-pai,
.ultramarino-nicho-single {
  background-color: #f5efe5;
  font-family: "Axiforma", sans-serif;
  min-height: 100vh;
}

/* =========================================
   SEÇÃO HERO (CABEÇALHO DA PÁGINA PAI)
========================================= */
.hero-nichos {
  text-align: center;
  padding: 10rem 0 3rem; /* Espaçamento maior no topo para a header fixa */
  background-color: #f5efe5;
}

.hero-nichos h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #030371;
  margin-bottom: 15px;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero-nichos p {
  font-family: "Axiforma", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #130fbb; /* Azul vibrante da marca */
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

/* =========================================
   GRID DE NICHOS (CARTÕES)
========================================= */
.grid-nichos {
  padding: 0 0 10vw;
  background-color: #f5efe5;
}

.nichos-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .nichos-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Estilo Individual dos Cartões inspirado na UI da homepage */
.nicho-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 15px;
  text-decoration: none;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nicho-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(3, 3, 113, 0.1);
  border-color: #b3e381; /* Verde da marca como acento sutil na borda */
}

.nicho-card h3 {
  font-family: "Anton", sans-serif;
  font-size: 2.2rem;
  color: #030371;
  margin-bottom: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nicho-card:hover h3 {
  color: #ea6601; /* Laranja no hover */
}

.nicho-card p {
  font-family: "Axiforma", sans-serif;
  font-size: 1.1rem;
  color: #555555;
  line-height: 1.5;
  margin: 0;
}

/* =========================================
   POP-UP DE INICIANTES (ATUALIZADO COM O DESIGN SYSTEM)
========================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 113, 0.6); /* Azul escuro translúcido */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  padding: 20px;
}

.popup-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.ativo .popup-card {
  transform: translateY(0) scale(1);
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 32px;
  color: #030371;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.close-popup:hover {
  color: #ea6601;
  transform: rotate(90deg);
}

.popup-card .badge {
  background: #f5efe5;
  color: #ea6601;
  font-family: "Axiforma", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
}

.popup-card h2 {
  font-family: "Anton", sans-serif;
  font-size: 2.5rem;
  color: #030371;
  margin-bottom: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
}

.popup-card p {
  font-family: "Axiforma", sans-serif;
  font-size: 1.1rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 24px;
}

.popup-card .price-tag {
  font-family: "Anton", sans-serif;
  font-size: 3.5rem;
  color: #130fbb;
  margin-bottom: 30px;
  line-height: 1;
}

.popup-card .price-tag span {
  font-family: "Axiforma", sans-serif;
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}

.cta-button {
  display: inline-block;
  width: 80%;
  padding: 16px 30px;
  background-color: #ea6601; /* Botão principal laranja */
  color: #ffffff;
  font-family: "Axiforma", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(234, 102, 1, 0.3);
}

.cta-button:hover {
  background-color: #c95600;
  transform: translateY(-2px);
  color: #ffffff;
}

/* =========================================
   MEDIA QUERIES (MOBILE AJUSTES)
========================================= */
@media (max-width: 768px) {
  .hero-nichos {
    padding: 8rem 0 2rem;
  }

  .nicho-card {
    padding: 2rem 1.5rem;
  }

  .nicho-card h3 {
    font-size: 1.8rem;
  }

  .popup-card {
    padding: 30px 20px;
  }

  .popup-card h2 {
    font-size: 2rem;
  }

  .popup-card .price-tag {
    font-size: 2.8rem;
  }
}
