/* =====================================================================
   Tropical Brink Pets — folha de estilos
   Ordem: fontes · tokens · tons · base · peças · topo · hero · faixa ·
          benefícios · rodapé · whatsapp · movimento · telas menores
   ===================================================================== */

/* ---------- Fontes (auto-hospedadas, subconjunto latin) ---------- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
/* Reservas com métricas aproximadas para reduzir o salto de layout */
@font-face {
  font-family: "Fredoka Reserva";
  src: local("Arial Rounded MT Bold"), local("Arial");
  size-adjust: 97%;
  ascent-override: 96%;
  descent-override: 24%;
}
@font-face {
  font-family: "Nunito Reserva";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 100%;
  descent-override: 35%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Tinta e fundos */
  --ink: #2B1B10;
  --ink-2: #4E3B2D;
  --cream: #FFF8EA;
  --cream-2: #FFEFD2;
  --paper: #FFFFFF;

  /* Cores dos produtos: preenchimento · tom escuro (texto) · tinta clara (fundo) */
  --blue: #2D7FE0;   --blue-deep: #1656A8;   --blue-tint: #E4EFFC;
  --yellow: #FFC93C; --yellow-deep: #7A5300; --yellow-tint: #FFF3CF;
  --green: #3DB55B;  --green-deep: #1C7434;  --green-tint: #E1F4E5;
  --red: #EE4135;    --red-deep: #B4241B;    --red-tint: #FDE4E1;
  --brown: #A96C3D;  --brown-deep: #74431F;  --brown-tint: #F4E6D8;
  --orange: #FF8A1F; --orange-deep: #A54A00; --orange-tint: #FFEAD5;
  --white: #FFFFFF;

  --f-display: "Fredoka", "Fredoka Reserva", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-text: "Nunito", "Nunito Reserva", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --round-s: 14px;
  --round-m: 22px;
  --round-l: 34px;
  --round-pill: 999px;

  --edge: 6px solid var(--paper);
  --lift: 0 1px 0 rgb(43 27 16 / .05), 0 14px 26px -12px rgb(43 27 16 / .34);
  --lift-hi: 0 1px 0 rgb(43 27 16 / .05), 0 24px 38px -14px rgb(43 27 16 / .42);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.25, .8, .3, 1);

  --top-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Tons: qualquer elemento com data-tone ganha seu conjunto de cores ----------
   --tone        cor viva (decoração, ícones)
   --tone-deep   texto colorido sobre fundo claro (AA)
   --tone-tint   fundo claro
   --solid/--on  superfície com texto por cima (AA)                                   */
[data-tone="blue"]   { --tone: var(--blue);   --tone-deep: var(--blue-deep);   --tone-tint: var(--blue-tint);   --solid: var(--blue-deep);  --on: var(--white); --icon-on: var(--white); }
[data-tone="yellow"] { --tone: var(--yellow); --tone-deep: var(--yellow-deep); --tone-tint: var(--yellow-tint); --solid: var(--yellow);     --on: var(--ink);   --icon-on: var(--ink); }
[data-tone="green"]  { --tone: var(--green);  --tone-deep: var(--green-deep);  --tone-tint: var(--green-tint);  --solid: var(--green);      --on: var(--ink);   --icon-on: var(--ink); }
[data-tone="red"]    { --tone: var(--red);    --tone-deep: var(--red-deep);    --tone-tint: var(--red-tint);    --solid: var(--red-deep);   --on: var(--white); --icon-on: var(--white); }
[data-tone="brown"]  { --tone: var(--brown);  --tone-deep: var(--brown-deep);  --tone-tint: var(--brown-tint);  --solid: var(--brown-deep); --on: var(--white); --icon-on: var(--white); }
[data-tone="orange"] { --tone: var(--orange); --tone-deep: var(--orange-deep); --tone-tint: var(--orange-tint); --solid: var(--orange);     --on: var(--ink);   --icon-on: var(--ink); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--f-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
p, ul, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 10px;
}

.tb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.tb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tb-wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.tb-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .7em 1.2em;
  border-radius: var(--round-pill);
  background: var(--ink);
  color: var(--cream);
  font: 600 1rem var(--f-display);
  text-decoration: none;
  translate: 0 -160%;
  transition: translate .2s var(--soft);
}
.tb-skip:focus-visible { translate: 0 0; }

.tb-ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb-ico-solid { fill: currentColor; stroke: none; }

/* ---------- Peças: botões ---------- */
:where(.tb-btn) { --solid: var(--yellow); --on: var(--ink); }
.tb-btn {
  --lip: color-mix(in srgb, var(--solid) 62%, var(--ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 54px;
  padding: .8em 1.55em;
  border: 0;
  border-radius: var(--round-pill);
  background: var(--solid);
  color: var(--on);
  font: 600 1.0625rem/1.1 var(--f-display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--lip), 0 14px 22px -12px rgb(43 27 16 / .5);
  transition: translate .18s var(--soft), box-shadow .18s var(--soft);
}
.tb-btn:hover { translate: 0 -2px; box-shadow: 0 7px 0 var(--lip), 0 18px 26px -12px rgb(43 27 16 / .5); }
.tb-btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--lip), 0 6px 12px -8px rgb(43 27 16 / .5); }
.tb-btn .tb-ico { width: 1.2em; height: 1.2em; }

.tb-btn-ghost {
  --solid: var(--paper);
  --on: var(--ink);
  --lip: var(--ink);
  outline: 2.5px solid var(--ink);
  outline-offset: -2.5px;
}
.tb-btn-ghost:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.tb-btn-sm { min-height: 46px; padding: .6em 1.15em; font-size: 1rem; }

/* ---------- Peças: chips ---------- */
.tb-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.tb-chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .45em 1em .45em .75em;
  border: 2px solid var(--tone);
  border-radius: var(--round-pill);
  background: var(--tone-tint);
  color: var(--tone-deep);
  font: 600 .98rem/1.2 var(--f-display);
}

