/* ===== Tokens ===== */
:root {
  --stone-50: #f1f4f1;
  --stone-100: #e7ece7;
  --stone-900: #14231f;
  --stone-600: #4e5f58;
  --line: #d6dfd8;
  --brand: #1e6e63; /* sobrescrito por site via style inline no <html> */
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --brand-ink: color-mix(in srgb, var(--brand) 70%, black);
  --brand-deep: color-mix(in srgb, var(--brand) 82%, black);
  --brand-glow: color-mix(in srgb, var(--brand) 38%, transparent);
  --line-strong: color-mix(in srgb, var(--stone-900) 24%, transparent);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --wrap: min(72rem, 100% - 3rem);

  --shadow-sm: 0 1px 2px rgba(20, 35, 31, .05), 0 3px 10px -6px rgba(20, 35, 31, .12);
  --shadow-md: 0 12px 28px -12px rgba(20, 35, 31, .18);
  --shadow-brand: 0 16px 32px -14px var(--brand-glow);

  /* Sombra "carimbo" — deslocada e sólida, não borrada. É o contraponto proposital ao
     botão-pílula-com-glow genérico de SaaS; referência ao selo/etiqueta de um laudo de
     análise mineral (ver DESIGN_MODERNO.md — usar um traço de "brutalism tátil" como
     tempero pontual, não sistema inteiro). */
  --shadow-stamp: 5px 5px 0 var(--stone-900);
  --shadow-stamp-brand: 5px 5px 0 var(--brand-deep);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes topo-drift {
  from { background-position: 0 0; }
  to { background-position: 240px 0; }
}

/* ===== Reset mínimo ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--stone-50) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.005em;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--stone-900);
  margin-right: auto;
}
.wordmark img { height: 2.5rem; width: auto; }

.primary-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--stone-600);
  position: relative;
  padding-bottom: 0.2rem;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brand-ink);
  transition: right 0.2s ease;
}
.primary-nav a:hover { color: var(--stone-900); }
.primary-nav a:hover::after { right: 0; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.35rem;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: var(--shadow-stamp-brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--brand-deep);
}
.btn-cta:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--brand-deep);
}

.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  width: 2rem; height: 2rem;
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span {
  display: block; height: 2px; background: var(--stone-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--stone-50);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 0.5rem 1.5rem 1.25rem;
}
.mobile-nav nav a {
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--stone-900);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.mobile-nav nav a:last-child { border-bottom: none; }
.mobile-nav .btn-cta { margin-top: 0.85rem; text-align: center; }

@media (max-width: 760px) {
  .primary-nav, .main-bar > .btn-cta { display: none; }
  .mobile-nav { display: block; }
  /* o dropdown fica absoluto contra .site-header (position: sticky já o torna um
     containing block) de propósito, não contra .mobile-nav — senão ele herda a largura
     estreita do ícone do hambúrguer em vez da largura cheia do cabeçalho. */
}

/* ===== Conteúdo ===== */
main { min-height: 40vh; }

/* ===== CTA de WhatsApp flutuante =====
   Fica visível em qualquer ponto da navegação (não só header/hero) — só existe se houver
   WhatsApp cadastrado no site (ver site/layout.php). Ícone genérico de balão de conversa
   (SVG inline, não é o logo oficial do WhatsApp) só pra sinalizar "chat", cor de marca do
   próprio site em vez do verde do WhatsApp, consistente com o resto da identidade visual. */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-stamp-brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--brand-deep);
}
@media (max-width: 760px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 3.15rem; height: 3.15rem; }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  background: var(--stone-100);
  border-top: 1px solid var(--line);
}
.footer-topo {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 240px 120px;
  pointer-events: none;
  animation: topo-drift 60s linear infinite;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .wordmark { margin-bottom: 0.35rem; }
.footer-brand .tagline {
  color: var(--stone-600);
  font-size: 0.92rem;
  margin: 0;
}
.footer-contact h3,
.footer-composition h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--stone-600);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-composition h3 .tag {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
}
.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 1rem; }

.composition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-family: var(--font-mono);
}
.composition-grid div { display: flex; flex-direction: column; }
.composition-grid dt {
  font-size: 0.72rem;
  color: var(--stone-600);
}
.composition-grid dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--stone-900);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: var(--stone-600);
}

