/* Enhanced Click-to-Call Styles */

/* Base properties for phone number display */
.phone-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #2563eb; /* Blue for trust and clarity */
  color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  min-height: 44px; /* Apple's recommended minimum touch target size */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none; /* Ensure no underline */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Hover state with subtle animation */
.phone-number:hover {
  background-color: #1d4ed8; /* Slightly darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Phone icon styling */
.phone-icon {
  font-size: 1.2rem;
  color: white;
  transition: transform 0.3s ease;
  display: inline-block !important; /* Force display */
}

/* On hover, add subtle animation to icon */
.phone-number:hover .phone-icon {
  transform: rotate(10deg);
}

/* Add a subtle ripple effect on click */
.phone-number:active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Ripple effect element */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Availability indicator */
.availability {
  margin-left: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.availability.available {
  color: #10b981; /* Green */
}

.availability.unavailable {
  color: #f59e0b; /* Amber */
}

/* Sticky call button for mobile */
.sticky-call {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: none; /* Hidden by default, shown on mobile */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-color: #2563eb; /* Blue for trust and clarity */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.sticky-call .phone-icon {
  font-size: 1.8rem;
  display: inline-block !important; /* Force display on sticky button */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Footer phone link styling */
.footer .contact-info a[href^="tel:"] {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer .contact-info a[href^="tel:"]:hover {
  text-decoration: underline;
}

/* Make the phone number more prominent on mobile */
@media (max-width: 768px) {
  .sticky-call {
    display: flex; /* Show sticky call button on mobile */
  }
  
  .header-content .phone-number {
    font-size: 1rem;
    padding: 6px 10px;
  }
  
  /* Ensure phone icon is visible on mobile */
  .phone-icon {
    display: inline-block !important;
  }
  
  /* Fix CTA buttons phone icon */
  .cta-btn .cta-icon {
    display: inline-block !important;
    margin-right: 0.5rem;
  }
}

/* Fix for CTA section buttons */
.cta-btn .cta-icon {
  display: inline-block !important;
  margin-right: 0.5rem;
}

/* Dark theme support */
[data-theme="dark"] .phone-number {
  background-color: #3b82f6; /* Slightly lighter blue in dark mode for visibility */
}

[data-theme="dark"] .footer .contact-info a[href^="tel:"] {
  color: var(--accent); /* Keep accent color in dark mode */
}