/* ---------- Peças: cabeçalho de seção com rabisco ---------- */
.tb-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.tb-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 700; }
.tb-head h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 14px;
  margin: 14px auto 0;
  background: var(--tone, var(--orange));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 14'%3E%3Cpath d='M3 8c9-7 17-7 26 0s17 7 26 0 17-7 26 0 17 7 26 0 17-7 22-2' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 14'%3E%3Cpath d='M3 8c9-7 17-7 26 0s17 7 26 0 17-7 26 0 17 7 26 0 17-7 22-2' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tb-head p { max-width: 58ch; font-size: 1.125rem; }

/* =====================================================================
   TOPO
   ===================================================================== */
.tb-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.tb-top[data-state="raised"],
.tb-top[data-menu="open"] {
  background: rgb(255 248 234 / .93);
  box-shadow: 0 1px 0 rgb(43 27 16 / .07), 0 12px 26px -20px rgb(43 27 16 / .55);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
          backdrop-filter: saturate(1.5) blur(12px);
}
.tb-top-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

/* Logotipo: selo do beagle + palavra */
.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
.tb-logo-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 6px 14px -6px rgb(43 27 16 / .5);
  transition: rotate .45s var(--spring);
}
.tb-logo:hover .tb-logo-seal { rotate: -14deg; }
.tb-logo-word {
  display: grid;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: .9;
}
.tb-logo-a { color: var(--orange-deep); font-size: 1.06rem; letter-spacing: .02em; }
.tb-logo-b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  font-size: 1.52rem;
}
.tb-logo-b em {
  padding: 3px 7px 4px;
  border-radius: 7px;
  background: var(--brown-deep);
  color: var(--white);
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .04em;
  rotate: -5deg;
}

/* Navegação */
.tb-nav ul {
  display: flex;
  gap: 2px;
  padding: 0;
  list-style: none;
}
.tb-nav a {
  display: block;
  padding: .5em .8em;
  border-radius: var(--round-pill);
  color: var(--ink);
  font: 600 1rem/1.2 var(--f-display);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.tb-nav a:hover { background: var(--tone-tint); color: var(--tone-deep); }
.tb-nav a[aria-current="location"] { background: var(--solid); color: var(--on); }

.tb-burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.tb-burger .tb-ico { grid-area: 1 / 1; width: 22px; height: 22px; transition: scale .25s var(--spring), opacity .2s; }
.tb-burger-close { scale: 0; opacity: 0; }
.tb-top[data-menu="open"] .tb-burger-open { scale: 0; opacity: 0; }
.tb-top[data-menu="open"] .tb-burger-close { scale: 1; opacity: 1; }

/* =====================================================================
   HERO — título central com adesivos de produto flutuando em volta
   ===================================================================== */
.tb-hero {
  position: relative;
  isolation: isolate;
  min-height: min(880px, 100svh);
  padding: calc(var(--top-h) + clamp(48px, 7vw, 96px)) 0 clamp(80px, 9vw, 120px);
  overflow: clip;
}
.tb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.tb-hero-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 720px;
  text-align: center;
}

.tb-stamp {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .45em 1.1em .45em .55em;
  border-radius: var(--round-pill);
  background: var(--paper);
  color: var(--ink);
  font: 600 .98rem/1 var(--f-display);
  box-shadow: var(--lift);
  rotate: -3deg;
}
.tb-flag { width: 28px; height: 20px; }

.tb-hero h1 {
  font-size: clamp(2.4rem, 1.35rem + 4.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.012em;
}
.tb-mark {
  padding-inline: .08em;
  background: linear-gradient(transparent 58%, var(--yellow) 58% 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.tb-hero-sub {
  max-width: 54ch;
  font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem);
}

.tb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
  margin-top: 4px;
}

/* Adesivos de produto */
.tb-hero-toys {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.tb-toy {
  position: absolute;
  left: var(--x, auto);
  right: var(--xr, auto);
  top: var(--y);
  width: var(--w);
  pointer-events: auto;
  rotate: var(--tilt);
  transition: rotate .5s var(--spring);
}
.tb-toy img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  border: var(--edge);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--lift-hi);
}
.tb-toy[data-shape="soft"] img { border-radius: 30% 38% 34% 40% / 38% 30% 40% 34%; }
.tb-toy:hover { rotate: calc(var(--tilt) * -1); }

.tb-toy-tag {
  position: absolute;
  left: 50%;
  bottom: -10px;
  translate: -50% 0;
  padding: .35em .85em;
  border: 3px solid var(--paper);
  border-radius: var(--round-pill);
  background: var(--solid);
  color: var(--on);
  font: 600 .86rem/1.1 var(--f-display);
  white-space: nowrap;
  box-shadow: 0 6px 12px -6px rgb(43 27 16 / .5);
}

/* =====================================================================
   FAIXA DE CHIPS (marquee inclinado)
   ===================================================================== */
.tb-ribbon {
  position: relative;
  z-index: 3;
  width: calc(100% + 60px);
  margin: -34px -30px 0;
  padding: 16px 0;
  overflow: hidden;
  background: var(--ink);
  rotate: -2deg;
  box-shadow: 0 16px 30px -18px rgb(43 27 16 / .6);
}
.tb-ribbon-track {
  display: flex;
  width: max-content;
}
.tb-ribbon-list {
  display: flex;
  gap: 14px;
  padding: 0 14px 0 0;
  list-style: none;
}
.tb-ribbon-list li {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1.15em .5em .8em;
  border-radius: var(--round-pill);
  background: var(--solid);
  color: var(--on);
  font: 600 1.05rem/1.1 var(--f-display);
  white-space: nowrap;
}
.tb-ribbon-list svg { width: 1.15em; height: 1.15em; fill: currentColor; rotate: 18deg; }

