/* Hollow Pine: barra de agendar fixa no celular (o botão do cabeçalho só aparece a partir de 60rem) */

.book-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xs) var(--gutter) calc(var(--space-2xs) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transition: transform var(--dur-state) var(--ease-out);
}

.book-bar .btn {
  flex: 1;
  padding-inline: var(--space-md);
  white-space: nowrap;
}

/* Home: enquanto o botão do topo aparece, a barra sai de baixo da tela (js/hero.js) */
body[data-hero-cta="visivel"] .book-bar {
  transform: translateY(110%);
}

/* Com o menu aberto, o painel já tem o botão de agendar */
body:has(.menu-toggle[aria-expanded="true"]) .book-bar {
  display: none;
}

.book-bar__call {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: var(--space-sm);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-state) var(--ease-out), transform var(--dur-tap) var(--ease-out);
}

.book-bar__call:hover {
  background: var(--butter-wash);
}

.book-bar__call:active {
  transform: scale(0.96);
}

body:has(.book-bar) {
  padding-bottom: 4.5rem;
}

/* Desktop, e celular deitado (tela baixa demais para mais uma barra fixa) */
@media (min-width: 60rem), (max-height: 31.25rem) {
  .book-bar {
    display: none;
  }

  body:has(.book-bar) {
    padding-bottom: 0;
  }
}
