/* ============================================================
   HOMENAGEART — Design System
   Baseado no modelo /Modelo (hero em vídeo, cards arredondados,
   animações on-scroll) adaptado para a identidade da marca:
   dourado + preto + branco, catálogo por orçamento (WhatsApp).
   ============================================================ */

:root {
  /* Poppins vem do Google Fonts (enfileirado em functions.php). */
  --font-base: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Marca */
  --gold:        #f0b849;   /* dourado principal (extraído do site atual) */
  --gold-bright: #ffcf5c;
  --gold-deep:   #d99a2b;
  --gold-dark:   #b8790f;
  --ink:         #17150f;   /* preto quente — hero e footer */
  --ink-2:       #211e16;
  --ink-3:       #2f2b20;

  --page-bg:  #f0f0f0;
  --panel:    #f7f7f5;
  --card:     #ffffff;

  --text:        #4f4a40;
  --text-strong: #201d16;
  --text-soft:   rgba(79, 74, 64, 0.72);
  --muted:       rgba(120, 114, 100, 0.9);

  --line:        rgba(23, 21, 15, 0.08);
  --line-soft:   rgba(255, 255, 255, 0.16);

  --radius-xl: 2.25rem;
  --radius-lg: 1.6rem;
  --radius-md: 1.2rem;
  --radius-sm: 0.9rem;

  --shadow-card: 0 1px 0 rgba(205, 208, 214, 0.3), 0 12px 32px rgba(33, 41, 54, 0.05);
  --shadow-lift: 0 22px 46px rgba(31, 33, 40, 0.12);

  /* Degradê escuro da paleta (botões de orçamento) */
  --dark-grad:       linear-gradient(135deg, #201c12 0%, #3d2f16 52%, #6f5420 100%);
  --dark-grad-hover: linear-gradient(135deg, #2a2416 0%, #4c3a1b 52%, #8a6829 100%);

  --maxw: 1536px;
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.04em; color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 0 0.75rem 1.75rem; }
.eyebrow {
  margin: 0 0 0.5rem; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark);
}
.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;
}
.page-shell { min-height: 100vh; background: var(--page-bg); }

/* Botões genéricos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 0.8rem 1.5rem; font-size: 0.9rem; font-weight: 500;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a1e05; box-shadow: 0 14px 30px rgba(216, 154, 43, 0.35); }
.btn-gold:hover { box-shadow: 0 20px 40px rgba(216, 154, 43, 0.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-outline { background: transparent; color: var(--text-strong); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-wa { background: var(--dark-grad); color: #fff; box-shadow: 0 10px 26px rgba(23, 21, 15, 0.28); }
.btn-wa:hover { background: var(--dark-grad-hover); box-shadow: 0 16px 34px rgba(111, 84, 32, 0.34); }
.btn .ic { width: 1.15rem; height: 1.15rem; }

.icon { display: block; width: 1rem; height: 1rem; }

/* ============================================================ TOP BAR */
.topbar { background: var(--ink); color: rgba(255,255,255,0.82); font-size: 0.78rem; }
.topbar-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: center; padding: 0.5rem 1.25rem;
}
.topbar-wa {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--dark-grad); color: #fff; font-weight: 500;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(240, 184, 73, 0.4);
  transition: border-color 160ms ease, transform 160ms ease;
}
.topbar-wa:hover { border-color: rgba(240, 184, 73, 0.75); transform: translateY(-1px); }
.topbar-wa .icon { width: 0.95rem; height: 0.95rem; }
.topbar-info { display: none; align-items: center; gap: 1.1rem; }
.topbar-info a:hover { color: var(--gold); }
.topbar-dot { opacity: 0.35; }
.topbar-social { display: inline-flex; align-items: center; gap: 0.65rem; }
.topbar-social a { opacity: 0.75; transition: opacity 160ms, color 160ms; }
.topbar-social a:hover { opacity: 1; color: var(--gold); }
.topbar-social .icon { width: 1rem; height: 1rem; }
.lang { display: inline-flex; gap: 0.4rem; align-items: center; }
.lang a { opacity: 0.6; }
.lang a.is-active, .lang a:hover { opacity: 1; }
@media (min-width: 900px) {
  .topbar-inner { justify-content: space-between; }
  .topbar-info { display: inline-flex; }
}

/* ============================================================ HERO */
.hero-wrapper {
  width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0.75rem; background: var(--page-bg);
}
.hero-shell {
  position: relative; width: 100%; max-width: var(--maxw);
  min-height: min(calc(100vh - 1.5rem - 64px), 32rem);
  border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink); isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,13,9,0.30) 0%, rgba(15,13,9,0.10) 30%, rgba(15,13,9,0.78) 100%),
    radial-gradient(circle at 50% 120%, rgba(240,184,73,0.22), transparent 55%);
}
.hero-content {
  position: relative; z-index: 10; width: 100%;
  min-height: calc(100vh - 1.5rem - 64px); display: flex; flex-direction: column; align-items: center;
}

/* Hero como carrossel de slides */
.hero-carousel { position: relative; }
/* Trilha arrastável: os slides ficam lado a lado e o conjunto desliza por
   transform, então o slide pode acompanhar o dedo/mouse em tempo real.
   touch-action: pan-y deixa a rolagem vertical da página passar. */