/* ===== Tipografia reutilizável ===== */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--stone-600);
  margin: 0 0 0.5rem;
}
.lede { color: var(--stone-600); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--stone-900);
  background: transparent;
  border: 1.5px solid var(--stone-900);
  border-radius: 3px;
  font-family: var(--font-mono);
  padding: 0.75rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.empty-state {
  color: var(--stone-600);
  background: var(--stone-100);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

/* ===== Hero =====
   Estrutura assimétrica de duas colunas (texto à esquerda, painel de "levantamento" à
   direita) — de propósito o oposto do hero centralizado com glow atrás do texto (esse é
   o "template padrão" que qualquer gerador de site produz, ver DESIGN_MODERNO.md). O
   painel reaproveita o padrão topográfico (App\Core\TopoPattern) que antes era só uma
   textura de fundo quase invisível — aqui ele vira o elemento visual principal. */
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy { max-width: 34rem; }
.hero .eyebrow { animation: fade-up 0.7s ease both; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 0.98;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  margin: 0 0 1.1rem;
  animation: fade-up 0.7s 0.08s ease both;
}
.hero .lede {
  font-size: 1.08rem;
  animation: fade-up 0.7s 0.16s ease both;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.24s ease both;
}

/* ----- Painel de levantamento (signature visual) ----- */
.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 30rem;
  border: 1.5px solid var(--stone-900);
  border-radius: 4px;
  overflow: hidden;
  background: var(--stone-50);
  animation: fade-up 0.8s 0.1s ease both;
}
@media (max-width: 900px) { .hero-panel { aspect-ratio: 16 / 9; max-height: none; } }
.hero-panel-pattern {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 130px 65px;
  opacity: 0.9;
  animation: topo-drift 70s linear infinite;
}
.hero-panel::before,
.hero-panel::after,
.hero-panel-pattern::before,
.hero-panel-pattern::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  z-index: 2;
}
/* marcas de canto tipo carimbo/prancheta de levantamento topográfico */
.hero-panel-pattern::before { top: 0.7rem; left: 0.7rem; border-top: 2px solid var(--stone-900); border-left: 2px solid var(--stone-900); }
.hero-panel-pattern::after { top: 0.7rem; right: 0.7rem; border-top: 2px solid var(--stone-900); border-right: 2px solid var(--stone-900); }
.hero-panel::before { bottom: 0.7rem; left: 0.7rem; border-bottom: 2px solid var(--stone-900); border-left: 2px solid var(--stone-900); }
.hero-panel::after { bottom: 0.7rem; right: 0.7rem; border-bottom: 2px solid var(--stone-900); border-right: 2px solid var(--stone-900); }
.hero-panel-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-900);
}
.hero-panel-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
  text-transform: none;
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
}
.hero-panel-tag {
  background: var(--stone-900);
  color: var(--stone-50);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ===== Barra de confiança (selos opcionais: anos de mercado, clientes, avaliação) =====
   Só renderiza quando há pelo menos um selo cadastrado (ver SiteSettingRepository::
   trustBadgesFor) — nunca mostra número inventado, mesmo princípio já usado na composição
   mineral do rodapé. */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--stone-100);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  padding: 1.1rem 0;
}
.trust-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--stone-900);
  white-space: nowrap;
}

/* ===== Produtos ===== */
.products { padding: 4rem 0; }
.products h2 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: 2rem;
  margin: 0 0 2rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-group { margin-bottom: 3rem; }
.product-group:last-child { margin-bottom: 0; }
.product-group h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  color: var(--stone-900);
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card .product-image {
  display: block;
  width: calc(100% + 3rem);
  height: 160px;
  object-fit: cover;
  margin: -1.5rem -1.5rem 1rem;
  border-radius: 8px 8px 0 0;
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  margin: 0.2rem 0 0.3rem;
}
.product-type {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  margin: 0;
}
.product-size { color: var(--stone-600); font-size: 0.88rem; margin: 0 0 0.75rem; }
.product-price { font-family: var(--font-mono); font-size: 1.05rem; margin: 0; }
.badge-returnable {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.products-more { text-align: center; margin: 2.5rem 0 0; }

/* ===== Nossas marcas (site principal / grupo) ===== */
.brands-section { padding: 4rem 0; }
.brands-section h2 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: 2rem;
  margin: 0 0 2rem;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  --card-accent: var(--brand);
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--card-accent);
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.brand-card .brand-logo { height: 2.25rem; width: auto; margin-bottom: 1rem; }
.brand-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.4rem;
  margin: 0.2rem 0 0.3rem;
}
.brand-domain { font-family: var(--font-mono); font-size: 0.78rem; color: var(--stone-600); margin: 0 0 1.25rem; }
.brand-cta { font-size: 0.85rem; font-weight: 600; color: var(--card-accent); }

/* ===== Seja distribuidor / Fale com o grupo =====
   Banda escura de propósito — alterna o ritmo claro/escuro da página em vez de manter
   tudo no mesmo tom pálido do início ao fim (ver DESIGN_MODERNO.md seção 1: cor "em
   camada", uso mais confiante da paleta). Único trecho do site em fundo --stone-900. */
