/* ═══════════════════════════════════════════════════
   Debutar é Massa 2026 · Prefeitura de Maceió
   ═══════════════════════════════════════════════════ */

:root {
  --pink:       #f57799;
  --pink-dark:  #e0547f;
  --pink-deep:  #c73d66;
  --pink-light: #fce8f0;
  --pink-pale:  #fff5f8;
  --white:      #ffffff;
  --text:       #2e1220;
  --text-soft:  #7a4060;
  --radius:     1.25rem;
  --shadow-sm:  0 2px 12px rgba(200, 60, 100, 0.09);
  --shadow-md:  0 6px 28px rgba(200, 60, 100, 0.15);
  --shadow-lg:  0 14px 52px rgba(200, 60, 100, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ════════════════════
   SCROLL REVEAL
   ════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ════════════════════
   NAVBAR
   ════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 119, 153, 0.15);
  box-shadow: 0 2px 20px rgba(200, 60, 100, 0.08);
  animation: nav-drop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nav-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-logo:hover img { opacity: 0.85; transform: scale(0.97); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--pink-dark); background: var(--pink-pale); }

.nav-link--pill {
  background: var(--pink);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(245, 119, 153, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-link--pill:hover {
  background: var(--pink-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245, 119, 153, 0.45);
}

/* ════════════════════
   HEADER BANNER
   Imagem: 1700×500 px | Área de interesse: 830×500 px (direita)

   ≥ 830 px → altura fixa 500px, background-size: auto 500px
     A imagem fica sempre com 500px de altura e 1700px de largura.
     background-position: right center ancora à direita.
     Conforme o viewport diminui, vai cortando pela esquerda.
     Em 1700px: mostra a imagem inteira.
     Em 1920px: imagem à direita, 220px de rosa à esquerda.

   < 830 px → aspect-ratio 830/500 + background-size: auto 100%
     O container escala proporcionalmente à área de interesse.
     background-size: auto 100% mantém a imagem proporcional ao container.
     background-position: right center exibe sempre a área de interesse.
   ════════════════════ */
.site-header {
  height: 500px;
  /* cover → escala uniforme (sem distorção), preenche toda a largura.
     Em viewports > 1700px corta simetricamente poucos px no topo/base. */
  background: var(--pink) url('../img/header.png') center center / cover no-repeat;
  animation: header-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Abaixo de 830px: container escala pela razão da área de interesse.
   auto 100% mantém proporção sem distorção, center ancora ao centro. */
@media (max-width: 830px) {
  .site-header {
    height: auto;
    aspect-ratio: 830 / 500;
    background-size: auto 100%;
    background-position: center center;
  }
}

@keyframes header-reveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

/* ════════════════════
   EVENT INFO
   ════════════════════ */
.event-info {
  background: var(--pink-pale);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.event-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 3.25rem;
}
.event-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  border-radius: 2px;
  margin: 1.1rem auto 0;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.375rem 1.875rem;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  border: 1px solid rgba(245, 119, 153, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease,
              opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.detail-icon {
  color: var(--pink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.detail-card strong {
  display: block;
  font-weight: 800;
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.3;
}
.detail-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Sparkles decorativos */
.sparkles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sp {
  position: absolute;
  color: var(--pink);
  opacity: 0;
  animation: sparkle-in 0.6s ease forwards, float-sparkle 5s ease-in-out infinite;
  user-select: none;
}
.sp1 { font-size: 2rem;   top: 10%; left: 3%;   animation-delay: 0.6s, 0.6s;  }
.sp2 { font-size: 1.1rem; top: 73%; left: 9%;   animation-delay: 1s,   1s;    }
.sp3 { font-size: 2.4rem; top: 14%; right: 4%;  animation-delay: 0.8s, 0.8s;  }
.sp4 { font-size: 0.9rem; top: 80%; right: 4%;  animation-delay: 1.2s, 1.2s;  }
.sp5 { font-size: 1.6rem; top: 50%; left: 47%;  animation-delay: 1.4s, 1.4s;  }

@keyframes sparkle-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 0.22; transform: scale(1); }
}
@keyframes float-sparkle {
  0%, 100% { transform: translateY(0) rotate(0deg);      }
  50%       { transform: translateY(-22px) rotate(180deg); }
}

/* ════════════════════
   CTA — RECONHECIMENTO FACIAL
   ════════════════════ */
.cta-section {
  padding: 4.5rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Halo decorativo de fundo */
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,119,153,0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(145deg, #f7618a 0%, var(--pink) 45%, #f5487f 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(255,255,255,0.22) 0%, transparent 65%);
  pointer-events: none;
}

/* Shimmer animado no card */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.12) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer 3.5s ease infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.cta-content {
  position: relative;
  padding: 3.25rem 2.75rem;
  text-align: center;
  color: var(--white);
}

.cta-icon {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-6px); }
}

.cta-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 0.875rem;
}
.cta-content p {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--pink-deep);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.95rem 2.5rem;
  border-radius: 3rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.2s ease;
}
.cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
  background: var(--pink-pale);
}

/* ════════════════════
   GALERIA AO VIVO
   ════════════════════ */
.gallery-section {
  padding: 4rem 0 5.5rem;
  background: var(--pink-pale);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.gallery-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: -0.02em;
}

.live-dot {
  width: 12px; height: 12px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-live 2s ease-out infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0);   }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);   }
}

.photo-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pink-light);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.gallery-item.visible { opacity: 1; transform: translateY(0) scale(1); }
.gallery-item:hover   { box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

/* Estado vazio */
.gallery-empty {
  text-align: center;
  padding: 5.5rem 0 3.5rem;
  color: var(--text-soft);
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  background: var(--white);
  border-radius: 50%;
  color: var(--pink);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  opacity: 0.65;
  animation: empty-pulse 3s ease-in-out infinite;
}
@keyframes empty-pulse {
  0%, 100% { transform: scale(1);    box-shadow: var(--shadow-md); }
  50%       { transform: scale(1.05); box-shadow: var(--shadow-lg); }
}
.gallery-empty p {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.gallery-empty small {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.5;
}

/* ════════════════════
   LIGHTBOX
   ════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 4, 14, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(8px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 100%; max-height: 88vh;
  border-radius: 0.75rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  display: block;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--white);
  border: none; border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem; font-weight: 900;
  transition: transform 0.22s ease, background 0.2s ease;
  line-height: 1;
}
.lightbox-close:hover { transform: scale(1.1) rotate(90deg); background: var(--pink-light); }

/* ════════════════════
   FOOTER — compacto
   ════════════════════ */
.site-footer {
  background: var(--pink);
  padding: 1.75rem 0;
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.footer-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ════════════════════
   RESPONSIVO
   ════════════════════ */
@media (max-width: 640px) {
  .event-info { padding: 3.5rem 0 3rem; }
  .event-details { flex-direction: column; align-items: center; }
  .detail-card { width: 100%; max-width: 360px; }
  .cta-content { padding: 2.5rem 1.75rem; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.625rem;
  }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .nav-link:not(.nav-link--pill) { display: none; }
}