.hero-track {
  position: absolute; inset: 0; z-index: 0; display: flex;
  will-change: transform; touch-action: pan-y; cursor: grab;
}
.hero-track.is-dragging { cursor: grabbing; }
/* Conteúdo ancorado no rodapé e à esquerda: o topo e a direita ficam livres
   para a imagem de fundo aparecer. */
.hero-slide { position: relative; flex: 0 0 100%; min-width: 100%; display: flex; align-items: flex-end; justify-content: flex-start; }
.hero-slide-content { position: relative; z-index: 2; width: 100%; max-width: 100%; padding: 1.25rem 1.25rem 3.2rem; text-align: left; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 2.8rem; height: 2.8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(23,21,15,0.35); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 160ms ease;
}
.hero-nav:hover { background: rgba(23,21,15,0.6); }
.hero-prev { left: 1rem; }
.hero-prev .ic { transform: rotate(180deg); }
.hero-next { right: 1rem; }
.hero-dots { position: absolute; bottom: 1.3rem; left: 0; right: 0; z-index: 5; display: flex; gap: 0.4rem; justify-content: center; }
.hero-dots button { width: 0.55rem; height: 0.55rem; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,0.5); transition: background 200ms ease, width 200ms ease; }
.hero-dots button.is-active { background: var(--gold-bright); width: 1.6rem; }
@media (min-width: 768px) { .hero-nav { display: flex; } }

/* Header + Navbar (fora do hero, fundo claro, fixo no topo) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 244, 241, 0.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.navbar {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding: 0.85rem 1.25rem;
}
.navbar-left { display: flex; align-items: center; gap: 1rem; justify-self: start; }
/* min-width impede o grid de comprimir a coluna do logo quando as laterais
   apertam — sem isso a imagem era esmagada (chegou a 34px e a 0px). */
.navbar-logo { justify-self: center; display: inline-flex; min-width: max-content; }
.navbar-logo img { height: 42px; width: auto; }
.navbar-right { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.navbar-menu {
  display: none; align-items: center; gap: 1.75rem; padding: 0; margin: 0; list-style: none;
  color: var(--text-strong); font-size: 0.92rem;
}
.navbar-menu a { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; transition: color 160ms; }
.navbar-menu a:hover, .navbar-menu .current-menu-item > a { color: var(--gold-dark); }
.navbar-menu a:hover .icon-chevron { transform: translateX(2px); }
.navbar-icon-btn {
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--panel); color: var(--text-strong); border: 1px solid var(--line);
  cursor: pointer; transition: background 160ms ease, border-color 160ms ease;
}
.navbar-icon-btn:hover { background: #eeece7; border-color: rgba(240, 184, 73, 0.5); }
.navbar-icon-btn .icon { width: 1.15rem; height: 1.15rem; }
.navbar-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-strong); cursor: pointer;
}
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(15,13,9,0.96); backdrop-filter: blur(10px);
  flex-direction: column; padding: 1.5rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-head img { height: 40px; }
