/* Global Sticky Floating Icons */

/* Container for all floating icons */
.floating-icons-container {
  position: fixed !important;
  right: 24px;
  bottom: 24px;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  z-index: 99999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Base style for floating buttons */
.floating-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(165, 198, 134, 0.35), 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  position: relative;
  overflow: visible;
  visibility: visible !important;
  opacity: 1 !important;
}

.floating-icon-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(165, 198, 134, 0.45), 0 6px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.floating-icon-btn:active {
  transform: scale(1.05) translateY(-1px);
}

/* WhatsApp Button */
.floating-whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-whatsapp-btn:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover svg {
  transform: rotate(15deg) scale(1.1);
}

/* Menu Button */
.floating-menu-btn {
  background: linear-gradient(135deg, #a5c686 0%, #849e6b 100%);
}

.floating-menu-btn:hover {
  background: linear-gradient(135deg, #849e6b 0%, #738176 100%);
}

.floating-menu-btn .menu-icon {
  width: 28px;
  height: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu-btn .menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.floating-menu-btn .menu-icon span:nth-child(1) {
  top: 0;
}

.floating-menu-btn .menu-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.floating-menu-btn .menu-icon span:nth-child(3) {
  bottom: 0;
}

/* Menu Icon Animation when open */
.floating-menu-btn.active .menu-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.floating-menu-btn.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.floating-menu-btn.active .menu-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Tooltip on hover */
.floating-icon-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 75px;
  background: #374b3c;
  color: #f6f9f2;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(165, 198, 134, 0.2);
}

.floating-icon-btn::after {
  content: '';
  position: absolute;
  right: 65px;
  border: 6px solid transparent;
  border-left-color: #374b3c;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.floating-icon-btn:hover::before,
.floating-icon-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Pulse animation for attention */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(165, 198, 134, 0.35), 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 8px 32px rgba(165, 198, 134, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

.floating-whatsapp-btn {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(55, 75, 60, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: linear-gradient(180deg, #374b3c 0%, #2c3c30 100%);
  z-index: 9999;
  transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5), -2px 0 20px rgba(0, 0, 0, 0.3);
  border-left: 3px solid rgba(165, 198, 134, 0.2);
}

.mobile-menu-container.active {
  right: 0;
}

/* Menu Header */
.mobile-menu-header {
  padding: 40px 24px 36px;
  border-bottom: 2px solid rgba(165, 198, 134, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-logo {
  max-width: 180px;
  height: auto;
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.mobile-menu-close {
  display: none;
}

/* Menu Links */
.mobile-menu-links {
  padding: 32px 0;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 18px 32px;
  color: #f6f9f2;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  margin: 4px 0;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(165, 198, 134, 0.15) 0%, rgba(165, 198, 134, 0.05) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.mobile-menu-link::after {
  content: '→';
  position: absolute;
  right: 32px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #a5c686;
  font-size: 22px;
  font-weight: 300;
}

.mobile-menu-link:hover::before,
.mobile-menu-link:active::before {
  width: 100%;
}

.mobile-menu-link:hover::after,
.mobile-menu-link:active::after {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: #a5c686;
  border-left-color: #a5c686;
  padding-left: 40px;
  background: linear-gradient(90deg, rgba(165, 198, 134, 0.12) 0%, rgba(165, 198, 134, 0.04) 100%);
  box-shadow: inset 4px 0 8px rgba(165, 198, 134, 0.15);
}

/* Menu CTA Button */
.mobile-menu-cta {
  padding: 32px 24px 36px;
  border-top: 2px solid rgba(165, 198, 134, 0.2);
  margin-top: auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #a5c686 0%, #849e6b 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(165, 198, 134, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.mobile-menu-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.mobile-menu-cta-btn:hover::before {
  left: 100%;
}

.mobile-menu-cta-btn:hover,
.mobile-menu-cta-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(165, 198, 134, 0.55), 0 6px 16px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #849e6b 0%, #738176 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Custom Scrollbar for Menu */
.mobile-menu-container::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-container::-webkit-scrollbar-thumb {
  background: rgba(165, 198, 134, 0.4);
  border-radius: 3px;
}

.mobile-menu-container::-webkit-scrollbar-thumb:hover {
  background: rgba(165, 198, 134, 0.6);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-icons-container {
    right: 16px !important;
    bottom: 16px !important;
    gap: 12px;
    display: flex !important;
    visibility: visible !important;
  }

  .floating-icon-btn {
    width: 58px !important;
    height: 58px !important;
    display: flex !important;
    box-shadow: 0 10px 28px rgba(165, 198, 134, 0.45), 0 6px 12px rgba(0, 0, 0, 0.2) !important;
  }

  .floating-whatsapp-btn svg {
    width: 30px;
    height: 30px;
  }

  .floating-menu-btn .menu-icon {
    width: 28px;
    height: 24px;
  }

  .mobile-menu-container {
    width: 90%;
  }

  .mobile-menu-link {
    font-size: 17px;
    padding: 18px 24px;
  }

  .mobile-menu-header {
    padding: 28px 24px;
  }

  .mobile-menu-cta {
    padding: 24px;
  }

  /* Hide tooltips on mobile */
  .floating-icon-btn::before,
  .floating-icon-btn::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-icons-container {
    right: 14px !important;
    bottom: 14px !important;
    display: flex !important;
    visibility: visible !important;
  }

  .floating-icon-btn {
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    box-shadow: 0 12px 32px rgba(165, 198, 134, 0.5), 0 8px 16px rgba(0, 0, 0, 0.25) !important;
  }

  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  .floating-menu-btn .menu-icon {
    width: 26px;
    height: 22px;
  }

  .mobile-menu-container {
    width: 95%;
    max-width: none;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Ensure visibility on all devices */
@media screen and (max-width: 991px) {
  .floating-icons-container {
    display: flex !important;
    visibility: visible !important;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .floating-icons-container {
    right: 12px !important;
    bottom: 12px !important;
  }

  .floating-icon-btn {
    width: 54px !important;
    height: 54px !important;
  }
}