/* =====================================================================
   BENEFÍCIOS — adesivos sobrepostos e inclinados
   ===================================================================== */
.tb-perks {
  position: relative;
  padding: clamp(96px, 11vw, 150px) 0 clamp(80px, 10vw, 130px);
}

.tb-perk-row {
  display: flex;
  justify-content: center;
  padding: 34px 0 0;
  list-style: none;
}
.tb-perk {
  --tilt: 0deg;
  position: relative;
  flex: 1 1 0;
  max-width: 300px;
  padding: 58px 26px 32px;
  border: var(--edge);
  border-radius: var(--round-l);
  background: var(--tone-tint);
  box-shadow: var(--lift);
  rotate: var(--tilt);
  translate: 0 var(--drop, 0);
  transition: translate .35s var(--spring), box-shadow .35s ease;
}
.tb-perk + .tb-perk { margin-left: -16px; }
.tb-perk:nth-child(1) { --tilt: -3.5deg; z-index: 1; }
.tb-perk:nth-child(2) { --tilt: 2.5deg; --drop: 26px; z-index: 2; }
.tb-perk:nth-child(3) { --tilt: -2deg; z-index: 1; }
.tb-perk:nth-child(4) { --tilt: 3.5deg; --drop: 20px; z-index: 2; }
.tb-perk:hover {
  z-index: 4;
  translate: 0 calc(var(--drop, 0px) - 10px);
  box-shadow: var(--lift-hi);
  animation: tb-wiggle .6s ease-in-out;
}

.tb-perk-ico {
  position: absolute;
  top: -34px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--tone);
  color: var(--icon-on);
  box-shadow: 0 8px 16px -8px rgb(43 27 16 / .5);
  rotate: calc(var(--tilt) * -2);
}
.tb-perk-ico .tb-ico { width: 32px; height: 32px; stroke-width: 2.1; }
.tb-perk h3 {
  margin-bottom: 10px;
  color: var(--tone-deep);
  font-size: 1.45rem;
  font-weight: 700;
}
.tb-perk p { font-size: 1.03rem; }

/* Trilha de patinhas decorativa */
.tb-pawtrail {
  position: absolute;
  z-index: -1;
  display: flex;
  gap: 30px;
  pointer-events: none;
}
.tb-pawtrail svg {
  width: 28px;
  height: 28px;
  fill: var(--brown);
  opacity: .22;
  rotate: 90deg;
}
.tb-pawtrail svg:nth-child(odd) { translate: 0 18px; }
.tb-perks .tb-pawtrail { top: 40px; left: 4%; rotate: 8deg; }

/* =====================================================================
   PRODUTOS — faixa branca com bordas onduladas e cards "foto colada"
   ===================================================================== */
.tb-products {
  position: relative;
  margin-block: 40px;
  padding: clamp(80px, 9vw, 120px) 0 clamp(90px, 10vw, 130px);
  background: var(--paper);
}
.tb-products::before,
.tb-products::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C120 6 240 2 360 14s240 26 360 18 240-30 360-28 240 18 360 14V40Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.tb-products::before { top: -39px; }
.tb-products::after { bottom: -39px; rotate: 180deg; }
.tb-products .tb-pawtrail { top: 70px; right: 5%; rotate: -14deg; z-index: 0; }

.tb-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 26px;
  padding: 0;
  list-style: none;
}

.tb-prod {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 22px;
  border-radius: var(--round-l);
  background: var(--tone-tint);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 28%, transparent);
  transition: translate .35s var(--spring), box-shadow .35s ease;
}
.tb-prod-pic {
  rotate: -1.4deg;
  transition: rotate .45s var(--spring);
}
.tb-prod:nth-child(even) .tb-prod-pic { rotate: 1.4deg; }
.tb-prod-pic img {
  width: 100%;
  aspect-ratio: 760 / 336;
  object-fit: cover;
  object-position: var(--focus, 50%) 50%;
  border: 5px solid var(--paper);
  border-radius: var(--round-m);
  background: var(--paper);
  box-shadow: var(--lift);
  transition: scale .45s var(--spring);
}
.tb-prod-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 10px 0;
}
.tb-prod-tag {
  --tilt: 0deg;
  padding: .25em .75em;
  border-radius: var(--round-pill);
  background: var(--solid);
  color: var(--on);
  font: 600 .78rem/1.3 var(--f-display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tb-prod h3 { font-size: 1.4rem; font-weight: 700; }
.tb-prod .tb-btn { margin-top: auto; }
.tb-prod h3 { margin-bottom: 12px; }

.tb-prod:hover { translate: 0 -6px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 45%, transparent), var(--lift-hi); }
.tb-prod:hover .tb-prod-pic { rotate: 0deg; }
.tb-prod:hover .tb-prod-pic img { scale: 1.03; }
.tb-prod:hover .tb-prod-tag { animation: tb-wiggle .5s ease-in-out; }

/* Card que sobraria sozinho na última linha vira destaque horizontal */
@media (min-width: 961px) {
  .tb-prod:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    padding: 14px 40px 14px 14px;
  }
  .tb-prod:last-child:nth-child(3n + 1) .tb-prod-pic { flex: 0 0 56%; }
  .tb-prod:last-child:nth-child(3n + 1) .tb-prod-body { flex: 1; justify-content: center; padding: 0; }
  .tb-prod:last-child:nth-child(3n + 1) h3 { font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.4rem); }
  .tb-prod:last-child:nth-child(3n + 1) .tb-btn { margin-top: 4px; }
}