.mobile-menu ul { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu a:not(.btn) { color: #fff; font-size: 1.6rem; letter-spacing: -0.03em; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu a:not(.btn):hover { color: var(--gold-bright); }
.mobile-menu-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu-list a { display: block; color: #fff; font-size: 1.6rem; letter-spacing: -0.03em; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu-list a:hover { color: var(--gold-bright); }

/* Faixa diferenciais (ticker) */
.hero-text {
  position: relative; flex: 1; width: 100%; max-width: 60rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
  margin: 0 0 1rem; padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem; color: #fff;
}
.hero-badge .icon { width: 1rem; height: 1rem; color: var(--gold-bright); }
/* No celular o texto encolhe de propósito: o conteúdo está ancorado no rodapé,
   então tudo que ele deixa de ocupar vira área livre para a imagem no topo. */
.hero-title {
  margin: 0 0 0.7rem; color: #fff;
  font-size: clamp(1.9rem, 7.4vw, 5.2rem); line-height: 1.08; letter-spacing: -0.04em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.hero-title .accent { color: var(--gold-bright); }
.hero-subtitle {
  margin: 0; max-width: 42rem; color: rgba(255,255,255,0.9);
  font-size: clamp(0.9rem, 2vw, 1.2rem); line-height: 1.6;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-start; margin-top: 1.1rem; }

.hero-metric {
  position: absolute; right: 1rem; bottom: 1.25rem; left: auto;
  display: flex; flex-direction: column; gap: 0.15rem; min-width: 150px;
  padding: 1rem 1.15rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff;
}
.hero-metric strong { font-size: 2.4rem; letter-spacing: -0.04em; color: var(--gold-bright); }
.hero-metric span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.85; }

@media (min-width: 768px) {
  .hero-wrapper { padding: 1.25rem; }
  .hero-shell, .hero-content { min-height: min(calc(78vh - 2.5rem - 76px), 40rem); border-radius: 3rem; }
  /* Margem esquerda generosa: a seta "anterior" ocupa de 16px a 61px da borda
     do hero, e o título passava por baixo dela. O clamp mantém a folga em
     qualquer largura. O título encolhe junto, senão quebra em 3 linhas e
     estoura a altura reduzida do hero. */
  .hero-slide-content { max-width: 82%; padding: 2.5rem 3rem 4.2rem clamp(5rem, 7vw, 8rem); }
  .hero-title { font-size: clamp(2.1rem, 3.4vw, 3.5rem); margin-bottom: 0.8rem; }
  .hero-subtitle { max-width: 34rem; font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.6; }
  .hero-cta-row { margin-top: 1.35rem; }
  .hero-dots { justify-content: flex-end; left: auto; right: 3rem; bottom: 1.9rem; }
  .navbar { padding: 1rem 2.5rem; }
  .navbar-icon-btn { display: inline-flex; }
  .navbar-cta { display: inline-flex; }
}

/* O menu completo só entra onde ele realmente CABE ao lado do logo e do CTA.
   A 768px não cabia: ou "Hall da Fama" quebrava em 3 linhas, ou (com nowrap)
   a coluna do logo era comprimida a 0 e o logo sumia. Entre 768 e 1024 fica
   o botão de menu, que é o padrão de tablet e não deforma nada. */
@media (min-width: 1024px) {
  .navbar-menu { display: flex; }
  .nav-toggle { display: none; }
}

/* Só no desktop largo o texto se limita a 60%, deixando 40% para a imagem.
   Entre 768px e 1100px isso deixaria a coluna estreita demais (o título ia
   para 4 linhas e estourava o hero), então lá vale a largura maior acima. */
@media (min-width: 1100px) {
  .hero-slide-content { max-width: 60%; }
}

/* ============================================================ SEÇÃO PADRÃO / PAINEL */
.panel {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 2rem 1.4rem 2.2rem; border-radius: var(--radius-xl); background: var(--panel);
}
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 1.75rem; }
.section-head h2 {
  margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.06; text-wrap: balance;
}
.section-head p { margin: 0.75rem auto 0; max-width: 42rem; color: var(--text-soft); font-size: 1rem; line-height: 1.7; }
.section-head--sm h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

/* ============================================================ CATEGORIAS */
.cats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
/* Card vertical: imagem de fundo livre em cima, texto ancorado no rodapé. */
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; min-height: 250px; padding: 0;
  border-radius: var(--radius-lg); background: var(--card);
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  overflow: hidden; isolation: isolate;
}
.cat-card:not(.has-media)::after {
  content: ""; position: absolute; right: -30%; top: -40%; width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(240,184,73,0.18), transparent 70%);
  opacity: 0; transition: opacity 240ms ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(240,184,73,0.4); }
.cat-card:not(.has-media):hover::after { opacity: 1; }

.cat-media {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 500ms ease;
}
.cat-card:hover .cat-media { transform: scale(1.06); }
/* Véu só no rodapé, para o texto ler sobre qualquer foto sem tapar o topo. */
.cat-card.has-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(15,13,9,0.55) 66%, rgba(15,13,9,0.9) 100%);
}
.cat-body {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.35rem;
}
.cat-card h3 { margin: 0; font-size: 1.3rem; }
.cat-card p { margin: 0; font-size: 0.86rem; color: var(--text-soft); line-height: 1.55; }
.cat-card.has-media h3 { color: #fff; }
.cat-card.has-media p { color: rgba(255,255,255,0.84); }
.cat-card .cat-link {
  margin-top: 0.35rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark);
}
.cat-card.has-media .cat-link { color: var(--gold-bright); }
.cat-card .cat-link .icon { width: 1rem; height: 1rem; transition: transform 180ms; }
.cat-card:hover .cat-link .icon { transform: translate(2px,-2px); }
@media (min-width: 768px) { .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }

