/* fontes usadas no site */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* cores  */
:root {
  font-family: "DM Sans", sans-serif;
  color: #543d3a;
  background: #efb2c4;
  --tinta: #543d3a;
  --suave: #362e2ef1;
  --rosa: #efb2c4;
  --papel: #fffaf7;
  --terracota: rgba(191, 85, 117);
  --linha: rgba(169, 95, 87, 0.18);
  --sombra: 0 18px 48px rgba(116, 61, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--rosa);
  color: var(--tinta);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

.esqueleto-site {
  min-height: 100vh;
  width: 100%;
  background-color: var(--rosa);
  background-image: url("imagens/fundo bebê.jpg");
  background-repeat: repeat;
  background-size: 800px auto;
  background-position: center top;
  padding: 20px 28px 36px;
  overflow-x: hidden;
}

.barra-topo {
  width: min(980px, calc(100% - 56px));
  height: 65px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 247, 0.925);
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(116, 61, 73, 0.08);
  z-index: 1000;
}

/* nav */
#nome {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tinta);
}


.menu-topo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 50px;
}


.menu-topo a {
  color: #806d6d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}


.menu-topo a:hover {
  color: var(--terracota);
}

/* Seção principal do convite */
.seção-principal {
  max-width: 1050px;
  min-height: 475px;
  margin: 34px auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 4vw 70px;
}


.texto-destaque {
  max-width: 520px;
  position: relative;
  top: 30px;
  animation: subir 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}


.texto-apoio,
.rotulo {
  color: var(--terracota);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


.texto-apoio {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 18px;
}


h1,
h2,
p {
  margin: 0;
}


h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}


.texto-destaque h1 {
  font-size: clamp(56px, 7vw, 93px);
  line-height: 0.82;
  margin-bottom: 6%;
  margin-right: 0%;
}


.texto-destaque h1 em {
  color: var(--terracota);
  display: block;
}


.texto-introducao {
  max-width: 365px;
  color: #72585a;
  line-height: 1.7;
  font-size: 14px;
}

/* estilo geral (botões) */
.botao {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    transform 0.16s,
    box-shadow 0.2s,
    background 0.2s;
  font-size: 12px;
  font-weight: 700;
}


.botao:active {
  transform: scale(0.97);
}


.botao-principal {
  background: var(--terracota);
  color: #fff8f4;
  padding: 11px 16px;
  box-shadow: 0 8px 18px rgba(169, 95, 87, 0.2);
  margin-bottom: 10px;
}


.botao-pequeno {
  background: var(--terracota);
  color: #fff8f4;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(169, 95, 87, 0.2);
}


.botao-pequeno:hover {
  background: #8f4e49;
  transform: translateY(-1px);
}


.botao-principal:hover {
  background: #8f4e49;
  box-shadow: 0 11px 22px rgba(169, 95, 87, 0.26);
  transform: translateY(-2px);
}

/* imagens */

.arte-destaque {
  width: 350px;
  position: relative;
  transform: rotate(3deg);
  animation: entrada-flutuante 0.85s 0.12s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.arte-destaque > img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 18px rgba(110, 61, 73, 0.12));
}

.selo {
  position: absolute;
  background: #f8dce0;
  width: 85px;
  bottom: 30px;
  left: -40px;
  transform: rotate(-10deg);
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 8px 14px rgba(100, 50, 60, 0.13);
}

.selo img {
  display: block;
  width: 100%;
  border-radius: 50px;
}

/* lista de presentes */
.conteudo {
  width: min(930px, 100%);
  margin: auto;
}

