/* =========================================================================
   Atacarejo Vitória — página de links (link in bio)
   Direção: vitrine vermelha. Fundo no vermelho da marca, o símbolo 3D como
   peça central, branco como tinta e o preto quente só na ação principal.

   TRAVAS DE CONSISTÊNCIA (conferidas seção por seção)
   - Tema:  um só, vermelho, do topo ao rodapé (pedido do cliente, 15/09/2026).
   - Cor:   vermelho da marca no fundo, branco na tinta. Nada de verde do
            WhatsApp nem amarelo de estrela. As estrelas são brancas.
   - Contraste: o fundo nunca clareia além de #D3131D, que é o limite em que
            a tinta secundária (#FFF0F0) ainda passa de 4,5:1.
   - Forma: botão e card = 18px. Chip, avatar de ícone e pílula = 999px.
            Nenhuma terceira escala de raio na página.
   ========================================================================= */

:root {
  /* ground */
  --ground:      #C4111A;
  --ground-top:  #D3131D;
  --ground-deep: #9E0D14;
  --night:       #140C0D;

  /* superfícies */
  --surface:     rgba(58, 0, 4, 0.22);
  --surface-hi:  rgba(58, 0, 4, 0.34);
  --line:        rgba(255, 255, 255, 0.22);
  --line-hi:     rgba(255, 255, 255, 0.42);

  /* acento único */
  --red:      #E4141F;
  --red-hi:   #FF2C36;
  --red-deep: #9E0D14;

  /* tinta */
  --ink:   #FBF7F6;
  --ink-2: #FFF0F0;
  --ink-3: #FFE6E7;

  /* forma */
  --r:      18px;
  --r-pill: 999px;

  /* tipografia */
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body:    "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ritmo */
  --gap:  14px;
  --step: 28px;

  /* motion */
  --fast:   160ms;
  --normal: 320ms;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  padding: 40px 20px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--ground);
  background-image:
    radial-gradient(90% 55% at 50% -8%, var(--ground-top) 0%, rgba(211, 19, 29, 0) 62%),
    radial-gradient(80% 50% at 50% 110%, var(--ground-deep) 0%, rgba(158, 13, 20, 0) 72%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--step);
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
}

.hero__mark {
  position: relative;
  width: min(62%, 250px);
  aspect-ratio: 720 / 683;
  display: grid;
  place-items: center;
}

/* halo claro atrás do símbolo: cria camada e separa a peça do fundo vermelho */
.hero__mark::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 50% 46%,
              rgba(255, 190, 192, 0.30) 0%,
              rgba(255, 190, 192, 0.08) 48%,
              rgba(255, 190, 192, 0) 74%);
  filter: blur(6px);
}

.hero__render {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(60, 0, 5, 0.45));
}

.hero__word {
  margin: 0;
  width: min(78%, 296px);
}

.hero__word img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__line {
  margin: 0;
  max-width: 33ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: balance;
}

.chips {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

/* =========================================================================
   BOTÕES
   ========================================================================= */

.links {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.links__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.btn__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: var(--red);
  transition: transform var(--normal) var(--ease), background-color var(--fast) var(--ease);
}

.btn__icon svg { width: 20px; height: 20px; display: block; }

.btn__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.2;
}

.btn__sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.3;
}

.btn__go {
  margin-left: auto;
  flex: none;
  color: rgba(255, 255, 255, 0.92);
  transition: transform var(--normal) var(--ease);
}

.btn__go svg { width: 20px; height: 20px; display: block; }

/* --- ação principal ---------------------------------------------------- */

/* Com o fundo vermelho, um botão vermelho sumiria. A ação principal vira o
   único bloco escuro da página: é o maior contraste disponível, e o ícone
   vermelho dentro dele amarra de volta à marca. */
.btn--primary {
  padding: 19px 20px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(168deg, #2A1A1B 0%, var(--night) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(60, 0, 5, 0.38);
}

.btn--primary .btn__icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #FFFFFF;
}

.btn--primary .btn__icon svg { width: 23px; height: 23px; }
.btn--primary .btn__title { font-size: 18px; color: #FFFFFF; }
.btn--primary .btn__sub { color: var(--ink-2); font-size: 12px; }

/* --- tiles secundários -------------------------------------------------- */

.btn--tile {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 15px 15px;
  min-height: 128px;
}

.btn--tile .btn__title { font-size: 14.5px; }
.btn--tile .btn__sub { font-size: 12px; }

/* --- botão do Google dentro do card ------------------------------------- */

.btn--google {
  justify-content: center;
  gap: 11px;
  padding: 15px 18px;
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, 0.94);
  color: #14100F;
}

