/* Farmabichos, página de links em formato de site.
   Mesma identidade do site (farmabichos-site/assets/css/site.css): laranja #F07C00, grafite
   #191919, creme, fonte Inter, o círculo tracejado com o símbolo e as patinhas. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --laranja: #F07C00;
  --laranja-escuro: #C96500;
  --laranja-claro: #FFE9D3;
  --grafite: #191919;
  --texto: #2B2B2B;
  --texto-suave: #5E5A55;
  --creme: #FFF7EF;
  --branco: #FFFFFF;
  --linha: #EDE3D8;
  --raio: 28px;
  --mola: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--creme);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--grafite); letter-spacing: -0.03em; line-height: 1.05; }
em { font-style: normal; color: var(--laranja); }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 4px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Patinhas grandes ao fundo */
.fundo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fundo__pata { position: absolute; fill: var(--laranja); opacity: .07; }
.fundo__pata--1 { width: 340px; height: 340px; top: -80px; right: -60px; transform: rotate(25deg); }
.fundo__pata--2 { width: 200px; height: 200px; bottom: 8%; left: -50px; transform: rotate(-20deg); }
.fundo__pata--3 { width: 120px; height: 120px; top: 42%; right: 6%; transform: rotate(10deg); opacity: .05; }
.fundo__pata--4 { width: 90px; height: 90px; top: 20%; left: 8%; transform: rotate(-35deg); opacity: .05; }

/* Topo */
.topo {
  width: min(100% - 40px, 1180px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0;
}
.topo__logo { width: 200px; }
.topo__cidades {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600; color: var(--texto-suave);
  background: var(--branco); border: 1px solid var(--linha);
  padding: 8px 16px; border-radius: 999px;
}
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 4px rgb(37 211 102 / 18%); }

.pagina { width: min(100% - 40px, 1180px); margin: 0 auto; padding-bottom: 64px; }

/* Abertura */
.abertura { padding: clamp(20px, 5vw, 56px) 0 clamp(28px, 4vw, 48px); max-width: 820px; }
.selo {
  display: inline-block; font-weight: 650; font-size: .85rem; color: var(--laranja-escuro);
  background: var(--laranja-claro); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.045em; }
.abertura__sub { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--texto-suave); }

/* Mosaico */
.mosaico {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "site site site site site site site hist hist hist hist hist"
    "site site site site site site site vet  vet  vet  vet  vet"
    "loja loja loja loja loja unid unid unid unid unid unid unid";
}
.bloco {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--raio);
  background: var(--branco); color: var(--texto);
  text-decoration: none;
  border: 2px solid var(--grafite);
  transition: transform .35s var(--mola), box-shadow .35s var(--mola);
}
a.bloco:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 44px rgb(25 25 25 / 14%); }
a.bloco:active { transform: translateY(-2px) scale(.99); }
.bloco h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 780; margin-bottom: 8px; }
.bloco p { color: var(--texto-suave); }
.bloco__etiqueta {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 10px;
}
.bloco__icone {
  width: 46px; height: 46px; margin-bottom: auto; padding-bottom: 24px; box-sizing: content-box;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Seta redonda no canto */
.seta-redonda {
  position: absolute; top: 22px; right: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grafite); color: var(--branco);
  transition: transform .35s var(--mola), background .2s;
}
.seta-redonda svg, .bloco__chamada svg, .unidades svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
a.bloco:hover .seta-redonda { transform: rotate(45deg) scale(1.08); background: var(--laranja); }

/* Nosso site */
.bloco--site {
  grid-area: site;
  background: var(--laranja); border-color: var(--laranja); color: var(--branco);
  min-height: 520px; justify-content: space-between; gap: 28px;
  box-shadow: 0 18px 40px rgb(240 124 0 / 28%);
}
.bloco--site h2 { color: var(--branco); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 820; }
.bloco--site p { color: rgb(255 255 255 / 90%); font-size: 1.08rem; max-width: 30em; }
.bloco--site .bloco__etiqueta { color: var(--grafite); }
.bloco__chamada {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--grafite); color: var(--branco);
  font-weight: 700; padding: 14px 22px; border-radius: 999px;
  transition: gap .25s var(--mola);
}
a.bloco--site:hover .bloco__chamada { gap: 16px; }
a.bloco--site:hover { box-shadow: 0 26px 54px rgb(240 124 0 / 38%); }

/* Janela de navegador com o site em miniatura */
.janela {
  background: var(--branco); border-radius: 18px; border: 2px solid var(--grafite);
  overflow: hidden; transform: rotate(2deg) translateY(6px);
  transition: transform .45s var(--mola);
  box-shadow: 0 14px 30px rgb(25 25 25 / 20%);
}
a.bloco--site:hover .janela { transform: rotate(0deg) translateY(-4px); }
.janela__barra {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 2px solid var(--grafite); background: var(--creme);
}
.janela__barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--linha); }
.janela__barra i:first-child { background: var(--laranja); }
.janela__barra span {
  margin-left: 10px; font-size: .75rem; font-weight: 600; color: var(--texto-suave);
  background: var(--branco); border-radius: 999px; padding: 3px 12px;
}
.janela__corpo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; padding: 22px; }
.janela__linhas { display: flex; flex-direction: column; gap: 9px; }
.janela__linhas b { display: block; height: 14px; border-radius: 6px; background: var(--grafite); }
.janela__linhas b:nth-child(2) { width: 80%; }
.janela__linhas b:nth-child(3) { width: 55%; background: var(--laranja); }
.janela__linhas s { display: block; width: 46%; height: 26px; border-radius: 999px; background: var(--laranja-claro); margin-top: 8px; }
.janela__arte { position: relative; aspect-ratio: 1; }
.janela__circulo {
  position: absolute; inset: 10%; border-radius: 50%;
  background: var(--creme); border: 2px solid var(--grafite);
  display: grid; place-items: center;
}
.janela__circulo img { width: 60%; }
.janela__traco { position: absolute; inset: 0; color: var(--laranja); animation: girar 40s linear infinite; }

