/* ==========================================================
   Imagina Festa — estilos complementares ao Tailwind
   ========================================================== */

html {
  scroll-behavior: smooth;
}

/* -------------------- Animações decorativas -------------------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-6deg); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(16px) rotate(8deg); }
}
.floaty { animation: floaty 5.5s ease-in-out infinite; }
.floaty2 { animation: floaty2 6.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .floaty, .floaty2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* -------------------- Logo como banner de fundo (Hero) -------------------- */
.hero-logo-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-logo-banner span {
  font-family: 'Mali', cursive;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(4.5rem, 18vw, 16rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-6deg) scale(1.15);
}

/* -------------------- Logotipo (imagina festa) -------------------- */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.78;
  gap: 0.05em;
}
.brand-logo-line {
  font-family: 'Mali', cursive;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
}
.brand-logo-line:last-child {
  margin-left: 0.6em;
}
.brand-logo--sm .brand-logo-line {
  font-size: 1.3rem;
}
@media (min-width: 768px) {
  .brand-logo-line { font-size: 1.9rem; }
}

/* -------------------- Nav mobile -------------------- */
.mobile-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(43, 33, 64, 0.06);
}

/* -------------------- Cards de destaque (Sobre) -------------------- */
.feature-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -10px rgba(43, 33, 64, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px -12px rgba(43, 33, 64, 0.18);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* -------------------- Filtros da galeria -------------------- */
.gallery-filter {
  font-family: "Baloo 2", cursive;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(43, 33, 64, 0.15);
  background: #fff;
  color: #2B2140;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-filter:hover {
  border-color: #7C5CFC;
}
.gallery-filter.is-active {
  background: linear-gradient(135deg, #7C5CFC, #FF5D8F);
  border-color: transparent;
  color: #fff;
}

/* -------------------- Galeria -------------------- */
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px -12px rgba(43, 33, 64, 0.25);
}
.gallery-tile.is-hidden {
  display: none;
}
.gallery-tile:hover {
  transform: scale(1.035);
  box-shadow: 0 16px 30px -12px rgba(43, 33, 64, 0.35);
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.35s ease;
}
.gallery-tile:hover img {
  transform: scale(1.08);
}
.gallery-emoji {
  font-size: 2.75rem;
  line-height: 1;
}
.gallery-label {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 0.5rem;
}
.gallery-fallback {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

#lightbox.flex { display: flex; }
#lightboxContent {
  background: linear-gradient(135deg, #7C5CFC, #FF5D8F);
}

/* -------------------- Formulário -------------------- */
.form-input {
  width: 100%;
  border: 1.5px solid rgba(43, 33, 64, 0.15);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2B2140;
  background: #FFF8EF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #7C5CFC;
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
  background: #fff;
}
.form-input.invalid {
  border-color: #FF5D8F;
}
.form-error {
  color: #FF5D8F;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.form-error.hidden { display: none; }

/* -------------------- Ícones sociais (rodapé) -------------------- */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(43, 33, 64, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B2140;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  background: #7C5CFC;
  color: #fff;
  transform: translateY(-2px);
}
