/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.375rem;
  padding: 10px 12px; /* py 10px, px 12px */
  font-family: var(--font-family-heading); /* Brandon Grotesque */
  font-size: var(--font-size-p-md); /* Default 16px */
  font-weight: var(
    --font-weight-heading-bold
  ); /* Medium weight for Brandon Grotesque, adjust as needed */
  line-height: 1.2; /* Adjust if text clipping occurs */
  border-radius: var(--border-radius-sm); /* Consistent rounded corners */
  border: 2px solid transparent; /* Base for consistent layout, overridden by variants */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  -webkit-font-smoothing: antialiased; /* Improves text rendering on some displays */
  -moz-osx-font-smoothing: grayscale;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
}

.btn.btn--icon-only {
  padding: 11px;
}

/* --- Variant: Solid --- */
/* Color: Yellow */
.btn--solid.btn--yellow {
  background-color: var(--brand-yellow);
  color: var(--neutral-900);
  border: 2px solid var(--brand-yellow);
}
.btn--solid.btn--yellow:hover:not(:disabled) {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.btn--solid.btn--yellow:disabled,
.btn--solid.btn--yellow[disabled] {
  opacity: 0.5;
}

/* --- Variant: Outline --- */
/* Color: Neutral */
.btn--outline.btn--neutral {
  background-color: transparent;
  color: var(--neutral-900);
  border: 2px solid var(--neutral-900);
}
.btn--outline.btn--neutral:hover:not(:disabled) {
  background-color: var(--brand-light-blue);
}
.btn--outline.btn--neutral:disabled,
.btn--outline.btn--neutral[disabled] {
  opacity: 0.5;
}

/* --- Variant: Ghost --- */
.btn--ghost {
  padding: 0;
  background-color: transparent;
  border-color: transparent;
  color: var(--neutral-600);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--neutral-900);
}
.btn--ghost:disabled,
.btn--ghost[disabled] {
  opacity: 0.5; /* Opacity 50% on disabled */
  /* color will be var(--neutral-900) at 50% opacity */
}

/* Focus visible state for accessibility - apply to all buttons */
.btn:focus-visible {
  outline: 2px solid var(--brand-blue); /* Or your focus color */
  outline-offset: 2px;
}

.btn.btn--lg {
  font-size: var(--font-size-h3); /* 24px */
}

.btn.btn--solid.btn--lg {
  font-size: var(--font-size-h3); /* 24px */
}
