/* Links LiVESUB */

@font-face {
  font-family: "Akhand Soft";
  src: url("../assets/fontes/AkhandSoft-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --marinho: #20386E;
  --azul: #2F73C7;
  --azul-claro: #eaf2fb;
  --tinta: #1b2333;
  --tinta-2: #4a5263;
  --natal: #96291c;
  --natal-claro: #f7e8e3;

  --fonte: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-titulo: "Akhand Soft", "Poppins", -apple-system, "Segoe UI", Arial, sans-serif;
  --coluna: 460px;
  --margem: clamp(18px, 5.6vw, 24px); /* 21px num celular de 375px, 24px nos maiores */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--marinho);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
p, h1 { margin: 0; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 10px; }

/* Fundo: foto fixa com um véu de cor única (fixo também no iPhone) */
.fundo {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--marinho);
}
.fundo::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: url("../assets/img/fundo-mesa.webp") center 30% / cover no-repeat;
  filter: blur(3px);
}
.fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 30, 64, 0.64);
}

.faixa-revisao {
  position: relative;
  background: #fff4d6; color: #6b4a00; font-size: 13px; text-align: center; padding: 8px var(--margem);
}

/* Topo */
.topo {
  text-align: center;
  color: #fff;
  padding: calc(48px + env(safe-area-inset-top)) var(--margem) 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.topo__logo { width: 124px; height: auto; margin: 0 auto 28px; }
.topo__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
/* Assinatura: o slogan é "sublimado" na abertura, como a caneca mágica.
   Um molde vazado aparece primeiro e uma faixa de calor revela o texto branco. */
.topo__titulo { display: grid; justify-items: center; }
.revela, .revela__calor, .revela__molde { grid-area: 1 / 1; }
.revela__calor, .revela__molde { opacity: 0; pointer-events: none; text-shadow: none; }
.revela__calor { color: #ffc56b; }
.revela__molde { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  /* Texto branco sólido revelado por máscara; a faixa âmbar é uma cópia mascarada que passa na frente */
  .revela,
  .revela__calor {
    -webkit-mask-size: 260% 100%;
    mask-size: 260% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    animation: sublima 1.4s cubic-bezier(0.5, 0, 0.2, 1) 0.35s forwards;
  }
  .revela {
    -webkit-mask-image: linear-gradient(100deg, #000 0 40%, transparent 50% 100%);
    mask-image: linear-gradient(100deg, #000 0 40%, transparent 50% 100%);
  }
  .revela__calor {
    opacity: 1;
    -webkit-mask-image: linear-gradient(100deg, transparent 0 39%, #000 45%, transparent 52% 100%);
    mask-image: linear-gradient(100deg, transparent 0 39%, #000 45%, transparent 52% 100%);
  }
  .revela__molde { animation: molde 1.9s ease-out forwards; }
}
@keyframes sublima {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes molde {
  0% { opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.topo__texto {
  margin: 10px auto 0;
  max-width: 32ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

/* Lista */
.links {
  width: 100%;
  max-width: calc(var(--coluna) + 2 * var(--margem));
  margin: 0 auto;
  padding: 0 var(--margem);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px 12px 12px;
  background: #fff;
  border-radius: 16px;
  color: var(--tinta);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.link[hidden] { display: none; }
.link:hover { transform: translateY(-1px); background: #f7f9fc; }
.link:active { transform: translateY(0); }

.link__icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--azul-claro);
  color: var(--azul);
}
.link__icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.link__icone--foto { overflow: hidden; background: var(--papel-foto, #eef2f7); }
.link__icone--foto img { width: 100%; height: 100%; object-fit: cover; }

.link__textos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.link__titulo {
  font-family: var(--fonte-titulo);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--marinho);
  line-height: 1.05;
}
.link__texto { font-size: 13.5px; color: var(--tinta-2); line-height: 1.35; text-wrap: pretty; }

.link__seta { flex: none; width: 16px; height: 16px; fill: none; stroke: #a3abb9; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botão principal: azul chapado */
.link--destaque { background: var(--azul); }
.link--destaque:hover { background: #2a68b5; }
.link--destaque .link__icone { background: rgba(255, 255, 255, 0.16); color: #fff; }
.link--destaque .link__titulo { color: #fff; }
.link--destaque .link__texto { color: #fff; }
.link--destaque .link__seta { stroke: rgba(255, 255, 255, 0.8); }

/* Onde comprar: botão que abre a busca */
.comprar { display: flex; flex-direction: column; }
.link__seta--abre { transform: rotate(90deg); transition: transform 0.2s ease; }
.link--aberto { border-radius: 16px 16px 0 0; }
.link--aberto .link__seta--abre { transform: rotate(-90deg); }

.painel {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 16px 16px 14px;
  border-top: 1px solid #e3e8f0;
}
.painel[hidden] { display: none; }
.painel__rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--marinho); margin-bottom: 6px; }
.painel__estado {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--tinta);
  background: #f4f6f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%2320386E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  border: 1px solid #d5dce7;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
}
.painel__estado:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.painel__resultado:empty { display: none; }
.painel__resultado { margin-top: 14px; }
.painel__titulo { font-size: 14px; font-weight: 600; color: var(--marinho); margin-bottom: 8px; }
.painel__vazio { font-size: 14px; color: var(--tinta-2); margin-bottom: 12px; text-wrap: pretty; }

.revendas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.revenda {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf0f5;
}
.revenda:first-child { border-top: 0; padding-top: 2px; }
.revenda[hidden] { display: none; }
.revenda__info { flex: 1; min-width: 0; }
.revenda__nome { font-size: 15px; font-weight: 600; color: var(--tinta); line-height: 1.3; }
.revenda__local { font-size: 13px; color: var(--tinta-2); line-height: 1.35; }
.revenda__site {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 13px; font-weight: 500; color: var(--azul); text-decoration: none;
}
.revenda__site:hover { text-decoration: underline; }
.revenda__whats,
.painel__botao {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--marinho);
  color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.revenda__whats svg,
.painel__botao svg { width: 18px; height: 18px; fill: currentColor; }
.revenda__whats:hover,
.painel__botao:hover { background: #18295a; }
.painel__botao { width: 100%; margin-top: 8px; }
.painel__botao--contorno { background: transparent; color: var(--marinho); border: 1px solid #c9d3e3; }
.painel__botao--contorno:hover { background: #f4f6f9; }
.painel__mais {
  width: 100%; min-height: 44px; margin-top: 6px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--azul);
  background: #f4f6f9; border: 0; border-radius: 12px; cursor: pointer;
}
.painel__mapa {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 8px;
  font-size: 13px; color: var(--tinta-2); text-decoration: underline; text-underline-offset: 3px;
}

/* Só para leitor de tela */
.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Natal */
.link--natal .link__icone { background: var(--natal-claro); color: var(--natal); }
.link--natal .link__titulo { color: var(--natal); }

/* Rodapé */
.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 20px var(--margem) calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.rodape a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.rodape a:hover { text-decoration: underline; }
.rodape span { display: inline-flex; align-items: center; }

/* Celulares baixos (iPhone SE e parecidos): menos respiro no topo */
@media (max-height: 700px) {
  .topo { padding-top: calc(28px + env(safe-area-inset-top)); padding-bottom: 20px; }
  .topo__logo { width: 104px; margin-bottom: 18px; }
  .topo__texto { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .link, .link__seta--abre { transition: none; }
  .link:hover { transform: none; }
}
