/**
 * Sticky Call/Text CTA Buttons - Mobile-Optimized
 * For local service businesses - prioritizes phone/text over forms
 */

/* Sticky CTA Container - Fixed at bottom on mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none; /* Hidden by default, shown via JS on scroll */
  background: linear-gradient(to right, var(--primary), var(--primary-mid));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sticky-cta.visible {
  display: flex;
}

.sticky-cta-inner {
  display: flex;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.sticky-cta-text {
  flex: 1;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0; /* Allows text to shrink */
}

.sticky-cta-text span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 400;
}

.sticky-cta-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sticky-call,
.btn-sticky-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-sticky-call {
  background: var(--accent);
  color: var(--primary);
}

.btn-sticky-call:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.btn-sticky-text {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-sticky-text:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-sticky-call svg,
.btn-sticky-text svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hide on desktop - only show on mobile/tablet */
@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }
}

/* Very small screens - stack buttons */
@media (max-width: 380px) {
  .sticky-cta-inner {
    flex-wrap: wrap;
  }

  .sticky-cta-text {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .sticky-cta-buttons {
    flex-basis: 100%;
    justify-content: center;
  }

  .btn-sticky-call,
  .btn-sticky-text {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Enhanced hero CTA buttons - make them more prominent */
.hero-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-hero-call,
.btn-hero-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}

.btn-hero-call {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-hero-call:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.4);
}

.btn-hero-text {
  background: white;
  color: var(--primary);
  border: 3px solid white;
}

.btn-hero-text:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-hero-call svg,
.btn-hero-text svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .btn-hero-call,
  .btn-hero-text {
    font-size: 1rem;
    padding: 14px 24px;
  }
}
