/* ==========================================================================
   brand-color.css — estilos exclusivos das paginas de cor por marca
   Consumido por pages/<marca>/<slug>.html. Fora de styles.css de proposito:
   styles.css e carregado por TODAS as paginas do site e ja tem 3200+ linhas.

   A cor da marca vem de uma custom property. Para a Lucciare, basta
   redefinir --brand-accent no seletor da marca; nenhuma regra abaixo muda.
   ========================================================================== */

:root {
  --hs-pink: #c44398;
  --hs-pink-hover: #a8357f;
  --hs-pink-glow: rgba(196, 67, 152, 0.15);
  --hs-pink-subtle: rgba(196, 67, 152, 0.08);

  --brand-accent: var(--hs-pink);
  --brand-accent-hover: var(--hs-pink-hover);
  --brand-accent-subtle: var(--hs-pink-subtle);
}

/* Lucciare: mesmas regras, outra cor. Os valores sao os mesmos de
   pages/lucciare.html para a pagina de cor nao divergir do hub. */
body.brand-lucciare {
  --lc-terracotta: #CD7E59;
  --lc-terracotta-hover: #b56a47;
  --lc-terracotta-subtle: rgba(205, 126, 89, 0.15);

  --brand-accent: var(--lc-terracotta);
  --brand-accent-hover: var(--lc-terracotta-hover);
  --brand-accent-subtle: var(--lc-terracotta-subtle);
}

/* .btn--hanstone traz o layout do botao de marca (styles.css) com o rosa
   cravado no hex. .btn--brand vem depois na cascata e so troca a cor, sem
   duplicar o layout nem mexer nas paginas da Hanstone. */
.btn--brand {
  background-color: var(--brand-accent);
}
.btn--brand:hover {
  background-color: var(--brand-accent-hover);
}

.bcp .label {
  color: var(--brand-accent);
}

/* --- 1. Breadcrumb --- */
.bcp-breadcrumb {
  padding: 120px 0 0;
  background: var(--color-bg-primary);
}
.bcp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.bcp-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.45;
}
.bcp-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  /* altura de alvo: os links tinham 16px de altura */
  padding: 4px 0;
  transition: color var(--transition-default);
}
.bcp-breadcrumb a:hover,
.bcp-breadcrumb a:focus-visible {
  color: var(--brand-accent);
}
.bcp-breadcrumb [aria-current="page"] {
  color: var(--color-text-light);
}

/* --- 2/3/4. Slab, painel e CTA --- */
.bcp-hero {
  padding: 32px 0 88px;
  background: var(--color-bg-primary);
}
.bcp-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  /* stretch, nao start: os slabs sao panoramicos (3000x1465) e com altura
     automatica sobrava um vazio de ~350px sob a imagem, ao lado de um painel
     bem mais alto. Como a pedra e textura continua, preencher a coluna com
     crop mostra mais material e elimina o buraco. */
  align-items: stretch;
}

/* Duas vistas empilhadas: chapa inteira em cima, detalhe embaixo. */
.bcp-slab {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.bcp-slab-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  /* piso de altura para quando o painel for curto; acima disso a imagem
     acompanha a coluna */
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-lg);
}

/* O detalhe e uma faixa baixa: complementa a chapa sem competir com ela. */
.bcp-detail-frame {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  height: 150px;
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-dark);
}
.bcp-detail-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcp-view-label {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 6px 14px;
  background: rgba(26, 26, 30, 0.72);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.bcp-slab-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}
.bcp-slab-frame:hover img {
  transform: scale(1.8);
}
.bcp-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(26, 26, 30, 0.7);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--transition-default);
}
.bcp-slab-frame:hover .bcp-zoom-hint {
  opacity: 0;
}

