/* =====================================================================
   Queli Carvalho — identidade provisória, tons pastéis
   Mesmas cores do aplicativo de agenda, para as duas coisas parecerem
   a mesma marca. Trocar aqui muda o site inteiro.
   ===================================================================== */

:root {
  /* Pastel um tom mais fundo: o cartão branco passa a se destacar do
     fundo, em vez de quase se confundir com ele. */
  --fundo:        #EADCD4;
  --fundo-2:      #DFCEC5;
  --superficie:   #FFFFFF;
  --borda:        #DDCCC3;
  --borda-forte:  #CBB5A9;

  --acao:         #8C5F52;
  --acao-escura:  #6F4A3F;
  --acao-suave:   #E8CFC7;

  --rose:         #EFD4D0;
  --rose-forte:   #8C3F38;
  --salvia:       #CFDDD2;
  --salvia-forte: #3B6B4C;
  --lavanda:      #DAD5E8;
  --lavanda-forte:#574A78;
  --ambar:        #F0DFC0;
  --ambar-forte:  #856220;

  /* Escurecidos junto com o fundo, para o contraste continuar confortável */
  --texto:        #372E2A;
  --texto-2:      #6B5C55;
  --texto-3:      #8A7970;

  --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serifa: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Brilho suave por trás do conteúdo, para o miolo não ficar chapado */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62% 46% at 50% 0%,   rgba(226,186,180,.62), transparent 70%),
    radial-gradient(46% 36% at 12% 78%,  rgba(197,189,219,.52), transparent 70%),
    radial-gradient(46% 36% at 88% 62%,  rgba(182,204,188,.46), transparent 70%),
    var(--fundo);
}

#constelacao {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* =====================================================================
   LAYOUT
   ===================================================================== */

.folha {
  max-width: 470px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 64px) 22px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.topo { display: flex; flex-direction: column; align-items: center; }

.moldura-foto {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 210deg, var(--rose), var(--lavanda), var(--salvia), var(--ambar), var(--rose));
  box-shadow: 0 10px 34px rgba(140, 95, 82, .2);
}

.moldura-foto::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid var(--borda-forte);
  opacity: .5;
  animation: respirar 5.5s ease-in-out infinite;
}

@keyframes respirar {
  0%, 100% { transform: scale(1);    opacity: .5 }
  50%      { transform: scale(1.05); opacity: .22 }
}

.moldura-foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--fundo-2);
}

h1 {
  font-family: var(--serifa);
  font-size: clamp(28px, 7.4vw, 34px);
  font-weight: 600;
  letter-spacing: .004em;
  margin: 20px 0 0;
}

.chamada {
  margin: 7px 0 0;
  font-size: 16px;
  color: var(--texto-2);
}

.lugar {
  margin: 3px 0 0;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--texto-3);
  font-weight: 600;
}

/* =====================================================================
   LINKS
   ===================================================================== */

.links {
  width: 100%;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid var(--borda);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  text-align: left;
  box-shadow: 0 1px 2px rgba(59,50,46,.04), 0 6px 18px rgba(59,50,46,.05);
  transition: transform .2s cubic-bezier(.22,.9,.32,1), box-shadow .24s, border-color .24s, background .24s;
}

.link .icone {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform .24s cubic-bezier(.3,1.4,.5,1);
}
.link .icone svg { width: 23px; height: 23px; }

.link.zap   .icone { background: var(--salvia);  color: var(--salvia-forte); }
.link.local .icone { background: var(--rose);    color: var(--rose-forte); }
.link.insta .icone { background: var(--lavanda); color: var(--lavanda-forte); }
.link.app   .icone { background: var(--ambar);   color: var(--ambar-forte); }

.link .texto { flex: 1; min-width: 0; }
.link .rotulo { display: block; font-size: 16.5px; font-weight: 620; letter-spacing: -.004em; }
.link .apoio  { display: block; font-size: 13.5px; color: var(--texto-2); margin-top: 1px; }