/* Faixa de revenda */
.tb-resale {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(60px, 7vw, 90px);
  padding: 26px 36px 26px 26px;
  border: var(--edge);
  border-radius: var(--round-l);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%232B1B10' fill-opacity='.07'%3E%3Cellipse cx='30' cy='38' rx='9' ry='7.6'/%3E%3Cellipse cx='19' cy='28' rx='3.6' ry='4.4'/%3E%3Cellipse cx='26' cy='21' rx='3.6' ry='4.6'/%3E%3Cellipse cx='34' cy='21' rx='3.6' ry='4.6'/%3E%3Cellipse cx='41' cy='28' rx='3.6' ry='4.4'/%3E%3Cellipse cx='90' cy='98' rx='9' ry='7.6'/%3E%3Cellipse cx='79' cy='88' rx='3.6' ry='4.4'/%3E%3Cellipse cx='86' cy='81' rx='3.6' ry='4.6'/%3E%3Cellipse cx='94' cy='81' rx='3.6' ry='4.6'/%3E%3Cellipse cx='101' cy='88' rx='3.6' ry='4.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
    var(--yellow);
  color: var(--ink);
  box-shadow: var(--lift-hi);
  rotate: -1deg;
}
.tb-resale-seal {
  width: 112px;
  height: 112px;
  flex: none;
  border: 5px solid var(--paper);
  border-radius: 50%;
  box-shadow: var(--lift);
  rotate: -8deg;
}
.tb-resale-text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.tb-resale h3 { font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 700; }
.tb-resale p { max-width: 52ch; color: var(--ink-2); font-size: 1.08rem; }
.tb-resale .tb-btn { flex: none; }

/* =====================================================================
   GALERIA — mosaico (bento) + visualizador
   ===================================================================== */
.tb-gallery { padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 10vw, 120px); }

.tb-bento {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.tb-shot { position: relative; min-height: 0; }
.tb-shot[data-shape="tall"] { grid-row: span 4; aspect-ratio: 336 / 760; }
.tb-shot[data-shape="wide"] { grid-column: span 2; grid-row: span 2; }
.tb-shot:nth-child(odd) { rotate: -1deg; }
.tb-shot:nth-child(even) { rotate: 1deg; }

.tb-shot a {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: var(--round-m);
  background: var(--paper);
  box-shadow: var(--lift);
  transition: rotate .45s var(--spring), box-shadow .3s ease;
}
.tb-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .6s var(--spring);
}
/* selo de lupa que aparece no hover/foco */
.tb-shot a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1B10' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat,
    var(--yellow);
  box-shadow: 0 6px 12px -6px rgb(43 27 16 / .6);
  scale: 0;
  transition: scale .35s var(--spring);
}
.tb-shot:has(a:hover, a:focus-visible) { rotate: 0deg; }
.tb-shot a:hover,
.tb-shot a:focus-visible { box-shadow: var(--lift-hi); }
.tb-shot a:hover img,
.tb-shot a:focus-visible img { scale: 1.06; }
.tb-shot a:hover::after,
.tb-shot a:focus-visible::after { scale: 1; }
.tb-shot a:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

/* Visualizador (dialog nativo: foco preso, Esc fecha) */
.tb-viewer {
  width: min(100% - 32px, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.tb-viewer::backdrop {
  background: rgb(43 27 16 / .88);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.tb-viewer-frame {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
}
.tb-viewer[open] .tb-viewer-frame { animation: tb-drop .45s var(--spring) both; }
.tb-viewer-frame img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 170px);
  border: 6px solid var(--paper);
  border-radius: var(--round-m);
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}
.tb-viewer-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  max-width: 60ch;
  font: 500 1.05rem/1.4 var(--f-display);
  text-align: center;
}
.tb-viewer-count { color: var(--yellow); font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-viewer-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: scale .25s var(--spring), background-color .2s ease;
}
.tb-viewer-btn:hover { scale: 1.08; background: var(--brown-deep); }
.tb-viewer-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.tb-viewer-btn .tb-ico { width: 26px; height: 26px; stroke-width: 2.6; }
.tb-viewer-prev { left: max(16px, env(safe-area-inset-left)); top: 50%; translate: 0 -50%; }
.tb-viewer-next { right: max(16px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; }
.tb-viewer-close { right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); background: var(--red-deep); }

/* =====================================================================
   SERVIÇOS INDUSTRIAIS — mesma marca, tom mais sóbrio (quadriculado técnico)
   ===================================================================== */
.tb-works {
  padding: clamp(90px, 10vw, 130px) 0;
  border-block: 1.5px solid rgb(43 27 16 / .08);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(116 67 31 / .055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(116 67 31 / .055) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}
.tb-works-head {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin-bottom: clamp(56px, 6vw, 76px);
}
.tb-works-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  justify-self: start;
  padding: .5em .9em;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 800 .8rem/1 var(--f-text);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tb-works-kicker .tb-ico { width: 1.15em; height: 1.15em; }
.tb-works h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); font-weight: 600; letter-spacing: -.015em; }
.tb-works-head > p:last-child { max-width: 64ch; font-size: 1.125rem; }

.tb-works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.tb-work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgb(43 27 16 / .14);
  border-top: 6px solid var(--tone);
  border-radius: var(--round-m);
  background: var(--paper);
  box-shadow: 0 18px 34px -26px rgb(43 27 16 / .5);
  transition: translate .3s var(--soft), box-shadow .3s ease;
}
.tb-work:hover { translate: 0 -4px; box-shadow: 0 26px 40px -24px rgb(43 27 16 / .5); }
.tb-work-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
}
.tb-work-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid var(--paper);
  border-radius: 16px;
  background: var(--solid);
  color: var(--on);
  box-shadow: 0 10px 18px -10px rgb(43 27 16 / .6);
}
.tb-work-badge .tb-ico { width: 30px; height: 30px; stroke-width: 2; }
.tb-work h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15em .6em;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tb-work h3 small {
  color: var(--ink-2);
  font: 700 .9rem var(--f-text);
  letter-spacing: 0;
  text-transform: none;
}
.tb-work-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.tb-work-points li {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .38em .8em;
  border-radius: 8px;
  background: var(--tone-tint);
  color: var(--tone-deep);
  font: 700 .92rem/1.2 var(--f-text);
}
.tb-work-points .tb-ico { width: 1.05em; height: 1.05em; stroke-width: 3; }
.tb-work-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35em;
  margin-top: auto;
  padding-top: 8px;
  color: var(--tone-deep);
  font: 600 1.05rem var(--f-display);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.tb-work-link .tb-ico { transition: translate .25s var(--spring); }
