* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(
    to bottom,
    #1a0003 0%,
    #1a0003 35%,
    #000000 100%
  );
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  padding-bottom: 30px;
  padding-top: 60px;
}

/* ===== TOPO FIXO ===== */
.topo {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);

  z-index: 999;
}

/* LOGO */
.logo-topo {
  font-family: "Sail", cursive;
  font-size: 20px;
}

.logo-topo .qr {
  color: red;
  font-weight: bold;
}

.logo-topo .resto {
  color: white;
}

/* BOTÃO TOPO */
.btn-topo {
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;

  color: white;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);

  transition: 0.3s;
}

.btn-topo:hover {
  background: rgba(255, 0, 0, 0.4);
}

/* ===== BOTÃO TOPO ANIMADO ===== */
.btn-topo {
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;

  color: white;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);

  transition: 0.3s;

  /* animação */
  animation: pulseTopo 3s infinite;
}

/* efeito ao passar o mouse */
.btn-topo:hover {
  background: rgba(255, 0, 0, 0.4);
  transform: scale(1.05);
}

/* animação suave */
@keyframes pulseTopo {
  0% {
    box-shadow: 0 0 0px rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 0, 0, 0.4);
  }
}

/* ===== TÍTULO ===== */
.titulo-principal {
  background: linear-gradient(45deg, #8b0000, #ff1a1a);
  padding: 12px;
  border-radius: 40px;
  font-size: 1.6rem;
  line-height: 2.2;
  padding: 22px 20px;
  text-align: center;
  font-family: 'Nightingale', serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.678);
  margin-top: 25px;
  width: 95%;
  box-shadow: 0 0 18px rgba(255,0,0,0.4);
}

/* ===== DESCRIÇÃO ===== */
.descricao {
  font-size: 1.4rem;
  opacity: 0.9;
  font-family: "Sail", system-ui;
  color: #ffeaea;
  text-shadow: 1px 1px 4px #000;
  text-align: center;
  margin: 10px;
  max-width: 90%;
  padding: 0 5px;
}

.como-funciona {
  width: 100%;
  max-width: 460px;
  text-align: justify;
  margin-bottom: 25px;
  padding: 10px 20px;
}

.como-funciona h2 {
  margin: 20px 0 15px;
  font-size: 1.5rem;
  color: #fff2eb;
  text-shadow: 1px 1px 4px black;
}


.como-funciona p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 15px;
}


.passo-container {
  max-width: 600px;
  margin: 40px auto 10px;
  margin-bottom: 0;
}

.titulo-passo {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  position: relative;
}

.titulo-passo::before,
.titulo-passo::after {
  content: "";
  width: 75px;
  height: 2px;
  background: rgb(175, 0, 0);
  position: absolute;
  top: 50%;
}

.titulo-passo::before { left: 0; }
.titulo-passo::after { right: 0; }

.passo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
}

.numero {
  min-width: 45px;
  height: 45px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  color: white;

  /* fundo vermelho translúcido */
  background: rgba(255, 0, 0, 0.2);

  /* borda suave */
  border: 1px solid rgba(255, 0, 0, 0.4);

  /* leve brilho */
  box-shadow: 0 0 8px rgba(223, 0, 0, 0.3);
}

.texto {
  color: #f1f1f1;
  font-size: 16px;
}

.linha {
  height: 1px;
  background: #5a000073;
}

.cta-seta {
  text-align: center;
  margin-top: 0;
  color: #ccc;
  font-size: 14px;
  letter-spacing: 2px;
}

.circulo-seta {
  margin: 15px auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  /* fundo translúcido */
  background: rgba(255, 0, 0, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  /* efeito suave */
  backdrop-filter: blur(4px);

  /* animação de pulo */
  animation: subirDescer 1.5s infinite;
}

.seta-baixo {
  width: 12px;
  height: 12px;

  border-left: 2px solid rgba(255, 0, 0, 0.7);
  border-bottom: 2px solid rgba(255, 0, 0, 0.7);

  transform: rotate(-45deg);
}

@keyframes subirDescer {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
}

/* ===== CONTAINER ===== */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0 20px;
}

