/* Components CSS */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-soft);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
}

/* Screen reader utility (floating WhatsApp + a11y labels) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Floating WhatsApp — below mobile drawer (overlay 1000 / drawer 1001) */
.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.floating-whatsapp__pulse {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.28);
  pointer-events: none;
  animation: floating-whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}

.floating-whatsapp__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 30px;
  height: 30px;
}

.floating-whatsapp__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.floating-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.97);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 6px rgba(0, 143, 62, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

@keyframes floating-whatsapp-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  65% {
    opacity: 0;
    transform: scale(1.35);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp__pulse {
    animation: none !important;
  }

  .floating-whatsapp {
    transition: none !important;
  }
}

