/* ================================================================
   HAPPIE HUB WEBSITE — PREMIUM POLISH LAYER
   New CSS effects on top of existing GSAP stack.
   ================================================================ */

/* ── 1. CTA BUTTON SHIMMER ── */
/* A moving light streak across primary buttons — catches the eye */
.btn-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 60%
  );
  transform: skewX(-20deg);
  animation: btnShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%, 100% { left: -75%; }
  50%      { left: 125%; }
}

/* ── 2. NAV LINK ANIMATED UNDERLINE ── */
/* Underline slides in from left on hover */
.navbar__nav .nav-link {
  position: relative;
}
.navbar__nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar__nav .nav-link:hover::after,
.navbar__nav .nav-link.active::after {
  width: 100%;
}

/* ── 3. GALLERY 3D TILT ON HOVER ── */
/* Gallery items get a subtle depth effect on hover */
.gallery__item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.gallery__item:hover {
  box-shadow: 0 20px 60px rgba(18, 52, 88, 0.2);
  z-index: 2;
}
.gallery__item:hover img {
  transform: scale(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery__item img {
  transition: transform 0.5s ease;
}

/* ── 4. PRICING CARD GLOW BORDER ── */
/* Featured card gets a subtle animated glow */
.pricing-card--featured {
  position: relative;
}
.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--emerald),
    var(--gold),
    var(--emerald),
    var(--gold)
  );
  background-size: 300% 300%;
  animation: glowBorder 4s ease infinite;
  z-index: -1;
  opacity: 0.7;
}
@keyframes glowBorder {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── 5. (Legacy testimonial styles — replaced by Google Reviews) ── */

/* ── 6. FAQ SMOOTH ACCORDION ── */
/* Smoother open/close with max-height transition */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
}
.faq-item__arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 10px;
}
.faq-item.active .faq-item__arrow {
  transform: rotate(180deg);
}
.faq-item__question {
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-item__question:hover {
  color: var(--emerald);
}

/* ── 7. AMENITY CARD ICON SPIN ── */
/* Icons do a fun 360° spin on hover */
.amenity-card:hover .amenity-card__icon {
  animation: iconSpin 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes iconSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ── 8. HERO STAT CARDS — GLASS EFFECT ── */
/* Stats get a frosted glass look */
.hero__stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}
.hero__stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

/* ── 9. TRUST BADGE HOVER GLOW ── */
.hero__trust-badge {
  transition: all 0.3s ease;
}
.hero__trust-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 184, 148, 0.2);
}

/* ── 10. COMPARISON TABLE HOVER HIGHLIGHT ── */
/* Row highlights with emerald tint on hover */
.comparison__row:not(.comparison__row--header) {
  transition: background 0.2s ease, transform 0.2s ease;
}
.comparison__row:not(.comparison__row--header):hover {
  background: rgba(0, 184, 148, 0.05);
  transform: scale(1.01);
}

/* ── 11. NEARBY CARD ICON PULSE ── */
/* Location card icons pulse on hover */
.nearby-card:hover .nearby-card__icon {
  animation: nearbyPulse 0.5s ease;
}
@keyframes nearbyPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* ── 12. FLOATING BUTTON GLOW RING ── */
/* WhatsApp and call buttons get a pulsing glow */
.float-wa {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.float-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: floatGlow 2s ease-in-out infinite;
  z-index: -1;
}
.float-call::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(18, 52, 88, 0.3);
  animation: floatGlow 2s ease-in-out infinite 0.5s;
  z-index: -1;
}
@keyframes floatGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.3); opacity: 0; }
}

/* ── 13. SECTION LABEL GLOWING DOT ── */
/* Adds a pulsing dot before section labels */
.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: labelDotPulse 2s ease-in-out infinite;
}
.section-label--emerald::before {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.section-label--gold::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
@keyframes labelDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

/* ── 14. FORM INPUT FOCUS ANIMATIONS ── */
/* Book-a-visit form inputs glow on focus */
.book-visit .form-group input:focus,
.book-visit .form-group select:focus,
.book-visit .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
  border-color: var(--emerald);
  transition: all 0.25s ease;
}
.book-visit .form-group label {
  transition: color 0.2s ease;
}
.book-visit .form-group:focus-within label {
  color: var(--emerald);
}

/* ── 15. LIGHTBOX BACKDROP BLUR ── */
/* Lightbox gets frosted glass backdrop */
.lightbox {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ── 16. MOBILE BAR GLASS EFFECT ── */
/* Bottom bar gets frosted look */
.mobile-bar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-bar__inner {
  background: rgba(18, 52, 88, 0.92);
}

/* ── 17. SCROLL-LINKED NAVBAR SHADOW ── */
/* More dramatic shadow when scrolled */
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(18, 52, 88, 0.1) !important;
}

/* ── 18. TICKER STRIP HOVER PAUSE ── */
/* Ticker pauses on hover so users can read */
.ticker-strip:hover .ticker-inner {
  animation-play-state: paused;
}