.distributor-band { background: var(--stone-900); color: var(--stone-50); padding: 4.5rem 0; }
.distributor-band .eyebrow { color: color-mix(in srgb, var(--stone-50) 65%, transparent); }
.distributor-band .lede { color: color-mix(in srgb, var(--stone-50) 78%, transparent); }
.distributor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .distributor-grid { grid-template-columns: 1fr; }
}
.distributor-copy h2 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--stone-50);
}
.distributor-copy .lede { max-width: 30rem; margin: 0 0 1.5rem; }
.distributor-band .btn-outline { border-color: var(--stone-50); color: var(--stone-50); }
.distributor-band .btn-outline:hover { background: var(--stone-50); color: var(--stone-900); border-color: var(--stone-50); }

.lead-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.lead-form .field { margin-bottom: 1rem; }
.lead-form .field:last-of-type { margin-bottom: 0.4rem; }
.lead-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--stone-600);
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--stone-600);
  margin: -0.5rem 0 1rem;
}
.lead-form .btn-cta { width: 100%; justify-content: center; border: 0; cursor: pointer; margin-top: 0.5rem; }
.lead-message {
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.lead-message-success { background: var(--brand-soft); color: var(--brand-ink); }
.lead-message-error { background: #fef2f2; color: #b91c1c; }

/* ===== Hero secundário (Contato, Distribuidores, páginas institucionais) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.25rem;
  text-align: center;
}
.page-hero .hero-topo {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 320px 160px;
  pointer-events: none;
  animation: topo-drift 50s linear infinite;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 40rem; margin-inline: auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.04;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  margin: 0 0 1rem;
  animation: fade-up 0.7s 0.05s ease both;
}
.page-hero .eyebrow { animation: fade-up 0.7s ease both; }
.page-hero .lede { font-size: 1.02rem; animation: fade-up 0.7s 0.12s ease both; }

/* ===== Página de conteúdo (institucional) ===== */
.page-content { padding: 0 0 4.5rem; }
.page-body { max-width: 40rem; margin-inline: auto; color: var(--stone-900); }
.page-body p { margin: 0 0 1.1rem; }
.page-body h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}
.page-body a { color: var(--brand-ink); }

/* ===== Contato ===== */
.contact-section { padding: 0 0 4.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--stone-600);
  margin: 0 0 0.35rem;
}
.contact-value { font-size: 1.05rem; margin: 0 0 0.35rem; }
.contact-link { font-size: 0.85rem; color: var(--brand-ink); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* ===== Banners (galeria com scroll horizontal, sem JS) ===== */
.banner-strip { padding: 0 0 4rem; }
.banner-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max((100% - 72rem) / 2 + 1.5rem, 1.5rem);
  scrollbar-width: thin;
}
.banner-slide {
  position: relative;
  flex: 0 0 auto;
  width: min(85vw, 640px);
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--stone-100);
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.banner-slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.banner-caption strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.banner-caption span { font-size: 0.85rem; opacity: 0.9; }

/* ===================================================================
   "Nossas Marcas" — árvore de marcas do grupo (conteúdo global, sem site_id, ver
   App\Domain\Brand) + modal ao clicar num nó. Fica em site.css (não num tema específico) de
   propósito: a mesma árvore aparece nos três sites. Ao contrário do resto do site, esta seção
   usa uma paleta azul-marinho fixa (própria, --bh-*) em vez de --brand/--stone-*: é conteúdo do
   Grupo como um todo, não de um site específico, e deve ficar visualmente idêntico nos três
   domínios — sentado sobre a imagem de fundo fornecida (ver public/img/nossas-marcas-bg.jpg).
   =================================================================== */
.brand-hero-section {
  position: relative;
  overflow: hidden;
  background: #eaf2fb;
  --bh-navy: #162a5e;
  --bh-ink: #1c2f61;
  --bh-line: rgba(28, 45, 97, 0.32);
  --bh-glass: rgba(255, 255, 255, 0.55);
  --bh-glass-strong: rgba(255, 255, 255, 0.78);
  --bh-glass-border: rgba(255, 255, 255, 0.85);
}
.brand-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
}
.brand-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 16%,
    rgba(255, 255, 255, 0.08) 84%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

.brand-hero-wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
}

.brand-hero-tag {
  display: none;
  position: absolute;
  z-index: 2;
  margin: 0;
  max-width: 13rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.85;
  color: var(--bh-ink);
  opacity: 0.85;
}
.brand-hero-tag--left { top: 14%; left: 3rem; text-align: left; }
.brand-hero-tag--left::after {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin-top: 0.55rem;
}
.brand-hero-tag--right { top: 30%; right: 3rem; text-align: right; }
.brand-hero-tag--right::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 0 0 0.55rem auto;
}
.brand-hero-tag--script {
  top: 4%; right: 3rem;
  font-family: var(--font-script);
  font-size: 1.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: right;
}
@media (min-width: 1240px) {
  .brand-hero-tag { display: block; }
}