/* 15 anos */
.bloco--historias {
  grid-area: hist;
  background: var(--grafite); color: var(--branco);
  justify-content: flex-end; min-height: 250px;
}
.bloco--historias h2 { color: var(--branco); }
.bloco--historias p { color: rgb(255 255 255 / 75%); }
.bloco--historias .seta-redonda { background: var(--laranja); }
a.bloco--historias:hover .seta-redonda { background: var(--branco); color: var(--grafite); }
.historias__numero {
  position: absolute; top: 18px; left: 22px; z-index: -1;
  font-size: 11rem; font-weight: 900; line-height: 1; letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 2px var(--laranja);
  transition: transform .5s var(--mola), color .3s;
}
a.bloco--historias:hover .historias__numero { color: var(--laranja); transform: translateY(6px); }

/* Veterinários */
.bloco--vet { grid-area: vet; background: var(--laranja-claro); color: var(--grafite); min-height: 250px; }
.bloco--vet .bloco__etiqueta { color: var(--laranja-escuro); }
.bloco--vet .bloco__icone { color: var(--laranja); }

/* Loja */
.bloco--loja { grid-area: loja; min-height: 300px; justify-content: flex-end; }
.bloco--loja .bloco__icone { position: absolute; top: clamp(26px, 3vw, 38px); left: clamp(26px, 3vw, 38px); width: 60px; height: 60px; padding: 0; }
.bloco--loja p { max-width: 15em; }
.bloco--loja .bloco__icone { color: var(--laranja); }
.loja__patas { position: absolute; right: 30px; bottom: 30px; display: flex; align-items: flex-end; gap: 18px; z-index: -1; }
.loja__patas svg { width: clamp(28px, 4.5vw, 54px); height: clamp(28px, 4.5vw, 54px); fill: var(--laranja-claro); transition: fill .3s, transform .3s var(--mola); }
.loja__patas svg:nth-child(2) { transform: translateY(-40%) rotate(15deg); }
.loja__patas svg:nth-child(3) { transform: translateY(-80%) rotate(25deg); }
a.bloco--loja:hover .loja__patas svg { fill: var(--laranja); }

/* Unidades */
.bloco--unidades { grid-area: unid; background: var(--branco); padding-bottom: 18px; }
.unidades__cabeca { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.unidades__cabeca h2 { margin-bottom: 2px; }
.unidades__whats { flex-shrink: 0; width: 46px; height: 46px; fill: #25D366; }
.unidades { list-style: none; margin: 0; padding: 0; }
.unidades li + li { border-top: 1px dashed var(--linha); }
.unidades a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 10px; margin: 0 -10px; border-radius: 14px;
  text-decoration: none; color: var(--grafite);
  transition: background .2s, padding .25s var(--mola);
}
.unidades strong { flex: 1; font-weight: 700; font-size: 1.05rem; }
.unidades span { font-size: .9rem; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.unidades svg { color: var(--laranja); transition: transform .25s var(--mola); }
.unidades a:hover { background: var(--creme); padding-left: 18px; }
.unidades a:hover svg { transform: rotate(45deg); }

/* Faixa corrida */
.faixa { background: var(--grafite); color: var(--branco); overflow: hidden; padding: 18px 0; }
.faixa__trilho {
  display: flex; width: max-content;
  font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap;
  animation: correr 110s linear infinite;
}
.faixa__trilho svg { width: 22px; height: 22px; fill: var(--laranja); flex-shrink: 0; }
/* Duas metades iguais; cada item leva o próprio espaço à direita, então andar 50% fecha a volta
   sem pulo. Cada metade tem o texto cinco vezes (uns 4.400 px), mais larga que uma tela 4K. */
.faixa__grupo { display: flex; align-items: center; flex-shrink: 0; }
.faixa__grupo > * { margin-right: 28px; }

.rodape { text-align: center; padding: 26px 20px 34px; font-size: .85rem; color: var(--texto-suave); }

/* Entrada: os blocos sobem um depois do outro */
.abertura, .bloco { animation: subir .8s var(--mola) both; }
.bloco--site { animation-delay: .08s; }
.bloco--historias { animation-delay: .16s; }
.bloco--vet { animation-delay: .24s; }
.bloco--loja { animation-delay: .32s; }
.bloco--unidades { animation-delay: .40s; }

@keyframes subir { from { opacity: 0; transform: translateY(28px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes correr { to { transform: translateX(-50%); } }

/* Tablet */
@media (max-width: 980px) {
  .mosaico {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "site site"
      "hist vet"
      "loja loja"
      "unid unid";
  }
  .bloco--site { min-height: 0; }
  .janela { max-width: 520px; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topo { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 6px; }
  .topo__logo { width: 170px; }
  .mosaico {
    gap: 14px;
    grid-template-columns: 1fr;
    grid-template-areas: "site" "hist" "vet" "loja" "unid";
  }
  .bloco--historias, .bloco--vet, .bloco--loja { min-height: 220px; }
  .historias__numero { font-size: 8.5rem; }
  .seta-redonda { width: 42px; height: 42px; top: 18px; right: 18px; }
  .janela__corpo { padding: 16px; }
  .unidades span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.bloco:hover, .janela { transform: none; }
}
