/*
Theme Name: Xavier Tan
Template: hello-elementor
Description: A child theme for Atlas Eye
Author: Xavier Tan
Author URI: https://www.xaviertan.co/
Version: 1.1
*/

/* ============================================
   ATLAS EYE STICKY CTA BUTTONS
   Maximum specificity overrides
   ============================================ */

.atlas-sticky-cta {
  position: fixed;
  z-index: 9999;
  display: flex;
  gap: 8px;
}

.atlas-sticky-cta .atlas-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* FORCE text styles on span with maximum specificity */
body .atlas-sticky-cta .atlas-cta-btn span,
html body .atlas-sticky-cta .atlas-cta-btn span,
.atlas-sticky-cta .atlas-cta-btn span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.atlas-sticky-cta .atlas-cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hover states */
.atlas-sticky-cta .atlas-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

body .atlas-sticky-cta .atlas-cta-btn:hover span,
html body .atlas-sticky-cta .atlas-cta-btn:hover span {
  color: #ffffff !important;
  text-decoration: none !important;
}

.atlas-sticky-cta .atlas-cta-btn:active {
  transform: translateY(-1px);
}

/* Button colors */
.atlas-sticky-cta .atlas-cta-whatsapp {
  background-color: #25D366 !important;
  color: #ffffff !important;
}

.atlas-sticky-cta .atlas-cta-whatsapp:hover {
  background-color: #1ebe5d !important;
  color: #ffffff !important;
}

.atlas-sticky-cta .atlas-cta-call {
  background-color: #4AAED9 !important;
  color: #ffffff !important;
}

.atlas-sticky-cta .atlas-cta-call:hover {
  background-color: #3a9fcb !important;
  color: #ffffff !important;
}

.atlas-sticky-cta .atlas-cta-email {
  background-color: #34495E !important;
  color: #ffffff !important;
}

.atlas-sticky-cta .atlas-cta-email:hover {
  background-color: #2c3e50 !important;
  color: #ffffff !important;
}

/* DESKTOP - Bottom Right */
@media (min-width: 769px) {
  .atlas-sticky-cta {
    bottom: 24px;
    right: 24px;
    flex-direction: column;
    align-items: flex-end;
  }
  
  .atlas-sticky-cta .atlas-cta-btn {
    min-width: 140px;
  }
  
  .atlas-sticky-cta .atlas-cta-whatsapp { animation: slideInRight 0.5s ease-out 0.1s both; }
  .atlas-sticky-cta .atlas-cta-call { animation: slideInRight 0.5s ease-out 0.2s both; }
  .atlas-sticky-cta .atlas-cta-email { animation: slideInRight 0.5s ease-out 0.3s both; }
  
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

/* MOBILE - Full Width Bottom Bar */
@media (max-width: 768px) {
  .atlas-sticky-cta {
    bottom: 0;
    left: 0;
    right: 0;
    gap: 0;
    background: #ffffff !important;
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .atlas-sticky-cta .atlas-cta-btn {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 10px !important;
    font-weight: 500 !important;
    box-shadow: none;
    margin: 0 3px;
  }
  
  /* Mobile span text - FORCE styles */
  body .atlas-sticky-cta .atlas-cta-btn span,
  html body .atlas-sticky-cta .atlas-cta-btn span {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
  }
  
  .atlas-sticky-cta .atlas-cta-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .atlas-sticky-cta .atlas-cta-btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .atlas-sticky-cta .atlas-cta-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
  }
  
  .atlas-sticky-cta { animation: slideUp 0.4s ease-out; }
  
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.atlas-sticky-cta .atlas-cta-btn:focus-visible {
  outline: 3px solid #4AAED9;
  outline-offset: 3px;
}

@media print {
  .atlas-sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-sticky-cta .atlas-cta-btn, .atlas-sticky-cta { animation: none; transition: none; }
}

/* ============================================
   POLYLANG LANGUAGE SWITCHER
   Hide language name in header, show in dropdown
   ============================================ */

li.pll-parent-menu-item > a > span[style*="margin-left"] {
  display: none !important;
}

li.pll-parent-menu-item > ul.sub-menu span[style*="margin-left"] {
  display: inline !important;
}

li.pll-parent-menu-item > ul.sub-menu {
  min-width: 200px !important;
}