/* Buttons */
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--bp-radius-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background var(--bp-transition), color var(--bp-transition),
    border-color var(--bp-transition), transform var(--bp-transition),
    box-shadow var(--bp-transition);
  -webkit-tap-highlight-color: transparent;
}

.bp-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.bp-btn--primary {
  background: var(--bp-green);
  color: var(--bp-white);
  box-shadow: var(--bp-shadow-green);
}

.bp-btn--primary:hover {
  background: var(--bp-green-hover);
}

.bp-btn--dark {
  background: var(--bp-black);
  color: var(--bp-green);
}

.bp-btn--outline {
  background: transparent;
  color: var(--bp-text);
  border-color: var(--bp-border);
}

.bp-btn--outline:hover {
  border-color: var(--bp-green);
  color: var(--bp-green);
  background: var(--bp-green-tint);
}

.bp-btn--ghost {
  background: transparent;
  border-color: var(--bp-border);
}

.bp-btn--lg {
  padding: 14px 26px;
  font-size: 0.95rem;
}

.bp-btn--block {
  width: 100%;
}

.bp-btn:active {
  transform: scale(0.98);
}

/* Glass panel */
.bp-glass {
  background: var(--bp-glass-bg);
  backdrop-filter: blur(var(--bp-glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--bp-glass-blur)) saturate(1.3);
  border: 1px solid var(--bp-glass-border);
  box-shadow: var(--bp-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Cards */
.bp-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--bp-radius-lg);
  padding: 26px 22px;
  box-shadow: var(--bp-shadow-sm);
  transition: transform var(--bp-transition), box-shadow var(--bp-transition),
    border-color var(--bp-transition);
}

.bp-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bp-green-tint);
  color: var(--bp-green);
  margin-bottom: 16px;
}

.bp-card__icon svg {
  width: 24px;
  height: 24px;
}

.bp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.bp-card p {
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Section */
.bp-section {
  padding: var(--bp-pad-section) 0;
  position: relative;
}

.bp-section__head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 40px;
}

.bp-section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-green);
  margin-bottom: 10px;
}

.bp-section__head h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--bp-text);
}

.bp-section__head p {
  color: var(--bp-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* WhatsApp FAB + QR */
.bp-whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bp-whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bp-whatsapp-fab[hidden],
#bpCalcCtaOrcamento[hidden] {
  display: none !important;
}

.bp-whatsapp-fab svg {
  width: 26px;
  height: 26px;
}

.bp-whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.bp-whatsapp-fab:active {
  transform: scale(0.96);
}

@media (min-width: 1024px) {
  .bp-whatsapp-fab {
    bottom: 28px;
    right: 28px;
  }
}

.bp-whatsapp-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.bp-whatsapp-qr-modal.is-visible {
  display: flex;
}

.bp-whatsapp-qr-modal__card {
  position: relative;
  width: min(100%, 340px);
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.bp-whatsapp-qr-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bp-whatsapp-qr-modal__close svg {
  width: 18px;
  height: 18px;
}

.bp-whatsapp-qr-modal__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
}

.bp-whatsapp-qr-modal__desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--bp-text-muted);
}

.bp-whatsapp-qr-modal__img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.bp-whatsapp-qr-modal__link {
  font-size: 0.82rem;
  color: var(--bp-whatsapp-dark);
  word-break: break-all;
}

/* Formulário de contato */
.bp-form {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--bp-radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
}

.bp-form__fields {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.bp-form input,
.bp-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  background: #fff;
  font: inherit;
  color: var(--bp-text);
}

.bp-form input:focus,
.bp-form textarea:focus {
  outline: 2px solid rgba(0, 191, 99, 0.35);
  outline-offset: 1px;
  border-color: var(--bp-green, #00bf63);
}

.bp-form__note {
  font-size: 0.82rem;
  color: var(--bp-text-muted);
  margin-top: 10px;
}

.bp-form__status {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bp-form__status.is-error {
  color: #b91c1c;
}

.bp-form__status.is-success {
  color: #047857;
}

/* Compat: classes antigas do placeholder */
.bp-form-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--bp-radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.bp-form-placeholder__fields {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  opacity: 0.5;
  pointer-events: none;
}

.bp-form-placeholder input,
.bp-form-placeholder textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  background: #fff;
}

.bp-form-placeholder__note {
  font-size: 0.82rem;
  color: var(--bp-text-muted);
  margin-top: 10px;
}
