/* ===================================================================
   SITE-WIDE ENHANCEMENTS - White Collar Forever
   Applies to EVERY page: water entry animation (right -> left)
   + 3D slide-in reveal for page content + mouse bubble pop.
   Fonts and colors of existing content are NOT changed.
   =================================================================== */

/* ---------- 1. PAGE-ENTRY WATER WASH ANIMATION (Right -> Left) ---------- */
#waterEntryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
}

#waterEntryOverlay .wave {
  position: absolute;
  top: -20%;
  right: -130%;
  width: 140%;
  height: 140%;
  background: linear-gradient(120deg, rgba(0,156,220,0.85) 0%, rgba(51,214,91,0.55) 55%, rgba(0,156,220,0.25) 100%);
  border-radius: 45% 55% 65% 35% / 45% 55% 50% 50%;
  animation: waterWash 1.6s cubic-bezier(.45,0,.2,1) forwards;
}

#waterEntryOverlay .wave2 {
  position: absolute;
  top: -10%;
  right: -130%;
  width: 130%;
  height: 130%;
  background: linear-gradient(120deg, rgba(255,255,255,0.5) 0%, rgba(0,156,220,0.2) 100%);
  border-radius: 60% 40% 35% 65% / 55% 45% 60% 40%;
  animation: waterWash 1.9s cubic-bezier(.45,0,.2,1) .15s forwards;
}

@keyframes waterWash {
  0%   { right: -130%; opacity: 1; }
  55%  { right: -5%;   opacity: .9; }
  100% { right: 130%;  opacity: 0; }
}

#waterEntryOverlay.done { display: none; }

/* ---------- 2. MOUSE-FOLLOW WATER BUBBLE POP (every page) ---------- */
#mouseBubble {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(0,156,220,.25) 65%);
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 0 18px rgba(0,156,220,.45), inset -4px -4px 12px rgba(0,120,190,.3);
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
}

#mouseBubble.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }

#mouseBubble::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 18%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
}

/* ---------- 3. 3D SLIDE-IN REVEAL FOR PAGE SECTIONS (every page) ---------- */
.page-content > .container,
.page-content > .container-fluid,
.page-content .row > [class*="col-"],
.permission-box,
.promo-fluid,
.promo-fluid2,
.box-location,
section,
.content-page,
.page-content h1,
.page-content h2,
.page-content h3 {
  opacity: 0;
  transform: perspective(900px) translateY(45px) rotateX(6deg);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94);
}

.page-content > .container.reveal-in,
.page-content > .container-fluid.reveal-in,
.page-content .row > [class*="col-"].reveal-in,
.permission-box.reveal-in,
.promo-fluid.reveal-in,
.promo-fluid2.reveal-in,
.box-location.reveal-in,
section.reveal-in,
.content-page.reveal-in,
.page-content h1.reveal-in,
.page-content h2.reveal-in,
.page-content h3.reveal-in {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg);
}

/* gentle 3D tilt on hover for boxes site-wide */
.permission-box:hover,
.promo-fluid:hover,
.promo-fluid2:hover {
  transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-6px) !important;
  box-shadow: -8px 14px 28px rgba(0,0,0,0.14);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}

@media (max-width: 767px) {
  .page-content > .container,
  .page-content > .container-fluid,
  .page-content .row > [class*="col-"],
  .permission-box,
  .promo-fluid,
  .promo-fluid2,
  section {
    transform: translateY(30px);
  }
}

/* ---------- 4. MENU BAR ON TOP + SMALLER LOGO (every page) ---------- */
header {
  display: flex;
  flex-direction: column;
}

/* blue menu bar moves above the logo/address/phone row */
header .box-nav {
  order: -1;
}

/* smaller logo, all pages */
.logo {
  margin: 14px 0 12px 0 !important;
}

.logo img {
  max-width: 150px !important;
  width: 150px !important;
  height: auto !important;
}

@media (max-width: 991px) {
  .logo img {
    max-width: 130px !important;
    width: 130px !important;
  }
}

@media (max-width: 420px) {
  .logo img {
    max-width: 110px !important;
    width: 110px !important;
  }
}

/* ---------- 5. FLOATING WHATSAPP BUTTON (sticky, glow) - every page ---------- */
#floatingWhatsapp {
  position: fixed;
  bottom: 25px;
  right: 22px;
  z-index: 999990;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  animation: waGlow 2.2s ease-in-out infinite;
  transition: transform .25s ease;
}

#floatingWhatsapp:hover {
  transform: scale(1.06);
}

#floatingWhatsapp img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
}

#floatingWhatsapp .wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

#floatingWhatsapp .wa-text small {
  font-size: 11px;
  color: #777;
}

#floatingWhatsapp .wa-text strong {
  font-size: 15px;
  color: #25D366;
  text-shadow: 0 0 6px rgba(37,211,102,0.35);
}

@keyframes waGlow {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 0 rgba(37,211,102,0.45);
  }
  50% {
    box-shadow: 0 4px 22px rgba(0,0,0,0.22), 0 0 0 12px rgba(37,211,102,0);
  }
}

@media (max-width: 480px) {
  #floatingWhatsapp {
    bottom: 16px;
    right: 14px;
    padding: 6px 14px 6px 6px;
  }
  #floatingWhatsapp img { width: 36px; height: 36px; }
  #floatingWhatsapp .wa-text strong { font-size: 13px; }
}
