/* ==========================================================
   Desenvolvido por Marcos Vinicius - github.com/MarcosViniicius
   ========================================================== */

/* Importações de Fontes */
@import url("https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@700&family=Open+Sans:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Corinthia:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

/* ------------------------- */
/* Variáveis de Cor Simplificadas */
/* ------------------------- */
:root {
  --rosa-principal: #e75480; /* Rosa elegante */
  --lilas-principal: #b39ddb; /* Lilás suave */
  --rosa-claro: #fce4ec; /* Fundo rosa claro */
  --lilas-claro: #ede7f6; /* Fundo lilás claro */
  --fundo-pagina: #fffafd; /* Fundo quase branco */
  --fundo-card: #fff;
  --texto-escuro: #333;
  --texto-medio: #555;
  --texto-claro: #fff;
  --borda-suave: #f8bbd0; /* Rosa bem claro para bordas */
  --transicao-padrao: all 0.2s ease-in-out;
  --theme-font-family: "Libre Caslon Text", "Libre Caslon Text Fallback", serif;
  --theme-font-pair-family: "Libre Caslon Text", "Libre Caslon Text Fallback",
    serif;
  --theme-font-weight: bold;
}

/* ------------------------- */
/* Reset e Estilos Globais */
/* ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scroll ainda mais suave e responsivo */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--rosa-principal) #e9e3f0;
  overscroll-behavior-y: contain;
}

/* Melhora a experiência de rolagem em dispositivos touch */
html,
body {
  font-family: --theme-font-pair-family;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Fundo da página mais neutro */
body {
  font-size: 16px;
  background: linear-gradient(
    135deg,
    var(--fundo-pagina) 80%,
    var(--lilas-claro) 100%
  );
  color: var(--texto-medio);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  min-height: 100%;
}

/* Scrollbar ainda mais elegante para Webkit */
body::-webkit-scrollbar {
  width: 8px;
  background: #e9e3f0;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rosa-principal) 60%, #b84e8a 100%);
  border-radius: 10px;
  min-height: 40px;
  transition: background 0.3s;
}
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b84e8a 60%, var(--rosa-principal) 100%);
}

/* Suaviza rolagem de áreas internas (ex: modais, listas) */
* {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Caslon Text", serif;
  color: var(--texto-escuro);
  font-weight: 700;
  line-height: 1.3;
}

/* Links */
a {
  color: var(--rosa-principal);
  text-decoration: none;
  transition: var(--transicao-padrao);
}
a:hover {
  color: var(--lilas-principal);
}

/* ------------------------- */
/* Utilitários Visuais */
/* ------------------------- */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}
.section-title {
  font-size: clamp(2.5rem, 7vw, 3rem); /* Título responsivo */
  margin-bottom: 3rem;
  color: var(--rosa-principal);
  text-align: center;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texto-medio);
  margin-bottom: 0.5rem;
}
.form-text.text-muted {
  font-size: 0.85rem;
}

/* ------------------------- */
/* Estilos por Componente */
/* ------------------------- */

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  min-height: 100vh;
  height: 100vh;
  background-image: url("https://i.imgur.com/sv3zUwD.jpeg"); /* Imagem local */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  top: 0;
}

/* Ajustar o overlay para combinar melhor com a imagem */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 31, 0.3); /* Overlay mais leve para a nova imagem */
  z-index: 1;
}

.hero > *:not(.hero__location) {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

/* Espaço maior no topo para o conteúdo da hero */
.hero__infos {
  margin-top: 23rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__date {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .hero__infos {
    margin-top: 20rem;
  }
}

/* Hero título e textos */
.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin: 0.5rem 0;
}
.hero p {
  font-size: 1.2rem;
  color: #fff;
}

/* Localização sempre no rodapé da hero */
.hero__location {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #fff;
  width: 100%;
  text-align: center;
  z-index: 2;
  background: none;
  padding: 0 10px;
}

@media (max-width: 600px) {
  .hero__location {
    bottom: 1.2rem;
    font-size: 1rem;
  }
}

/* Estilo do título responsivo do hero */
.hero-title-responsive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 3rem;
  line-height: 1;
}

.hero-nome {
  font-family: "Libre Caslon Text", serif;
  font-size: 3rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-traco {
  font-family: "Libre Caslon Text", serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0.3em;
}

.hero-idade {
  font-family: "Libre Caslon Text", serif;
  font-size: 3rem;
  font-weight: 700;
}

/* Mobile: coloca um embaixo do outro */
@media (max-width: 600px) {
  .hero-title-responsive {
    flex-direction: column;
    gap: 0.1rem;
    font-size: 3rem;
  }
  .hero-nome,
  .hero-idade {
    font-size: 3.5rem;
  }
  .hero-traco {
    font-size: 3rem;
  }
}

/* Cards com leve toque lilás */
.custom-card {
  border: 1.5px solid var(--borda-suave);
  background: var(--fundo-card);
  transition: var(--transicao-padrao);
  height: 100%;
  min-height: 410px; /* Altura mínima para padronizar todos os cards */
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.custom-card .card-img-top {
  width: 100%;
  min-height: 120px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.custom-card .card-title {
  font-size: 1.5rem;
  color: var(--rosa-principal);
}
.custom-card .card-text {
  color: var(--texto-medio);
  flex-grow: 1;
}
.custom-card .btn,
.custom-card .btn-custom-secondary,
.custom-card .btn-custom-primary {
  margin-top: auto;
}

@media (max-width: 991px) {
  .custom-card {
    min-height: 370px;
  }
}
@media (max-width: 600px) {
  .custom-card {
    min-height: 320px;
  }
}

/* Botões principais em rosa, hover em lilás */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: var(--transicao-padrao);
}
.btn-custom-primary {
  background-color: var(--rosa-principal);
  color: var(--texto-claro);
  border: none;
}
.btn-custom-primary:hover {
  background-color: var(--lilas-principal);
  color: var(--texto-claro);
}

/* Botões secundários em lilás */
.btn-custom-secondary {
  background-color: var(--lilas-claro);
  color: var(--texto-escuro);
  border: none;
}
.btn-custom-secondary:hover {
  background-color: var(--rosa-principal);
  color: var(--texto-claro);
}

.btn-float-confirmar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .btn-float-confirmar {
    display: block;
  }
}
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
  outline: 2px solid var(--rosa-principal);
  outline-offset: 2px;
}