/* ============================================================ PRODUTOS — GRID + CARD */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
/* Grade de destaques da home: 6 colunas */
@media (min-width: 1280px) { [data-tabs] .products-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

/* ---------- Relacionados em carrossel (single de produto) ----------
   Trilha com scroll nativo + snap: no toque o dedo já rola, no mouse o
   arraste é interceptado por arrastaScroll() e as setas movem uma "página".
   As setas só aparecem quando há o que rolar (JS mede o transbordo). */
.rel-carousel { position: relative; }
.rel-track {
  --rel-cols: 1.7; --rel-gap: 0.85rem;
  display: flex; gap: var(--rel-gap);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* sem isto o snap encosta no padding e o scrollLeft nunca volta a zero,
     deixando a seta "anterior" acesa no comeco da trilha */
  scroll-padding-inline: 0.25rem;
  /* respiro para o hover (translateY -6px) e a sombra não serem cortados */
  padding: 0.75rem 0.25rem 1rem; margin: -0.75rem -0.25rem -0.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.rel-track::-webkit-scrollbar { display: none; }
/* Durante o arraste do mouse o snap é desligado, senão ele briga com o
   scrollLeft que o JS move quadro a quadro. */
.rel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rel-track > .product-card {
  flex: 0 0 calc((100% - (var(--rel-cols) - 1) * var(--rel-gap)) / var(--rel-cols));
  scroll-snap-align: start;
}
@media (min-width: 480px)  { .rel-track { --rel-cols: 2.3; } }
@media (min-width: 640px)  { .rel-track { --rel-cols: 3.2; --rel-gap: 1.1rem; } }
@media (min-width: 900px)  { .rel-track { --rel-cols: 4.2; --rel-gap: 1.25rem; } }
@media (min-width: 1200px) { .rel-track { --rel-cols: 5; } }

.rel-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 4;
  width: 2.6rem; height: 2.6rem; border-radius: 999px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text-strong);
  box-shadow: var(--shadow-card);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.rel-nav[hidden] { display: none; }
.rel-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rel-nav:disabled { opacity: 0.35; cursor: default; }
.rel-nav:disabled:hover { background: var(--card); color: var(--text-strong); border-color: var(--line); }
.rel-nav .ic { width: 1.15rem; height: 1.15rem; }
.rel-nav-prev { left: -0.9rem; }
.rel-nav-prev .ic { transform: rotate(180deg); }
.rel-nav-next { right: -0.9rem; }
/* No celular o gesto basta — as setas só entram onde há mouse e espaço. */
@media (min-width: 900px) { .rel-nav:not([hidden]) { display: flex; } }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(240,184,73,0.45); }
.product-thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #ffffff, #eef0ee 78%);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 320ms ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  padding: 0.28rem 0.6rem; border-radius: 999px; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: #2a1e05;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.product-cat-tag {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  padding: 0.28rem 0.6rem; border-radius: 999px; font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: rgba(23,21,15,0.55); backdrop-filter: blur(4px);
}
.product-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.05rem 1.15rem; flex: 1; }
.product-ref { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.product-title { margin: 0; font-size: 1.02rem; line-height: 1.2; color: var(--text-strong); }
.product-title a:hover { color: var(--gold-dark); }
.product-actions { margin-top: auto; display: flex; gap: 0.5rem; padding-top: 0.75rem; }
.product-actions .btn { flex: 1; padding: 0.6rem 0.75rem; font-size: 0.78rem; }
.product-actions .btn-wa .ic { width: 1rem; height: 1rem; }

.section-more { display: flex; justify-content: center; margin-top: 1.75rem; }

/* Abas de categoria (home) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.tab-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text-strong);
  padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.85rem; cursor: pointer;
  transition: all 180ms ease;
}
.tab-btn:hover { border-color: var(--gold); }
.tab-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

/* ============================================================ INSTITUCIONAL (janela) */
.about-shell {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center;
}
.about-window { padding: 0.5rem; border-radius: var(--radius-xl); background: linear-gradient(180deg, #faf9f6, #ecebe6); box-shadow: 0 20px 50px rgba(30,37,48,0.10); }
.about-window-bar { display: flex; gap: 0.35rem; padding: 0.35rem 0.5rem 0.55rem; }
.about-window-bar span { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(23,21,15,0.14); }
.about-window-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.6rem; background: #d9dad4; }
.about-window-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-window-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(23,21,15,0.35)); }

/* Carrossel da janela institucional */
.about-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ha-track {
  position: absolute; inset: 0; z-index: 0; display: flex;
  will-change: transform; touch-action: pan-y; cursor: grab;
}
.ha-track.is-dragging { cursor: grabbing; }
.ha-carousel .ha-slide { position: relative; flex: 0 0 100%; min-width: 100%; height: 100%; object-fit: cover; }
.ha-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  background: rgba(23,21,15,0.45); color: #fff; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 160ms ease;
}
.ha-car-btn:hover { background: rgba(23,21,15,0.75); }
.ha-car-btn .ic { width: 1.2rem; height: 1.2rem; }
.ha-car-prev { left: 0.8rem; }
.ha-car-prev .ic { transform: rotate(180deg); }
.ha-car-next { right: 0.8rem; }
.ha-car-dots { position: absolute; bottom: 0.9rem; left: 0; right: 0; z-index: 3; display: flex; gap: 0.4rem; justify-content: center; }
.ha-car-dots button {
  width: 0.5rem; height: 0.5rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.55); transition: background 200ms ease, width 200ms ease;
}
.ha-car-dots button.is-active { background: var(--gold-bright); width: 1.5rem; }
.about-copy { padding: 0.5rem 0.25rem; }
.about-copy h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.about-copy p { margin: 0 0 1.1rem; max-width: 46ch; color: var(--text); font-size: 1.02rem; line-height: 1.75; }
/* Três colunas fixas: em flex com wrap o terceiro número caía para a linha
   de baixo no celular. Grade garante os três lado a lado em qualquer largura. */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
.about-stat strong { display: block; font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -0.04em; color: var(--gold-dark); }
.about-stat span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.35; color: var(--muted); }
@media (min-width: 480px) {
  .about-stats { gap: 1.5rem; }
  .about-stat span { font-size: 0.72rem; letter-spacing: 0.14em; }
}
@media (min-width: 860px) { .about-shell { grid-template-columns: 1.05fr 1.1fr; gap: 3rem; } }

/* ============================================================ CTA BANNER (vídeo/imagem) */
.cta-banner {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  min-height: 12rem; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--ink-2); isolation: isolate;
}
.cta-banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-banner-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,9,0.86) 0%, rgba(15,13,9,0.55) 45%, rgba(15,13,9,0.25) 100%);
}
.cta-banner-content {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.25rem;
  justify-content: space-between; padding: 2rem 1.5rem; color: #fff; min-height: 12rem;
}
.cta-banner-content h2 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 0.98; color: #fff; }
.cta-banner-content h2 .accent { color: var(--gold-bright); }
.cta-banner-content p { margin: 0; max-width: 40ch; color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.6; }
.cta-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (min-width: 820px) {
  .cta-banner-content { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.4rem 2.6rem; }
  .cta-banner-actions { flex-shrink: 0; }
}

