/* ============================================================
   HOME — Seções específicas da front-page
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────── */

.bt-hero {
  position: relative;
  background: var(--bg-cream-warm);
  padding: 80px 0 100px;
  overflow: hidden;
}
.bt-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 540px) 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 600px;
}
.bt-hero__side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bt-hero__side img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
}
.bt-hero__side--left img  { transform: rotate(-2deg); }
.bt-hero__side--right img { transform: rotate(2deg);  }

.bt-hero__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 0 1rem;
}
.bt-hero__logo {
  max-width: 180px;
  margin-bottom: 0.5rem;
}
.bt-hero__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-navy);
  margin: 0;
  line-height: 1;
}
.bt-hero__tagline {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);   /* um pouco maior pra destacar */
  font-weight: 600;                            /* peso pra dar presença na frase */
  color: var(--text-navy);                     /* navy contrasta mais que o warm sobre o creme */
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
  /* halo creme sutil — firma a leitura quando a frase fica sobre a foto */
  text-shadow: 0 1px 6px rgba(245, 235, 222, 0.7);
}
.bt-hero__cta {
  margin-top: 1rem;
  /* sombra suave pra o botão "saltar" do fundo e chamar o clique */
  box-shadow: 0 10px 28px -10px rgba(26, 39, 68, 0.5);
}

/* As imagens da hero (desktop e mobile) JÁ trazem "Luxo é sentir poesia"
   impressa na arte, então escondemos a tagline do overlay pra não duplicar.
   O botão (CTA) continua aparecendo normalmente. */
.bt-hero--has-bg .bt-hero__tagline { display: none; }

@media (max-width: 900px) {
  .bt-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bt-hero__side {
    display: none; /* simplifica mobile, evita imagens muito pequenas */
  }
  .bt-hero { padding: 60px 0 80px; }
}

/* ── Hero MODO BACKGROUND (aspect-ratio nativo da imagem 1600x962) ─── */

.bt-hero--has-bg {
  width: 100%;
  height: auto;                 /* a <img> abaixo dita a altura natural — sem corte possível */
  min-height: 0;
  padding: 0;
  background-color: var(--bg-cream-warm);
  overflow: hidden;
  position: relative;
  /* IMPORTANTE: NÃO usar container-type: size aqui — colapsa pra altura 0
     porque size containment ignora altura intrínseca dos filhos. */
}

/* Imagem real (não background) — ocupa 100% largura e altura proporcional natural.
   Como base.css tem `picture { display: contents }`, o <picture> some do layout
   e a <img.bt-hero__bg-img> vira filha direta da section. */
.bt-hero__bg-img {
  display: block;
  width: 100%;
  height: auto;                 /* aspect ratio nativo, zero crop */
  z-index: 0;
}

/* Conteúdo (logo, tagline, CTA) — overlay absoluto sobre a imagem.
   top: 73% posiciona o conteúdo abaixo do wordmark BRUNTIANO da imagem. */
.bt-hero--has-bg .bt-hero__inner {
  position: absolute;
  top: 73%;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
}

/* Overlay removido — imagem aparece pura, sem gradiente. */

.bt-hero--has-bg .bt-hero__side {
  display: none;                /* sem imagens laterais quando tem bg */
}

.bt-hero--has-bg .bt-hero__center {
  gap: 1.2rem;
}

/* No mobile, o texto+botão CONTINUAM sobre a imagem (dentro da hero), mas
   ancorados pelo RODAPÉ da foto (bottom) em vez de top:76% — que caía em cima
   da xícara e atrapalhava a leitura. Ancorar por bottom garante que o botão
   nunca estoura a borda inferior da imagem. */
@media (max-width: 900px) {
  .bt-hero--has-bg .bt-hero__inner {
    top: auto;
    bottom: 6%;                  /* desce o conteúdo pro creme inferior da foto */
  }
  .bt-hero--has-bg .bt-hero__center {
    gap: 0.7rem;                 /* compacta pra ocupar menos altura sobre a foto */
  }
  .bt-hero--has-bg .bt-hero__tagline {
    font-size: 0.95rem;
  }
  .bt-hero--has-bg .bt-hero__cta {
    font-size: 0.55rem;
    padding: 6px 14px;
    letter-spacing: 0.15em;
    gap: 0.3rem;
  }
}

