/* ===================================================================
   HOME PAGE ENHANCEMENTS - White Collar Forever
   (Water entry animation + mouse bubble are loaded site-wide via
   site-enhance.css. This file adds HOME-PAGE-ONLY extras:
   ambient bubbles, order-now button pulse, box layout/reveal.)
   Fonts and colors of existing content are NOT changed.
   =================================================================== */

/* ---------- 1. AMBIENT FLOATING BUBBLES (whole page) ---------- */
#ambientBubbles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

#ambientBubbles span {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.85), rgba(0,156,220,.18) 60%, rgba(51,214,91,.12));
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset -4px -4px 10px rgba(0,120,190,.25), 0 0 8px rgba(0,156,220,.18);
  animation: ambientRise linear infinite;
  opacity: 0;
}

@keyframes ambientRise {
  0%   { transform: translateX(0) translateY(0) scale(.8); opacity: 0; }
  8%   { opacity: .65; }
  50%  { transform: translateX(25px) translateY(-50vh) scale(1); }
  92%  { opacity: .35; }
  100% { transform: translateX(-15px) translateY(-115vh) scale(.7); opacity: 0; }
}

/* ---------- 2. ORDER NOW BUTTONS - CENTERED 3D PULSE / SHINE ---------- */
.rs-btn.btn-green,
.rs-btn.btn-blue {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: orderPulse 2.2s ease-in-out infinite;
}

@keyframes orderPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.55), 0 6px 16px rgba(0,0,0,0.25);
    transform: perspective(600px) translateY(0) scale(1) rotateX(0deg);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255,255,255,0), 0 10px 26px rgba(0,0,0,0.32);
    transform: perspective(600px) translateY(-4px) scale(1.05) rotateX(6deg);
  }
}

.rs-btn.btn-green::before,
.rs-btn.btn-blue::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -75%;
  width: 35%;
  height: 220%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-22deg);
  animation: orderShine 2.8s ease-in-out infinite;
}

@keyframes orderShine {
  0%, 100% { left: -75%; }
  50%       { left: 140%; }
}

/* ---------- 5. CONTENT TEXT REVEAL (no font/color change, only motion) ---------- */
.rs-text-1, .rs-text-2 {
  display: inline-block;
}

/* ---------- 6. "AREA OF EXPERTISE / CONCERN" -> RESPONSIVE BOXES + SLIDE-IN ---------- */
.permission-box-mobile2.arrow-on-white2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.permission-box-mobile2.arrow-on-white2 > [class*="col-"] {
  display: flex;
  width: 100%;
}

@media (min-width: 768px) {
  .permission-box-mobile2.arrow-on-white2 > [class*="col-"] {
    width: 50%;
    padding: 0 10px;
  }
}

.permission-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 22px 22px 84px;
  width: 100%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border-left: 3px solid rgba(51,214,91,0.35);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
  opacity: 0;
  transform: translateY(45px);
}

.permission-box .description { padding-left: 0; }

.permission-box.box-visible {
  opacity: 1;
  transform: translateY(0);
}

.permission-box:hover {
  transform: perspective(700px) rotateX(2deg) rotateY(-2deg) translateY(-8px) !important;
  box-shadow: -8px 16px 32px rgba(0,0,0,0.12);
  border-left-color: #33d65b;
}

.permission-box .icon {
  left: 20px;
  top: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  border-radius: 50%;
  background: rgba(51,214,91,0.12);
  box-shadow: 0 0 0 5px rgba(51,214,91,0.06);
  transition: transform .35s ease, background .35s ease;
}

.permission-box:hover .icon {
  transform: scale(1.1) rotate(-6deg);
  background: rgba(51,214,91,0.22);
}

/* ---------- 7. "FEEL FREE..." PROMO BLOCK -> CARD STYLE, SLIDE-UP ---------- */
.promo-fluid2 {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 30px 25px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .7s ease, transform .7s ease;
}

.promo-fluid2.box-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 8. FABRIC TIPS / AD-STYLE STRIP ---------- */
.promo-fluid {
  display: block;
  border-radius: 10px;
  text-align: center;
  padding: 22px 15px;
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition: opacity .6s ease, transform .6s ease;
  position: relative;
  overflow: hidden;
}

.promo-fluid.box-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.promo-fluid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none;
}

/* small "ad" tag look, no text/color/font of original content altered */
.home-ad-tag {
  display: inline-block;
  background: #ff7a00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* ---------- 9. MAP / GMB BLOCK SLIDE-IN ---------- */
.container-fluid.content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.container-fluid.content.box-visible {
  opacity: 1;
  transform: translateY(0);
}
.container-fluid.content iframe {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* ---------- 10. GENERAL SECTION TITLE ENTRY (motion only) ---------- */
.my_head {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}
.my_head.box-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 11. RESPONSIVE SAFETY ---------- */
@media (max-width: 767px) {
  .permission-box { padding-left: 70px; }
  #ambientBubbles span { display: none; }
  #ambientBubbles span:nth-child(-n+6) { display: block; }
}