.link .seta { flex: 0 0 auto; color: var(--texto-3); display: grid; place-items: center; transition: transform .24s, color .24s; }
.link .seta svg { width: 19px; height: 19px; }

/* Brilho que atravessa o botão */
.link::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: translateX(-180%) skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--acao-suave);
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 4px rgba(140,95,82,.09), 0 14px 32px rgba(140,95,82,.2);
  outline: none;
}
.link:hover::after, .link:focus-visible::after { animation: varrer .85s ease; }
.link:hover .icone { transform: scale(1.09) rotate(-5deg); }
.link:hover .seta  { transform: translateX(4px); color: var(--acao); }

.link:active {
  transform: translateY(-1px) scale(.988);
  box-shadow: 0 0 0 6px rgba(140,95,82,.14), 0 8px 20px rgba(140,95,82,.22);
}

@keyframes varrer {
  0%   { transform: translateX(-180%) skewX(-18deg); opacity: 1 }
  100% { transform: translateX(300%)  skewX(-18deg); opacity: 1 }
}

/* =====================================================================
   AVALIAÇÃO
   ===================================================================== */

.avaliacao { margin-top: 42px; }

.estrelas {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.estrelas svg {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 2px 5px rgba(200, 150, 60, .42));
  animation: cintilar 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .22s);
}

@keyframes cintilar {
  0%, 100% { transform: scale(1)    rotate(0deg);   filter: drop-shadow(0 2px 5px rgba(200,150,60,.42)) brightness(1) }
  46%      { transform: scale(1.13) rotate(-5deg);  filter: drop-shadow(0 3px 12px rgba(226,178,86,.85)) brightness(1.16) }
}

.titulo-avaliacao {
  margin: 15px 0 0;
  font-family: var(--serifa);
  font-size: 20px;
  font-weight: 600;
}

.nota {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ambar-forte);
}

.rodape {
  margin-top: 44px;
  font-size: 12.5px;
  color: var(--texto-3);
  letter-spacing: .02em;
}

/* =====================================================================
   PÁGINA DA LOCALIZAÇÃO
   ===================================================================== */

.voltar {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px 0 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--texto-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.voltar:hover { background: rgba(255,255,255,.8); color: var(--acao); }
.voltar svg { width: 19px; height: 19px; }

.cartao {
  width: 100%;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(8px);
  border: 1px solid var(--borda);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(59,50,46,.04), 0 8px 24px rgba(59,50,46,.06);
  text-align: left;
}

.botao {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #9A6A5C, var(--acao-escura));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 620;
  text-decoration: none;
  transition: transform .18s, box-shadow .24s;
}
.botao::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-180%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(140,95,82,.14), 0 12px 28px rgba(140,95,82,.34); }
.botao:hover::after { animation: varrer .85s ease; }
.botao:active { transform: translateY(0) scale(.985); }
.botao svg { width: 19px; height: 19px; }

.botao.claro {
  background: var(--superficie);
  color: var(--acao);
  border: 1px solid var(--borda-forte);
}
.botao.claro:hover { box-shadow: 0 0 0 4px rgba(140,95,82,.08), 0 10px 22px rgba(140,95,82,.16); }
.botao.claro::after { background: linear-gradient(100deg, transparent, rgba(140,95,82,.16), transparent); }

.rotulo-campo {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texto-3);
  margin: 0 0 6px;
}

.endereco {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 550;
}

.mapa {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 18px;
  display: block;
  background: var(--fundo-2);
}

.moldura-mapa {
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: 0 8px 24px rgba(59,50,46,.08);
}

.aviso-copiado {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--acao-escura);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(59,50,46,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .24s cubic-bezier(.22,.9,.32,1);
}
.aviso-copiado.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   ENTRADA DOS ELEMENTOS
   ===================================================================== */

.surge {
  animation: subir .62s cubic-bezier(.22,.9,.32,1) backwards;
  animation-delay: var(--atraso, 0s);
}

@keyframes subir {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: none }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  #constelacao { display: none; }
}