/* Mobile real (telefone): botão hero ainda mais compacto */
@media (max-width: 600px) {
  .bt-hero--has-bg .bt-hero__inner {
    bottom: 5%;
  }
  .bt-hero--has-bg .bt-hero__cta {
    font-size: 0.5rem;
    padding: 5px 11px;
    letter-spacing: 0.12em;
  }
}

/* ── Seção "Como vivenciar?" ───────────────────────────── */

.bt-vivenciar {
  position: relative;
  padding: var(--section-gap) 0;
  background-color: var(--bg-cream-light);
  overflow: hidden;
  min-height: 600px;                             /* garante altura pra foto respirar */
}
/* <picture> tem display:contents global — então posicionamos o <img> direto.
   Imagem em escala natural (top:0/height:100%) igual ao mobile: cover só corta um
   pouco na horizontal, mostrando a composição inteira sem o zoom do parallax. */
.bt-vivenciar__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}
.bt-vivenciar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;                   /* card só na esquerda */
}
.bt-vivenciar__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 480px;                              /* limita largura, foto respira à direita */
  background: transparent;                       /* sem card — texto direto sobre a foto */
  border: 0;
  padding: 3rem 0 3rem 0;                        /* alinha pela borda esquerda do container */
}
.bt-vivenciar__text h2 {
  margin-bottom: 1rem;
  /* halo creme atras do titulo pra destacar do fundo dourado da foto */
  text-shadow: 0 1px 6px rgba(245, 235, 222, 0.55);
}
.bt-vivenciar__text p {
  margin-bottom: 1.1rem;                         /* era 2rem — aproxima do tracinho/botao */
  max-width: 44ch;
  font-weight: 400;                              /* era 300 (light) — pesa mais pra leitura */
  color: var(--text-navy-light);                 /* era warm #6B5E50 (baixo contraste) */
  text-shadow: 0 1px 4px rgba(245, 235, 222, 0.6);
}
/* tracinho colado: encurta o vao texto -> botao */
.bt-vivenciar__text .bt-rule-gold {
  margin-top: 0;
  margin-bottom: 1rem;
}
/* CTA navy preenchido com leve sombra pra "saltar" do fundo */
.bt-vivenciar__cta {
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.18);
}

/* Ornamento (flourish navy) ENVOLVE o título. O wrapper .bt-vivenciar__heading
   tem altura = só do <h2>, então top:50% centra o C na linha do título — funciona
   igual no desktop (título centralizado no bloco) e no mobile (título no topo),
   porque agora o ancoramento é no TÍTULO, não no topo do bloco. */
