/* ==========================================================================
   Focinhos PetShop - folha de estilo unica
   Modelo: landing page de servico local (pet shop / banho e tosa)
   Sem dependencias. Tokens em :root - troque os tokens e o site inteiro muda.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Cores da marca */
  --brand:            oklch(83% 0.17 85);    /* amarelo/dourado  ~#F2B31A */
  --brand-foreground: oklch(16% 0 0);        /* texto sobre a marca */
  --brand-soft:       oklch(96% 0.05 92);    /* amarelo bem claro (chips) */
  --destructive:      oklch(55% 0.21 26);    /* vermelho de destaque ~#D02128 */
  --whatsapp:         #25d366;

  /* Neutros */
  --ink:              oklch(16% 0 0);        /* preto quente (titulos) */
  --ink-soft:         oklch(45% 0.01 60);    /* cinza de apoio */
  --cream:            oklch(98% 0.008 90);   /* fundo alternado */
  --background:       oklch(100% 0 0);
  --border:           oklch(91% 0.008 90);

  /* Tipografia */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* Forma */
  --radius:    0.875rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;

  /* Sombras */
  --shadow-sm:   0 6px 24px -16px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 24px 60px -40px rgba(0, 0, 0, 0.6);
  --shadow-img:  0 30px 60px -30px rgba(0, 0, 0, 0.55);

  /* Layout */
  --container: 80rem;   /* 1280px */
  --gutter:    1rem;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* O atributo hidden precisa vencer regras de componente como .btn{display:flex} */
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   3. UTILITARIOS DE LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

.container--narrow { max-width: 48rem; }
.container--mid    { max-width: 56rem; }

.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }

.section--cream { background: var(--cream); }
.section--dark  { background: var(--ink); color: var(--background); }
.section--brand { background: var(--brand); color: var(--brand-foreground); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--destructive);
}
.section--dark .eyebrow { color: var(--brand); }

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
.title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  margin-top: 1rem;
}
.subtitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

/* Chip com icone */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.chip svg { width: 1rem; height: 1rem; color: var(--destructive); }

/* --------------------------------------------------------------------------
   5. BOTOES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn:hover { transform: translateY(-2px); }

.btn--dark  { background: var(--ink); color: var(--background); }
.btn--dark:hover { background: var(--brand); color: var(--brand-foreground); }

.btn--brand { background: var(--brand); color: var(--brand-foreground); }
.btn--brand:hover { background: var(--ink); color: var(--background); }

.btn--light { background: var(--background); color: var(--ink); }
.btn--light:hover { background: var(--brand); color: var(--brand-foreground); }

.btn--zap { background: var(--destructive); color: #fff; }
.btn--zap:hover { background: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--cream); }
.section--dark .btn--ghost { color: var(--background); border-color: rgba(255, 255, 255, 0.25); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
/* Com o menu mobile aberto o header fica opaco, igual ao painel abaixo dele */
.header--open {
  background: var(--background);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
@media (min-width: 1024px) { .header__inner { padding-block: 1rem; } }

.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { height: 2.5rem; width: auto; border-radius: 0.375rem; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) { .brand__name { font-size: 1.125rem; } }
/* Vermelho um tom abaixo do --destructive: sobre o amarelo do header,
   o tom da marca dava 4.06:1 e o minimo e 4.5. Este e o unico lugar
   onde o vermelho fica sobre amarelo. */
.brand__name span { color: #c01820; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

.nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover, .nav a.is-active { background: var(--brand-soft); color: var(--ink); }

.header .btn { padding: 0.65rem 1.25rem; display: none; }
@media (min-width: 640px) { .header .btn { display: inline-flex; } }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.burger svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Menu mobile */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding-block: 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { display: flex; width: 100%; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px)  { .hero { padding-top: 8rem; } }
@media (min-width: 1024px) { .hero { padding-bottom: 6rem; } }

.hero__blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}
.hero__blob--1 {
  right: -8rem; top: -6rem; height: 28rem; width: 28rem;
  background: color-mix(in oklab, var(--brand) 45%, transparent);
}
.hero__blob--2 {
  left: -10rem; bottom: -8rem; height: 22rem; width: 22rem;
  background: color-mix(in oklab, var(--destructive) 12%, transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero__logo {
  height: 4rem;
  width: auto;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.hero__note {
  margin-top: 2rem;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.hero__media { position: relative; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: -1.25rem -1.25rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 35%, white));
  transform: rotate(-3deg);
}
.hero__media img {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
}

/* --------------------------------------------------------------------------
   8. BLOCO DE DUAS COLUNAS
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split--wide-left { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* Imagem primeiro no mobile, na ordem natural no desktop */
.media-first { order: -1; }
@media (min-width: 1024px) { .media-first { order: 0; } }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.5);
}
.media--square img { aspect-ratio: 1 / 1; }
.media--wide img   { aspect-ratio: 7 / 5; }

/* Selo flutuante sobre a imagem.
   Em telas estreitas ele NAO sai para fora da imagem: com left negativo o
   texto chegava a -4px num aparelho de 320px e ficava cortado na borda. */
.badge-float {
  position: absolute;
  bottom: -1rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--background);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  font-size: 0.8125rem;
  font-weight: 700;
}
.badge-float svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--destructive); }