/* ============================================================ VALORES (future grid) */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.value-card {
  position: relative; min-height: 240px; border-radius: var(--radius-lg); overflow: hidden;
  padding: 1.3rem; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(240,184,73,0.16), transparent 32%),
    linear-gradient(150deg, #fbfaf7 0%, #f1efe9 60%, #ece9e1 100%);
  border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-card);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.value-card.is-dark {
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,184,73,0.28), transparent 30%),
    linear-gradient(150deg, var(--ink-3), var(--ink) 70%);
  border-color: rgba(255,255,255,0.08);
}
.value-dot { width: 0.8rem; height: 0.8rem; margin-bottom: 1.1rem; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 8px rgba(240,184,73,0.14); }
.value-card h3 { margin: 0 0 0.7rem; font-size: 1.4rem; line-height: 1.05; }
.value-card.is-dark h3 { color: #fff; }
.value-card p { margin: 0; max-width: 30ch; font-size: 0.92rem; line-height: 1.65; color: var(--text-soft); }
.value-card.is-dark p { color: rgba(255,255,255,0.78); }
.value-num { margin-top: auto; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }
.value-card.is-dark .value-num { color: rgba(255,255,255,0.6); }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ MANIFESTO */
.manifesto {
  width: 100%; max-width: var(--maxw); margin: 0 auto; min-height: 280px;
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 3rem 1.5rem; text-align: center;
  background:
    radial-gradient(circle at 22% 25%, rgba(240,184,73,0.22), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(240,184,73,0.10), transparent 26%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 60%, #000 100%);
}
.manifesto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 18px);
}
.manifesto p { position: relative; z-index: 1; margin: 0; max-width: 26ch; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; color: #fdf6e6; }
.manifesto p .accent { color: var(--gold-bright); }

/* ============================================================ CLIENTES */
.clients { text-align: center; }
/* Carrossel contínuo e arrastável, igual no celular e no desktop.
   Virou container de scroll (em vez de animação CSS) justamente para o dedo
   poder arrastar: o avanço automático é o JS somando scrollLeft, e as duas
   cópias idênticas do conteúdo fazem o laço não ter emenda. */
.clients-viewport {
  margin-top: 1.5rem; overflow-x: auto; overflow-y: hidden; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-viewport::-webkit-scrollbar { display: none; }
.clients-viewport.is-dragging { cursor: grabbing; }
.clients-track { display: flex; width: max-content; }
.clients-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.client-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 3.6rem; min-width: 8rem;
  flex: 0 0 auto; white-space: nowrap; /* dentro do carrossel o chip não pode encolher */
  padding: 0 1.4rem; border-radius: var(--radius-md); background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; letter-spacing: 0.02em;
  font-weight: 500; box-shadow: var(--shadow-card); transition: color 180ms, border-color 180ms;
}
.client-chip:hover { color: var(--gold-dark); border-color: rgba(240,184,73,0.4); }
/* Marca com logo enviada pelo painel: a imagem manda no tamanho, sem esticar. */
.client-chip.has-logo { padding: 0 1rem; }
.client-chip.has-logo img {
  max-height: 2.4rem; max-width: 8.5rem; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1); opacity: 0.75;
  transition: filter 180ms ease, opacity 180ms ease;
}
.client-chip.has-logo:hover img { filter: none; opacity: 1; }

/* ============================================================ STORIES (vídeos) */
.stories-track {
  display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  cursor: grab;
}
/* Durante o arraste do mouse o snap é desligado, senão ele briga com o
   scrollLeft que o JS está movendo quadro a quadro. */
.stories-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.is-dragging, .is-dragging * { user-select: none; -webkit-user-select: none; }
.is-dragging a, .is-dragging img, .is-dragging video { -webkit-user-drag: none; }
.stories-track::-webkit-scrollbar { height: 6px; }
.stories-track::-webkit-scrollbar-thumb { background: rgba(23,21,15,0.2); border-radius: 999px; }
.story-card {
  flex: 0 0 44%; scroll-snap-align: start; aspect-ratio: 9 / 16;
  border-radius: 1.4rem; padding: 3px;
  background: linear-gradient(140deg, var(--gold-bright) 0%, var(--gold-dark) 45%, var(--ink-3) 100%);
  transition: transform 260ms ease;
}
.story-card:hover { transform: translateY(-4px); }
.story-inner {
  position: relative; width: 100%; height: 100%; border-radius: 1.2rem; overflow: hidden; background: #17150f;
}
.story-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card[data-story-open] { cursor: pointer; }
.story-card[data-story-open]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.story-play {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity 200ms ease; pointer-events: none;
}
.story-play .icon { width: 3.2rem; height: 3.2rem; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)); }
.story-card:hover .story-play, .story-card:focus-visible .story-play { opacity: 0.92; }