/* ===== CARD ===== */
.card-projeto {
  position: relative;
  width: 100%;
  max-width: 420px;
}

/* ===== GLOW EXTERNO (LED PULSANDO) ===== */
.card-projeto::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 30px;

  background: radial-gradient(
    circle,
    rgba(255, 0, 21, 0.75),
    rgba(255, 0, 34, 0.3),
    transparent 70%
  );

  filter: blur(26px);
  opacity: 0.35;

  z-index: 0;

  transform: scale(0.92);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.modelo-site {
  margin: 20px 0 15px;
  text-align: center;
  font-size: 1.5rem;
}


/* ===== CARD REAL (GLASS) ===== */
.card-projeto a {
  display: block;

  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 54, 54, 0.25);
  border-radius: 22px;

  padding: 22px;
  text-decoration: none;
  color: white;

  position: relative;
  z-index: 2;

  overflow: hidden;

  backdrop-filter: blur(12px);

  transition: all 0.25s ease;

  -webkit-tap-highlight-color: transparent;
}

/* ===== TEXTO ===== */
.card-projeto h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  
}

.card-projeto p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== HOVER ===== */
.card-projeto a:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ===== CLICK MOBILE ===== */
.card-projeto a:active {
  transform: scale(0.97);
}

/* ===== RIPPLE ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
  z-index: 3;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== ANIMAÇÃO DO GLOW ===== */
@keyframes pulseGlow {
  0% {
    transform: scale(0.92);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.65;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.2;
  }
}

/* ===== LINHA ===== */
.linha-tracejada {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 0, 0, 0.75),
    transparent
  );
  border-radius: 40px;
  margin: 3px 0;
  max-width: 80%;
}

/* ===== GALERIA ===== */
.galeria {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-top: 10px;
  position: relative;
}

.slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider img {
  width: 120px;
  height: 120px;

  flex: 0 0 auto;
  object-fit: cover;

  border-radius: 14px;
  cursor: pointer;

  scroll-snap-align: center;

  transition: transform 0.2s ease;
}

.slider img:hover {
  transform: scale(1.05);
}

.seta {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10;
}

#btn-esq {
  left: 5px;
  display: none; /* começa escondida */
}

#btn-dir {
  right: 5px;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.9);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 999;
}

#img-grande {
  max-width: 90%;
  max-height: 80%;
  border-radius: 18px;
}

/* ===== BOTÃO FECHAR (SÓ APARECE NO LIGHTBOX) ===== */
#fechar {
  position: absolute;
  top: 20px;
  right: 25px;

  font-size: 28px;
  color: white;
  cursor: pointer;

  display: none; /* escondido por padrão */
}

/* ===== BOTÕES CONTATO ===== */
.botoes-contato {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.btn-contato {
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 14px;
  font-size: 16px;
  color: white;
  text-align: center;
  width: fit-content;
  transition: 0.3s;
  display: inline-block;
  margin-top: 12px;
  -webkit-tap-highlight-color: transparent;
}

/* ===== WHATSAPP ===== */
.whatsapp {
  background: linear-gradient(45deg, #167a3b, #1ebe5d);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.7);
}

.whatsapp:hover {
  transform: scale(1.05);
}

/* ===== INSTAGRAM ===== */
.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 0 16px rgba(255, 0, 150, 0.7);
}

.instagram:hover {
  transform: scale(1.05);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  
  .titulo-principal {
    font-size: 1.4rem;
    padding: 10px;
  }

  .descricao {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .card-projeto a {
    padding: 18px;
  }

  .card-projeto h2 {
    font-size: 1.2rem;
  }

  .card-projeto p {
    font-size: 1rem;
  }
}