/* Formulários */
.form-control,
.form-select {
  border: 1px solid var(--borda-suave);
  border-radius: 6px;
  padding: 0.8rem;
  font-size: 1rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--rosa-principal);
  box-shadow: none;
}
::placeholder {
  color: #bfaec9;
  opacity: 1;
}
.form-control::placeholder {
  font-size: 0.95em;
  color: #bfaec9;
}

/* Menu superior discreto e estilizado */
.custom-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* NÃO defina width aqui */
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  z-index: 10;
  transition: background 0.3s;
}

/* Navbar fixa e colorida ao rolar para fora da hero */
.custom-navbar.navbar-fixa {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* NÃO defina width aqui */
  background: rgba(30, 20, 40, 0.92) !important;
  box-shadow: 0 2px 8px 0 rgba(30, 20, 40, 0.07) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  z-index: 1050;
}

/* Transições suaves para navegação e menu */
.custom-navbar,
.custom-navbar .nav-link,
.custom-navbar .navbar-brand,
.custom-navbar .dropdown-menu,
.custom-navbar .dropdown-item {
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border 0.3s;
}

/* Destaque suave ao passar o mouse */
.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-item:hover {
  color: var(--rosa-principal) !important;
  background: rgba(255, 255, 255, 0.04);
  text-shadow: 0 2px 8px rgba(209, 107, 165, 0.08);
}

/* Suaviza o menu hamburguer ao abrir/fechar */
@media (max-width: 991px) {
  .custom-navbar .navbar-collapse {
    transition: top 0.3s, background 0.3s, box-shadow 0.3s;
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* Remove outline abrupto e deixa foco mais suave */
.custom-navbar .nav-link:focus,
.custom-navbar .dropdown-item:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--rosa-principal);
  background: rgba(209, 107, 165, 0.08);
}

.custom-navbar .navbar-brand {
  color: #fff !important;
  letter-spacing: 2px;
}
.custom-navbar .nav-link {
  color: #f3e9f7 !important;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-item:hover {
  color: var(--rosa-principal) !important;
  background: none;
}
.custom-navbar .dropdown-menu {
  background: #2a1833;
  border: none;
  box-shadow: 0 4px 16px rgba(30, 20, 40, 0.13);
}
.custom-navbar .dropdown-item {
  color: #f3e9f7;
  font-weight: 500;
}
@media (max-width: 991px) {
  .custom-navbar .navbar-brand {
    font-size: 1.3rem;
  }
  .custom-navbar .nav-link {
    font-size: 0.98rem;
  }
}

/* Ajuste para o menu hamburguer abrir corretamente no topo no mobile */
@media (max-width: 991px) {
  .custom-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(30, 20, 40, 0.97);
    z-index: 20;
    box-shadow: 0 4px 16px rgba(30, 20, 40, 0.13);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  .custom-navbar .navbar-nav {
    align-items: flex-start !important;
  }
}

/* Rodapé discreto */
footer {
  margin-top: 4rem;
  padding: 2rem 0 1.5rem 0;
  border-top: 1px solid var(--lilas-claro);
  color: var(--texto-medio);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 600px) {
  .section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }
}

/* Título com fonte Great Vibes */
/* .corinthia-title {
  font-family: "Great Vibes", cursive !important;
  font-size: 4rem;
  letter-spacing: 2px;
} */

.referencia-menor {
  font-size: 0.8rem; /* Ajuste o tamanho da fonte conforme necessário */
  font-style: italic;
  color: #555;
}

.imagem-presente {
  max-width: 200px; /* Ajuste o tamanho máximo desejado */
  max-height: 200px; /* Ajuste o tamanho máximo desejado */
}

/* Alertas com leve destaque nas cores padrão de cada tipo */
.alert-info {
  border-radius: 1.2rem;
  border: 2px solid #17a2b8;
  background: linear-gradient(135deg, #e3f7fc 80%, #cbeffd 100%);
  color: #15576a;
}

.alert-success {
  border-radius: 1.2rem;
  border: 2px solid #28a745;
  background: linear-gradient(135deg, #e6f9ea 80%, #d4f5df 100%);
  color: #20613a;
}

.alert-warning {
  border-radius: 1.2rem;
  border: 2px solid #ffc107;
  background: linear-gradient(135deg, #fffbe6 80%, #fff3cd 100%);
  color: #856404;
}

.alert-danger {
  border-radius: 1.2rem;
  border: 2px solid #dc3545;
  background: linear-gradient(135deg, #fdeaea 80%, #f8d7da 100%);
  color: #842029;
}

/* Floating alert mantém borda rosa para identidade visual */
#floating-alert {
  border: 2px solid var(--rosa-principal) !important;
  background: #fff !important;
}
