/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font); font-size: var(--fs-small); font-weight: var(--w-semi);
  line-height: 1; text-align: center; text-decoration: none; white-space: nowrap;
  padding: 0.9375rem var(--sp-6);
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
              color 180ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Primary — amber. One per view. This is the money button. */
.btn--primary {
  background: var(--c-energy); border-color: var(--c-energy); color: var(--c-base);
}
.btn--primary:hover { background: var(--c-energy-d); border-color: var(--c-energy-d); color: var(--c-base); }

/* Secondary — green outline, on light backgrounds */
.btn--secondary {
  background: transparent; border-color: var(--c-primary); color: var(--c-primary);
}
.btn--secondary:hover { background: var(--c-primary); color: var(--c-white); }

/* Ghost — for dark backgrounds */
.btn--ghost {
  background: transparent; border-color: var(--c-line-d); color: var(--c-surface);
}
.btn--ghost:hover { background: rgba(247,245,240,0.10); border-color: var(--c-surface); color: var(--c-surface); }

/* Solid green — used inside the calculator */
.btn--green {
  background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white);
}
.btn--green:hover { background: var(--c-primary-d); border-color: var(--c-primary-d); color: var(--c-white); }

.btn--full  { width: 100%; }
.btn--large { padding: 1.0625rem var(--sp-8); font-size: var(--fs-body); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }


/* --- FLOATING WHATSAPP ---------------------------------------------------- */

.wa-float {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform 200ms var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }


/* --- STICKY CTA BAR (mobile) ---------------------------------------------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-base); border-top: 1px solid var(--c-line-d);
  transform: translateY(110%);
  transition: transform 320ms var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text {
  flex: 1; min-width: 0;
  font-size: var(--fs-caption); color: var(--c-muted-d); line-height: 1.35;
}
.sticky-cta__text strong { display: block; color: var(--c-surface); font-weight: var(--w-semi); font-size: var(--fs-small); }
.sticky-cta .btn { padding: 0.75rem var(--sp-5); }

/* Only show the sticky bar on mobile; desktop has the nav CTA */
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Lift the WhatsApp bubble above the sticky bar when it's showing */
@media (max-width: 899px) {
  body.sticky-open .wa-float { bottom: 84px; }
}