@media (min-width: 560px) {
  .badge-float { bottom: -1.25rem; left: -1.25rem; right: auto; }
}

/* Lista de argumentos */
.checklist { display: grid; gap: 1rem; margin-top: 2rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist svg {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  margin-top: 0.2rem; color: var(--brand);
}

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card__media { overflow: hidden; }
.card__media img {
  aspect-ratio: 7 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.card__body p { color: var(--ink-soft); font-size: 0.9375rem; }
.card__body .btn { align-self: flex-start; margin-top: auto; }

/* Card simples de texto */
.card-soft {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}
.card-soft h3 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; }
.card-soft p  { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--ink-soft); }
.card-soft__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: var(--brand-foreground);
  margin-bottom: 1rem;
}
.card-soft__icon svg { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------------
   10. GALERIA
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.gallery img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.5s ease;
}
.gallery img:hover { transform: translateY(-6px); }
.gallery--square img { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   11. FORMULARIO MULTI-ETAPAS
   -------------------------------------------------------------------------- */
.form-card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }

.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.steps-count {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.steps-bar { display: flex; flex: 1; gap: 0.375rem; }
.steps-bar span {
  height: 0.375rem;
  flex: 1;
  border-radius: 999px;
  background: var(--brand-soft);
  transition: background-color 0.3s;
}
.steps-bar span.is-done { background: var(--brand); }

.step { display: none; }
.step.is-active { display: block; animation: slide-in 0.3s ease both; }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: none; }
}
.step > h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
@media (min-width: 640px) { .step > h3 { font-size: 1.5rem; } }

.fields { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: repeat(2, 1fr); } }

.field > span { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 700; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 30%, transparent);
}

/* Botoes de escolha */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  padding: 0.65rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.choice:hover { border-color: var(--brand); }
.choice.is-selected { background: var(--ink); color: var(--background); border-color: var(--ink); }

.form-hint { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-soft); }
.form-error { margin-top: 1rem; font-size: 0.8125rem; font-weight: 700; color: var(--destructive); }
.form-error[hidden] { display: none; }

.step-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .step-actions { flex-direction: row; justify-content: space-between; } }

/* --------------------------------------------------------------------------
   12. DEPOIMENTOS
   -------------------------------------------------------------------------- */
.quote-block { text-align: center; }
.quote-block p {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   13. LOCALIZACAO
   -------------------------------------------------------------------------- */
.info-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
}
@media (min-width: 640px) { .info-card { padding: 2.25rem; } }

.info-list { display: grid; gap: 1.75rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.info-list p, .info-list a { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-soft); }
.info-list a:hover { color: var(--destructive); }

.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--brand);
  color: var(--brand-foreground);
}
.icon-square svg { width: 1.25rem; height: 1.25rem; }

.map {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 22rem;
  height: 100%;
}
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--background);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer img { height: 2.75rem; width: auto; border-radius: 0.5rem; }
.footer p, .footer a { font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: var(--brand); }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; align-self: start; }
.footer__social { display: grid; gap: 0.75rem; align-content: start; }
.footer__social a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__social svg { width: 1rem; height: 1rem; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   15. BOTAO FLUTUANTE WHATSAPP
   -------------------------------------------------------------------------- */
.zap-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  animation: pulso-zap 2.4s ease-in-out infinite;
}
.zap-float svg { width: 1.75rem; height: 1.75rem; }
@keyframes pulso-zap {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50%      { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   16. ANIMACAO DE ENTRADA
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. INSTAGRAM (grade de publicacoes, filtrada por categoria)
   -------------------------------------------------------------------------- */
.ig__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.ig__perfil {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}
.ig__perfil svg { width: 1.5rem; height: 1.5rem; color: var(--destructive); }

/* Filtros: Tudo / Lugares do pet / Produtos */
.ig-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ig-filtro {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ig-filtro:hover { border-color: var(--brand); }
.ig-filtro[aria-pressed="true"] {
  background: var(--ink);
  color: var(--background);
  border-color: var(--ink);
}
.ig-filtro span {
  display: inline-block;
  margin-left: 0.4rem;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* Grade */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px)  { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }

.ig-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--cream);
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ig-card:hover, .ig-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ig-card:hover img { transform: scale(1.06); }

/* Etiqueta da categoria */
.ig-card__tag {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Legenda: sobreposta no hover onde ha mouse; sempre visivel no toque */
.ig-card__legenda {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.5rem 0.875rem 0.875rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.ig-card__legenda svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-bottom: 0.1rem; }
.ig-card__legenda span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) {
  .ig-card__legenda {
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .ig-card:hover .ig-card__legenda,
  .ig-card:focus-visible .ig-card__legenda { opacity: 1; transform: none; }
}

/* No toque a legenda fica sempre visivel, entao ela precisa de contraste
   contra qualquer foto - inclusive as claras. */
@media (hover: none) {
  .ig-card__legenda {
    padding-top: 3.5rem;
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.72) 45%,
      rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
}

/* Estados */
.ig-vazio {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.ig-nota {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.ig-nota[hidden] { display: none; }
