/* ============================================================
   UTILS — Buttons, badges, mobile menu, WA float, back-to-top,
            scroll reveal
   ============================================================ */

/* ---- Primary & Secondary Buttons ---- */
.btn-primary {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 26px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(46, 32, 21, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(46, 32, 21, 0.35);
}
.btn-primary svg { width: 18px; height: 18px; flex: none; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 26px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--bg-2); }
.btn-secondary svg { width: 18px; height: 18px; flex: none; }

.btn-submit {
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  box-shadow: 0 10px 22px rgba(193, 89, 47, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(193, 89, 47, 0.42);
}
.btn-submit svg { width: 18px; height: 18px; flex: none; }

/* ---- WhatsApp floating button ---- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.85), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* ---- Back-to-top button ---- */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 32, 21, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover { background: var(--coral); }
#backToTop svg { width: 20px; height: 20px; color: #fff; pointer-events: none; }

/* ---- Mobile menu overlay (slide-in animation) ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(46, 32, 21, 0.55);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 78%;
  max-width: 320px;
  background: var(--bg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-panel a {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(74, 52, 35, 0.07);
  padding-bottom: 14px;
}
.mobile-menu-panel a:last-child { border-bottom: none; }
.mobile-menu-panel a:active { color: var(--coral); }

.mobile-close {
  align-self: flex-end;
  background: none;
  padding: 4px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close svg { width: 26px; height: 26px; color: var(--navy); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