/* fundo dos cartões de conteúdo */
.cartao-papel {
  padding: 38px;
  background: rgba(255, 250, 247, 0.96);
  box-shadow: var(--sombra);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* selo que fica em cima dos cartões */
.selo-secao {
  position: absolute;
  width: 48px;
  height: 48px;
  object-fit: cover;
  right: 25px;
  top: -23px;
  border-radius: 50%;
  background: #f8dce0;
  padding: 4px;
  transform: rotate(8deg);
  box-shadow: 0 6px 12px rgba(100, 50, 60, 0.12);
}


/* área dos presentes */

.secao-presentes {
  margin-top: -15px;
}


h2 {
  font-size: 39px;
  line-height: 1;
  margin-top: 7px;
}


.lista-presentes {
  margin-top: 28px;
  border-top: 1px dashed rgba(169, 95, 87, 0.28);
  position: relative;
}


.linha-presente {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
}


.informacoes-presente {
  flex: 1;
  display: grid;
  gap: 5px;
}

.informacoes-presente strong {
  font-size: 13px;
}

.informacoes-presente span {
  color: var(--suave);
  font-size: 11px;
}

.informacoes-presente i {
  color: var(--terracota);
  font-style: normal;
  margin: 0 4px;
}

/* BLOCO PIX */
.bloco-pix {
  margin-top: 20px;
}

.bloco-pix > span {
  color: var(--suave);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.campo-pix {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--papel);
  padding: 13px 14px;
}

.campo-pix strong {
  font-size: 13px;
  color: var(--tinta);
  font-weight: 500;
  word-break: break-all;
}

.campo-pix .botao-pequeno {
  flex: none;
}

/* MURAL DE COMENTÁRIOS */

.secao-recados {
  margin-top: 22px;
}

.grade-recados {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cartao-recado {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cartao-recado .aspas {
  font-family: "Bodoni Moda", serif;
  font-size: 32px;
  line-height: 1;
  color: var(--terracota);
}

.mensagem-recado {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--tinta);
  flex: 1;
}

.autor-recado {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-recado {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #f8dce0;
  color: var(--terracota);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.autor-recado strong {
  display: block;
  font-size: 12px;
  color: var(--tinta);
}

.autor-recado span {
  display: block;
  font-size: 11px;
  color: var(--terracota);
  font-weight: 600;
}

.sem-recados {
  color: var(--suave);
  font-size: 13px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 0;
}

/* rodapé da página */
.rodape {
  border-top: 1px dashed rgba(169, 95, 87, 0.25);
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: rgba(84, 61, 58, 0.7);
  font-size: 11px;
  padding: 24px 2px 0;
}

/* botão do rodapé */
.rodape button {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 11px;
}

/* ======================================================
  JAVASCRIPT
   ====================================================== */


/* notificação  */
.aviso {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--tinta);
  color: var(--papel);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--sombra);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 999;
  max-width: 90vw;
  text-align: center;
}

.aviso.mostrar {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ======================================================
   outros ajustes
   ====================================================== */

.cartao-papel {
  border-radius: 4px;
}

.imagem-presente {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  padding: 6px;
  border-radius: 50%;
  background: #f8e2e3;
}

.valor-presente {
  flex: 0 0 auto;
  color: var(--terracota);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  max-width: 150px;
}

.bloco-pix-lista {
  margin-top: 22px;
}

.formulario-recado {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.formulario-recado label {
  display: grid;
  gap: 6px;
}

.formulario-recado label > span {
  color: var(--suave);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formulario-recado small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.formulario-recado input,
.formulario-recado textarea {
  width: 100%;
  border: 1px solid rgba(169, 95, 87, 0.13);
  border-radius: 2px;
  background: #f7f4ef;
  color: var(--tinta);
  outline: 0;
  padding: 11px 12px;
  font-size: 12px;
}

.formulario-recado input:focus,
.formulario-recado textarea:focus {
  border-color: var(--terracota);
  box-shadow: 0 0 0 3px rgba(191, 85, 117, 0.08);
}

.formulario-recado textarea {
  min-height: 82px;
  resize: vertical;
}

.formulario-recado .botao-principal {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .esqueleto-site {
    padding: 14px 14px 28px;
    background-size: 600px auto;
  }

  .barra-topo {
    height: 58px;
    padding: 0 20px;
  }

  .menu-topo {
    position: static;
    transform: none;
    gap: 16px;
  }

  .menu-topo a {
    font-size: 12px;
  }

  .seção-principal {
    min-height: 0;
    margin-top: 26px;
    padding: 24px 8px 58px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .texto-destaque {
    max-width: none;
  }

  .texto-destaque h1 {
    font-size: clamp(52px, 16vw, 78px);
    line-height: 0.86;
    margin-bottom: 24px;
  }

  .arte-destaque {
    align-self: center;
    width: min(300px, 82vw);
    margin-top: 4px;
  }

  .selo {
    width: 72px;
    left: -24px;
    bottom: 18px;
  }

  .cartao-papel {
    padding: 26px 20px;
  }

  h2 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .linha-presente {
    gap: 10px;
    padding: 13px 0;
  }

  .imagem-presente {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .informacoes-presente strong {
    font-size: 12px;
  }

  .valor-presente {
    max-width: 96px;
    font-size: 11px;
  }

  .campo-pix {
    align-items: stretch;
    flex-direction: column;
  }

  .campo-pix .botao-pequeno {
    width: 100%;
  }

  .formulario-recado .botao-principal {
    width: 100%;
  }

  .rodape {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
  }
}

@media (max-width: 420px) {
  #nome {
    font-size: 16px;
    letter-spacing: 0.2em;
  }

  .menu-topo a {
    font-size: 11px;
  }

  .menu-topo {
    gap: 11px;
  }

  .texto-apoio,
  .rotulo {
    font-size: 9px;
  }

  .seção-principal {
    padding-inline: 2px;
  }

  .secao-presentes,
  .secao-recados {
    padding-inline: 16px;
  }
}

/* animações */
@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrada-flutuante {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
  }
}


.papel-deslocado {
  transform: rotate(-0.35deg);
}

.texto-pix-lista {
  max-width: 680px;
  margin-top: 18px;
  color: var(--suave);
  font-size: 13px;
  line-height: 1.7;
}