/* ── 19. HERO PILL HOVER ── */
/* Pills get a subtle lift on hover */
.hero__pill {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── 20. REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .btn-gold::after,
  .pricing-card--featured::before,
  .float-wa::before,
  .float-call::before,
  .section-label::before {
    animation: none !important;
  }
  .gallery__item,
  .amenity-card__icon {
    animation: none !important;
  }
}


/* ================================================================
   21. GOOGLE REVIEWS — Authentic Google-Style Cards
   ================================================================ */

/* ── Section container ── */
.google-reviews {
  background: var(--ivory);
}
.google-reviews__header {
  text-align: center;
  margin-bottom: 40px;
}

/* ── Rating Summary (Google-style split layout) ── */
.gr-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  padding: 32px 40px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}
.gr-summary__left {
  text-align: center;
  min-width: 140px;
}
.gr-summary__score {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1;
  margin-bottom: 6px;
}
.gr-summary__stars {
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.gr-star { color: #dadce0; }
.gr-star--full { color: #FBBC04; }
.gr-star--half {
  background: linear-gradient(90deg, #FBBC04 50%, #dadce0 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gr-summary__count {
  font-size: 14px;
  color: #5f6368;
  font-family: var(--font-body);
}
.gr-summary__glink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1a73e8;
  font-family: var(--font-body);
  text-decoration: none;
  transition: opacity 0.2s;
}
.gr-summary__glink:hover { opacity: 0.8; }

/* ── Star Distribution Bars ── */
.gr-summary__bars {
  flex: 1;
  max-width: 340px;
}
.gr-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.gr-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  width: 14px;
  text-align: right;
  font-family: var(--font-body);
}
.gr-bar {
  flex: 1;
  height: 10px;
  background: #e8eaed;
  border-radius: 5px;
  overflow: hidden;
}
.gr-bar-fill {
  height: 100%;
  background: #FBBC04;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.gr-bar-count {
  font-size: 12px;
  color: #9aa0a6;
  width: 22px;
  font-family: var(--font-body);
}

/* ── Carousel Container ── */
.gr-carousel {
  position: relative;
  margin-bottom: 24px;
}
.gr-carousel__viewport {
  overflow: hidden;
  border-radius: 12px;
}
.gr-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Review Cards ── */
.gr-card {
  min-width: calc(100% / 3);
  padding: 0 10px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.gr-card > :first-child { /* inner wrapper effect */
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
/* Apply card styling to the card itself */
.gr-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(32,33,36,0.16);
}

/* ── Card Header ── */
.gr-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.gr-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.gr-card__meta {
  flex: 1;
  min-width: 0;
}
.gr-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-card__date {
  font-size: 12px;
  color: #9aa0a6;
  font-family: var(--font-body);
}
.gr-card__gicon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Stars ── */
.gr-card__stars {
  color: #FBBC04;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ── Review Text ── */
.gr-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: #3c4043;
  font-family: var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 0;
}
.gr-card__text.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* ── Read More Toggle ── */
.gr-card__readmore {
  display: inline-block;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-body);
}
.gr-card__readmore:hover { text-decoration: underline; }

/* ── Carousel Arrows ── */
.gr-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 22px;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gr-carousel__arrow:hover {
  background: var(--emerald);
  color: #fff;
  box-shadow: var(--shadow-emerald);
  transform: translateY(-50%) scale(1.08);
}
.gr-carousel__arrow--left { left: -22px; }
.gr-carousel__arrow--right { right: -22px; }

/* ── Dots ── */
.gr-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.gr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dadce0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.gr-dot.active {
  background: var(--emerald);
  width: 28px;
  border-radius: 5px;
}

/* ── Bottom CTA ── */
.gr-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.gr-bottom__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #1a73e8;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #dadce0;
}
.gr-bottom__link:hover {
  background: #f1f3f4;
  border-color: #1a73e8;
}
.gr-bottom__write {
  font-size: 15px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gr-card { min-width: 50%; }
}
@media (max-width: 768px) {
  .gr-summary {
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
  }
  .gr-summary__bars { max-width: 100%; }
  .gr-card { min-width: 85%; }
  .gr-carousel__arrow--left { left: -8px; }
  .gr-carousel__arrow--right { right: -8px; }
  .gr-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .gr-bottom { flex-direction: column; gap: 12px; }
  .gr-bottom__link, .gr-bottom__write { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .gr-card { min-width: 100%; }
  .gr-summary__score { font-size: 44px; }
}


/* ================================================================
   22. ADDITIONAL POLISH ENHANCEMENTS
   ================================================================ */

/* ── Section title hover shimmer ── */
.section-title {
  transition: all 0.3s ease;
}

/* ── Improved card depth transitions ── */
.pricing-card,
.amenity-card,
.nearby-card,
.contact-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

/* ── Gallery item loading shimmer ── */
.gallery__item img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: imgShimmer 1.5s infinite;
}
.gallery__item img[src] {
  animation: none;
  background: none;
}
@keyframes imgShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Smooth focus outlines for accessibility ── */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