.tb-work-link:hover .tb-ico { translate: 4px 0; }

.tb-works-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 36px;
  padding: 26px 30px;
  border: 2px dashed rgb(43 27 16 / .25);
  border-radius: var(--round-m);
  background: var(--cream);
}
.tb-works-cta > div { display: grid; flex: 1 1 360px; gap: 4px; min-width: 0; }
.tb-works-cta h3 { font-size: 1.4rem; font-weight: 600; }

/* =====================================================================
   QUEM SOMOS
   ===================================================================== */
.tb-about { padding: clamp(100px, 11vw, 150px) 0 clamp(80px, 9vw, 120px); }
.tb-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}
.tb-about-mascot {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 500px;
  margin: 0;
  rotate: -3deg;
}
.tb-about-mascot::before {
  content: "";
  position: absolute;
  inset: -9% -8%;
  z-index: -1;
  border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
  background: var(--orange-tint);
}
.tb-about-mascot img {
  width: 100%;
  border: 8px solid var(--paper);
  border-radius: var(--round-l);
  box-shadow: var(--lift-hi);
}
.tb-about-mascot figcaption {
  position: absolute;
  right: 18px;
  bottom: -18px;
  padding: .45em 1.05em;
  border-radius: var(--round-pill);
  background: var(--ink);
  color: var(--cream);
  font: 600 .92rem/1.2 var(--f-display);
  rotate: 4deg;
}
.tb-about-text { display: grid; gap: 22px; min-width: 0; }
.tb-about h2 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem); font-weight: 700; }
.tb-about-text > p { font-size: 1.1rem; }
.tb-mission {
  position: relative;
  margin: 0;
  padding: 22px 26px;
  border: 3px solid var(--tone);
  border-radius: var(--round-m);
  background: var(--tone-tint);
}
/* rabinho de balão de fala */
.tb-mission::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -14px;
  width: 24px;
  height: 24px;
  border-right: 3px solid var(--tone);
  border-bottom: 3px solid var(--tone);
  background: var(--tone-tint);
  rotate: 45deg;
  border-bottom-right-radius: 6px;
}
.tb-mission p {
  display: grid;
  gap: 6px;
  color: var(--tone-deep);
  font: 600 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.25 var(--f-display);
}
.tb-mission span {
  color: var(--ink-2);
  font: 800 .78rem/1 var(--f-text);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tb-about-chips { justify-content: flex-start; margin-top: 8px; }

/* =====================================================================
   COMO COMPRAR — trilha horizontal com patinhas
   ===================================================================== */
.tb-howto {
  position: relative;
  margin-block: 40px;
  padding: clamp(80px, 9vw, 120px) 0 clamp(90px, 10vw, 130px);
  background: var(--yellow-tint);
}
.tb-howto::before,
.tb-howto::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V18C160 2 300 4 460 16s300 22 480 12 320-26 500-18V40Z' fill='%23FFF3CF'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.tb-howto::before { top: -39px; }
.tb-howto::after { bottom: -39px; rotate: 180deg; }

.tb-howto-track { position: relative; }
.tb-howto-paws {
  top: 46px;
  left: 18%;
  right: 18%;
  z-index: 0;
  justify-content: space-between;
}
.tb-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
}
.tb-step {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.tb-step-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-bottom: 6px;
  border: 7px solid var(--paper);
  border-radius: 50%;
  background: var(--tone);
  color: var(--icon-on);
  box-shadow: var(--lift-hi);
  transition: rotate .45s var(--spring);
}
.tb-step:hover .tb-step-dot { rotate: -10deg; }
.tb-step-dot .tb-ico { width: 46px; height: 46px; stroke-width: 2; }
.tb-step-dot b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font: 700 1.25rem/1 var(--f-display);
}
.tb-step h3 { max-width: 17ch; font-size: 1.4rem; font-weight: 700; }
.tb-step p { max-width: 30ch; }

.tb-howto-end {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 68px);
  text-align: center;
}
.tb-howto-end p a { color: var(--blue-deep); font-weight: 800; text-underline-offset: 3px; }

/* =====================================================================
   PERGUNTAS FREQUENTES — formato de conversa (pergunta em balão, beagle responde)
   ===================================================================== */
.tb-faq { padding: clamp(100px, 11vw, 150px) 0 clamp(80px, 9vw, 120px); }
.tb-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}
.tb-faq-head {
  position: sticky;
  top: calc(var(--top-h) + 32px);
  display: grid;
  justify-items: start;
  gap: 18px;
}
.tb-faq-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 700; }
.tb-faq-head p { max-width: 40ch; font-size: 1.1rem; }

.tb-faq-list { display: grid; gap: 14px; }
.tb-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 2px solid color-mix(in srgb, var(--tone) 38%, transparent);
  border-radius: 26px 26px 26px 6px;
  background: var(--tone-tint);
  color: var(--ink);
  font: 600 1.15rem/1.3 var(--f-display);
  list-style: none;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, translate .3s var(--spring);
}
.tb-qa summary::-webkit-details-marker { display: none; }
.tb-qa summary:hover { border-color: var(--tone); translate: 4px 0; }
.tb-qa summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.tb-qa-paw {
  width: 26px;
  height: 26px;
  flex: none;
  fill: var(--tone-deep);
  rotate: -20deg;
  transition: rotate .45s var(--spring), scale .45s var(--spring);
}
.tb-qa[open] summary { border-color: var(--solid); background: var(--solid); color: var(--on); }
.tb-qa[open] .tb-qa-paw { fill: currentColor; rotate: 160deg; scale: 1.15; }

