/* Buttons & CTAs */

.cta-button {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
  font-family: var(--font-family);
}

.cta-button.primary {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.cta-button.primary:hover {
  background-color: #2b3017;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(64, 71, 37, 0.3);
}

.cta-button.secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.cta-button.secondary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(238, 220, 167, 0.5);
}

.cta-button.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.cta-button.loading {
  position: relative;
  padding-left: 3rem;
}

.cta-button.loading::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Button Sizes */
.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

.cta-button.xlarge {
  padding: 1.2rem 3rem;
  font-size: 1.25rem;
}

/* Mobile Button Adjustments - Enhanced */
@media (max-width: 768px) {
  .cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    min-height: 50px;
    border-radius: 25px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .cta-button.small {
    padding: 0.625rem 1.1rem;
    font-size: 0.85rem;
    min-height: 40px;
    border-radius: 20px;
  }

  .cta-button.large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    min-height: 56px;
  }

  .cta-button.xlarge {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    min-height: 58px;
    width: 100%;
  }

  /* Touch feedback */
  .cta-button:active {
    transform: scale(0.98);
  }

  .cta-button.primary:active {
    background-color: #353b20;
  }

  .cta-button.secondary:active {
    background-color: #e5d49a;
  }
}

@media (max-width: 480px) {
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    min-height: 50px;
    border-radius: 25px;
  }

  .cta-button.small {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    min-height: 40px;
    border-radius: 20px;
  }

  .cta-button.large,
  .cta-button.xlarge {
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
    min-height: 54px;
    width: 100%;
  }

  /* Ensure buttons don't get too small on touch */
  .cta-button {
    min-width: 44px;
  }
}

/* Extra small mobile */
@media (max-width: 359px) {
  .cta-button {
    padding: 0.8rem 1.35rem;
    font-size: 0.875rem;
    min-height: 48px;
  }

  .cta-button.small {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-height: 38px;
  }

  .cta-button.large,
  .cta-button.xlarge {
    padding: 0.875rem 1.5rem;
    min-height: 52px;
  }
}