/* =========================================================
   Casa Ber - estilos
   Fonte única: Montserrat. Espaçamentos em escala de 8px.
   ========================================================= */
:root {
  --cb-accent: #c9472b;      /* vermelho-telha do "B" do logo */
  --cb-text: #4a4a4a;        /* texto corrido */
  --cb-heading: #1f1f1f;     /* títulos escuros */
  --cb-dark: #0f0f0f;        /* faixas pretas */
  --cb-gray: #d4d4d4;        /* faixa cinza com o logo */
  --cb-light: #f4f3f1;       /* fundo suave */

  --space-section: 96px;     /* respiro vertical das seções */
  --space-title: 40px;       /* do título ao conteúdo */

  --bs-body-font-family: 'Montserrat', sans-serif;
  --bs-body-color: var(--cb-text);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.75;
}
@media (max-width: 991.98px) { :root { --space-section: 72px; --space-title: 32px; } }
@media (max-width: 575.98px) { :root { --space-section: 56px; --space-title: 24px; } }

body { font-weight: 400; -webkit-font-smoothing: antialiased; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* Seções */
.section { padding: var(--space-section) 0; }
section { scroll-margin-top: 120px; }

.eyebrow {
  display: block; margin-bottom: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #8a8a8a;
}
.section-title {
  font-weight: 600; color: var(--cb-accent); line-height: 1.25;
  font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: var(--space-title);
}
.section-lead {
  max-width: 760px; margin: calc(var(--space-title) * -0.5) auto var(--space-title) !important;
  font-size: 1.05rem; color: var(--cb-text);
}

/* Cabeçalho */
.navbar { transition: box-shadow .3s; }
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.navbar-brand { padding: 0; }
.navbar-brand img { height: 96px; width: auto; transition: height .3s; }
.navbar.scrolled .navbar-brand img { height: 72px; }
@media (max-width: 991.98px) { .navbar-brand img, .navbar.scrolled .navbar-brand img { height: 72px; } }
.navbar .nav-link {
  font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cb-heading); padding: .5rem 1.1rem !important; position: relative;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .2rem;
  height: 2px; background: var(--cb-accent); transform: scaleX(0); transition: transform .25s;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--cb-accent); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { background: var(--cb-light); border: 0; padding: .4rem .6rem; border-radius: 6px; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-collapse { text-align: center; padding: 1rem 0 .5rem; }
  .navbar .nav-link::after { display: none; }
}

/* Carrossel de abertura: 3 fotos por vez (1 no celular) */
.hero > img { width: calc(100% / 3); height: auto; display: block; }
@media (max-width: 767.98px) { .hero > img { width: 100%; } }

/* Frase */
.tagline {
  font-weight: 300; color: var(--cb-heading); letter-spacing: .02em;
  font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0; padding: 56px 1rem;
}
@media (max-width: 575.98px) { .tagline { padding: 40px 1rem; } }

/* Faixa cinza com logo */
.banner-logo { background: var(--cb-gray); }
.banner-logo img { width: 100%; height: auto; display: block; }

/* Sobre Nós */
#sobre .lead-first { font-size: 1.15rem; color: var(--cb-heading); font-weight: 500; line-height: 1.65; }
.sobre-img { width: 100%; max-width: 520px; height: auto; display: block; margin-left: auto; border-radius: 4px; }
@media (max-width: 991.98px) { .sobre-img { margin: 0 auto; } }

/* Sliders (abertura, fornecedores e decorações) */
.slider { position: relative; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); color: var(--cb-heading); font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--cb-accent); color: #fff; }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

/* Fornecedores */
#fornecedores { background: var(--cb-dark); }
#fornecedores .eyebrow { color: #9a9a9a; }
#fornecedores .slider { max-width: 1320px; margin: 0 auto; padding: 0 64px; }
#fornecedores .slider-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
#fornecedores .slider-btn:hover { background: var(--cb-accent); }
#fornecedores .slider-btn.prev { left: 12px; }
#fornecedores .slider-btn.next { right: 12px; }
.logos { gap: 12px; }
.logos > img {
  width: calc((100% - 8 * 12px) / 9); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; display: block;
}
@media (max-width: 1199.98px) { .logos > img { width: calc((100% - 5 * 12px) / 6); } }
@media (max-width: 767.98px)  {
  #fornecedores .slider { padding: 0 52px; }
  .logos > img { width: calc((100% - 2 * 12px) / 3); }
}

/* Decorações e Presentes */
#decoracoes { background: var(--cb-light); }
#decoracoes .slider { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
#decoracoes .slider-btn.prev { left: 36px; }
#decoracoes .slider-btn.next { right: 36px; }
.fotos { gap: 16px; }
.fotos > img {
  width: calc((100% - 2 * 16px) / 3); aspect-ratio: 1 / 1; object-fit: cover;
  display: block; border-radius: 4px;
}
@media (max-width: 767.98px) { .fotos > img { width: 100%; } }

/* Mapa */
.map-embed { background: var(--cb-dark); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3); }

/* Rodapé */
footer { background: #fff; padding-top: var(--space-section); }
.footer-logo { width: 200px; height: auto; margin-bottom: 1.5rem; }
footer p { font-size: .95rem; max-width: 340px; }
.footer-title {
  font-size: 1.1rem; font-weight: 600; color: var(--cb-accent);
  letter-spacing: .04em; margin-bottom: 1.5rem;
}
.footer-subtitle {
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #8a8a8a; margin: 2rem 0 .75rem;
}
.contato-lista { font-size: .95rem; color: var(--cb-heading); margin: 0; }
.contato-lista li { display: flex; gap: .85rem; margin-bottom: 1rem; line-height: 1.6; }
.contato-lista li:last-child { margin-bottom: 0; }
.contato-lista i { color: var(--cb-accent); font-size: 1.05rem; line-height: 1.5; }
.contato-lista a { color: inherit; text-decoration: none; }
.contato-lista a:hover { color: var(--cb-accent); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--cb-heading); color: #fff; font-size: 1.15rem;
  transition: background .2s, transform .2s;
}
.social a:hover { background: var(--cb-accent); transform: translateY(-2px); }
.horarios { font-size: .95rem; color: var(--cb-heading); margin: 0; max-width: 300px; }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #eee; }
.horarios li:last-child { border-bottom: 0; }
.copy {
  margin-top: var(--space-section); padding: 20px 1rem;
  background: var(--cb-dark); color: #b5b5b5; font-size: .8rem; letter-spacing: .03em;
}
.copy .d-flex { gap: .25rem 2.5rem; }

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