.tb-qa-answer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 0 8px 48px;
}
.tb-qa-answer img {
  order: 2;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 6px 12px -6px rgb(43 27 16 / .5);
}
.tb-qa-answer p {
  max-width: 52ch;
  padding: 14px 18px;
  border-radius: 22px 22px 6px 22px;
  background: var(--paper);
  box-shadow: var(--lift);
}
.tb-qa[open] .tb-qa-answer { animation: tb-drop .45s var(--spring) both; transform-origin: right bottom; }

/* =====================================================================
   ONDE ESTAMOS
   ===================================================================== */
.tb-visit { padding: clamp(70px, 8vw, 110px) 0; }
.tb-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 28px;
}
.tb-visit-card {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 32px;
  border: var(--edge);
  border-radius: var(--round-l);
  background: var(--paper);
  box-shadow: var(--lift);
}
.tb-visit-row { display: flex; align-items: flex-start; gap: 16px; }
.tb-visit-row > div { min-width: 0; }
.tb-visit-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--tone-tint);
  color: var(--tone-deep);
}
.tb-visit h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: 1.2rem;
}
.tb-hours div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tb-hours dt { font-weight: 700; color: var(--ink); }
.tb-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.tb-closed-tag {
  display: inline-block;
  margin-top: 10px;
  padding: .35em .9em;
  border-radius: var(--round-pill);
  background: var(--red-deep);
  color: var(--white);
  font: 600 .95rem/1.2 var(--f-display);
  rotate: -2deg;
}
.tb-now {
  padding: .25em .75em;
  border-radius: var(--round-pill);
  background: var(--red-tint);
  color: var(--red-deep);
  font: 800 .76rem/1.2 var(--f-text);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tb-now[data-open="yes"] { background: var(--green-tint); color: var(--green-deep); }
.tb-visit-insta { color: var(--orange-deep); font-weight: 800; text-underline-offset: 3px; }
.tb-visit-card .tb-btn { justify-self: start; }

.tb-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--round-l);
  background: var(--green-tint);
  box-shadow: var(--lift);
}
.tb-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-map-pin {
  position: absolute;
  left: calc(50% - 32px);
  top: calc(42% - 66px);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid var(--paper);
  border-radius: 50% 50% 50% 0;
  background: var(--red-deep);
  color: var(--white);
  box-shadow: 0 12px 20px -10px rgb(43 27 16 / .6);
  rotate: -45deg;
  animation: tb-hop 4s ease-in-out 1s infinite;
}
.tb-map-pin svg { width: 30px; height: 30px; fill: currentColor; rotate: 45deg; }
.tb-map-actions {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 40px 18px 20px;
  background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / .94) 45%);
  font-size: .92rem;
  text-align: center;
}
.tb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =====================================================================
   CONTATO — painel verde com formulário que monta a mensagem do WhatsApp
   ===================================================================== */
.tb-contact { padding: clamp(50px, 7vw, 90px) 0 clamp(100px, 11vw, 140px); }
.tb-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--round-l);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23FFFFFF' fill-opacity='.06'%3E%3Cellipse cx='30' cy='38' rx='9' ry='7.6'/%3E%3Cellipse cx='19' cy='28' rx='3.6' ry='4.4'/%3E%3Cellipse cx='26' cy='21' rx='3.6' ry='4.6'/%3E%3Cellipse cx='34' cy='21' rx='3.6' ry='4.6'/%3E%3Cellipse cx='41' cy='28' rx='3.6' ry='4.4'/%3E%3Cellipse cx='90' cy='98' rx='9' ry='7.6'/%3E%3Cellipse cx='79' cy='88' rx='3.6' ry='4.4'/%3E%3Cellipse cx='86' cy='81' rx='3.6' ry='4.6'/%3E%3Cellipse cx='94' cy='81' rx='3.6' ry='4.6'/%3E%3Cellipse cx='101' cy='88' rx='3.6' ry='4.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
    var(--green-deep);
  color: #EAF6EC;
  box-shadow: var(--lift-hi);
}
.tb-contact-panel :focus-visible { outline-color: var(--yellow); }
.tb-contact-intro { display: grid; align-content: start; gap: 18px; min-width: 0; }
.tb-contact-seal {
  width: 88px;
  height: 88px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  rotate: -8deg;
}
.tb-contact h2 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 700; }
.tb-contact-intro p { font-size: 1.1rem; }
.tb-contact-direct { display: grid; gap: 10px; margin-top: 6px; padding: 0; list-style: none; }
.tb-contact-direct li { display: flex; align-items: center; gap: 10px; }
.tb-contact-direct a { color: var(--white); font: 600 1.15rem var(--f-display); text-underline-offset: 4px; }