/* ---------- Visor de stories em tela cheia ---------- */
.story-viewer { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.story-viewer[hidden] { display: none; }
.story-viewer-backdrop { position: absolute; inset: 0; background: rgba(8,7,5,0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story-viewer-stage {
  position: relative; z-index: 1; width: min(26rem, 100vw); height: min(46rem, 100dvh);
  background: #000; overflow: hidden; border-radius: 0;
  touch-action: pan-y; user-select: none;
}
.story-viewer-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* Barras de progresso, uma por story */
.story-progress { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; z-index: 4; display: flex; gap: 0.25rem; }
.story-progress span { flex: 1 1 0; height: 2.5px; border-radius: 999px; background: rgba(255,255,255,0.3); overflow: hidden; }
.story-progress span i { display: block; height: 100%; width: 0; background: #fff; }
.story-progress span.is-done i { width: 100%; }

.story-viewer-close, .story-viewer-sound {
  position: absolute; top: 1.6rem; z-index: 5; width: 2.4rem; height: 2.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; transition: background 160ms ease;
}
.story-viewer-close { right: 0.8rem; }
.story-viewer-sound { right: 3.5rem; }
.story-viewer-close:hover, .story-viewer-sound:hover { background: rgba(255,255,255,0.3); }
.story-viewer-close .icon, .story-viewer-sound .icon { width: 1.15rem; height: 1.15rem; }

/* Metades invisíveis: toque à esquerda volta, à direita avança (igual Instagram) */
.story-nav { position: absolute; top: 0; bottom: 0; z-index: 3; width: 32%; border: 0; background: transparent; cursor: pointer; }
.story-nav-prev { left: 0; }
.story-nav-next { right: 0; }

@media (min-width: 640px) {
  .story-viewer-stage { border-radius: 1.2rem; height: min(46rem, 92dvh); }
}
.story-badge {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 1.8rem; height: 1.8rem; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(23,21,15,0.5); color: #fff; backdrop-filter: blur(4px);
}
.story-badge .icon { width: 1rem; height: 1rem; }
@media (min-width: 640px) { .story-card { flex-basis: 30%; } }
@media (min-width: 900px) {
  .stories-track { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .story-card { flex: none; }
}

/* ============================================================ ÁREA DE SHORTCODE */
.shortcode-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 220px; padding: 2.5rem 1.5rem; text-align: center;
  border: 2px dashed rgba(23,21,15,0.14); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, rgba(240,184,73,0.04) 0 10px, transparent 10px 20px);
  color: var(--muted);
}
.shortcode-placeholder .icon { width: 2.4rem; height: 2.4rem; color: var(--gold-dark); }
.shortcode-placeholder p { margin: 0; max-width: 40ch; font-size: 1rem; color: var(--text); }
.shortcode-placeholder span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================ BLOG */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(4, 1fr); } }
.post-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #e9e7e1; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 1.1rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-tag { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.post-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card p { margin: 0; font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; }
.post-meta { margin-top: auto; padding-top: 0.6rem; font-size: 0.72rem; color: var(--muted); }

/* Bloco de novidades da home: três colunas iguais, sem excerto nem botão.
   Peso visual baixo de propósito — é rodapé de conteúdo, não destaque. */
.posts-lean { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 700px) { .posts-lean { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; } }
.post-lean {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.post-lean:hover { transform: translateY(-4px); border-color: rgba(240,184,73,0.45); box-shadow: var(--shadow-card); }
.post-lean-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eceae4; }
.post-lean-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.post-lean:hover .post-lean-thumb img { transform: scale(1.04); }
/* Sem imagem destacada: um campo neutro discreto em vez de um bloco cinza,
   mantendo o alinhamento da grade. */
.post-lean-thumb.is-empty { background: linear-gradient(135deg, #f5f4f0, #e8e6df 55%, #f0ede5); }
.post-lean-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem 1.05rem; }
.post-lean h3 {
  margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--text-strong); transition: color 200ms ease;
}
.post-lean h3 a { color: inherit; }
/* Link esticado: o card inteiro é clicável, mas existe só um link no HTML. */
.post-lean h3 a::after { content: ""; position: absolute; inset: 0; }
.post-lean:hover h3 { color: var(--gold-dark); }
.post-lean-date { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================ NEWSLETTER */
.newsletter {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; overflow: hidden;
  border-radius: var(--radius-xl); padding: 2.75rem 1.5rem; text-align: center; color: #fff;
  background: linear-gradient(150deg, var(--ink-3), var(--ink) 70%);
}
.newsletter::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.28;
  background-image: url("../images/brand/background-newsletter.jpg"); background-size: cover; background-position: center;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { margin: 0 0 0.5rem; color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.newsletter p { margin: 0 auto 1.5rem; max-width: 34rem; color: rgba(255,255,255,0.8); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 30rem; margin: 0 auto; }
.newsletter-form input {
  flex: 1; min-width: 12rem; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }

/* ============================================================ FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 3rem 1.5rem 1.5rem; }
.footer-grid {
  width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.footer-brand img { height: 52px; margin-bottom: 1rem; }
.footer-brand p { max-width: 26rem; font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer-social a {
  width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; transition: background 160ms, color 160ms;
}
.footer-social a:hover { background: var(--gold); color: #2a1e05; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.66); transition: color 160ms; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-contact-item { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer-contact-item .icon { width: 1.05rem; height: 1.05rem; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.footer-bottom {
  width: 100%; max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ============================================================ WHATSAPP FLUTUANTE */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 999px; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); animation: waPulse 2.6s infinite;
}
.wa-float .icon { width: 1.8rem; height: 1.8rem; }
/* Sobre o verde, o ícone precisa ser branco — vence a regra geral do canal. */
.wa-float .ha-ic-whatsapp { color: #fff; }
/* O WhatsApp sempre no verde da marca — é assim que o canal é reconhecido. */
.ha-ic-whatsapp { color: #25d366; }
/* Exceção: dentro do botão dourado (CTA da navbar e do menu mobile) o verde
   briga com o gradiente e perde contraste. Ali o ícone acompanha o texto. */
.btn-gold .ha-ic-whatsapp { color: currentColor; }
.topbar-social a:hover .ha-ic-whatsapp,
.topbar-wa:hover .ha-ic-whatsapp { color: #25d366; }
@keyframes waPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }

/* ============================================================ HALL DA FAMA (mural) */
.hall-mural { columns: 2; column-gap: 0.9rem; }
.hall-card {
  break-inside: avoid; margin: 0 0 0.9rem; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.hall-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(240,184,73,0.5); }
.hall-photo { position: relative; padding: 0.55rem 0.55rem 0; }
.hall-photo img {
  width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 0.45rem);
  border: 1.5px solid transparent;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold-dark)) border-box;
}
/* alterna proporções para dar ritmo de mural */
.hall-card:nth-child(3n) .hall-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.hall-card:nth-child(3n+1) .hall-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.hall-card:nth-child(3n+2) .hall-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.hall-star {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a1e05;
  box-shadow: 0 6px 16px rgba(216,154,43,0.4);
}
.hall-star .icon { width: 1.05rem; height: 1.05rem; }
.hall-caption { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 1rem 1.05rem; }
.hall-caption strong { font-size: 1.05rem; font-weight: 400; letter-spacing: -0.02em; color: var(--text-strong); }
.hall-premiacao { font-size: 0.82rem; color: var(--gold-dark); }
.hall-ano { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .hall-mural { columns: 3; column-gap: 1.1rem; } .hall-card { margin-bottom: 1.1rem; } }
@media (min-width: 1100px) { .hall-mural { columns: 5; column-gap: 1rem; } }