.brand-hero-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.brand-hero-heading .eyebrow { color: var(--bh-ink); }
.brand-hero-heading h1 {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.04;
  color: var(--bh-navy);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0.25rem 0 0.6rem;
}
.brand-hero-subtitle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bh-ink);
  opacity: 0.75;
}

.brand-hero-closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(2.25rem, 6vw, 3.5rem) 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bh-ink);
  opacity: 0.8;
}
.brand-hero-closing span { width: 40px; height: 1px; background: currentColor; opacity: 0.5; }

.brand-tree { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.tree-connector { width: 2px; height: 28px; background: var(--bh-line); }
.tree-connector--sm { height: 22px; }

.tree-level {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  width: fit-content;
  position: relative;
  margin-inline: auto;
}
.tree-level::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--bh-line);
}
/* margin-top some de propósito aqui — o gap entre a fonte e as marcas dela agora vem do
   .tree-connector--sm de verdade (ver site/brands.php), não de espaço em branco sem linha
   nenhuma desenhada nele (era esse o "não tá ligando" — o vão existia, a linha não). */

.tree-branch { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 26px; }
.tree-branch::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 26px;
  background: var(--bh-line);
  transform: translateX(-50%);
}

.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--bh-glass);
  border: 1px solid var(--bh-glass-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 26px -14px rgba(22, 38, 92, 0.35);
  font-family: inherit;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
/* Hierarquia de tamanho de propósito — o nó do topo (Grupo Sonja) precisa ler como "maior/mais
   importante" à primeira vista, a fonte como categoria intermediária, e a marca como o cartão
   clicável (menor que o topo, mas com mais informação: logo + nome). */
.tree-node--root {
  padding: 1.25rem 2.5rem;
  background: var(--bh-glass-strong);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px -16px rgba(22, 38, 92, 0.4);
}
.tree-node--root img { height: 68px; width: auto; display: block; }

.tree-node--source {
  background: var(--bh-glass-strong);
  padding: 1.1rem 2rem;
}
.tree-node--source .tree-node-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--bh-navy);
}

.tree-node--brand {
  cursor: pointer;
  width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tree-node--brand:hover,
.tree-node--brand:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -14px rgba(22, 38, 92, 0.4);
  border-color: rgba(255, 255, 255, 0.95);
  outline: none;
}
.tree-node--brand img { width: 100%; height: 52px; object-fit: contain; }
.tree-node--brand .tree-node-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
}
.tree-node-name { font-size: 0.82rem; font-weight: 600; color: var(--bh-ink); }
.tree-node-divider { width: 20px; height: 1px; background: var(--bh-ink); opacity: 0.35; }
.tree-node-tagline {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--bh-ink);
  opacity: 0.72;
}
.tree-node--source .tree-node-tagline { font-size: 0.7rem; }
.tree-node--soon { opacity: 0.72; }
.tree-node--soon .tree-node-name::after { content: " · em breve"; font-weight: 400; opacity: 0.75; }

@media (max-width: 760px) {
  .tree-connector, .tree-level::before, .tree-branch::before { display: none; }
  .tree-level { flex-direction: column; align-items: center; gap: 2rem; width: 100%; }
  .tree-level--brands { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
  .tree-branch { padding-top: 0; width: 100%; }
}

.brand-modal {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow-md);
  width: min(92vw, 26rem);
  background: white;
  color: var(--stone-900);
}
.brand-modal::backdrop { background: rgba(20, 30, 25, 0.5); backdrop-filter: blur(2px); }
/* Percentual de padding-esquerda/direita/cima/baixo à parte: aqui é só display:none via
   atributo — precisa de !important porque .btn-cta (mesma especificidade de [hidden]) já
   define display:inline-flex, e regra de autor sempre vence a folha do navegador. */
.brand-modal [hidden] { display: none !important; }
.brand-modal-close-form { display: flex; justify-content: flex-end; padding: 0.75rem 0.75rem 0; margin: 0; }
.brand-modal-close {
  background: var(--stone-100);
  border: 0;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--stone-600);
}
.brand-modal-close:hover { color: var(--stone-900); }
.brand-modal-body {
  padding: 0 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.brand-modal-logo-wrap { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.brand-modal-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-modal-fallback {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
}
.brand-modal-name { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.brand-modal-desc { color: var(--stone-600); font-size: 0.95rem; margin: 0; }
.brand-modal-soon { color: var(--stone-600); font-size: 0.85rem; font-style: italic; margin: 0.5rem 0 0; }