.tb-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--round-m);
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / .5);
}
.tb-form :focus-visible { outline-color: var(--blue-deep); }
.tb-form[data-state="shake"] { animation: tb-shake .45s ease; }
.tb-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.tb-field-wide { grid-column: 1 / -1; }
.tb-field label { color: var(--ink); font: 600 1rem/1.2 var(--f-display); }
.tb-field label span { color: var(--ink-2); font: 500 .9rem var(--f-text); }
.tb-field input,
.tb-field select,
.tb-field textarea {
  width: 100%;
  min-height: 50px;
  padding: .7em .95em;
  border: 2px solid rgb(43 27 16 / .2);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 500 1rem/1.4 var(--f-text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tb-field textarea { min-height: 120px; resize: vertical; }
.tb-field select {
  appearance: none;
  padding-right: 2.6em;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1B10' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") right .9em center / 18px no-repeat,
    var(--cream);
  cursor: pointer;
}
.tb-field ::placeholder { color: #7A685A; opacity: 1; }
.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  background-color: var(--paper);
  box-shadow: 0 0 0 4px rgb(61 181 91 / .3);
}
.tb-field [aria-invalid="true"] { border-color: var(--red-deep); background-color: var(--red-tint); }
.tb-field [aria-invalid="true"]:focus { border-color: var(--red-deep); box-shadow: 0 0 0 4px rgb(180 36 27 / .22); }
.tb-field-error { color: var(--red-deep); font-size: .92rem; font-weight: 700; }
.tb-form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.tb-form-end p { flex: 1 1 200px; font-size: .94rem; }

@keyframes tb-shake {
  20%, 60% { translate: -6px 0; }
  40%, 80% { translate: 6px 0; }
}

/* =====================================================================
   PÁGINA DA POLÍTICA DE PRIVACIDADE
   ===================================================================== */
.tb-legal-top { height: var(--top-h); border-bottom: 1.5px dashed rgb(43 27 16 / .15); }
.tb-legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 110px); }
.tb-legal .tb-wrap { max-width: 760px; }
.tb-legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 700; }
.tb-legal h2 { margin: 2.2em 0 .6em; font-size: 1.45rem; color: var(--green-deep); }
.tb-legal p + p, .tb-legal ul + p { margin-top: 1em; }
.tb-legal ul { margin-top: .8em; padding-left: 1.3em; }
.tb-legal li + li { margin-top: .35em; }
.tb-legal a { color: var(--blue-deep); text-underline-offset: 3px; }
.tb-legal-date { margin: 10px 0 28px; color: var(--brown-deep); font: 600 1rem var(--f-display); }
.tb-foot:has(> .tb-foot-base:only-child) { padding-top: 34px; }
.tb-foot:has(> .tb-foot-base:only-child) .tb-foot-base { margin-top: 0; padding-top: 0; border: 0; }

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.tb-foot {
  position: relative;
  margin-top: 40px;
  padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #E9DCCB;
}
/* borda em ondinhas (scallop) */
.tb-foot::before {
  content: "";
  position: absolute;
  inset: -22px 0 auto;
  height: 24px;
  background: radial-gradient(circle at 22px 24px, var(--ink) 21.5px, transparent 22.5px) 0 0 / 44px 24px repeat-x;
}
.tb-foot :focus-visible { outline-color: var(--yellow); }

.tb-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
}
.tb-logo-dark .tb-logo-a { color: var(--orange); }
.tb-logo-dark .tb-logo-b { color: var(--green); }
.tb-logo-dark .tb-logo-b em { background: var(--brown); color: var(--ink); }
.tb-foot-slogan {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--cream);
  font: 500 1.15rem/1.35 var(--f-display);
}

.tb-foot-title {
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 1.15rem;
  font-weight: 600;
}
.tb-foot-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.tb-foot a { text-decoration: none; transition: color .2s ease; }
.tb-foot a:hover { color: var(--yellow); }
.tb-foot-link { display: inline-flex; align-items: center; gap: .55em; }
.tb-foot-hours { margin-top: 12px; }
.tb-foot-hours strong { color: var(--orange); font-weight: 700; }

.tb-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1.5px dashed rgb(233 220 203 / .25);
  font-size: .94rem;
}
.tb-foot-base a { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   WHATSAPP FLUTUANTE
   ===================================================================== */
.tb-zap {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  box-shadow: 0 14px 26px -10px rgb(28 116 52 / .7);
  animation: tb-hop 7s ease-in-out 3s infinite;
  transition: scale .25s var(--spring);
}
.tb-zap > svg { width: 30px; height: 30px; }
.tb-zap:hover { scale: 1.08; }
.tb-zap-paw {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
}
.tb-zap-paw svg { width: 14px; height: 14px; fill: currentColor; }

/* =====================================================================
   MOVIMENTO
   ===================================================================== */
@keyframes tb-drop {
  from { opacity: 0; scale: .4; }
  70% { opacity: 1; scale: 1.06; }
  to { opacity: 1; scale: 1; }
}
@keyframes tb-bob {
  from { translate: 0 0; }
  to { translate: 0 -14px; }
}
@keyframes tb-wiggle {
  0%, 100% { rotate: var(--tilt); }
  25% { rotate: calc(var(--tilt) - 4deg); }
  50% { rotate: calc(var(--tilt) + 3deg); }
  75% { rotate: calc(var(--tilt) - 1.5deg); }
}
@keyframes tb-slide { to { translate: -50% 0; } }
@keyframes tb-hop {
  0%, 86%, 100% { translate: 0 0; }
  90% { translate: 0 -12px; }
  94% { translate: 0 0; }
  97% { translate: 0 -5px; }
}

/* Adesivos do hero: caem na tela e depois flutuam */
.tb-toy {
  animation:
    tb-drop .8s var(--spring) var(--delay) both,
    tb-bob var(--float) ease-in-out calc(var(--delay) + .8s) infinite alternate;
}

.tb-ribbon-track { animation: tb-slide 40s linear infinite; }
.tb-ribbon:hover .tb-ribbon-track { animation-play-state: paused; }

/* "Pop" ao rolar — só quando o JavaScript está ativo */
[data-script] [data-pop] {
  opacity: 0;
  scale: .72;
  transition:
    opacity .45s ease calc(var(--n, 0) * 110ms),
    scale .75s var(--spring) calc(var(--n, 0) * 110ms),
    translate .35s var(--spring),
    rotate .45s var(--spring),
    box-shadow .35s ease;
}
[data-script] [data-pop][data-state="in"] { opacity: 1; scale: 1; }

/* Patinhas que surgem em sequência */
[data-script] [data-paws] svg {
  opacity: 0;
  scale: .3;
  transition: opacity .3s ease calc(var(--n, 0) * 170ms), scale .5s var(--spring) calc(var(--n, 0) * 170ms);
}
[data-script] [data-paws][data-state="in"] svg { opacity: .22; scale: 1; }

/* =====================================================================
   TELAS MENORES
   ===================================================================== */
@media (max-width: 1240px) {
  .tb-hero-core { max-width: 620px; }
  .tb-toy { width: calc(var(--w) * .72); }
  .tb-toy-mini { display: none; }
}

@media (max-width: 1100px) {
  .tb-burger { display: grid; }
  .tb-top-bar { gap: 12px; }

  .tb-nav {
    position: fixed;
    top: calc(var(--top-h) - 2px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 14px;
    border: var(--edge);
    border-radius: var(--round-l);
    background: var(--cream);
    box-shadow: var(--lift-hi);
    visibility: hidden;
    opacity: 0;
    translate: 0 -14px;
    scale: .97;
    transform-origin: top right;
    transition: opacity .25s ease, translate .35s var(--spring), scale .35s var(--spring), visibility 0s linear .35s;
  }
  .tb-top[data-menu="open"] .tb-nav {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity .25s ease, translate .35s var(--spring), scale .35s var(--spring), visibility 0s;
  }
  .tb-nav ul { flex-direction: column; gap: 6px; }
  .tb-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .75em 1em;
    font-size: 1.15rem;
    background: var(--paper);
  }
  .tb-nav a::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tone);
  }
}