.btn--google .btn__icon {
  width: 26px;
  height: 26px;
  background: transparent;
  color: var(--red-deep);
}

.btn--google .btn__icon svg { width: 19px; height: 19px; }
.btn--google .btn__body { flex-direction: row; }
.btn--google .btn__title { font-size: 15.5px; color: #14100F; }

/* --- estados ------------------------------------------------------------ */

.btn:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    background-color: var(--surface-hi);
    border-color: var(--line-hi);
  }
  .btn:hover .btn__icon { transform: scale(1.08); }

  .btn--primary:hover {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 30px rgba(60, 0, 5, 0.45);
  }
  .btn--primary:hover .btn__go { transform: translateX(4px); }

  .btn--google:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
  }
}

.btn:active { transform: translateY(0) scale(0.985); }

/* =========================================================================
   CARD DE AVALIAÇÃO
   ========================================================================= */

.review {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.rating__stars {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.rating__track,
.rating__fill { display: flex; gap: 3px; }

.rating__track { color: rgba(255, 255, 255, 0.28); }

/* 4,4 de 5 = 88% da largura da fileira */
.rating__fill {
  position: absolute;
  inset: 0;
  width: 89%;
  overflow: hidden;
  color: #FFFFFF;
}

.rating__track svg,
.rating__fill svg { width: 19px; height: 19px; flex: none; display: block; }

.rating__label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.rating__label strong { color: var(--ink); font-size: 14px; }

.review__title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.review__text {
  margin: 0;
  max-width: 31ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Seta: é o único loop da página, e tem motivo. Ela aponta para o pedido de
   avaliação, que é a ação que o cliente não procura sozinho. Ciclo longo e
   amplitude baixa para chamar sem irritar. */
.review__nudge {
  display: block;
  color: #FFFFFF;
  animation: nudge 3.4s var(--ease) infinite;
}

.review__nudge svg { width: 22px; height: 22px; display: block; }

@keyframes nudge {
  0%, 62%, 100% { transform: translateY(0); opacity: 0.55; }
  16%           { transform: translateY(7px); opacity: 1; }
  34%           { transform: translateY(0); opacity: 0.8; }
  46%           { transform: translateY(5px); opacity: 1; }
}

.review .btn--google { width: 100%; margin-top: 2px; }

/* =========================================================================
   RODAPÉ
   ========================================================================= */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding-top: 4px;
}

.foot p { margin: 0; }

.foot__addr {
  font-size: 13px;
  color: var(--ink-2);
}

.foot__tel a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-hi);
  padding-bottom: 1px;
}

.foot__tel a:hover { color: var(--ink); }

.foot__sign {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.foot__sign a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.foot__sign a:hover { color: var(--ink); border-bottom-color: var(--line-hi); }

.foot a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================================
   ENTRADA
   ========================================================================= */

/* Entrada só em CSS. A página não carrega um byte de JavaScript, então o CSP
   pode manter script-src em 'none' e nada depende de o script chegar.
   O motivo do movimento: escalonar a leitura de cima para baixo, da marca até
   a ação, em vez de despejar a página inteira de uma vez. */
@keyframes entra {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.reveal { animation: entra 560ms var(--ease) both; }

.hero .reveal:nth-child(1)      { animation-delay:  40ms; }
.hero .reveal:nth-child(2)      { animation-delay: 130ms; }
.hero .reveal:nth-child(3)      { animation-delay: 210ms; }
.hero .reveal:nth-child(4)      { animation-delay: 280ms; }
.links > .reveal                { animation-delay: 350ms; }
.links__pair .reveal:nth-child(1) { animation-delay: 420ms; }
.links__pair .reveal:nth-child(2) { animation-delay: 470ms; }
.review                         { animation-delay: 540ms; }
.foot                           { animation-delay: 610ms; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */

@media (max-width: 359px) {
  .links__pair { grid-template-columns: 1fr; }
  .btn--tile { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
}

@media (min-width: 600px) {
  body { padding-top: 56px; }
  .hero__mark { width: 258px; }
  .review__title { font-size: 27px; }
}

/* =========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .review__nudge { animation: none; opacity: 1; }
  .btn, .btn__icon, .btn__go { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