/* Card do mural é clicável: abre o modal com a foto grande. */
.hall-card[data-hall-card] { cursor: pointer; }
.hall-card[data-hall-card]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Dois seletores de propósito: .ha-modal-card (regra base do modal de
   orçamento) vem depois no arquivo e, com especificidade igual, vencia estas
   declarações — o modal ficava com 480px e 2rem de padding. */
.hall-modal .hall-modal-card { max-width: 60rem; width: 100%; padding: 0; overflow: hidden; }
.hall-modal-photo { background: var(--panel); }
.hall-modal-photo img { display: block; width: 100%; max-height: 60vh; object-fit: contain; }
.hall-modal-info { padding: 1.4rem 1.6rem 1.7rem; }
.hall-modal-info h3 { margin: 0 0 0.4rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.hall-modal-info .hall-premiacao,
.hall-modal-info .hall-ano { margin: 0 0 0.3rem; }
.hall-modal-texto { margin: 0.9rem 0 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
/* align-self impede o botão de esticar na coluna flex (virava um bloco alto
   com a frase quebrada em 3 linhas); nowrap mantém o rótulo em uma linha. */
.hall-modal-info .btn { margin-top: 1.2rem; align-self: flex-start; white-space: nowrap; }
@media (min-width: 820px) {
  .hall-modal .hall-modal-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .hall-modal-photo img { height: 100%; max-height: 78vh; object-fit: cover; }
  .hall-modal-info { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
}

/* ============================================================ MODAL DE ORÇAMENTO */
.ha-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ha-modal[hidden] { display: none; }
.ha-modal-backdrop { position: absolute; inset: 0; background: rgba(15,13,9,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ha-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 30rem; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35); animation: haModalIn 0.3s ease;
}
@keyframes haModalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.ha-modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-strong); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 160ms;
}
.ha-modal-close:hover { background: #ececec; }
.ha-modal-card .eyebrow { text-align: left; }
.ha-modal-card h3 { margin: 0.2rem 0 0.3rem; font-size: 1.55rem; }
.ha-modal-sub { margin: 0 0 1.25rem; color: var(--text-soft); font-size: 0.95rem; }
.ha-modal-produto { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); font-size: 0.85rem; color: var(--text-strong); }
/* Modal sem títulos: o botão de fechar fica sozinho no topo, então o formulário
   precisa da folga que os textos ocupavam — senão o primeiro campo encosta nele. */
.ha-modal-clean { padding-top: 4.4rem; }
.ha-modal-card .form-field { margin-bottom: 0.85rem; }
.ha-modal-card .form-row { margin-bottom: 0; }
.ha-modal-card .btn-wa { width: 100%; margin-top: 0.5rem; }
.ha-modal-fine { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ============================================================ PÁGINA PRODUTOS — FILTROS */
.page-head {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 6.5rem 1.5rem 2rem; text-align: center;
}
.page-head .eyebrow { text-align: center; }
.page-head h1 { margin: 0 0 0.75rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head p { margin: 0 auto; max-width: 42rem; color: var(--text-soft); line-height: 1.7; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a:hover { color: var(--gold-dark); }

.shop-layout { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.shop-filters {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); padding: 1.4rem; align-self: start;
}
.filter-group { padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group > h4 { margin: 0 0 0.75rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.filter-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.6rem; border-radius: 0.6rem; font-size: 0.9rem; color: var(--text); transition: background 150ms, color 150ms;
}
.filter-list a:hover { background: #f4f2ec; color: var(--text-strong); }
.filter-list a.is-active { background: var(--ink); color: #fff; }
.filter-list a .count { font-size: 0.72rem; opacity: 0.6; }
/* ---------- Sanfona de categorias ----------
   <details> em vez de JS: abre e fecha sem script, com teclado e leitor de
   tela funcionando de graça. O JS só garante um grupo aberto por vez. */
.filter-acc { padding-bottom: 0.35rem; }
.filter-acc[open] { padding-bottom: 1rem; }
.filter-acc-head {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.5rem 0.1rem; list-style: none;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); transition: color 150ms ease;
}
.filter-acc-head::-webkit-details-marker { display: none; }
.filter-acc-solo .filter-acc-head { text-decoration: none; }
.filter-acc-solo .filter-acc-head.is-active { color: var(--ink); }
.filter-acc-head:hover { color: var(--ink); }
.filter-acc-head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 0.4rem; }
.filter-acc-name { flex: 0 1 auto; }
.filter-acc-count {
  flex: 0 0 auto; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: rgba(240,184,73,0.16); color: var(--gold-dark);
  font-size: 0.7rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
/* a seta encosta na direita; o número fica colado ao nome */
.filter-acc-head .ic { margin-left: auto; width: 1rem; height: 1rem; color: var(--muted); transition: transform 200ms ease; }
.filter-acc[open] > .filter-acc-head .ic { transform: rotate(180deg); }
.filter-acc[open] > .filter-list { animation: accIn 220ms ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.filters-toggle { display: inline-flex; }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 260px 1fr; }
  .filters-toggle { display: none; }
  /* Na barra de 260px o texto do botão quebrava em duas linhas: no desktop
     ele encolhe para caber inteiro. */
  .shop-filters .btn-wa { padding: 0.7rem 0.9rem; font-size: 0.78rem; gap: 0.4rem; }
  .shop-filters .btn-wa .ic { width: 1rem; height: 1rem; flex: 0 0 auto; }
}

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.shop-count { font-size: 0.85rem; color: var(--muted); }

/* Paginação */
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  min-width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.6rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================ SINGLE PRODUTO */
.product-single { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.product-gallery { border-radius: var(--radius-xl); overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #eef0ee 80%); border: 1px solid var(--line); }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 8%; }
.product-info h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.product-info .product-ref { font-size: 0.8rem; margin-bottom: 1rem; }
.product-info .lead { color: var(--text); font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.5rem; max-width: 46ch; }
.product-meta-list { list-style: none; margin: 1.5rem 0; padding: 1.25rem; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line); }
.product-meta-list li { display: flex; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.92rem; }
.product-meta-list li .icon { width: 1.15rem; height: 1.15rem; color: var(--gold-dark); flex-shrink: 0; }
.product-cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.product-cats-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-cats-links a { font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-soft); }
.product-cats-links a:hover { color: var(--gold-dark); border-color: var(--gold); }
@media (min-width: 860px) { .product-single { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

/* ============================================================ SOBRE */
.about-hero { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.about-intro { max-width: 60rem; margin: 0 auto; text-align: center; }
.about-intro p { font-size: 1.15rem; line-height: 1.85; color: var(--text); }
.about-intro .accent { color: var(--gold-dark); }
.about-blocks { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 2.5rem; }
.about-block {
  padding: 1.6rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.about-block .num { font-size: 0.8rem; color: var(--gold-dark); letter-spacing: 0.14em; }
.about-block h3 { margin: 0.5rem 0 0.6rem; font-size: 1.3rem; }
.about-block p { margin: 0; color: var(--text-soft); line-height: 1.7; font-size: 0.95rem; }
@media (min-width: 720px) { .about-blocks { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ CONTATO */
.contact-layout { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-info-card { background: linear-gradient(150deg, var(--ink-3), var(--ink) 75%); color: #fff; border-radius: var(--radius-xl); padding: 2rem; }
.contact-info-card h2 { color: #fff; }
.contact-info-card .contact-line { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.25rem 0; }
.contact-info-card .contact-line .icon { width: 1.25rem; height: 1.25rem; color: var(--gold-bright); flex-shrink: 0; margin-top: 0.15rem; }
.contact-info-card .contact-line span { color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.5; }
.contact-form { background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fbfaf7; color: var(--text-strong); transition: border-color 160ms;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field textarea { min-height: 140px; resize: vertical; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 0.9fr 1.1fr; } }

/* ============================================================ CONTEÚDO (post/página) */
.entry { width: 100%; max-width: 46rem; margin: 0 auto; }
.entry h1, .entry h2, .entry h3 { margin: 1.8rem 0 0.8rem; }
.entry p { line-height: 1.85; margin: 0 0 1.2rem; color: var(--text); }
.entry img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.entry a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================ 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.notfound h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); line-height: 1; }

/* ============================================================ ANIMAÇÕES */
.reveal { opacity: 0; transform: translateY(40px) scale(0.99); transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-blur { filter: blur(14px); transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease; }
.reveal-blur.is-visible { filter: blur(0); }
.on-load { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.on-load.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-blur, .on-load, .wa-float { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