@media (max-width: 1024px) {
  .tb-hero { min-height: 0; }
  .tb-hero-toys {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 18px;
    margin-top: 56px;
    padding-inline: var(--gutter);
  }
  .tb-toy { position: relative; inset: auto; width: 150px; }
  .tb-toy-mini { display: none; }
}

@media (max-width: 960px) {
  .tb-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .tb-prod:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .tb-works-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .tb-works-cta { max-width: 640px; margin-inline: auto; }

  .tb-about-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-about-mascot { max-width: 440px; }

  .tb-steps { grid-template-columns: minmax(0, 1fr); gap: 44px; }

  .tb-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-faq-head { position: static; }

  .tb-visit-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-contact-panel { grid-template-columns: minmax(0, 1fr); }
  .tb-howto-paws { display: none; }

  .tb-resale { flex-wrap: wrap; justify-content: center; text-align: center; padding: 28px 24px; }
  .tb-resale-text { flex-basis: 100%; justify-items: center; }


  .tb-perk-row { flex-wrap: wrap; gap: 54px 22px; }
  .tb-perk { flex: 1 1 calc(50% - 22px); max-width: 360px; }
  .tb-perk + .tb-perk { margin-left: 0; }
  .tb-perk:nth-child(n) { --drop: 0px; }

  .tb-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --top-h: 68px; }
  .tb-logo-seal { width: 46px; height: 46px; }
  .tb-logo-a { font-size: .95rem; }
  .tb-logo-b { font-size: 1.32rem; }
  .tb-hide-sm { display: none; }

  .tb-hero-ctas { flex-direction: column; align-self: stretch; }
  .tb-hero-ctas .tb-btn { width: 100%; }
  .tb-toy { width: 128px; }
  .tb-toy:nth-child(n+4) { display: none; }
  .tb-toy-tag { font-size: .78rem; }

  .tb-perk { flex-basis: 100%; }
  .tb-perk:nth-child(n) { --tilt: 0deg; }
  .tb-perk:nth-child(odd) { --tilt: -1.5deg; }
  .tb-perk:nth-child(even) { --tilt: 1.5deg; }

  .tb-prod-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-prod:last-child:nth-child(odd) { grid-column: auto; }
  .tb-resale { rotate: 0deg; }
  .tb-work-body { padding: 24px 22px; }
  .tb-works-cta { padding: 22px 20px; }
  .tb-works-cta .tb-btn { width: 100%; }
  .tb-form { grid-template-columns: minmax(0, 1fr); }
  .tb-form-end .tb-btn { width: 100%; }
  .tb-visit-card { padding: 24px 20px; }
  .tb-qa summary { font-size: 1.05rem; padding: 16px 18px; }
  .tb-qa-answer { padding-left: 16px; }
  .tb-about-mascot figcaption { right: 50%; translate: 50% 0; white-space: nowrap; font-size: .85rem; }
  .tb-resale .tb-btn { width: 100%; }

  .tb-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tb-shot[data-shape="tall"] { grid-row: auto; aspect-ratio: 3 / 5; }
  .tb-shot[data-shape="wide"] { grid-row: auto; aspect-ratio: 16 / 9; }
  .tb-shot[data-mobile="wide"] { grid-column: span 2; aspect-ratio: 4 / 3; }
  .tb-shot[data-mobile="wide"] img { object-position: 50% 72%; }
  .tb-viewer-prev, .tb-viewer-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); translate: 0 0; }
  .tb-viewer-frame img { max-height: calc(100svh - 230px); }

  .tb-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .tb-foot-brand, .tb-foot-grid > :nth-child(3) { grid-column: 1 / -1; }
  .tb-foot-grid > :nth-child(3) { order: 5; }
  .tb-zap { width: 58px; height: 58px; }
  .tb-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .tb-top-bar { gap: 8px; }
  .tb-top .tb-logo { gap: 7px; }
  .tb-top .tb-logo-seal { width: 42px; height: 42px; }
  .tb-top .tb-logo-a { font-size: .86rem; }
  .tb-top .tb-logo-b { font-size: 1.18rem; gap: 4px; }
  .tb-top .tb-logo-b em { font-size: .62rem; padding: 2px 5px 3px; }
  .tb-top .tb-btn-sm { min-height: 42px; padding: .5em .85em; font-size: .92rem; gap: .4em; }
  .tb-burger { width: 44px; height: 44px; }
}

@media (max-width: 350px) {
  .tb-top .tb-logo-word { display: none; }
}

/* ---------- Movimento reduzido: tudo parado e visível ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .tb-ribbon-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .tb-ribbon-list { flex-wrap: wrap; justify-content: center; padding: 0 14px; row-gap: 10px; }
  .tb-ribbon-list[aria-hidden="true"] { display: none; }
}