.bt-vivenciar__text { position: relative; }
.bt-vivenciar__heading { position: relative; margin-bottom: 1.75rem; }  /* afasta o parágrafo do título/C (desktop) */
.bt-vivenciar__flourish-img {
  position: absolute;
  top: 50%;
  left: -2.75rem;
  transform: translateY(-60%);          /* sobe o C ~10% -> título assenta mais baixo, encaixado no berço */
  width: 145px;                         /* C maior no desktop (mobile mantém 100px no override) */
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 900px) {
  /* Proporção 1:1 = mesma da imagem (1080x1080) -> ela aparece INTEIRA, sem corte */
  .bt-vivenciar {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  /* Remove o zoom/oversize do parallax (que ja fica desligado no mobile) — senao corta */
  .bt-vivenciar__bg img {
    top: 0;
    height: 100%;
  }
  /* Mantém o flourish do mobile exatamente como estava (levemente acima do título) */
  .bt-vivenciar__flourish-img {
    top: -2.95rem;
    transform: none;
    width: 100px;                        /* mobile mantém o tamanho original */
  }
  .bt-vivenciar__heading { margin-bottom: 0; }  /* mobile mantém o espaçamento original */
  .bt-vivenciar__inner { justify-content: center; align-items: flex-start; }
  .bt-vivenciar__text {
    max-width: none;
    margin-top: 0;                                 /* colado no topo — fica na area creme vazia */
    /* Sem película — foto aparece pura atrás do texto. */
    background: transparent;
    border-radius: 0;
    padding: 0.75rem 1.75rem;                      /* pouco padding em cima pra subir o bloco todo */
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
    box-shadow: none;
  }
  /* Sem fundo, o text-shadow é o que segura a leitura sobre a foto */
  .bt-vivenciar__text h2,
  .bt-vivenciar__text p { text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); }
  /* Aproxima o botão do texto: menos espaço no parágrafo e no tracinho */
  .bt-vivenciar__text p { margin-bottom: 0.55rem; }
  .bt-vivenciar__text .bt-rule-gold { margin-top: 0.4rem; margin-bottom: 0.6rem; }
  .bt-vivenciar__text .bt-btn {
    font-size: 0.55rem;
    padding: 6px 14px;
    letter-spacing: 0.15em;
    gap: 0.3rem;
    align-self: flex-start;                       /* não estica na largura toda */
  }
}
@media (max-width: 600px) {
  .bt-vivenciar__text .bt-btn {
    font-size: 0.5rem;
    padding: 5px 11px;
    letter-spacing: 0.12em;
  }
}

/* ── Seção "Itens Exclusivos" ──────────────────────────── */

.bt-itens {
  padding: var(--section-gap) 0;
  background-color: var(--bg-cream);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
}
/* ── Layout 2 colunas: texto+CTA esquerda, imagem lifestyle direita ── */
.bt-itens__inner {
  display: grid;
  grid-template-columns: 1fr 2.2fr;       /* texto ~31%, imagem ~69% — mais larga */
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.bt-itens__text h2 {
  margin: 0 0 0.6rem;
  text-wrap: balance;            /* equilibra as linhas — evita "com" orfao sozinho */
}
.bt-itens__text p {
  color: var(--text-warm);
  margin: 0 0 1.5rem;
  max-width: 38ch;
  text-wrap: pretty;             /* evita viuva (palavra solta na ultima linha) */
}
.bt-itens__text .bt-rule-gold {
  margin: 1.2rem 0;
}
.bt-itens__image {
  overflow: hidden;
  aspect-ratio: 1143 / 900;
}
.bt-itens__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow:
    0 12px 48px -12px rgba(196, 168, 112, 0.45),
    0 4px 16px -4px rgba(196, 168, 112, 0.25);
  transition:
    transform 0.9s var(--ease-luxury),
    box-shadow 0.6s var(--ease-luxury);
  will-change: transform;
}
.bt-itens__image:hover img {
  transform: scale(1.03);
  box-shadow:
    0 16px 60px -12px rgba(196, 168, 112, 0.6),
    0 6px 20px -4px rgba(196, 168, 112, 0.35);
}

