/**
 * BH Coastal — Components
 * ------------------------
 * Buttons only need two registers: a solid navy primary action, and
 * a quiet outlined/ghost secondary. No color-fill hover animation,
 * no shadow lift — restraint is the point. Both use the same wide
 * letter-spacing as nav labels so buttons read as part of the same
 * system, not a bolted-on UI kit.
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
  background-image: none; /* buttons opt out of the global link-underline treatment */
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-ivory);
  border-color: var(--color-navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-navy-soft);
  border-color: var(--color-navy-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-navy);
  color: var(--color-ivory);
}

/* Secondary button on a dark/inverse section */
.section--inverse .btn-secondary {
  color: var(--color-ivory);
  border-color: var(--color-ivory);
}

.section--inverse .btn-secondary:hover,
.section--inverse .btn-secondary:focus-visible {
  background: var(--color-ivory);
  color: var(--color-navy);
}

.btn:focus-visible {
  outline: 2px solid var(--color-sandstone);
  outline-offset: 2px;
}

/* Text link styled as a call-to-action — used where a full button
   would be too heavy (e.g. "Read the story →"). */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--color-navy);
}

.link-cta .arrow {
  transition: transform var(--duration-base) var(--ease-standard);
}

.link-cta:hover .arrow,
.link-cta:focus-visible .arrow {
  transform: translateX(4px);
}