.bcp-panel h1 {
  font-family: var(--font-headline);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.bcp-code {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.bcp-code strong {
  color: var(--brand-accent);
  font-weight: 500;
}
.bcp-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.bcp-tag-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.bcp-tag-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.bcp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bcp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-light);
  border: 1px solid var(--color-border-dark);
  border-radius: 20px;
  transition: all var(--transition-default);
}
.bcp-tag:hover,
.bcp-tag:focus-visible {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.bcp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 28px;
}
.bcp-facts dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.bcp-facts dd {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.bcp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- 5. Galeria de ambientes --- */
.bcp-gallery-section h2,
.bcp-related-section h2,
.bcp-specs h2,
.bcp-final-cta h2 {
  font-family: var(--font-headline);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 300;
  margin: 14px 0 36px;
}
.bcp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.bcp-gallery-item {
  display: block;
  padding: 0;
  border: 1px solid var(--color-border-dark);
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color var(--transition-default), transform var(--transition-default);
}
.bcp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-default);
}
.bcp-gallery-item:hover,
.bcp-gallery-item:focus-visible {
  border-color: var(--brand-accent);
  transform: translateY(-3px);
}
.bcp-gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox — mesmo comportamento do hub Hanstone */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* visibility, nao so opacity: com opacity 0 sozinha o botao de fechar
     continua na ordem de tabulacao, e quem navega por teclado para num
     controle invisivel que nao faz nada. */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  cursor: pointer;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox-info {
  margin-top: 20px;
  text-align: center;
}
.lightbox-info .lightbox-name {
  font-family: var(--font-headline);
  font-size: 28px;
  color: var(--brand-accent);
}
.lightbox-info .lightbox-ref {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.lightbox-close:hover {
  color: var(--brand-accent);
}

/* --- 6. Specs em accordion --- */
/* Duas colunas: o titulo segura a esquerda enquanto o accordion ocupa a
   direita. Com o accordion sozinho e largura travada sobrava metade da tela
   vazia logo depois de um slab imponente, e a secao parecia inacabada. */
.bcp-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}
.bcp-specs-head {
  position: sticky;
  top: 120px;
}
.bcp-specs-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 16px;
}
.bcp-accordion {
  border-top: 1px solid var(--color-border-dark);
}
.bcp-accordion details {
  border-bottom: 1px solid var(--color-border-dark);
}
.bcp-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
}
.bcp-accordion summary::-webkit-details-marker {
  display: none;
}
.bcp-accordion summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-accent);
  line-height: 1;
}
.bcp-accordion details[open] summary::after {
  content: "\2212";
}
.bcp-accordion-body {
  padding: 0 0 22px;
}
.bcp-accordion-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.bcp-accordion-body a {
  color: var(--brand-accent);
}
.bcp-doc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.bcp-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-dark);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text-light);
  transition: all var(--transition-default);
}
.bcp-doc:hover,
.bcp-doc:focus-visible {
  border-color: var(--brand-accent);
  background: var(--brand-accent-subtle);
}
.bcp-doc-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* --- 7. Cores relacionadas --- */
.bcp-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.bcp-related-card {
  display: block;
  text-decoration: none;
  transition: transform var(--transition-default);
}
.bcp-related-card:hover {
  transform: translateY(-4px);
}
.bcp-related-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: border-color var(--transition-default);
}
.bcp-related-card:hover .bcp-related-thumb,
.bcp-related-card:focus-visible .bcp-related-thumb {
  border-color: var(--brand-accent);
}
.bcp-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bcp-related-name {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
}
.bcp-related-code {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --- CTA final --- */
.bcp-final-cta {
  text-align: center;
}
.bcp-final-cta p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.bcp-final-cta .bcp-cta {
  justify-content: center;
}

/* --- 8. Sticky CTA (mobile) --- */
.bcp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* o padding direito reserva a faixa do botao de chat, que e global,
     fica em z-index 1001 e cobriria o CTA. Mexer no chat afetaria o site
     inteiro; ceder o espaco aqui resolve so onde o conflito existe. */
  padding: 10px 80px 10px 16px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-dark);
  /* barra escura dentro de um site de tema claro: a cor de texto herdada do
     body e quase preta, entao o padrao vai explicito aqui */
  color: #fff;
}
/* Atencao ao nomear cores aqui: --color-text-light vale #1A1A1E (quase
   preto). O nome sobrou da epoca em que o site era tema escuro e nao
   acompanhou a migracao para a paleta clara. Sobre a barra escura deste
   componente ele fica ilegivel, entao o branco vai explicito. */
.bcp-sticky-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bcp-sticky-name em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 6px;
}
.bcp-sticky-cta .btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 22px;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .bcp-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* coluna unica: nao ha painel ao lado para acompanhar, entao a imagem
     volta a ser governada pela proporcao */
  .bcp-slab-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .bcp-specs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bcp-specs-head {
    position: static;
  }
}
@media (max-width: 768px) {
  .bcp-breadcrumb {
    padding-top: 100px;
  }
  .bcp-hero {
    padding: 24px 0 64px;
  }
  .bcp-slab-frame {
    aspect-ratio: 4 / 3;
    cursor: default;
  }
  .bcp-slab-frame:hover img {
    transform: none;
  }
  .bcp-zoom-hint {
    display: none;
  }
  .bcp-cta .btn {
    flex: 1 1 100%;
  }
  .bcp-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bcp-related {
    grid-template-columns: repeat(2, 1fr);
  }
  .bcp-sticky-cta {
    display: flex;
  }
  /* O sticky CTA e a tab bar somam ~140px fixos no rodape. Sem esta reserva,
     Tab leva o foco para tras delas e o indicador fica 100% invisivel -
     falha 2.4.11 Focus Not Obscured (AA). Mesmo valor do padding do rodape. */
  html {
    scroll-padding-bottom: 140px;
  }
  /* Espaco para o sticky CTA (65px) + tab bar (59px) + folga. Sem sobra, o
     ultimo elemento focavel da pagina fica sob as barras e nao ha mais scroll
     disponivel para tirar dali - falha 2.4.11. */
  .footer {
    padding-bottom: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcp-slab-frame img,
  .bcp-gallery-item,
  .bcp-gallery-item img,
  .bcp-related-card {
    transition: none;
  }
  .bcp-slab-frame:hover img,
  .bcp-gallery-item:hover img,
  .bcp-gallery-item:hover,
  .bcp-related-card:hover {
    transform: none;
  }
}
