/* ═══════════════════════════════════════════════
   CROWNTECH — Sticky Bar + WhatsApp + Exit Intent
   Add this file to css/ and enqueue in functions.php
   ═══════════════════════════════════════════════ */

/* ─── STICKY BOOKING BAR ─── */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--navy);
  border-bottom: 2px solid var(--blue);
  height: 52px;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 4px 24px rgba(11,29,53,.35);
}
.sticky-bar.visible {
  transform: translateY(0);
}
/* push nav down when bar visible */
.sticky-bar.visible ~ .nav,
body.sticky-visible .nav {
  top: 52px;
}
.sticky-bar__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.sticky-bar__pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.6s infinite;
  flex-shrink: 0;
}
.sticky-bar__text {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar__text strong {
  color: var(--gold);
}
.sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-bar__call {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 7px;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.sticky-bar__call:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}
.sticky-bar__call svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.sticky-bar__quote {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 7px;
  transition: background .2s;
  white-space: nowrap;
}
.sticky-bar__quote:hover {
  background: var(--blue2);
}
@media (max-width: 640px) {
  .sticky-bar__text { display: none; }
  .sticky-bar__quote { display: none; }
  .sticky-bar__call { font-size: .82rem; padding: 8px 14px; }
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.float-wa {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 490;
  background: #25d366;
  color: #fff;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 6px 32px rgba(37,211,102,.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) 2s both;
  text-decoration: none;
}
.float-wa:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(37,211,102,.65);
  color: #fff;
}
.float-wa svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .float-wa {
    bottom: 76px;
    right: 16px;
    padding: 11px 16px;
    font-size: .82rem;
  }
}

/* ─── EXIT INTENT OVERLAY ─── */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11,29,53,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.exit-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.exit-modal {
  background: var(--white);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(.9) translateY(24px);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.exit-overlay.open .exit-modal {
  transform: scale(1) translateY(0);
}
.exit-modal__top {
  background: var(--navy);
  padding: 36px 36px 28px;
  position: relative;
}
.exit-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.exit-modal__close:hover { background: rgba(255,255,255,.2); }
.exit-modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240,165,0,.15);
  border: 1px solid rgba(240,165,0,.3);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.exit-modal__title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.exit-modal__title span {
  color: var(--gold);
}
.exit-modal__sub {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.6;
}
.exit-modal__body {
  padding: 28px 36px 36px;
}
.exit-modal__perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.exit-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
}
.exit-perk svg {
  color: var(--green);
  flex-shrink: 0;
  width: 16px; height: 16px;
}
.exit-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exit-modal__cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: 11px;
  transition: background .2s, transform .15s;
}
.exit-modal__cta-call:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}
.exit-modal__cta-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px;
  border-radius: 11px;
  transition: background .2s;
}
.exit-modal__cta-quote:hover { background: var(--blue2); }
.exit-modal__dismiss {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  padding: 6px;
  transition: color .2s;
  background: none;
  border: none;
  width: 100%;
}
.exit-modal__dismiss:hover { color: var(--text); }

@media (max-width: 480px) {
  .exit-modal__top { padding: 28px 24px 22px; }
  .exit-modal__body { padding: 22px 24px 28px; }
  .exit-modal__perks { grid-template-columns: 1fr; }
  .exit-modal__title { font-size: 1.4rem; }
}