/* ── Grid de produtos (opcional, abaixo) ── */
.bt-itens__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .bt-itens__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .bt-itens__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}
@media (max-width: 600px) {
  .bt-itens__grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

/* ── Seção Categorias ──────────────────────────────────── */

.bt-categorias {
  padding: var(--section-gap) 0;
  background-color: var(--bg-cream-light);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
}
.bt-categorias__title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.bt-categorias__title h2 { margin: 0 0 0.6rem; }
.bt-categorias__title p { color: var(--text-warm); margin: 0 auto; max-width: 50ch; }
/* ── Carrossel controlado por setas (scroll nativo + snap) ──────────── */
.bt-categorias__slider-wrap {
  position: relative;                          /* âncora pras setas absolutas */
}
.bt-categorias__slider {
  display: flex;
  gap: 2rem;
  width: 100%;
  overflow-x: auto;                            /* o track é quem rola */
  scroll-snap-type: x mandatory;               /* para alinhado num card */
  scroll-behavior: smooth;                     /* scrollBy desliza suave */
  scrollbar-width: none;                       /* esconde scrollbar (Firefox) */
  -ms-overflow-style: none;                    /* esconde scrollbar (IE/Edge antigo) */
  padding-bottom: 0.5rem;                      /* respiro pra shadow dos cards */
  -webkit-overflow-scrolling: touch;           /* arraste suave no iOS */
}
.bt-categorias__slider::-webkit-scrollbar {    /* esconde scrollbar (Chrome/Safari) */
  display: none;
}
.bt-categorias__slider > .bt-category-card {
  scroll-snap-align: start;                    /* cada card "encaixa" ao parar */
}

.bt-categorias__slider > .bt-category-card {
  /* Card tem largura fixa baseada na viewport pra ficar consistente */
  flex: 0 0 calc((100vw - 4rem - (2rem * 2)) / 3);   /* 3 visíveis no desktop, descontando container padding */
  max-width: 360px;                            /* limite máximo pra não ficar gigante */
  min-width: 0;
}
@media (max-width: 1024px) {
  .bt-categorias__slider { gap: 1.5rem; }
  .bt-categorias__slider > .bt-category-card {
    flex-basis: calc((100vw - 4rem - 1.5rem) / 2);
    max-width: 320px;
  }
}
@media (max-width: 600px) {
  .bt-categorias__slider > .bt-category-card {
    flex-basis: calc(100vw - 6rem);             /* 1 card por vez */
    max-width: 280px;
  }
}

/* ── Setas de navegação do carrossel ── */
.bt-categorias__nav {
  position: absolute;
  top: 38%;                                    /* na altura da imagem do card, não do texto */
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  color: var(--text-navy);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background var(--duration-fast) var(--ease-soft),
              color var(--duration-fast) var(--ease-soft),
              opacity var(--duration-fast) var(--ease-soft);
}
.bt-categorias__nav:hover {
  background: var(--text-navy);
  color: var(--bg-cream);
}
.bt-categorias__nav--prev { left: -8px; }
.bt-categorias__nav--next { right: -8px; }
/* Nos limites (início/fim) a seta sem destino fica oculta e sem clique */
.bt-categorias__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.bt-categorias__nav[hidden] { display: none; }

@media (max-width: 600px) {
  .bt-categorias__nav { width: 38px; height: 38px; }
  .bt-categorias__nav--prev { left: 2px; }
  .bt-categorias__nav--next { right: 2px; }
}

/* ── Seção Quote ───────────────────────────────────────── */

.bt-quote-section {
  background-color: var(--bg-cream-warm);
  background-image: var(--bt-paper-texture);
  background-repeat: repeat;
  background-size: 240px 240px;
  padding: 120px 0;
  text-align: center;
}
.bt-quote-section .bt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bt-quote-section .bt-rule-gold {
  margin: 0 0 2.5rem;
  width: 80px;
}

/* ============================================================
   LANÇAMENTOS — vitrine de produtos recentes na home.
   Reusa .bt-archive__header + .bt-archive__grid (de products.css),
   então o card/grade ficam idênticos à página /produtos/. Aqui só o
   espaçamento da section e o CTA central abaixo do grid.
   ============================================================ */
.bt-lancamentos {
  padding: var(--section-gap) 0;
}
/* "L" ornamentado no lugar da 1a letra do titulo "Lancamentos" (capitular) */
.bt-lancamentos__title {
  line-height: 1.05;
  white-space: nowrap;
}
.bt-lancamentos__dropcap {
  display: inline-block;
  height: 3.6em;           /* ajuste fino do tamanho do L aqui */
  width: auto;
  vertical-align: -0.86em; /* desce o L para "sentar" na linha da palavra */
  margin-right: -0.62em;   /* aproxima o L do restante da palavra */
}
@media (max-width: 600px) {
  .bt-lancamentos__title { white-space: normal; }
  .bt-lancamentos__dropcap { height: 3.1em; vertical-align: -0.74em; margin-right: -0.52em; }
}
.bt-lancamentos__cta {
  text-align: center;
  margin-top: 3rem;
}
@media (max-width: 600px) {
  .bt-lancamentos {
    padding: var(--section-gap-mobile) 0;
  }
}
