/* ==========================================================================
   COMPONENT: Buttons (shared across every page type)
   Slanted, squared buttons that echo the italic logo. Yellow = estimate and
   call actions, blue = standard actions.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 3px;
  transform: skewX(-12deg);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;

  &:hover {
    transform: skewX(-12deg) translateY(-2px);
  }

  i {
    font-size: 1.05em;
  }
}

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

  &:hover {
    background: var(--primary-strong);
  }
}

.btn-accent,
.btn-clay {
  background: var(--accent-color);
  color: var(--secondary-color);

  &:hover {
    background: var(--accent-strong);
  }
}

.btn-dark {
  background: var(--secondary-color);
  color: var(--text-on-dark);

  &:hover {
    background: var(--primary-strong);
  }
}

.btn-light {
  background: white;
  color: var(--secondary-color);

  &:hover {
    color: var(--primary-strong);
  }
}

.btn-outline-light {
  background: rgb(255 255 255 / 0.08);
  color: var(--text-on-dark);
  border-color: rgb(255 255 255 / 0.45);

  &:hover {
    background: rgb(255 255 255 / 0.16);
    border-color: white;
  }
}

.btn-outline-dark {
  background: transparent;
  color: var(--secondary-color);
  border-color: color-mix(in srgb, var(--secondary-color) 30%, transparent);

  &:hover {
    color: var(--primary-strong);
    border-color: var(--primary-color);
  }
}

.btn-sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 62px;
  padding: 0 38px;
  font-size: 1.08rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  color: var(--primary-strong);
  text-decoration: none;

  i {
    transition: transform 0.2s ease;
  }

  &:hover i {
    transform: translateX(4px);
  }
}
